diff --git a/sdk/kusto/azure-resourcemanager-kusto/CHANGELOG.md b/sdk/kusto/azure-resourcemanager-kusto/CHANGELOG.md index 8f59629c6112..8eb3f518f565 100644 --- a/sdk/kusto/azure-resourcemanager-kusto/CHANGELOG.md +++ b/sdk/kusto/azure-resourcemanager-kusto/CHANGELOG.md @@ -1,6 +1,8 @@ # Release History -## 1.0.0-beta.7 (Unreleased) +## 1.0.0-beta.1 (2023-06-22) + +- Azure Resource Manager Kusto client library for Java. This package contains Microsoft Azure SDK for Kusto Management SDK. The Azure Kusto management API provides a RESTful set of web services that interact with Azure Kusto services to manage your clusters and databases. The API enables you to create, update, and delete clusters and databases. Package tag package-2023-05. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt). ### Features Added diff --git a/sdk/kusto/azure-resourcemanager-kusto/README.md b/sdk/kusto/azure-resourcemanager-kusto/README.md index 576d30daf570..3ec96c7afd1d 100644 --- a/sdk/kusto/azure-resourcemanager-kusto/README.md +++ b/sdk/kusto/azure-resourcemanager-kusto/README.md @@ -2,7 +2,7 @@ Azure Resource Manager Kusto client library for Java. -This package contains Microsoft Azure SDK for Kusto Management SDK. The Azure Kusto management API provides a RESTful set of web services that interact with Azure Kusto services to manage your clusters and databases. The API enables you to create, update, and delete clusters and databases. Package tag package-2022-12. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt). +This package contains Microsoft Azure SDK for Kusto Management SDK. The Azure Kusto management API provides a RESTful set of web services that interact with Azure Kusto services to manage your clusters and databases. The API enables you to create, update, and delete clusters and databases. Package tag package-2023-05. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt). ## We'd love to hear your feedback @@ -32,7 +32,7 @@ Various documentation is available to help you get started com.azure.resourcemanager azure-resourcemanager-kusto - 1.0.0-beta.6 + 1.0.0-beta.7 ``` [//]: # ({x-version-update-end}) diff --git a/sdk/kusto/azure-resourcemanager-kusto/SAMPLE.md b/sdk/kusto/azure-resourcemanager-kusto/SAMPLE.md index 120b96b6911d..41280e8d100f 100644 --- a/sdk/kusto/azure-resourcemanager-kusto/SAMPLE.md +++ b/sdk/kusto/azure-resourcemanager-kusto/SAMPLE.md @@ -33,6 +33,7 @@ - [ListOutboundNetworkDependenciesEndpoints](#clusters_listoutboundnetworkdependenciesendpoints) - [ListSkus](#clusters_listskus) - [ListSkusByResource](#clusters_listskusbyresource) +- [Migrate](#clusters_migrate) - [RemoveLanguageExtensions](#clusters_removelanguageextensions) - [Start](#clusters_start) - [Stop](#clusters_stop) @@ -48,6 +49,10 @@ - [ListByDatabase](#dataconnections_listbydatabase) - [Update](#dataconnections_update) +## DatabaseOperation + +- [InviteFollower](#databaseoperation_invitefollower) + ## DatabasePrincipalAssignments - [CheckNameAvailability](#databaseprincipalassignments_checknameavailability) @@ -121,7 +126,7 @@ import com.azure.resourcemanager.kusto.models.AttachedDatabaseConfigurationsChec /** Samples for AttachedDatabaseConfigurations CheckNameAvailability. */ public final class AttachedDatabaseConfigurationsCheckNameAvailabilitySamples { /* - * x-ms-original-file: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2022-12-29/examples/KustoAttachedDatabaseConfigurationCheckNameAvailability.json + * x-ms-original-file: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2023-05-02/examples/KustoAttachedDatabaseConfigurationCheckNameAvailability.json */ /** * Sample code: KustoAttachedDatabaseConfigurationCheckNameAvailability. @@ -151,7 +156,7 @@ import java.util.Arrays; /** Samples for AttachedDatabaseConfigurations CreateOrUpdate. */ public final class AttachedDatabaseConfigurationsCreateOrUpdateSamples { /* - * x-ms-original-file: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2022-12-29/examples/KustoAttachedDatabaseConfigurationsCreateOrUpdate.json + * x-ms-original-file: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2023-05-02/examples/KustoAttachedDatabaseConfigurationsCreateOrUpdate.json */ /** * Sample code: AttachedDatabaseConfigurationsCreateOrUpdate. @@ -189,7 +194,7 @@ public final class AttachedDatabaseConfigurationsCreateOrUpdateSamples { /** Samples for AttachedDatabaseConfigurations Delete. */ public final class AttachedDatabaseConfigurationsDeleteSamples { /* - * x-ms-original-file: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2022-12-29/examples/KustoAttachedDatabaseConfigurationsDelete.json + * x-ms-original-file: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2023-05-02/examples/KustoAttachedDatabaseConfigurationsDelete.json */ /** * Sample code: AttachedDatabaseConfigurationsDelete. @@ -211,7 +216,7 @@ public final class AttachedDatabaseConfigurationsDeleteSamples { /** Samples for AttachedDatabaseConfigurations Get. */ public final class AttachedDatabaseConfigurationsGetSamples { /* - * x-ms-original-file: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2022-12-29/examples/KustoAttachedDatabaseConfigurationsGet.json + * x-ms-original-file: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2023-05-02/examples/KustoAttachedDatabaseConfigurationsGet.json */ /** * Sample code: AttachedDatabaseConfigurationsGet. @@ -233,7 +238,7 @@ public final class AttachedDatabaseConfigurationsGetSamples { /** Samples for AttachedDatabaseConfigurations ListByCluster. */ public final class AttachedDatabaseConfigurationsListByClusterSamples { /* - * x-ms-original-file: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2022-12-29/examples/KustoAttachedDatabaseConfigurationsListByCluster.json + * x-ms-original-file: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2023-05-02/examples/KustoAttachedDatabaseConfigurationsListByCluster.json */ /** * Sample code: KustoAttachedDatabaseConfigurationsListByCluster. @@ -257,7 +262,7 @@ import com.azure.resourcemanager.kusto.models.ClusterPrincipalAssignmentCheckNam /** Samples for ClusterPrincipalAssignments CheckNameAvailability. */ public final class ClusterPrincipalAssignmentsCheckNameAvailabilitySamples { /* - * x-ms-original-file: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2022-12-29/examples/KustoClusterPrincipalAssignmentsCheckNameAvailability.json + * x-ms-original-file: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2023-05-02/examples/KustoClusterPrincipalAssignmentsCheckNameAvailability.json */ /** * Sample code: KustoClusterPrincipalAssignmentsCheckNameAvailability. @@ -286,7 +291,7 @@ import com.azure.resourcemanager.kusto.models.PrincipalType; /** Samples for ClusterPrincipalAssignments CreateOrUpdate. */ public final class ClusterPrincipalAssignmentsCreateOrUpdateSamples { /* - * x-ms-original-file: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2022-12-29/examples/KustoClusterPrincipalAssignmentsCreateOrUpdate.json + * x-ms-original-file: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2023-05-02/examples/KustoClusterPrincipalAssignmentsCreateOrUpdate.json */ /** * Sample code: KustoClusterPrincipalAssignmentsCreateOrUpdate. @@ -314,7 +319,7 @@ public final class ClusterPrincipalAssignmentsCreateOrUpdateSamples { /** Samples for ClusterPrincipalAssignments Delete. */ public final class ClusterPrincipalAssignmentsDeleteSamples { /* - * x-ms-original-file: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2022-12-29/examples/KustoClusterPrincipalAssignmentsDelete.json + * x-ms-original-file: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2023-05-02/examples/KustoClusterPrincipalAssignmentsDelete.json */ /** * Sample code: KustoClusterPrincipalAssignmentsDelete. @@ -335,7 +340,7 @@ public final class ClusterPrincipalAssignmentsDeleteSamples { /** Samples for ClusterPrincipalAssignments Get. */ public final class ClusterPrincipalAssignmentsGetSamples { /* - * x-ms-original-file: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2022-12-29/examples/KustoClusterPrincipalAssignmentsGet.json + * x-ms-original-file: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2023-05-02/examples/KustoClusterPrincipalAssignmentsGet.json */ /** * Sample code: KustoClusterPrincipalAssignmentsGet. @@ -356,7 +361,7 @@ public final class ClusterPrincipalAssignmentsGetSamples { /** Samples for ClusterPrincipalAssignments List. */ public final class ClusterPrincipalAssignmentsListSamples { /* - * x-ms-original-file: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2022-12-29/examples/KustoClusterPrincipalAssignmentsList.json + * x-ms-original-file: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2023-05-02/examples/KustoClusterPrincipalAssignmentsList.json */ /** * Sample code: KustoPrincipalAssignmentsList. @@ -380,7 +385,7 @@ import java.util.Arrays; /** Samples for Clusters AddLanguageExtensions. */ public final class ClustersAddLanguageExtensionsSamples { /* - * x-ms-original-file: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2022-12-29/examples/KustoClusterAddLanguageExtensions.json + * x-ms-original-file: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2023-05-02/examples/KustoClusterAddLanguageExtensions.json */ /** * Sample code: KustoClusterAddLanguageExtensions. @@ -412,7 +417,7 @@ import com.azure.resourcemanager.kusto.models.ClusterCheckNameRequest; /** Samples for Clusters CheckNameAvailability. */ public final class ClustersCheckNameAvailabilitySamples { /* - * x-ms-original-file: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2022-12-29/examples/KustoClustersCheckNameAvailability.json + * x-ms-original-file: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2023-05-02/examples/KustoClustersCheckNameAvailability.json */ /** * Sample code: KustoClustersCheckNameAvailability. @@ -431,11 +436,15 @@ public final class ClustersCheckNameAvailabilitySamples { ### Clusters_CreateOrUpdate ```java +import com.azure.resourcemanager.kusto.fluent.models.LanguageExtensionInner; import com.azure.resourcemanager.kusto.models.AzureSku; import com.azure.resourcemanager.kusto.models.AzureSkuName; import com.azure.resourcemanager.kusto.models.AzureSkuTier; import com.azure.resourcemanager.kusto.models.Identity; import com.azure.resourcemanager.kusto.models.IdentityType; +import com.azure.resourcemanager.kusto.models.LanguageExtensionImageName; +import com.azure.resourcemanager.kusto.models.LanguageExtensionName; +import com.azure.resourcemanager.kusto.models.LanguageExtensionsList; import com.azure.resourcemanager.kusto.models.PublicIpType; import com.azure.resourcemanager.kusto.models.PublicNetworkAccess; import java.util.Arrays; @@ -443,7 +452,7 @@ import java.util.Arrays; /** Samples for Clusters CreateOrUpdate. */ public final class ClustersCreateOrUpdateSamples { /* - * x-ms-original-file: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2022-12-29/examples/KustoClustersCreateOrUpdate.json + * x-ms-original-file: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2023-05-02/examples/KustoClustersCreateOrUpdate.json */ /** * Sample code: KustoClustersCreateOrUpdate. @@ -461,6 +470,17 @@ public final class ClustersCreateOrUpdateSamples { .withIdentity(new Identity().withType(IdentityType.SYSTEM_ASSIGNED)) .withEnableStreamingIngest(true) .withEnablePurge(true) + .withLanguageExtensions( + new LanguageExtensionsList() + .withValue( + Arrays + .asList( + new LanguageExtensionInner() + .withLanguageExtensionName(LanguageExtensionName.PYTHON) + .withLanguageExtensionImageName(LanguageExtensionImageName.PYTHON3_10_8), + new LanguageExtensionInner() + .withLanguageExtensionName(LanguageExtensionName.R) + .withLanguageExtensionImageName(LanguageExtensionImageName.R)))) .withEnableDoubleEncryption(false) .withPublicNetworkAccess(PublicNetworkAccess.ENABLED) .withAllowedIpRangeList(Arrays.asList("0.0.0.0/0")) @@ -477,7 +497,7 @@ public final class ClustersCreateOrUpdateSamples { /** Samples for Clusters Delete. */ public final class ClustersDeleteSamples { /* - * x-ms-original-file: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2022-12-29/examples/KustoClustersDelete.json + * x-ms-original-file: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2023-05-02/examples/KustoClustersDelete.json */ /** * Sample code: KustoClustersDelete. @@ -498,7 +518,7 @@ import com.azure.resourcemanager.kusto.fluent.models.FollowerDatabaseDefinitionI /** Samples for Clusters DetachFollowerDatabases. */ public final class ClustersDetachFollowerDatabasesSamples { /* - * x-ms-original-file: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2022-12-29/examples/KustoClusterDetachFollowerDatabases.json + * x-ms-original-file: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2023-05-02/examples/KustoClusterDetachFollowerDatabases.json */ /** * Sample code: KustoClusterDetachFollowerDatabases. @@ -526,7 +546,7 @@ public final class ClustersDetachFollowerDatabasesSamples { /** Samples for Clusters DiagnoseVirtualNetwork. */ public final class ClustersDiagnoseVirtualNetworkSamples { /* - * x-ms-original-file: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2022-12-29/examples/KustoClustersDiagnoseVirtualNetwork.json + * x-ms-original-file: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2023-05-02/examples/KustoClustersDiagnoseVirtualNetwork.json */ /** * Sample code: KustoClusterDiagnoseVirtualNetwork. @@ -545,7 +565,7 @@ public final class ClustersDiagnoseVirtualNetworkSamples { /** Samples for Clusters GetByResourceGroup. */ public final class ClustersGetByResourceGroupSamples { /* - * x-ms-original-file: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2022-12-29/examples/KustoClustersGet.json + * x-ms-original-file: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2023-05-02/examples/KustoClustersGet.json */ /** * Sample code: KustoClustersGet. @@ -566,7 +586,7 @@ public final class ClustersGetByResourceGroupSamples { /** Samples for Clusters List. */ public final class ClustersListSamples { /* - * x-ms-original-file: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2022-12-29/examples/KustoClustersList.json + * x-ms-original-file: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2023-05-02/examples/KustoClustersList.json */ /** * Sample code: KustoClustersList. @@ -585,7 +605,7 @@ public final class ClustersListSamples { /** Samples for Clusters ListByResourceGroup. */ public final class ClustersListByResourceGroupSamples { /* - * x-ms-original-file: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2022-12-29/examples/KustoClustersListByResourceGroup.json + * x-ms-original-file: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2023-05-02/examples/KustoClustersListByResourceGroup.json */ /** * Sample code: KustoClustersListByResourceGroup. @@ -604,7 +624,7 @@ public final class ClustersListByResourceGroupSamples { /** Samples for Clusters ListFollowerDatabases. */ public final class ClustersListFollowerDatabasesSamples { /* - * x-ms-original-file: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2022-12-29/examples/KustoClusterListFollowerDatabases.json + * x-ms-original-file: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2023-05-02/examples/KustoClusterListFollowerDatabases.json */ /** * Sample code: KustoClusterListFollowerDatabases. @@ -623,7 +643,7 @@ public final class ClustersListFollowerDatabasesSamples { /** Samples for Clusters ListLanguageExtensions. */ public final class ClustersListLanguageExtensionsSamples { /* - * x-ms-original-file: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2022-12-29/examples/KustoClusterListLanguageExtensions.json + * x-ms-original-file: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2023-05-02/examples/KustoClusterListLanguageExtensions.json */ /** * Sample code: KustoClusterListLanguageExtensions. @@ -642,7 +662,7 @@ public final class ClustersListLanguageExtensionsSamples { /** Samples for Clusters ListOutboundNetworkDependenciesEndpoints. */ public final class ClustersListOutboundNetworkDependenciesEndpointsSamples { /* - * x-ms-original-file: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2022-12-29/examples/KustoOutboundNetworkDependenciesList.json + * x-ms-original-file: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2023-05-02/examples/KustoOutboundNetworkDependenciesList.json */ /** * Sample code: Get Kusto cluster outbound network dependencies. @@ -664,7 +684,7 @@ public final class ClustersListOutboundNetworkDependenciesEndpointsSamples { /** Samples for Clusters ListSkus. */ public final class ClustersListSkusSamples { /* - * x-ms-original-file: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2022-12-29/examples/KustoClustersListSkus.json + * x-ms-original-file: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2023-05-02/examples/KustoClustersListSkus.json */ /** * Sample code: KustoClustersListSkus. @@ -683,7 +703,7 @@ public final class ClustersListSkusSamples { /** Samples for Clusters ListSkusByResource. */ public final class ClustersListSkusByResourceSamples { /* - * x-ms-original-file: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2022-12-29/examples/KustoClustersListResourceSkus.json + * x-ms-original-file: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2023-05-02/examples/KustoClustersListResourceSkus.json */ /** * Sample code: KustoClustersListResourceSkus. @@ -696,6 +716,35 @@ public final class ClustersListSkusByResourceSamples { } ``` +### Clusters_Migrate + +```java +import com.azure.resourcemanager.kusto.models.ClusterMigrateRequest; + +/** Samples for Clusters Migrate. */ +public final class ClustersMigrateSamples { + /* + * x-ms-original-file: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2023-05-02/examples/KustoClusterMigrate.json + */ + /** + * Sample code: KustoClusterMigrate. + * + * @param manager Entry point to KustoManager. + */ + public static void kustoClusterMigrate(com.azure.resourcemanager.kusto.KustoManager manager) { + manager + .clusters() + .migrate( + "kustorptest", + "kustoCluster1", + new ClusterMigrateRequest() + .withClusterResourceId( + "/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.Kusto/clusters/kustoCluster2"), + com.azure.core.util.Context.NONE); + } +} +``` + ### Clusters_RemoveLanguageExtensions ```java @@ -707,7 +756,7 @@ import java.util.Arrays; /** Samples for Clusters RemoveLanguageExtensions. */ public final class ClustersRemoveLanguageExtensionsSamples { /* - * x-ms-original-file: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2022-12-29/examples/KustoClusterRemoveLanguageExtensions.json + * x-ms-original-file: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2023-05-02/examples/KustoClusterRemoveLanguageExtensions.json */ /** * Sample code: KustoClusterRemoveLanguageExtensions. @@ -737,7 +786,7 @@ public final class ClustersRemoveLanguageExtensionsSamples { /** Samples for Clusters Start. */ public final class ClustersStartSamples { /* - * x-ms-original-file: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2022-12-29/examples/KustoClustersStart.json + * x-ms-original-file: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2023-05-02/examples/KustoClustersStart.json */ /** * Sample code: KustoClustersStart. @@ -756,7 +805,7 @@ public final class ClustersStartSamples { /** Samples for Clusters Stop. */ public final class ClustersStopSamples { /* - * x-ms-original-file: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2022-12-29/examples/KustoClustersStop.json + * x-ms-original-file: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2023-05-02/examples/KustoClustersStop.json */ /** * Sample code: KustoClustersStop. @@ -777,7 +826,7 @@ import com.azure.resourcemanager.kusto.models.Cluster; /** Samples for Clusters Update. */ public final class ClustersUpdateSamples { /* - * x-ms-original-file: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2022-12-29/examples/KustoClustersUpdate.json + * x-ms-original-file: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2023-05-02/examples/KustoClustersUpdate.json */ /** * Sample code: KustoClustersUpdate. @@ -803,7 +852,7 @@ import com.azure.resourcemanager.kusto.models.DataConnectionCheckNameRequest; /** Samples for DataConnections CheckNameAvailability. */ public final class DataConnectionsCheckNameAvailabilitySamples { /* - * x-ms-original-file: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2022-12-29/examples/KustoDataConnectionsCheckNameAvailability.json + * x-ms-original-file: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2023-05-02/examples/KustoDataConnectionsCheckNameAvailability.json */ /** * Sample code: KustoDataConnectionsCheckNameAvailability. @@ -837,7 +886,7 @@ import java.time.OffsetDateTime; /** Samples for DataConnections CreateOrUpdate. */ public final class DataConnectionsCreateOrUpdateSamples { /* - * x-ms-original-file: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2022-12-29/examples/KustoDataConnectionsEventGridCreateOrUpdate.json + * x-ms-original-file: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2023-05-02/examples/KustoDataConnectionsEventGridCreateOrUpdate.json */ /** * Sample code: KustoDataConnectionsEventGridCreateOrUpdate. @@ -874,7 +923,7 @@ public final class DataConnectionsCreateOrUpdateSamples { } /* - * x-ms-original-file: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2022-12-29/examples/KustoDataConnectionsCosmosDbCreateOrUpdate.json + * x-ms-original-file: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2023-05-02/examples/KustoDataConnectionsCosmosDbCreateOrUpdate.json */ /** * Sample code: KustoDataConnectionsCosmosDbCreateOrUpdate. @@ -905,7 +954,7 @@ public final class DataConnectionsCreateOrUpdateSamples { } /* - * x-ms-original-file: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2022-12-29/examples/KustoDataConnectionsCreateOrUpdate.json + * x-ms-original-file: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2023-05-02/examples/KustoDataConnectionsCreateOrUpdate.json */ /** * Sample code: KustoDataConnectionsCreateOrUpdate. @@ -947,7 +996,7 @@ import com.azure.resourcemanager.kusto.models.EventHubDataFormat; /** Samples for DataConnections DataConnectionValidation. */ public final class DataConnectionsDataConnectionValidationSamples { /* - * x-ms-original-file: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2022-12-29/examples/KustoDataConnectionValidationAsync.json + * x-ms-original-file: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2023-05-02/examples/KustoDataConnectionValidationAsync.json */ /** * Sample code: KustoDataConnectionValidation. @@ -978,7 +1027,7 @@ public final class DataConnectionsDataConnectionValidationSamples { } /* - * x-ms-original-file: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2022-12-29/examples/KustoDataConnectionEventGridValidationAsync.json + * x-ms-original-file: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2023-05-02/examples/KustoDataConnectionEventGridValidationAsync.json */ /** * Sample code: KustoDataConnectionEventGridValidation. @@ -1022,7 +1071,7 @@ public final class DataConnectionsDataConnectionValidationSamples { /** Samples for DataConnections Delete. */ public final class DataConnectionsDeleteSamples { /* - * x-ms-original-file: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2022-12-29/examples/KustoDataConnectionsDelete.json + * x-ms-original-file: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2023-05-02/examples/KustoDataConnectionsDelete.json */ /** * Sample code: KustoDataConnectionsDelete. @@ -1048,7 +1097,7 @@ public final class DataConnectionsDeleteSamples { /** Samples for DataConnections Get. */ public final class DataConnectionsGetSamples { /* - * x-ms-original-file: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2022-12-29/examples/KustoDataConnectionsEventGridGet.json + * x-ms-original-file: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2023-05-02/examples/KustoDataConnectionsEventGridGet.json */ /** * Sample code: KustoDataConnectionsEventGridGet. @@ -1067,7 +1116,7 @@ public final class DataConnectionsGetSamples { } /* - * x-ms-original-file: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2022-12-29/examples/KustoDataConnectionsCosmosDbGet.json + * x-ms-original-file: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2023-05-02/examples/KustoDataConnectionsCosmosDbGet.json */ /** * Sample code: KustoDataConnectionsCosmosDbGet. @@ -1086,7 +1135,7 @@ public final class DataConnectionsGetSamples { } /* - * x-ms-original-file: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2022-12-29/examples/KustoDataConnectionsGet.json + * x-ms-original-file: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2023-05-02/examples/KustoDataConnectionsGet.json */ /** * Sample code: KustoDataConnectionsGet. @@ -1112,7 +1161,7 @@ public final class DataConnectionsGetSamples { /** Samples for DataConnections ListByDatabase. */ public final class DataConnectionsListByDatabaseSamples { /* - * x-ms-original-file: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2022-12-29/examples/KustoDataConnectionsListByDatabase.json + * x-ms-original-file: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2023-05-02/examples/KustoDataConnectionsListByDatabase.json */ /** * Sample code: KustoDatabasesListByCluster. @@ -1141,7 +1190,7 @@ import java.time.OffsetDateTime; /** Samples for DataConnections Update. */ public final class DataConnectionsUpdateSamples { /* - * x-ms-original-file: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2022-12-29/examples/KustoDataConnectionsCosmosDbUpdate.json + * x-ms-original-file: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2023-05-02/examples/KustoDataConnectionsCosmosDbUpdate.json */ /** * Sample code: KustoDataConnectionsCosmosDbUpdate. @@ -1171,7 +1220,7 @@ public final class DataConnectionsUpdateSamples { } /* - * x-ms-original-file: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2022-12-29/examples/KustoDataConnectionsUpdate.json + * x-ms-original-file: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2023-05-02/examples/KustoDataConnectionsUpdate.json */ /** * Sample code: KustoDataConnectionsUpdate. @@ -1197,7 +1246,7 @@ public final class DataConnectionsUpdateSamples { } /* - * x-ms-original-file: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2022-12-29/examples/KustoDataConnectionsEventGridUpdate.json + * x-ms-original-file: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2023-05-02/examples/KustoDataConnectionsEventGridUpdate.json */ /** * Sample code: KustoDataConnectionsEventGridUpdate. @@ -1234,6 +1283,47 @@ public final class DataConnectionsUpdateSamples { } ``` +### DatabaseOperation_InviteFollower + +```java +import com.azure.resourcemanager.kusto.models.DatabaseInviteFollowerRequest; +import com.azure.resourcemanager.kusto.models.TableLevelSharingProperties; +import java.util.Arrays; + +/** Samples for DatabaseOperation InviteFollower. */ +public final class DatabaseOperationInviteFollowerSamples { + /* + * x-ms-original-file: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2023-05-02/examples/KustoDatabaseInviteFollower.json + */ + /** + * Sample code: KustoDatabaseInviteFollower. + * + * @param manager Entry point to KustoManager. + */ + public static void kustoDatabaseInviteFollower(com.azure.resourcemanager.kusto.KustoManager manager) { + manager + .databaseOperations() + .inviteFollowerWithResponse( + "kustorptest", + "kustoCluster", + "database", + new DatabaseInviteFollowerRequest() + .withInviteeEmail("invitee@contoso.com") + .withTableLevelSharingProperties( + new TableLevelSharingProperties() + .withTablesToInclude(Arrays.asList("Table1")) + .withTablesToExclude(Arrays.asList("Table2")) + .withExternalTablesToInclude(Arrays.asList("ExternalTable*")) + .withExternalTablesToExclude(Arrays.asList()) + .withMaterializedViewsToInclude(Arrays.asList("MaterializedViewTable1")) + .withMaterializedViewsToExclude(Arrays.asList("MaterializedViewTable2")) + .withFunctionsToInclude(Arrays.asList("functionsToInclude1")) + .withFunctionsToExclude(Arrays.asList("functionsToExclude2"))), + com.azure.core.util.Context.NONE); + } +} +``` + ### DatabasePrincipalAssignments_CheckNameAvailability ```java @@ -1242,7 +1332,7 @@ import com.azure.resourcemanager.kusto.models.DatabasePrincipalAssignmentCheckNa /** Samples for DatabasePrincipalAssignments CheckNameAvailability. */ public final class DatabasePrincipalAssignmentsCheckNameAvailabilitySamples { /* - * x-ms-original-file: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2022-12-29/examples/KustoDatabasePrincipalAssignmentsCheckNameAvailability.json + * x-ms-original-file: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2023-05-02/examples/KustoDatabasePrincipalAssignmentsCheckNameAvailability.json */ /** * Sample code: KustoDatabaseCheckNameAvailability. @@ -1271,7 +1361,7 @@ import com.azure.resourcemanager.kusto.models.PrincipalType; /** Samples for DatabasePrincipalAssignments CreateOrUpdate. */ public final class DatabasePrincipalAssignmentsCreateOrUpdateSamples { /* - * x-ms-original-file: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2022-12-29/examples/KustoDatabasePrincipalAssignmentsCreateOrUpdate.json + * x-ms-original-file: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2023-05-02/examples/KustoDatabasePrincipalAssignmentsCreateOrUpdate.json */ /** * Sample code: KustoDatabasePrincipalAssignmentsCreateOrUpdate. @@ -1299,7 +1389,7 @@ public final class DatabasePrincipalAssignmentsCreateOrUpdateSamples { /** Samples for DatabasePrincipalAssignments Delete. */ public final class DatabasePrincipalAssignmentsDeleteSamples { /* - * x-ms-original-file: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2022-12-29/examples/KustoDatabasePrincipalAssignmentsDelete.json + * x-ms-original-file: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2023-05-02/examples/KustoDatabasePrincipalAssignmentsDelete.json */ /** * Sample code: KustoDatabasePrincipalAssignmentsDelete. @@ -1321,7 +1411,7 @@ public final class DatabasePrincipalAssignmentsDeleteSamples { /** Samples for DatabasePrincipalAssignments Get. */ public final class DatabasePrincipalAssignmentsGetSamples { /* - * x-ms-original-file: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2022-12-29/examples/KustoDatabasePrincipalAssignmentsGet.json + * x-ms-original-file: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2023-05-02/examples/KustoDatabasePrincipalAssignmentsGet.json */ /** * Sample code: KustoDatabasePrincipalAssignmentsGet. @@ -1343,7 +1433,7 @@ public final class DatabasePrincipalAssignmentsGetSamples { /** Samples for DatabasePrincipalAssignments List. */ public final class DatabasePrincipalAssignmentsListSamples { /* - * x-ms-original-file: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2022-12-29/examples/KustoDatabasePrincipalAssignmentsList.json + * x-ms-original-file: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2023-05-02/examples/KustoDatabasePrincipalAssignmentsList.json */ /** * Sample code: KustoPrincipalAssignmentsList. @@ -1370,7 +1460,7 @@ import java.util.Arrays; /** Samples for Databases AddPrincipals. */ public final class DatabasesAddPrincipalsSamples { /* - * x-ms-original-file: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2022-12-29/examples/KustoDatabaseAddPrincipals.json + * x-ms-original-file: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2023-05-02/examples/KustoDatabaseAddPrincipals.json */ /** * Sample code: KustoDatabaseAddPrincipals. @@ -1423,7 +1513,7 @@ import com.azure.resourcemanager.kusto.models.Type; /** Samples for Databases CheckNameAvailability. */ public final class DatabasesCheckNameAvailabilitySamples { /* - * x-ms-original-file: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2022-12-29/examples/KustoDatabasesCheckNameAvailability.json + * x-ms-original-file: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2023-05-02/examples/KustoDatabasesCheckNameAvailability.json */ /** * Sample code: KustoDatabasesCheckNameAvailability. @@ -1453,7 +1543,7 @@ import java.time.Duration; /** Samples for Databases CreateOrUpdate. */ public final class DatabasesCreateOrUpdateSamples { /* - * x-ms-original-file: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2022-12-29/examples/KustoDatabaseReadonlyUpdate.json + * x-ms-original-file: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2023-05-02/examples/KustoDatabaseReadonlyUpdate.json */ /** * Sample code: Kusto ReadOnly database update. @@ -1473,7 +1563,7 @@ public final class DatabasesCreateOrUpdateSamples { } /* - * x-ms-original-file: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2022-12-29/examples/KustoDatabasesCreateOrUpdate.json + * x-ms-original-file: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2023-05-02/examples/KustoDatabasesCreateOrUpdate.json */ /** * Sample code: Kusto ReadWrite database create or update. @@ -1500,7 +1590,7 @@ public final class DatabasesCreateOrUpdateSamples { /** Samples for Databases Delete. */ public final class DatabasesDeleteSamples { /* - * x-ms-original-file: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2022-12-29/examples/KustoDatabasesDelete.json + * x-ms-original-file: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2023-05-02/examples/KustoDatabasesDelete.json */ /** * Sample code: KustoDatabasesDelete. @@ -1519,7 +1609,21 @@ public final class DatabasesDeleteSamples { /** Samples for Databases Get. */ public final class DatabasesGetSamples { /* - * x-ms-original-file: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2022-12-29/examples/KustoDatabasesGet.json + * x-ms-original-file: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2023-05-02/examples/KustoSuspendedDatabasesGet.json + */ + /** + * Sample code: KustoSuspendedDatabasesGet. + * + * @param manager Entry point to KustoManager. + */ + public static void kustoSuspendedDatabasesGet(com.azure.resourcemanager.kusto.KustoManager manager) { + manager + .databases() + .getWithResponse("kustorptest", "kustoCluster", "KustoDatabase9", com.azure.core.util.Context.NONE); + } + + /* + * x-ms-original-file: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2023-05-02/examples/KustoDatabasesGet.json */ /** * Sample code: KustoDatabasesGet. @@ -1540,7 +1644,7 @@ public final class DatabasesGetSamples { /** Samples for Databases ListByCluster. */ public final class DatabasesListByClusterSamples { /* - * x-ms-original-file: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2022-12-29/examples/KustoDatabasesListByCluster.json + * x-ms-original-file: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2023-05-02/examples/KustoDatabasesListByCluster.json */ /** * Sample code: KustoDatabasesListByCluster. @@ -1548,7 +1652,7 @@ public final class DatabasesListByClusterSamples { * @param manager Entry point to KustoManager. */ public static void kustoDatabasesListByCluster(com.azure.resourcemanager.kusto.KustoManager manager) { - manager.databases().listByCluster("kustorptest", "kustoCluster", com.azure.core.util.Context.NONE); + manager.databases().listByCluster("kustorptest", "kustoCluster", null, null, com.azure.core.util.Context.NONE); } } ``` @@ -1559,7 +1663,7 @@ public final class DatabasesListByClusterSamples { /** Samples for Databases ListPrincipals. */ public final class DatabasesListPrincipalsSamples { /* - * x-ms-original-file: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2022-12-29/examples/KustoDatabaseListPrincipals.json + * x-ms-original-file: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2023-05-02/examples/KustoDatabaseListPrincipals.json */ /** * Sample code: KustoDatabaseListPrincipals. @@ -1586,7 +1690,7 @@ import java.util.Arrays; /** Samples for Databases RemovePrincipals. */ public final class DatabasesRemovePrincipalsSamples { /* - * x-ms-original-file: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2022-12-29/examples/KustoDatabaseRemovePrincipals.json + * x-ms-original-file: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2023-05-02/examples/KustoDatabaseRemovePrincipals.json */ /** * Sample code: KustoDatabaseRemovePrincipals. @@ -1639,7 +1743,7 @@ import java.time.Duration; /** Samples for Databases Update. */ public final class DatabasesUpdateSamples { /* - * x-ms-original-file: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2022-12-29/examples/KustoDatabasesUpdate.json + * x-ms-original-file: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2023-05-02/examples/KustoDatabasesUpdate.json */ /** * Sample code: KustoDatabasesUpdate. @@ -1668,7 +1772,7 @@ import com.azure.resourcemanager.kusto.models.ManagedPrivateEndpointsCheckNameRe /** Samples for ManagedPrivateEndpoints CheckNameAvailability. */ public final class ManagedPrivateEndpointsCheckNameAvailabilitySamples { /* - * x-ms-original-file: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2022-12-29/examples/KustoManagedPrivateEndpointsCheckNameAvailability.json + * x-ms-original-file: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2023-05-02/examples/KustoManagedPrivateEndpointsCheckNameAvailability.json */ /** * Sample code: KustoManagedPrivateEndpointsCheckNameAvailability. @@ -1694,7 +1798,7 @@ public final class ManagedPrivateEndpointsCheckNameAvailabilitySamples { /** Samples for ManagedPrivateEndpoints CreateOrUpdate. */ public final class ManagedPrivateEndpointsCreateOrUpdateSamples { /* - * x-ms-original-file: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2022-12-29/examples/KustoManagedPrivateEndpointsCreateOrUpdate.json + * x-ms-original-file: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2023-05-02/examples/KustoManagedPrivateEndpointsCreateOrUpdate.json */ /** * Sample code: KustoManagedPrivateEndpointsCreateOrUpdate. @@ -1722,7 +1826,7 @@ public final class ManagedPrivateEndpointsCreateOrUpdateSamples { /** Samples for ManagedPrivateEndpoints Delete. */ public final class ManagedPrivateEndpointsDeleteSamples { /* - * x-ms-original-file: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2022-12-29/examples/KustoManagedPrivateEndpointsDelete.json + * x-ms-original-file: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2023-05-02/examples/KustoManagedPrivateEndpointsDelete.json */ /** * Sample code: ManagedPrivateEndpointsDelete. @@ -1743,7 +1847,7 @@ public final class ManagedPrivateEndpointsDeleteSamples { /** Samples for ManagedPrivateEndpoints Get. */ public final class ManagedPrivateEndpointsGetSamples { /* - * x-ms-original-file: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2022-12-29/examples/KustoManagedPrivateEndpointsGet.json + * x-ms-original-file: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2023-05-02/examples/KustoManagedPrivateEndpointsGet.json */ /** * Sample code: KustoManagedPrivateEndpointsGet. @@ -1765,7 +1869,7 @@ public final class ManagedPrivateEndpointsGetSamples { /** Samples for ManagedPrivateEndpoints List. */ public final class ManagedPrivateEndpointsListSamples { /* - * x-ms-original-file: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2022-12-29/examples/KustoManagedPrivateEndpointsList.json + * x-ms-original-file: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2023-05-02/examples/KustoManagedPrivateEndpointsList.json */ /** * Sample code: KustoManagedPrivateEndpointsList. @@ -1786,7 +1890,7 @@ import com.azure.resourcemanager.kusto.models.ManagedPrivateEndpoint; /** Samples for ManagedPrivateEndpoints Update. */ public final class ManagedPrivateEndpointsUpdateSamples { /* - * x-ms-original-file: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2022-12-29/examples/KustoManagedPrivateEndpointsUpdate.json + * x-ms-original-file: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2023-05-02/examples/KustoManagedPrivateEndpointsUpdate.json */ /** * Sample code: KustoManagedPrivateEndpointsUpdate. @@ -1817,7 +1921,7 @@ public final class ManagedPrivateEndpointsUpdateSamples { /** Samples for Operations List. */ public final class OperationsListSamples { /* - * x-ms-original-file: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2022-12-29/examples/KustoOperationsList.json + * x-ms-original-file: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2023-05-02/examples/KustoOperationsList.json */ /** * Sample code: KustoOperationsList. @@ -1836,7 +1940,7 @@ public final class OperationsListSamples { /** Samples for OperationsResults Get. */ public final class OperationsResultsGetSamples { /* - * x-ms-original-file: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2022-12-29/examples/KustoOperationResultsGet.json + * x-ms-original-file: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2023-05-02/examples/KustoOperationResultsGet.json */ /** * Sample code: KustoOperationResultsGet. @@ -1857,7 +1961,7 @@ public final class OperationsResultsGetSamples { /** Samples for OperationsResultsLocation Get. */ public final class OperationsResultsLocationGetSamples { /* - * x-ms-original-file: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2022-12-29/examples/KustoOperationResultsOperationResultResponseTypeGet.json + * x-ms-original-file: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2023-05-02/examples/KustoOperationResultsOperationResultResponseTypeGet.json */ /** * Sample code: KustoOperationsResultsLocationGet. @@ -1880,7 +1984,7 @@ import com.azure.resourcemanager.kusto.models.PrivateLinkServiceConnectionStateP /** Samples for PrivateEndpointConnections CreateOrUpdate. */ public final class PrivateEndpointConnectionsCreateOrUpdateSamples { /* - * x-ms-original-file: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2022-12-29/examples/KustoPrivateEndpointConnectionsCreateOrUpdate.json + * x-ms-original-file: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2023-05-02/examples/KustoPrivateEndpointConnectionsCreateOrUpdate.json */ /** * Sample code: Approve or reject a private endpoint connection with a given name. @@ -1908,7 +2012,7 @@ public final class PrivateEndpointConnectionsCreateOrUpdateSamples { /** Samples for PrivateEndpointConnections Delete. */ public final class PrivateEndpointConnectionsDeleteSamples { /* - * x-ms-original-file: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2022-12-29/examples/KustoPrivateEndpointConnectionsDelete.json + * x-ms-original-file: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2023-05-02/examples/KustoPrivateEndpointConnectionsDelete.json */ /** * Sample code: Deletes a private endpoint connection with a given name. @@ -1930,7 +2034,7 @@ public final class PrivateEndpointConnectionsDeleteSamples { /** Samples for PrivateEndpointConnections Get. */ public final class PrivateEndpointConnectionsGetSamples { /* - * x-ms-original-file: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2022-12-29/examples/KustoPrivateEndpointConnectionsGet.json + * x-ms-original-file: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2023-05-02/examples/KustoPrivateEndpointConnectionsGet.json */ /** * Sample code: Gets private endpoint connection. @@ -1951,7 +2055,7 @@ public final class PrivateEndpointConnectionsGetSamples { /** Samples for PrivateEndpointConnections List. */ public final class PrivateEndpointConnectionsListSamples { /* - * x-ms-original-file: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2022-12-29/examples/KustoPrivateEndpointConnectionsList.json + * x-ms-original-file: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2023-05-02/examples/KustoPrivateEndpointConnectionsList.json */ /** * Sample code: KustoPrivateEndpointConnectionsList. @@ -1970,7 +2074,7 @@ public final class PrivateEndpointConnectionsListSamples { /** Samples for PrivateLinkResources Get. */ public final class PrivateLinkResourcesGetSamples { /* - * x-ms-original-file: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2022-12-29/examples/KustoPrivateLinkResourcesGet.json + * x-ms-original-file: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2023-05-02/examples/KustoPrivateLinkResourcesGet.json */ /** * Sample code: Gets private endpoint connection. @@ -1991,7 +2095,7 @@ public final class PrivateLinkResourcesGetSamples { /** Samples for PrivateLinkResources List. */ public final class PrivateLinkResourcesListSamples { /* - * x-ms-original-file: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2022-12-29/examples/KustoPrivateLinkResourcesList.json + * x-ms-original-file: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2023-05-02/examples/KustoPrivateLinkResourcesList.json */ /** * Sample code: Gets private endpoint connections. @@ -2012,7 +2116,7 @@ import com.azure.resourcemanager.kusto.models.ScriptCheckNameRequest; /** Samples for Scripts CheckNameAvailability. */ public final class ScriptsCheckNameAvailabilitySamples { /* - * x-ms-original-file: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2022-12-29/examples/KustoScriptsCheckNameAvailability.json + * x-ms-original-file: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2023-05-02/examples/KustoScriptsCheckNameAvailability.json */ /** * Sample code: KustoScriptsCheckNameAvailability. @@ -2038,7 +2142,7 @@ public final class ScriptsCheckNameAvailabilitySamples { /** Samples for Scripts CreateOrUpdate. */ public final class ScriptsCreateOrUpdateSamples { /* - * x-ms-original-file: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2022-12-29/examples/KustoScriptsCreateOrUpdate.json + * x-ms-original-file: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2023-05-02/examples/KustoScriptsCreateOrUpdate.json */ /** * Sample code: KustoScriptsCreateOrUpdate. @@ -2066,7 +2170,7 @@ public final class ScriptsCreateOrUpdateSamples { /** Samples for Scripts Delete. */ public final class ScriptsDeleteSamples { /* - * x-ms-original-file: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2022-12-29/examples/KustoScriptsDelete.json + * x-ms-original-file: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2023-05-02/examples/KustoScriptsDelete.json */ /** * Sample code: KustoScriptsDelete. @@ -2087,7 +2191,7 @@ public final class ScriptsDeleteSamples { /** Samples for Scripts Get. */ public final class ScriptsGetSamples { /* - * x-ms-original-file: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2022-12-29/examples/KustoScriptsGet.json + * x-ms-original-file: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2023-05-02/examples/KustoScriptsGet.json */ /** * Sample code: KustoScriptsGet. @@ -2109,7 +2213,7 @@ public final class ScriptsGetSamples { /** Samples for Scripts ListByDatabase. */ public final class ScriptsListByDatabaseSamples { /* - * x-ms-original-file: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2022-12-29/examples/KustoScriptsListByDatabase.json + * x-ms-original-file: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2023-05-02/examples/KustoScriptsListByDatabase.json */ /** * Sample code: KustoScriptsList. @@ -2132,7 +2236,7 @@ import com.azure.resourcemanager.kusto.models.Script; /** Samples for Scripts Update. */ public final class ScriptsUpdateSamples { /* - * x-ms-original-file: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2022-12-29/examples/KustoScriptsUpdate.json + * x-ms-original-file: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2023-05-02/examples/KustoScriptsUpdate.json */ /** * Sample code: KustoScriptsUpdate. @@ -2162,7 +2266,7 @@ public final class ScriptsUpdateSamples { /** Samples for Skus List. */ public final class SkusListSamples { /* - * x-ms-original-file: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2022-12-29/examples/KustoSkus.json + * x-ms-original-file: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2023-05-02/examples/KustoSkus.json */ /** * Sample code: KustoListRegionSkus. diff --git a/sdk/kusto/azure-resourcemanager-kusto/pom.xml b/sdk/kusto/azure-resourcemanager-kusto/pom.xml index 0c35452bc5b1..42085a69aca2 100644 --- a/sdk/kusto/azure-resourcemanager-kusto/pom.xml +++ b/sdk/kusto/azure-resourcemanager-kusto/pom.xml @@ -18,7 +18,7 @@ jar Microsoft Azure SDK for Kusto Management - This package contains Microsoft Azure SDK for Kusto Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. The Azure Kusto management API provides a RESTful set of web services that interact with Azure Kusto services to manage your clusters and databases. The API enables you to create, update, and delete clusters and databases. Package tag package-2022-12. + This package contains Microsoft Azure SDK for Kusto Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. The Azure Kusto management API provides a RESTful set of web services that interact with Azure Kusto services to manage your clusters and databases. The API enables you to create, update, and delete clusters and databases. Package tag package-2023-05. https://github.com/Azure/azure-sdk-for-java diff --git a/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/KustoManager.java b/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/KustoManager.java index 2baf0278314d..6424d82e0f99 100644 --- a/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/KustoManager.java +++ b/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/KustoManager.java @@ -28,6 +28,7 @@ import com.azure.resourcemanager.kusto.implementation.ClusterPrincipalAssignmentsImpl; import com.azure.resourcemanager.kusto.implementation.ClustersImpl; import com.azure.resourcemanager.kusto.implementation.DataConnectionsImpl; +import com.azure.resourcemanager.kusto.implementation.DatabaseOperationsImpl; import com.azure.resourcemanager.kusto.implementation.DatabasePrincipalAssignmentsImpl; import com.azure.resourcemanager.kusto.implementation.DatabasesImpl; import com.azure.resourcemanager.kusto.implementation.KustoManagementClientBuilder; @@ -43,6 +44,7 @@ import com.azure.resourcemanager.kusto.models.ClusterPrincipalAssignments; import com.azure.resourcemanager.kusto.models.Clusters; import com.azure.resourcemanager.kusto.models.DataConnections; +import com.azure.resourcemanager.kusto.models.DatabaseOperations; import com.azure.resourcemanager.kusto.models.DatabasePrincipalAssignments; import com.azure.resourcemanager.kusto.models.Databases; import com.azure.resourcemanager.kusto.models.ManagedPrivateEndpoints; @@ -78,6 +80,8 @@ public final class KustoManager { private ManagedPrivateEndpoints managedPrivateEndpoints; + private DatabaseOperations databaseOperations; + private DatabasePrincipalAssignments databasePrincipalAssignments; private Scripts scripts; @@ -259,7 +263,7 @@ public KustoManager authenticate(TokenCredential credential, AzureProfile profil .append("-") .append("com.azure.resourcemanager.kusto") .append("/") - .append("1.0.0-beta.6"); + .append("1.0.0-beta.1"); if (!Configuration.getGlobalConfiguration().get("AZURE_TELEMETRY_DISABLED", false)) { userAgentBuilder .append(" (") @@ -391,6 +395,18 @@ public ManagedPrivateEndpoints managedPrivateEndpoints() { return managedPrivateEndpoints; } + /** + * Gets the resource collection API of DatabaseOperations. + * + * @return Resource collection API of DatabaseOperations. + */ + public DatabaseOperations databaseOperations() { + if (this.databaseOperations == null) { + this.databaseOperations = new DatabaseOperationsImpl(clientObject.getDatabaseOperations(), this); + } + return databaseOperations; + } + /** * Gets the resource collection API of DatabasePrincipalAssignments. It manages DatabasePrincipalAssignment. * diff --git a/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/fluent/AttachedDatabaseConfigurationsClient.java b/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/fluent/AttachedDatabaseConfigurationsClient.java index fc1752ab9ebf..3d434e5e63a3 100644 --- a/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/fluent/AttachedDatabaseConfigurationsClient.java +++ b/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/fluent/AttachedDatabaseConfigurationsClient.java @@ -20,7 +20,7 @@ public interface AttachedDatabaseConfigurationsClient { /** * Checks that the attached database configuration resource name is valid and is not already in use. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param resourceName The name of the resource. * @param context The context to associate with this operation. @@ -39,7 +39,7 @@ Response checkNameAvailabilityWithResponse( /** * Checks that the attached database configuration resource name is valid and is not already in use. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param resourceName The name of the resource. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -54,7 +54,7 @@ CheckNameResultInner checkNameAvailability( /** * Returns the list of attached database configurations of the given Kusto cluster. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -68,7 +68,7 @@ CheckNameResultInner checkNameAvailability( /** * Returns the list of attached database configurations of the given Kusto cluster. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -84,7 +84,7 @@ PagedIterable listByCluster( /** * Returns an attached database configuration. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param attachedDatabaseConfigurationName The name of the attached database configuration. * @param context The context to associate with this operation. @@ -100,7 +100,7 @@ Response getWithResponse( /** * Returns an attached database configuration. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param attachedDatabaseConfigurationName The name of the attached database configuration. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -115,7 +115,7 @@ AttachedDatabaseConfigurationInner get( /** * Creates or updates an attached database configuration. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param attachedDatabaseConfigurationName The name of the attached database configuration. * @param parameters The database parameters supplied to the CreateOrUpdate operation. @@ -134,7 +134,7 @@ SyncPoller, AttachedDatabaseConfi /** * Creates or updates an attached database configuration. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param attachedDatabaseConfigurationName The name of the attached database configuration. * @param parameters The database parameters supplied to the CreateOrUpdate operation. @@ -155,7 +155,7 @@ SyncPoller, AttachedDatabaseConfi /** * Creates or updates an attached database configuration. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param attachedDatabaseConfigurationName The name of the attached database configuration. * @param parameters The database parameters supplied to the CreateOrUpdate operation. @@ -174,7 +174,7 @@ AttachedDatabaseConfigurationInner createOrUpdate( /** * Creates or updates an attached database configuration. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param attachedDatabaseConfigurationName The name of the attached database configuration. * @param parameters The database parameters supplied to the CreateOrUpdate operation. @@ -195,7 +195,7 @@ AttachedDatabaseConfigurationInner createOrUpdate( /** * Deletes the attached database configuration with the given name. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param attachedDatabaseConfigurationName The name of the attached database configuration. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -210,7 +210,7 @@ SyncPoller, Void> beginDelete( /** * Deletes the attached database configuration with the given name. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param attachedDatabaseConfigurationName The name of the attached database configuration. * @param context The context to associate with this operation. @@ -226,7 +226,7 @@ SyncPoller, Void> beginDelete( /** * Deletes the attached database configuration with the given name. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param attachedDatabaseConfigurationName The name of the attached database configuration. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -239,7 +239,7 @@ SyncPoller, Void> beginDelete( /** * Deletes the attached database configuration with the given name. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param attachedDatabaseConfigurationName The name of the attached database configuration. * @param context The context to associate with this operation. diff --git a/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/fluent/ClusterPrincipalAssignmentsClient.java b/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/fluent/ClusterPrincipalAssignmentsClient.java index c57869191374..0176482d55b6 100644 --- a/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/fluent/ClusterPrincipalAssignmentsClient.java +++ b/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/fluent/ClusterPrincipalAssignmentsClient.java @@ -20,7 +20,7 @@ public interface ClusterPrincipalAssignmentsClient { /** * Checks that the principal assignment name is valid and is not already in use. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param principalAssignmentName The name of the principal assignment. * @param context The context to associate with this operation. @@ -39,7 +39,7 @@ Response checkNameAvailabilityWithResponse( /** * Checks that the principal assignment name is valid and is not already in use. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param principalAssignmentName The name of the principal assignment. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -56,7 +56,7 @@ CheckNameResultInner checkNameAvailability( /** * Gets a Kusto cluster principalAssignment. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param principalAssignmentName The name of the Kusto principalAssignment. * @param context The context to associate with this operation. @@ -72,7 +72,7 @@ Response getWithResponse( /** * Gets a Kusto cluster principalAssignment. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param principalAssignmentName The name of the Kusto principalAssignment. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -86,7 +86,7 @@ Response getWithResponse( /** * Create a Kusto cluster principalAssignment. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param principalAssignmentName The name of the Kusto principalAssignment. * @param parameters The Kusto cluster principalAssignment's parameters supplied for the operation. @@ -105,7 +105,7 @@ SyncPoller, ClusterPrincipalAssignme /** * Create a Kusto cluster principalAssignment. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param principalAssignmentName The name of the Kusto principalAssignment. * @param parameters The Kusto cluster principalAssignment's parameters supplied for the operation. @@ -126,7 +126,7 @@ SyncPoller, ClusterPrincipalAssignme /** * Create a Kusto cluster principalAssignment. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param principalAssignmentName The name of the Kusto principalAssignment. * @param parameters The Kusto cluster principalAssignment's parameters supplied for the operation. @@ -145,7 +145,7 @@ ClusterPrincipalAssignmentInner createOrUpdate( /** * Create a Kusto cluster principalAssignment. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param principalAssignmentName The name of the Kusto principalAssignment. * @param parameters The Kusto cluster principalAssignment's parameters supplied for the operation. @@ -166,7 +166,7 @@ ClusterPrincipalAssignmentInner createOrUpdate( /** * Deletes a Kusto cluster principalAssignment. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param principalAssignmentName The name of the Kusto principalAssignment. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -181,7 +181,7 @@ SyncPoller, Void> beginDelete( /** * Deletes a Kusto cluster principalAssignment. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param principalAssignmentName The name of the Kusto principalAssignment. * @param context The context to associate with this operation. @@ -197,7 +197,7 @@ SyncPoller, Void> beginDelete( /** * Deletes a Kusto cluster principalAssignment. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param principalAssignmentName The name of the Kusto principalAssignment. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -210,7 +210,7 @@ SyncPoller, Void> beginDelete( /** * Deletes a Kusto cluster principalAssignment. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param principalAssignmentName The name of the Kusto principalAssignment. * @param context The context to associate with this operation. @@ -224,7 +224,7 @@ SyncPoller, Void> beginDelete( /** * Lists all Kusto cluster principalAssignments. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -238,7 +238,7 @@ SyncPoller, Void> beginDelete( /** * Lists all Kusto cluster principalAssignments. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. diff --git a/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/fluent/ClustersClient.java b/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/fluent/ClustersClient.java index 3e15330ad514..988d9551bf7b 100644 --- a/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/fluent/ClustersClient.java +++ b/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/fluent/ClustersClient.java @@ -20,6 +20,7 @@ import com.azure.resourcemanager.kusto.fluent.models.OutboundNetworkDependenciesEndpointInner; import com.azure.resourcemanager.kusto.fluent.models.SkuDescriptionInner; import com.azure.resourcemanager.kusto.models.ClusterCheckNameRequest; +import com.azure.resourcemanager.kusto.models.ClusterMigrateRequest; import com.azure.resourcemanager.kusto.models.ClusterUpdate; import com.azure.resourcemanager.kusto.models.LanguageExtensionsList; @@ -28,7 +29,7 @@ public interface ClustersClient { /** * Gets a Kusto cluster. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -43,7 +44,7 @@ Response getByResourceGroupWithResponse( /** * Gets a Kusto cluster. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -56,7 +57,7 @@ Response getByResourceGroupWithResponse( /** * Create or update a Kusto cluster. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param parameters The Kusto cluster parameters supplied to the CreateOrUpdate operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -71,7 +72,7 @@ SyncPoller, ClusterInner> beginCreateOrUpdate( /** * Create or update a Kusto cluster. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param parameters The Kusto cluster parameters supplied to the CreateOrUpdate operation. * @param ifMatch The ETag of the cluster. Omit this value to always overwrite the current cluster. Specify the @@ -96,7 +97,7 @@ SyncPoller, ClusterInner> beginCreateOrUpdate( /** * Create or update a Kusto cluster. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param parameters The Kusto cluster parameters supplied to the CreateOrUpdate operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -110,7 +111,7 @@ SyncPoller, ClusterInner> beginCreateOrUpdate( /** * Create or update a Kusto cluster. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param parameters The Kusto cluster parameters supplied to the CreateOrUpdate operation. * @param ifMatch The ETag of the cluster. Omit this value to always overwrite the current cluster. Specify the @@ -135,7 +136,7 @@ ClusterInner createOrUpdate( /** * Update a Kusto cluster. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param parameters The Kusto cluster parameters supplied to the Update operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -150,7 +151,7 @@ SyncPoller, ClusterInner> beginUpdate( /** * Update a Kusto cluster. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param parameters The Kusto cluster parameters supplied to the Update operation. * @param ifMatch The ETag of the cluster. Omit this value to always overwrite the current cluster. Specify the @@ -168,7 +169,7 @@ SyncPoller, ClusterInner> beginUpdate( /** * Update a Kusto cluster. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param parameters The Kusto cluster parameters supplied to the Update operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -182,7 +183,7 @@ SyncPoller, ClusterInner> beginUpdate( /** * Update a Kusto cluster. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param parameters The Kusto cluster parameters supplied to the Update operation. * @param ifMatch The ETag of the cluster. Omit this value to always overwrite the current cluster. Specify the @@ -200,7 +201,7 @@ ClusterInner update( /** * Deletes a Kusto cluster. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -213,7 +214,7 @@ ClusterInner update( /** * Deletes a Kusto cluster. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -227,7 +228,7 @@ ClusterInner update( /** * Deletes a Kusto cluster. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -239,7 +240,7 @@ ClusterInner update( /** * Deletes a Kusto cluster. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -252,7 +253,7 @@ ClusterInner update( /** * Stops a Kusto cluster. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -265,7 +266,7 @@ ClusterInner update( /** * Stops a Kusto cluster. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -279,7 +280,7 @@ ClusterInner update( /** * Stops a Kusto cluster. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -291,7 +292,7 @@ ClusterInner update( /** * Stops a Kusto cluster. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -304,7 +305,7 @@ ClusterInner update( /** * Starts a Kusto cluster. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -317,7 +318,7 @@ ClusterInner update( /** * Starts a Kusto cluster. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -331,7 +332,7 @@ ClusterInner update( /** * Starts a Kusto cluster. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -343,7 +344,7 @@ ClusterInner update( /** * Starts a Kusto cluster. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -353,10 +354,69 @@ ClusterInner update( @ServiceMethod(returns = ReturnType.SINGLE) void start(String resourceGroupName, String clusterName, Context context); + /** + * Migrate data from a Kusto cluster to another cluster. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the Kusto cluster. + * @param clusterMigrateRequest The cluster migrate request parameters. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, Void> beginMigrate( + String resourceGroupName, String clusterName, ClusterMigrateRequest clusterMigrateRequest); + + /** + * Migrate data from a Kusto cluster to another cluster. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the Kusto cluster. + * @param clusterMigrateRequest The cluster migrate request parameters. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, Void> beginMigrate( + String resourceGroupName, String clusterName, ClusterMigrateRequest clusterMigrateRequest, Context context); + + /** + * Migrate data from a Kusto cluster to another cluster. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the Kusto cluster. + * @param clusterMigrateRequest The cluster migrate request parameters. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + void migrate(String resourceGroupName, String clusterName, ClusterMigrateRequest clusterMigrateRequest); + + /** + * Migrate data from a Kusto cluster to another cluster. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the Kusto cluster. + * @param clusterMigrateRequest The cluster migrate request parameters. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + void migrate( + String resourceGroupName, String clusterName, ClusterMigrateRequest clusterMigrateRequest, Context context); + /** * Returns a list of databases that are owned by this cluster and were followed by another cluster. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -369,7 +429,7 @@ ClusterInner update( /** * Returns a list of databases that are owned by this cluster and were followed by another cluster. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -384,7 +444,7 @@ PagedIterable listFollowerDatabases( /** * Detaches all followers of a database owned by this cluster. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param followerDatabaseToRemove The follower databases properties to remove. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -399,7 +459,7 @@ SyncPoller, Void> beginDetachFollowerDatabases( /** * Detaches all followers of a database owned by this cluster. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param followerDatabaseToRemove The follower databases properties to remove. * @param context The context to associate with this operation. @@ -418,7 +478,7 @@ SyncPoller, Void> beginDetachFollowerDatabases( /** * Detaches all followers of a database owned by this cluster. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param followerDatabaseToRemove The follower databases properties to remove. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -432,7 +492,7 @@ void detachFollowerDatabases( /** * Detaches all followers of a database owned by this cluster. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param followerDatabaseToRemove The follower databases properties to remove. * @param context The context to associate with this operation. @@ -450,7 +510,7 @@ void detachFollowerDatabases( /** * Diagnoses network connectivity status for external resources on which the service is dependent on. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -464,7 +524,7 @@ void detachFollowerDatabases( /** * Diagnoses network connectivity status for external resources on which the service is dependent on. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -479,7 +539,7 @@ void detachFollowerDatabases( /** * Diagnoses network connectivity status for external resources on which the service is dependent on. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -492,7 +552,7 @@ void detachFollowerDatabases( /** * Diagnoses network connectivity status for external resources on which the service is dependent on. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -507,7 +567,7 @@ DiagnoseVirtualNetworkResultInner diagnoseVirtualNetwork( /** * Lists all Kusto clusters within a resource group. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -519,7 +579,7 @@ DiagnoseVirtualNetworkResultInner diagnoseVirtualNetwork( /** * Lists all Kusto clusters within a resource group. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -576,7 +636,7 @@ DiagnoseVirtualNetworkResultInner diagnoseVirtualNetwork( /** * Checks that the cluster name is valid and is not already in use. * - * @param location Azure location (region) name. + * @param location The name of Azure region. * @param clusterName The name of the cluster. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -591,7 +651,7 @@ Response checkNameAvailabilityWithResponse( /** * Checks that the cluster name is valid and is not already in use. * - * @param location Azure location (region) name. + * @param location The name of Azure region. * @param clusterName The name of the cluster. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -604,7 +664,7 @@ Response checkNameAvailabilityWithResponse( /** * Returns the SKUs available for the provided resource. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -617,7 +677,7 @@ Response checkNameAvailabilityWithResponse( /** * Returns the SKUs available for the provided resource. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -632,7 +692,7 @@ PagedIterable listSkusByResource( /** * Gets the network endpoints of all outbound dependencies of a Kusto cluster. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -647,7 +707,7 @@ PagedIterable listOutboundNetworkDepen /** * Gets the network endpoints of all outbound dependencies of a Kusto cluster. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -663,7 +723,7 @@ PagedIterable listOutboundNetworkDepen /** * Returns a list of language extensions that can run within KQL queries. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -676,7 +736,7 @@ PagedIterable listOutboundNetworkDepen /** * Returns a list of language extensions that can run within KQL queries. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -691,7 +751,7 @@ PagedIterable listLanguageExtensions( /** * Add a list of language extensions that can run within KQL queries. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param languageExtensionsToAdd The language extensions to add. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -706,7 +766,7 @@ SyncPoller, Void> beginAddLanguageExtensions( /** * Add a list of language extensions that can run within KQL queries. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param languageExtensionsToAdd The language extensions to add. * @param context The context to associate with this operation. @@ -722,7 +782,7 @@ SyncPoller, Void> beginAddLanguageExtensions( /** * Add a list of language extensions that can run within KQL queries. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param languageExtensionsToAdd The language extensions to add. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -736,7 +796,7 @@ void addLanguageExtensions( /** * Add a list of language extensions that can run within KQL queries. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param languageExtensionsToAdd The language extensions to add. * @param context The context to associate with this operation. @@ -751,7 +811,7 @@ void addLanguageExtensions( /** * Remove a list of language extensions that can run within KQL queries. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param languageExtensionsToRemove The language extensions to remove. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -766,7 +826,7 @@ SyncPoller, Void> beginRemoveLanguageExtensions( /** * Remove a list of language extensions that can run within KQL queries. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param languageExtensionsToRemove The language extensions to remove. * @param context The context to associate with this operation. @@ -785,7 +845,7 @@ SyncPoller, Void> beginRemoveLanguageExtensions( /** * Remove a list of language extensions that can run within KQL queries. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param languageExtensionsToRemove The language extensions to remove. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -799,7 +859,7 @@ void removeLanguageExtensions( /** * Remove a list of language extensions that can run within KQL queries. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param languageExtensionsToRemove The language extensions to remove. * @param context The context to associate with this operation. diff --git a/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/fluent/DataConnectionsClient.java b/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/fluent/DataConnectionsClient.java index de1903311dc2..1c4a3ba0b2bd 100644 --- a/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/fluent/DataConnectionsClient.java +++ b/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/fluent/DataConnectionsClient.java @@ -22,7 +22,7 @@ public interface DataConnectionsClient { /** * Returns the list of data connections of the given Kusto database. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param databaseName The name of the database in the Kusto cluster. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -37,7 +37,7 @@ PagedIterable listByDatabase( /** * Returns the list of data connections of the given Kusto database. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param databaseName The name of the database in the Kusto cluster. * @param context The context to associate with this operation. @@ -53,7 +53,7 @@ PagedIterable listByDatabase( /** * Checks that the data connection parameters are valid. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param databaseName The name of the database in the Kusto cluster. * @param parameters The data connection parameters supplied to the CreateOrUpdate operation. @@ -73,7 +73,7 @@ PagedIterable listByDatabase( /** * Checks that the data connection parameters are valid. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param databaseName The name of the database in the Kusto cluster. * @param parameters The data connection parameters supplied to the CreateOrUpdate operation. @@ -95,7 +95,7 @@ PagedIterable listByDatabase( /** * Checks that the data connection parameters are valid. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param databaseName The name of the database in the Kusto cluster. * @param parameters The data connection parameters supplied to the CreateOrUpdate operation. @@ -111,7 +111,7 @@ DataConnectionValidationListResultInner dataConnectionValidation( /** * Checks that the data connection parameters are valid. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param databaseName The name of the database in the Kusto cluster. * @param parameters The data connection parameters supplied to the CreateOrUpdate operation. @@ -132,7 +132,7 @@ DataConnectionValidationListResultInner dataConnectionValidation( /** * Checks that the data connection name is valid and is not already in use. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param databaseName The name of the database in the Kusto cluster. * @param dataConnectionName The name of the data connection. @@ -153,7 +153,7 @@ Response checkNameAvailabilityWithResponse( /** * Checks that the data connection name is valid and is not already in use. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param databaseName The name of the database in the Kusto cluster. * @param dataConnectionName The name of the data connection. @@ -172,7 +172,7 @@ CheckNameResultInner checkNameAvailability( /** * Returns a data connection. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param databaseName The name of the database in the Kusto cluster. * @param dataConnectionName The name of the data connection. @@ -189,7 +189,7 @@ Response getWithResponse( /** * Returns a data connection. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param databaseName The name of the database in the Kusto cluster. * @param dataConnectionName The name of the data connection. @@ -205,7 +205,7 @@ DataConnectionInner get( /** * Creates or updates a data connection. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param databaseName The name of the database in the Kusto cluster. * @param dataConnectionName The name of the data connection. @@ -226,7 +226,7 @@ SyncPoller, DataConnectionInner> beginCreateOrUp /** * Creates or updates a data connection. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param databaseName The name of the database in the Kusto cluster. * @param dataConnectionName The name of the data connection. @@ -249,7 +249,7 @@ SyncPoller, DataConnectionInner> beginCreateOrUp /** * Creates or updates a data connection. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param databaseName The name of the database in the Kusto cluster. * @param dataConnectionName The name of the data connection. @@ -270,7 +270,7 @@ DataConnectionInner createOrUpdate( /** * Creates or updates a data connection. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param databaseName The name of the database in the Kusto cluster. * @param dataConnectionName The name of the data connection. @@ -293,7 +293,7 @@ DataConnectionInner createOrUpdate( /** * Updates a data connection. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param databaseName The name of the database in the Kusto cluster. * @param dataConnectionName The name of the data connection. @@ -314,7 +314,7 @@ SyncPoller, DataConnectionInner> beginUpdate( /** * Updates a data connection. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param databaseName The name of the database in the Kusto cluster. * @param dataConnectionName The name of the data connection. @@ -337,7 +337,7 @@ SyncPoller, DataConnectionInner> beginUpdate( /** * Updates a data connection. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param databaseName The name of the database in the Kusto cluster. * @param dataConnectionName The name of the data connection. @@ -358,7 +358,7 @@ DataConnectionInner update( /** * Updates a data connection. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param databaseName The name of the database in the Kusto cluster. * @param dataConnectionName The name of the data connection. @@ -381,7 +381,7 @@ DataConnectionInner update( /** * Deletes the data connection with the given name. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param databaseName The name of the database in the Kusto cluster. * @param dataConnectionName The name of the data connection. @@ -397,7 +397,7 @@ SyncPoller, Void> beginDelete( /** * Deletes the data connection with the given name. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param databaseName The name of the database in the Kusto cluster. * @param dataConnectionName The name of the data connection. @@ -414,7 +414,7 @@ SyncPoller, Void> beginDelete( /** * Deletes the data connection with the given name. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param databaseName The name of the database in the Kusto cluster. * @param dataConnectionName The name of the data connection. @@ -428,7 +428,7 @@ SyncPoller, Void> beginDelete( /** * Deletes the data connection with the given name. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param databaseName The name of the database in the Kusto cluster. * @param dataConnectionName The name of the data connection. diff --git a/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/fluent/DatabaseOperationsClient.java b/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/fluent/DatabaseOperationsClient.java new file mode 100644 index 000000000000..cc7392352f69 --- /dev/null +++ b/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/fluent/DatabaseOperationsClient.java @@ -0,0 +1,52 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.kusto.fluent; + +import com.azure.core.annotation.ReturnType; +import com.azure.core.annotation.ServiceMethod; +import com.azure.core.http.rest.Response; +import com.azure.core.util.Context; +import com.azure.resourcemanager.kusto.fluent.models.DatabaseInviteFollowerResultInner; +import com.azure.resourcemanager.kusto.models.DatabaseInviteFollowerRequest; + +/** An instance of this class provides access to all the operations defined in DatabaseOperationsClient. */ +public interface DatabaseOperationsClient { + /** + * Generates an invitation token that allows attaching a follower database to this database. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the Kusto cluster. + * @param databaseName The name of the database in the Kusto cluster. + * @param parameters The follower invitation request parameters. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the result returned from a follower invitation generation request along with {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Response inviteFollowerWithResponse( + String resourceGroupName, + String clusterName, + String databaseName, + DatabaseInviteFollowerRequest parameters, + Context context); + + /** + * Generates an invitation token that allows attaching a follower database to this database. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the Kusto cluster. + * @param databaseName The name of the database in the Kusto cluster. + * @param parameters The follower invitation request parameters. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the result returned from a follower invitation generation request. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + DatabaseInviteFollowerResultInner inviteFollower( + String resourceGroupName, String clusterName, String databaseName, DatabaseInviteFollowerRequest parameters); +} diff --git a/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/fluent/DatabasePrincipalAssignmentsClient.java b/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/fluent/DatabasePrincipalAssignmentsClient.java index 0a1b017f9c0f..8922e4590b69 100644 --- a/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/fluent/DatabasePrincipalAssignmentsClient.java +++ b/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/fluent/DatabasePrincipalAssignmentsClient.java @@ -20,7 +20,7 @@ public interface DatabasePrincipalAssignmentsClient { /** * Checks that the database principal assignment is valid and is not already in use. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param databaseName The name of the database in the Kusto cluster. * @param principalAssignmentName The name of the resource. @@ -41,7 +41,7 @@ Response checkNameAvailabilityWithResponse( /** * Checks that the database principal assignment is valid and is not already in use. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param databaseName The name of the database in the Kusto cluster. * @param principalAssignmentName The name of the resource. @@ -60,7 +60,7 @@ CheckNameResultInner checkNameAvailability( /** * Gets a Kusto cluster database principalAssignment. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param databaseName The name of the database in the Kusto cluster. * @param principalAssignmentName The name of the Kusto principalAssignment. @@ -81,7 +81,7 @@ Response getWithResponse( /** * Gets a Kusto cluster database principalAssignment. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param databaseName The name of the database in the Kusto cluster. * @param principalAssignmentName The name of the Kusto principalAssignment. @@ -97,7 +97,7 @@ DatabasePrincipalAssignmentInner get( /** * Creates a Kusto cluster database principalAssignment. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param databaseName The name of the database in the Kusto cluster. * @param principalAssignmentName The name of the Kusto principalAssignment. @@ -118,7 +118,7 @@ SyncPoller, DatabasePrincipalAssign /** * Creates a Kusto cluster database principalAssignment. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param databaseName The name of the database in the Kusto cluster. * @param principalAssignmentName The name of the Kusto principalAssignment. @@ -141,7 +141,7 @@ SyncPoller, DatabasePrincipalAssign /** * Creates a Kusto cluster database principalAssignment. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param databaseName The name of the database in the Kusto cluster. * @param principalAssignmentName The name of the Kusto principalAssignment. @@ -162,7 +162,7 @@ DatabasePrincipalAssignmentInner createOrUpdate( /** * Creates a Kusto cluster database principalAssignment. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param databaseName The name of the database in the Kusto cluster. * @param principalAssignmentName The name of the Kusto principalAssignment. @@ -185,7 +185,7 @@ DatabasePrincipalAssignmentInner createOrUpdate( /** * Deletes a Kusto principalAssignment. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param databaseName The name of the database in the Kusto cluster. * @param principalAssignmentName The name of the Kusto principalAssignment. @@ -201,7 +201,7 @@ SyncPoller, Void> beginDelete( /** * Deletes a Kusto principalAssignment. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param databaseName The name of the database in the Kusto cluster. * @param principalAssignmentName The name of the Kusto principalAssignment. @@ -222,7 +222,7 @@ SyncPoller, Void> beginDelete( /** * Deletes a Kusto principalAssignment. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param databaseName The name of the database in the Kusto cluster. * @param principalAssignmentName The name of the Kusto principalAssignment. @@ -236,7 +236,7 @@ SyncPoller, Void> beginDelete( /** * Deletes a Kusto principalAssignment. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param databaseName The name of the database in the Kusto cluster. * @param principalAssignmentName The name of the Kusto principalAssignment. @@ -256,7 +256,7 @@ void delete( /** * Lists all Kusto cluster database principalAssignments. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param databaseName The name of the database in the Kusto cluster. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -272,7 +272,7 @@ PagedIterable list( /** * Lists all Kusto cluster database principalAssignments. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param databaseName The name of the database in the Kusto cluster. * @param context The context to associate with this operation. diff --git a/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/fluent/DatabasesClient.java b/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/fluent/DatabasesClient.java index 9b7a5b64968e..6769946747a0 100644 --- a/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/fluent/DatabasesClient.java +++ b/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/fluent/DatabasesClient.java @@ -24,7 +24,7 @@ public interface DatabasesClient { /** * Checks that the databases resource name is valid and is not already in use. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param resourceName The name of the resource. * @param context The context to associate with this operation. @@ -40,7 +40,7 @@ Response checkNameAvailabilityWithResponse( /** * Checks that the databases resource name is valid and is not already in use. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param resourceName The name of the resource. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -55,7 +55,7 @@ CheckNameResultInner checkNameAvailability( /** * Returns the list of databases of the given Kusto cluster. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -68,8 +68,12 @@ CheckNameResultInner checkNameAvailability( /** * Returns the list of databases of the given Kusto cluster. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. + * @param top limit the number of results. + * @param skiptoken Skiptoken is only used if a previous operation returned a partial result. If a previous response + * contains a nextLink element, the value of the nextLink element will include a skiptoken parameter that + * specifies a starting point to use for subsequent calls. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -77,12 +81,13 @@ CheckNameResultInner checkNameAvailability( * @return the list Kusto databases operation response as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable listByCluster(String resourceGroupName, String clusterName, Context context); + PagedIterable listByCluster( + String resourceGroupName, String clusterName, Integer top, String skiptoken, Context context); /** * Returns a database. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param databaseName The name of the database in the Kusto cluster. * @param context The context to associate with this operation. @@ -98,7 +103,7 @@ Response getWithResponse( /** * Returns a database. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param databaseName The name of the database in the Kusto cluster. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -112,7 +117,7 @@ Response getWithResponse( /** * Creates or updates a database. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param databaseName The name of the database in the Kusto cluster. * @param parameters The database parameters supplied to the CreateOrUpdate operation. @@ -128,7 +133,7 @@ SyncPoller, DatabaseInner> beginCreateOrUpdate( /** * Creates or updates a database. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param databaseName The name of the database in the Kusto cluster. * @param parameters The database parameters supplied to the CreateOrUpdate operation. @@ -152,7 +157,7 @@ SyncPoller, DatabaseInner> beginCreateOrUpdate( /** * Creates or updates a database. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param databaseName The name of the database in the Kusto cluster. * @param parameters The database parameters supplied to the CreateOrUpdate operation. @@ -168,7 +173,7 @@ DatabaseInner createOrUpdate( /** * Creates or updates a database. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param databaseName The name of the database in the Kusto cluster. * @param parameters The database parameters supplied to the CreateOrUpdate operation. @@ -192,7 +197,7 @@ DatabaseInner createOrUpdate( /** * Updates a database. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param databaseName The name of the database in the Kusto cluster. * @param parameters The database parameters supplied to the Update operation. @@ -208,7 +213,7 @@ SyncPoller, DatabaseInner> beginUpdate( /** * Updates a database. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param databaseName The name of the database in the Kusto cluster. * @param parameters The database parameters supplied to the Update operation. @@ -232,7 +237,7 @@ SyncPoller, DatabaseInner> beginUpdate( /** * Updates a database. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param databaseName The name of the database in the Kusto cluster. * @param parameters The database parameters supplied to the Update operation. @@ -247,7 +252,7 @@ SyncPoller, DatabaseInner> beginUpdate( /** * Updates a database. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param databaseName The name of the database in the Kusto cluster. * @param parameters The database parameters supplied to the Update operation. @@ -271,7 +276,7 @@ DatabaseInner update( /** * Deletes the database with the given name. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param databaseName The name of the database in the Kusto cluster. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -285,7 +290,7 @@ DatabaseInner update( /** * Deletes the database with the given name. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param databaseName The name of the database in the Kusto cluster. * @param context The context to associate with this operation. @@ -301,7 +306,7 @@ SyncPoller, Void> beginDelete( /** * Deletes the database with the given name. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param databaseName The name of the database in the Kusto cluster. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -314,7 +319,7 @@ SyncPoller, Void> beginDelete( /** * Deletes the database with the given name. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param databaseName The name of the database in the Kusto cluster. * @param context The context to associate with this operation. @@ -328,7 +333,7 @@ SyncPoller, Void> beginDelete( /** * Returns a list of database principals of the given Kusto cluster and database. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param databaseName The name of the database in the Kusto cluster. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -343,7 +348,7 @@ PagedIterable listPrincipals( /** * Returns a list of database principals of the given Kusto cluster and database. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param databaseName The name of the database in the Kusto cluster. * @param context The context to associate with this operation. @@ -359,7 +364,7 @@ PagedIterable listPrincipals( /** * Add Database principals permissions. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param databaseName The name of the database in the Kusto cluster. * @param databasePrincipalsToAdd List of database principals to add. @@ -380,7 +385,7 @@ Response addPrincipalsWithResponse( /** * Add Database principals permissions. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param databaseName The name of the database in the Kusto cluster. * @param databasePrincipalsToAdd List of database principals to add. @@ -399,7 +404,7 @@ DatabasePrincipalListResultInner addPrincipals( /** * Remove Database principals permissions. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param databaseName The name of the database in the Kusto cluster. * @param databasePrincipalsToRemove List of database principals to remove. @@ -420,7 +425,7 @@ Response removePrincipalsWithResponse( /** * Remove Database principals permissions. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param databaseName The name of the database in the Kusto cluster. * @param databasePrincipalsToRemove List of database principals to remove. diff --git a/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/fluent/KustoManagementClient.java b/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/fluent/KustoManagementClient.java index 42a0bc7b11a9..ec929506d4c2 100644 --- a/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/fluent/KustoManagementClient.java +++ b/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/fluent/KustoManagementClient.java @@ -10,8 +10,7 @@ /** The interface for KustoManagementClient class. */ public interface KustoManagementClient { /** - * Gets Gets subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID - * forms part of the URI for every service call. + * Gets The ID of the target subscription. * * @return the subscriptionId value. */ @@ -87,6 +86,13 @@ public interface KustoManagementClient { */ ManagedPrivateEndpointsClient getManagedPrivateEndpoints(); + /** + * Gets the DatabaseOperationsClient object to access its operations. + * + * @return the DatabaseOperationsClient object. + */ + DatabaseOperationsClient getDatabaseOperations(); + /** * Gets the DatabasePrincipalAssignmentsClient object to access its operations. * diff --git a/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/fluent/ManagedPrivateEndpointsClient.java b/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/fluent/ManagedPrivateEndpointsClient.java index cc351d86b4de..43caeafabefb 100644 --- a/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/fluent/ManagedPrivateEndpointsClient.java +++ b/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/fluent/ManagedPrivateEndpointsClient.java @@ -20,7 +20,7 @@ public interface ManagedPrivateEndpointsClient { /** * Checks that the managed private endpoints resource name is valid and is not already in use. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param resourceName The name of the resource. * @param context The context to associate with this operation. @@ -39,7 +39,7 @@ Response checkNameAvailabilityWithResponse( /** * Checks that the managed private endpoints resource name is valid and is not already in use. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param resourceName The name of the resource. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -54,7 +54,7 @@ CheckNameResultInner checkNameAvailability( /** * Returns the list of managed private endpoints. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -67,7 +67,7 @@ CheckNameResultInner checkNameAvailability( /** * Returns the list of managed private endpoints. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -81,7 +81,7 @@ CheckNameResultInner checkNameAvailability( /** * Gets a managed private endpoint. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param managedPrivateEndpointName The name of the managed private endpoint. * @param context The context to associate with this operation. @@ -97,7 +97,7 @@ Response getWithResponse( /** * Gets a managed private endpoint. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param managedPrivateEndpointName The name of the managed private endpoint. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -111,7 +111,7 @@ Response getWithResponse( /** * Creates a managed private endpoint. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param managedPrivateEndpointName The name of the managed private endpoint. * @param parameters The managed private endpoint parameters. @@ -130,7 +130,7 @@ SyncPoller, ManagedPrivateEndpointInner> /** * Creates a managed private endpoint. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param managedPrivateEndpointName The name of the managed private endpoint. * @param parameters The managed private endpoint parameters. @@ -151,7 +151,7 @@ SyncPoller, ManagedPrivateEndpointInner> /** * Creates a managed private endpoint. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param managedPrivateEndpointName The name of the managed private endpoint. * @param parameters The managed private endpoint parameters. @@ -170,7 +170,7 @@ ManagedPrivateEndpointInner createOrUpdate( /** * Creates a managed private endpoint. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param managedPrivateEndpointName The name of the managed private endpoint. * @param parameters The managed private endpoint parameters. @@ -191,7 +191,7 @@ ManagedPrivateEndpointInner createOrUpdate( /** * Updates a managed private endpoint. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param managedPrivateEndpointName The name of the managed private endpoint. * @param parameters The managed private endpoint parameters. @@ -210,7 +210,7 @@ SyncPoller, ManagedPrivateEndpointInner> /** * Updates a managed private endpoint. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param managedPrivateEndpointName The name of the managed private endpoint. * @param parameters The managed private endpoint parameters. @@ -231,7 +231,7 @@ SyncPoller, ManagedPrivateEndpointInner> /** * Updates a managed private endpoint. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param managedPrivateEndpointName The name of the managed private endpoint. * @param parameters The managed private endpoint parameters. @@ -250,7 +250,7 @@ ManagedPrivateEndpointInner update( /** * Updates a managed private endpoint. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param managedPrivateEndpointName The name of the managed private endpoint. * @param parameters The managed private endpoint parameters. @@ -271,7 +271,7 @@ ManagedPrivateEndpointInner update( /** * Deletes a managed private endpoint. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param managedPrivateEndpointName The name of the managed private endpoint. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -286,7 +286,7 @@ SyncPoller, Void> beginDelete( /** * Deletes a managed private endpoint. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param managedPrivateEndpointName The name of the managed private endpoint. * @param context The context to associate with this operation. @@ -302,7 +302,7 @@ SyncPoller, Void> beginDelete( /** * Deletes a managed private endpoint. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param managedPrivateEndpointName The name of the managed private endpoint. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -315,7 +315,7 @@ SyncPoller, Void> beginDelete( /** * Deletes a managed private endpoint. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param managedPrivateEndpointName The name of the managed private endpoint. * @param context The context to associate with this operation. diff --git a/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/fluent/OperationsResultsClient.java b/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/fluent/OperationsResultsClient.java index ea51aa61b7ec..c18fc2a1f34c 100644 --- a/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/fluent/OperationsResultsClient.java +++ b/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/fluent/OperationsResultsClient.java @@ -15,8 +15,8 @@ public interface OperationsResultsClient { /** * Returns operation results. * - * @param location Azure location (region) name. - * @param operationId The Guid of the operation ID. + * @param location The name of Azure region. + * @param operationId The ID of an ongoing async operation. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -29,8 +29,8 @@ public interface OperationsResultsClient { /** * Returns operation results. * - * @param location Azure location (region) name. - * @param operationId The Guid of the operation ID. + * @param location The name of Azure region. + * @param operationId The ID of an ongoing async operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. diff --git a/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/fluent/OperationsResultsLocationsClient.java b/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/fluent/OperationsResultsLocationsClient.java index a815720d11b4..f933bf2b49f0 100644 --- a/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/fluent/OperationsResultsLocationsClient.java +++ b/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/fluent/OperationsResultsLocationsClient.java @@ -6,30 +6,30 @@ import com.azure.core.annotation.ReturnType; import com.azure.core.annotation.ServiceMethod; -import com.azure.core.http.rest.Response; import com.azure.core.util.Context; +import com.azure.resourcemanager.kusto.models.OperationsResultsLocationsGetResponse; /** An instance of this class provides access to all the operations defined in OperationsResultsLocationsClient. */ public interface OperationsResultsLocationsClient { /** * Returns operation results. * - * @param location Azure location (region) name. - * @param operationId The Guid of the operation ID. + * @param location The name of Azure region. + * @param operationId The ID of an ongoing async operation. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response}. + * @return the response. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response getWithResponse(String location, String operationId, Context context); + OperationsResultsLocationsGetResponse getWithResponse(String location, String operationId, Context context); /** * Returns operation results. * - * @param location Azure location (region) name. - * @param operationId The Guid of the operation ID. + * @param location The name of Azure region. + * @param operationId The ID of an ongoing async operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. diff --git a/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/fluent/PrivateEndpointConnectionsClient.java b/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/fluent/PrivateEndpointConnectionsClient.java index bf6619d21d9a..4e4b003ec58c 100644 --- a/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/fluent/PrivateEndpointConnectionsClient.java +++ b/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/fluent/PrivateEndpointConnectionsClient.java @@ -18,7 +18,7 @@ public interface PrivateEndpointConnectionsClient { /** * Returns the list of private endpoint connections. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -31,7 +31,7 @@ public interface PrivateEndpointConnectionsClient { /** * Returns the list of private endpoint connections. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -45,7 +45,7 @@ public interface PrivateEndpointConnectionsClient { /** * Gets a private endpoint connection. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param privateEndpointConnectionName The name of the private endpoint connection. * @param context The context to associate with this operation. @@ -61,7 +61,7 @@ Response getWithResponse( /** * Gets a private endpoint connection. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param privateEndpointConnectionName The name of the private endpoint connection. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -76,7 +76,7 @@ PrivateEndpointConnectionInner get( /** * Approve or reject a private endpoint connection with a given name. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param privateEndpointConnectionName The name of the private endpoint connection. * @param parameters A private endpoint connection. @@ -95,7 +95,7 @@ SyncPoller, PrivateEndpointConnection /** * Approve or reject a private endpoint connection with a given name. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param privateEndpointConnectionName The name of the private endpoint connection. * @param parameters A private endpoint connection. @@ -116,7 +116,7 @@ SyncPoller, PrivateEndpointConnection /** * Approve or reject a private endpoint connection with a given name. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param privateEndpointConnectionName The name of the private endpoint connection. * @param parameters A private endpoint connection. @@ -135,7 +135,7 @@ PrivateEndpointConnectionInner createOrUpdate( /** * Approve or reject a private endpoint connection with a given name. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param privateEndpointConnectionName The name of the private endpoint connection. * @param parameters A private endpoint connection. @@ -156,7 +156,7 @@ PrivateEndpointConnectionInner createOrUpdate( /** * Deletes a private endpoint connection with a given name. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param privateEndpointConnectionName The name of the private endpoint connection. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -171,7 +171,7 @@ SyncPoller, Void> beginDelete( /** * Deletes a private endpoint connection with a given name. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param privateEndpointConnectionName The name of the private endpoint connection. * @param context The context to associate with this operation. @@ -187,7 +187,7 @@ SyncPoller, Void> beginDelete( /** * Deletes a private endpoint connection with a given name. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param privateEndpointConnectionName The name of the private endpoint connection. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -200,7 +200,7 @@ SyncPoller, Void> beginDelete( /** * Deletes a private endpoint connection with a given name. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param privateEndpointConnectionName The name of the private endpoint connection. * @param context The context to associate with this operation. diff --git a/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/fluent/PrivateLinkResourcesClient.java b/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/fluent/PrivateLinkResourcesClient.java index 9448028ed747..41bbe75497d3 100644 --- a/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/fluent/PrivateLinkResourcesClient.java +++ b/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/fluent/PrivateLinkResourcesClient.java @@ -16,7 +16,7 @@ public interface PrivateLinkResourcesClient { /** * Returns the list of private link resources. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -29,7 +29,7 @@ public interface PrivateLinkResourcesClient { /** * Returns the list of private link resources. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -43,7 +43,7 @@ public interface PrivateLinkResourcesClient { /** * Gets a private link resource. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param privateLinkResourceName The name of the private link resource. * @param context The context to associate with this operation. @@ -59,7 +59,7 @@ Response getWithResponse( /** * Gets a private link resource. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param privateLinkResourceName The name of the private link resource. * @throws IllegalArgumentException thrown if parameters fail the validation. diff --git a/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/fluent/ScriptsClient.java b/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/fluent/ScriptsClient.java index 6072fbc7f7e5..4f2fbb252950 100644 --- a/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/fluent/ScriptsClient.java +++ b/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/fluent/ScriptsClient.java @@ -20,7 +20,7 @@ public interface ScriptsClient { /** * Returns the list of database scripts for given database. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param databaseName The name of the database in the Kusto cluster. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -34,7 +34,7 @@ public interface ScriptsClient { /** * Returns the list of database scripts for given database. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param databaseName The name of the database in the Kusto cluster. * @param context The context to associate with this operation. @@ -50,7 +50,7 @@ PagedIterable listByDatabase( /** * Gets a Kusto cluster database script. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param databaseName The name of the database in the Kusto cluster. * @param scriptName The name of the Kusto database script. @@ -67,7 +67,7 @@ Response getWithResponse( /** * Gets a Kusto cluster database script. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param databaseName The name of the database in the Kusto cluster. * @param scriptName The name of the Kusto database script. @@ -82,7 +82,7 @@ Response getWithResponse( /** * Creates a Kusto database script. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param databaseName The name of the database in the Kusto cluster. * @param scriptName The name of the Kusto database script. @@ -99,7 +99,7 @@ SyncPoller, ScriptInner> beginCreateOrUpdate( /** * Creates a Kusto database script. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param databaseName The name of the database in the Kusto cluster. * @param scriptName The name of the Kusto database script. @@ -122,7 +122,7 @@ SyncPoller, ScriptInner> beginCreateOrUpdate( /** * Creates a Kusto database script. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param databaseName The name of the database in the Kusto cluster. * @param scriptName The name of the Kusto database script. @@ -139,7 +139,7 @@ ScriptInner createOrUpdate( /** * Creates a Kusto database script. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param databaseName The name of the database in the Kusto cluster. * @param scriptName The name of the Kusto database script. @@ -162,7 +162,7 @@ ScriptInner createOrUpdate( /** * Updates a database script. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param databaseName The name of the database in the Kusto cluster. * @param scriptName The name of the Kusto database script. @@ -179,7 +179,7 @@ SyncPoller, ScriptInner> beginUpdate( /** * Updates a database script. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param databaseName The name of the database in the Kusto cluster. * @param scriptName The name of the Kusto database script. @@ -202,7 +202,7 @@ SyncPoller, ScriptInner> beginUpdate( /** * Updates a database script. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param databaseName The name of the database in the Kusto cluster. * @param scriptName The name of the Kusto database script. @@ -219,7 +219,7 @@ ScriptInner update( /** * Updates a database script. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param databaseName The name of the database in the Kusto cluster. * @param scriptName The name of the Kusto database script. @@ -240,9 +240,9 @@ ScriptInner update( Context context); /** - * Deletes a Kusto principalAssignment. + * Deletes a Kusto database script. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param databaseName The name of the database in the Kusto cluster. * @param scriptName The name of the Kusto database script. @@ -256,9 +256,9 @@ SyncPoller, Void> beginDelete( String resourceGroupName, String clusterName, String databaseName, String scriptName); /** - * Deletes a Kusto principalAssignment. + * Deletes a Kusto database script. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param databaseName The name of the database in the Kusto cluster. * @param scriptName The name of the Kusto database script. @@ -273,9 +273,9 @@ SyncPoller, Void> beginDelete( String resourceGroupName, String clusterName, String databaseName, String scriptName, Context context); /** - * Deletes a Kusto principalAssignment. + * Deletes a Kusto database script. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param databaseName The name of the database in the Kusto cluster. * @param scriptName The name of the Kusto database script. @@ -287,9 +287,9 @@ SyncPoller, Void> beginDelete( void delete(String resourceGroupName, String clusterName, String databaseName, String scriptName); /** - * Deletes a Kusto principalAssignment. + * Deletes a Kusto database script. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param databaseName The name of the database in the Kusto cluster. * @param scriptName The name of the Kusto database script. @@ -304,7 +304,7 @@ SyncPoller, Void> beginDelete( /** * Checks that the script name is valid and is not already in use. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param databaseName The name of the database in the Kusto cluster. * @param scriptName The name of the script. @@ -325,7 +325,7 @@ Response checkNameAvailabilityWithResponse( /** * Checks that the script name is valid and is not already in use. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param databaseName The name of the database in the Kusto cluster. * @param scriptName The name of the script. diff --git a/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/fluent/SkusClient.java b/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/fluent/SkusClient.java index 077bc8098ded..0da99c5d7737 100644 --- a/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/fluent/SkusClient.java +++ b/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/fluent/SkusClient.java @@ -15,7 +15,7 @@ public interface SkusClient { /** * Lists eligible region SKUs for Kusto resource provider by Azure region. * - * @param location Azure location (region) name. + * @param location The name of Azure region. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -27,7 +27,7 @@ public interface SkusClient { /** * Lists eligible region SKUs for Kusto resource provider by Azure region. * - * @param location Azure location (region) name. + * @param location The name of Azure region. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. diff --git a/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/fluent/models/ClusterInner.java b/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/fluent/models/ClusterInner.java index c8bacd56ddd3..9565b26ef5f9 100644 --- a/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/fluent/models/ClusterInner.java +++ b/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/fluent/models/ClusterInner.java @@ -15,6 +15,7 @@ import com.azure.resourcemanager.kusto.models.Identity; import com.azure.resourcemanager.kusto.models.KeyVaultProperties; import com.azure.resourcemanager.kusto.models.LanguageExtensionsList; +import com.azure.resourcemanager.kusto.models.MigrationClusterProperties; import com.azure.resourcemanager.kusto.models.OptimizedAutoscale; import com.azure.resourcemanager.kusto.models.ProvisioningState; import com.azure.resourcemanager.kusto.models.PublicIpType; @@ -646,6 +647,15 @@ public List privateEndpointConnections() { return this.innerProperties() == null ? null : this.innerProperties().privateEndpointConnections(); } + /** + * Get the migrationCluster property: Properties of the peer cluster involved in a migration to/from this cluster. + * + * @return the migrationCluster value. + */ + public MigrationClusterProperties migrationCluster() { + return this.innerProperties() == null ? null : this.innerProperties().migrationCluster(); + } + /** * Validates the instance. * diff --git a/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/fluent/models/ClusterProperties.java b/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/fluent/models/ClusterProperties.java index b30cad95382f..271f71ca8b4e 100644 --- a/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/fluent/models/ClusterProperties.java +++ b/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/fluent/models/ClusterProperties.java @@ -10,6 +10,7 @@ import com.azure.resourcemanager.kusto.models.EngineType; import com.azure.resourcemanager.kusto.models.KeyVaultProperties; import com.azure.resourcemanager.kusto.models.LanguageExtensionsList; +import com.azure.resourcemanager.kusto.models.MigrationClusterProperties; import com.azure.resourcemanager.kusto.models.OptimizedAutoscale; import com.azure.resourcemanager.kusto.models.ProvisioningState; import com.azure.resourcemanager.kusto.models.PublicIpType; @@ -170,6 +171,12 @@ public final class ClusterProperties { @JsonProperty(value = "privateEndpointConnections", access = JsonProperty.Access.WRITE_ONLY) private List privateEndpointConnections; + /* + * Properties of the peer cluster involved in a migration to/from this cluster. + */ + @JsonProperty(value = "migrationCluster", access = JsonProperty.Access.WRITE_ONLY) + private MigrationClusterProperties migrationCluster; + /** Creates an instance of ClusterProperties class. */ public ClusterProperties() { } @@ -596,6 +603,15 @@ public List privateEndpointConnections() { return this.privateEndpointConnections; } + /** + * Get the migrationCluster property: Properties of the peer cluster involved in a migration to/from this cluster. + * + * @return the migrationCluster value. + */ + public MigrationClusterProperties migrationCluster() { + return this.migrationCluster; + } + /** * Validates the instance. * @@ -623,5 +639,8 @@ public void validate() { if (privateEndpointConnections() != null) { privateEndpointConnections().forEach(e -> e.validate()); } + if (migrationCluster() != null) { + migrationCluster().validate(); + } } } diff --git a/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/fluent/models/DatabaseInviteFollowerResultInner.java b/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/fluent/models/DatabaseInviteFollowerResultInner.java new file mode 100644 index 000000000000..6e69d6001580 --- /dev/null +++ b/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/fluent/models/DatabaseInviteFollowerResultInner.java @@ -0,0 +1,50 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.kusto.fluent.models; + +import com.azure.core.annotation.Fluent; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** The result returned from a follower invitation generation request. */ +@Fluent +public final class DatabaseInviteFollowerResultInner { + /* + * The generated invitation token. + */ + @JsonProperty(value = "generatedInvitation") + private String generatedInvitation; + + /** Creates an instance of DatabaseInviteFollowerResultInner class. */ + public DatabaseInviteFollowerResultInner() { + } + + /** + * Get the generatedInvitation property: The generated invitation token. + * + * @return the generatedInvitation value. + */ + public String generatedInvitation() { + return this.generatedInvitation; + } + + /** + * Set the generatedInvitation property: The generated invitation token. + * + * @param generatedInvitation the generatedInvitation value to set. + * @return the DatabaseInviteFollowerResultInner object itself. + */ + public DatabaseInviteFollowerResultInner withGeneratedInvitation(String generatedInvitation) { + this.generatedInvitation = generatedInvitation; + return this; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + } +} diff --git a/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/fluent/models/ReadOnlyFollowingDatabaseProperties.java b/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/fluent/models/ReadOnlyFollowingDatabaseProperties.java index ca9f58a11e7a..33c8cfa9bbdc 100644 --- a/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/fluent/models/ReadOnlyFollowingDatabaseProperties.java +++ b/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/fluent/models/ReadOnlyFollowingDatabaseProperties.java @@ -9,6 +9,7 @@ import com.azure.resourcemanager.kusto.models.DatabaseStatistics; import com.azure.resourcemanager.kusto.models.PrincipalsModificationKind; import com.azure.resourcemanager.kusto.models.ProvisioningState; +import com.azure.resourcemanager.kusto.models.SuspensionDetails; import com.azure.resourcemanager.kusto.models.TableLevelSharingProperties; import com.fasterxml.jackson.annotation.JsonProperty; import java.time.Duration; @@ -76,6 +77,13 @@ public final class ReadOnlyFollowingDatabaseProperties { @JsonProperty(value = "databaseShareOrigin", access = JsonProperty.Access.WRITE_ONLY) private DatabaseShareOrigin databaseShareOrigin; + /* + * The database suspension details. If the database is suspended, this object contains information related to the + * database's suspension state. + */ + @JsonProperty(value = "suspensionDetails", access = JsonProperty.Access.WRITE_ONLY) + private SuspensionDetails suspensionDetails; + /** Creates an instance of ReadOnlyFollowingDatabaseProperties class. */ public ReadOnlyFollowingDatabaseProperties() { } @@ -183,6 +191,16 @@ public DatabaseShareOrigin databaseShareOrigin() { return this.databaseShareOrigin; } + /** + * Get the suspensionDetails property: The database suspension details. If the database is suspended, this object + * contains information related to the database's suspension state. + * + * @return the suspensionDetails value. + */ + public SuspensionDetails suspensionDetails() { + return this.suspensionDetails; + } + /** * Validates the instance. * @@ -195,5 +213,8 @@ public void validate() { if (tableLevelSharingProperties() != null) { tableLevelSharingProperties().validate(); } + if (suspensionDetails() != null) { + suspensionDetails().validate(); + } } } diff --git a/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/fluent/models/ReadWriteDatabaseProperties.java b/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/fluent/models/ReadWriteDatabaseProperties.java index b0e398be7a7e..c1981f6a78ae 100644 --- a/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/fluent/models/ReadWriteDatabaseProperties.java +++ b/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/fluent/models/ReadWriteDatabaseProperties.java @@ -6,7 +6,9 @@ import com.azure.core.annotation.Fluent; import com.azure.resourcemanager.kusto.models.DatabaseStatistics; +import com.azure.resourcemanager.kusto.models.KeyVaultProperties; import com.azure.resourcemanager.kusto.models.ProvisioningState; +import com.azure.resourcemanager.kusto.models.SuspensionDetails; import com.fasterxml.jackson.annotation.JsonProperty; import java.time.Duration; @@ -43,6 +45,19 @@ public final class ReadWriteDatabaseProperties { @JsonProperty(value = "isFollowed", access = JsonProperty.Access.WRITE_ONLY) private Boolean isFollowed; + /* + * KeyVault properties for the database encryption. + */ + @JsonProperty(value = "keyVaultProperties") + private KeyVaultProperties keyVaultProperties; + + /* + * The database suspension details. If the database is suspended, this object contains information related to the + * database's suspension state. + */ + @JsonProperty(value = "suspensionDetails", access = JsonProperty.Access.WRITE_ONLY) + private SuspensionDetails suspensionDetails; + /** Creates an instance of ReadWriteDatabaseProperties class. */ public ReadWriteDatabaseProperties() { } @@ -116,6 +131,36 @@ public Boolean isFollowed() { return this.isFollowed; } + /** + * Get the keyVaultProperties property: KeyVault properties for the database encryption. + * + * @return the keyVaultProperties value. + */ + public KeyVaultProperties keyVaultProperties() { + return this.keyVaultProperties; + } + + /** + * Set the keyVaultProperties property: KeyVault properties for the database encryption. + * + * @param keyVaultProperties the keyVaultProperties value to set. + * @return the ReadWriteDatabaseProperties object itself. + */ + public ReadWriteDatabaseProperties withKeyVaultProperties(KeyVaultProperties keyVaultProperties) { + this.keyVaultProperties = keyVaultProperties; + return this; + } + + /** + * Get the suspensionDetails property: The database suspension details. If the database is suspended, this object + * contains information related to the database's suspension state. + * + * @return the suspensionDetails value. + */ + public SuspensionDetails suspensionDetails() { + return this.suspensionDetails; + } + /** * Validates the instance. * @@ -125,5 +170,11 @@ public void validate() { if (statistics() != null) { statistics().validate(); } + if (keyVaultProperties() != null) { + keyVaultProperties().validate(); + } + if (suspensionDetails() != null) { + suspensionDetails().validate(); + } } } diff --git a/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/implementation/AttachedDatabaseConfigurationsClientImpl.java b/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/implementation/AttachedDatabaseConfigurationsClientImpl.java index 24b0513078c2..0bce9a2dcfec 100644 --- a/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/implementation/AttachedDatabaseConfigurationsClientImpl.java +++ b/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/implementation/AttachedDatabaseConfigurationsClientImpl.java @@ -73,8 +73,7 @@ public final class AttachedDatabaseConfigurationsClientImpl implements AttachedD public interface AttachedDatabaseConfigurationsService { @Headers({"Content-Type: application/json"}) @Post( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters" - + "/{clusterName}/attachedDatabaseConfigurationCheckNameAvailability") + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}/attachedDatabaseConfigurationCheckNameAvailability") @ExpectedResponses({200}) @UnexpectedResponseExceptionType(ManagementException.class) Mono> checkNameAvailability( @@ -89,8 +88,7 @@ Mono> checkNameAvailability( @Headers({"Content-Type: application/json"}) @Get( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters" - + "/{clusterName}/attachedDatabaseConfigurations") + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}/attachedDatabaseConfigurations") @ExpectedResponses({200}) @UnexpectedResponseExceptionType(ManagementException.class) Mono> listByCluster( @@ -104,8 +102,7 @@ Mono> listByCluster( @Headers({"Content-Type: application/json"}) @Get( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters" - + "/{clusterName}/attachedDatabaseConfigurations/{attachedDatabaseConfigurationName}") + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}/attachedDatabaseConfigurations/{attachedDatabaseConfigurationName}") @ExpectedResponses({200}) @UnexpectedResponseExceptionType(ManagementException.class) Mono> get( @@ -120,8 +117,7 @@ Mono> get( @Headers({"Content-Type: application/json"}) @Put( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters" - + "/{clusterName}/attachedDatabaseConfigurations/{attachedDatabaseConfigurationName}") + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}/attachedDatabaseConfigurations/{attachedDatabaseConfigurationName}") @ExpectedResponses({200, 201, 202}) @UnexpectedResponseExceptionType(ManagementException.class) Mono>> createOrUpdate( @@ -137,8 +133,7 @@ Mono>> createOrUpdate( @Headers({"Content-Type: application/json"}) @Delete( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters" - + "/{clusterName}/attachedDatabaseConfigurations/{attachedDatabaseConfigurationName}") + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}/attachedDatabaseConfigurations/{attachedDatabaseConfigurationName}") @ExpectedResponses({200, 202, 204}) @UnexpectedResponseExceptionType(ManagementException.class) Mono>> delete( @@ -155,7 +150,7 @@ Mono>> delete( /** * Checks that the attached database configuration resource name is valid and is not already in use. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param resourceName The name of the resource. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -211,7 +206,7 @@ private Mono> checkNameAvailabilityWithResponseAs /** * Checks that the attached database configuration resource name is valid and is not already in use. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param resourceName The name of the resource. * @param context The context to associate with this operation. @@ -268,7 +263,7 @@ private Mono> checkNameAvailabilityWithResponseAs /** * Checks that the attached database configuration resource name is valid and is not already in use. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param resourceName The name of the resource. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -286,7 +281,7 @@ private Mono checkNameAvailabilityAsync( /** * Checks that the attached database configuration resource name is valid and is not already in use. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param resourceName The name of the resource. * @param context The context to associate with this operation. @@ -307,7 +302,7 @@ public Response checkNameAvailabilityWithResponse( /** * Checks that the attached database configuration resource name is valid and is not already in use. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param resourceName The name of the resource. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -324,7 +319,7 @@ public CheckNameResultInner checkNameAvailability( /** * Returns the list of attached database configurations of the given Kusto cluster. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -377,7 +372,7 @@ private Mono> listByClusterSin /** * Returns the list of attached database configurations of the given Kusto cluster. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -428,7 +423,7 @@ private Mono> listByClusterSin /** * Returns the list of attached database configurations of the given Kusto cluster. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -445,7 +440,7 @@ private PagedFlux listByClusterAsync( /** * Returns the list of attached database configurations of the given Kusto cluster. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -463,7 +458,7 @@ private PagedFlux listByClusterAsync( /** * Returns the list of attached database configurations of the given Kusto cluster. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -480,7 +475,7 @@ public PagedIterable listByCluster( /** * Returns the list of attached database configurations of the given Kusto cluster. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -498,7 +493,7 @@ public PagedIterable listByCluster( /** * Returns an attached database configuration. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param attachedDatabaseConfigurationName The name of the attached database configuration. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -555,7 +550,7 @@ private Mono> getWithResponseAsync( /** * Returns an attached database configuration. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param attachedDatabaseConfigurationName The name of the attached database configuration. * @param context The context to associate with this operation. @@ -610,7 +605,7 @@ private Mono> getWithResponseAsync( /** * Returns an attached database configuration. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param attachedDatabaseConfigurationName The name of the attached database configuration. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -628,7 +623,7 @@ private Mono getAsync( /** * Returns an attached database configuration. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param attachedDatabaseConfigurationName The name of the attached database configuration. * @param context The context to associate with this operation. @@ -646,7 +641,7 @@ public Response getWithResponse( /** * Returns an attached database configuration. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param attachedDatabaseConfigurationName The name of the attached database configuration. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -664,7 +659,7 @@ public AttachedDatabaseConfigurationInner get( /** * Creates or updates an attached database configuration. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param attachedDatabaseConfigurationName The name of the attached database configuration. * @param parameters The database parameters supplied to the CreateOrUpdate operation. @@ -731,7 +726,7 @@ private Mono>> createOrUpdateWithResponseAsync( /** * Creates or updates an attached database configuration. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param attachedDatabaseConfigurationName The name of the attached database configuration. * @param parameters The database parameters supplied to the CreateOrUpdate operation. @@ -797,7 +792,7 @@ private Mono>> createOrUpdateWithResponseAsync( /** * Creates or updates an attached database configuration. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param attachedDatabaseConfigurationName The name of the attached database configuration. * @param parameters The database parameters supplied to the CreateOrUpdate operation. @@ -829,7 +824,7 @@ private Mono>> createOrUpdateWithResponseAsync( /** * Creates or updates an attached database configuration. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param attachedDatabaseConfigurationName The name of the attached database configuration. * @param parameters The database parameters supplied to the CreateOrUpdate operation. @@ -864,7 +859,7 @@ private Mono>> createOrUpdateWithResponseAsync( /** * Creates or updates an attached database configuration. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param attachedDatabaseConfigurationName The name of the attached database configuration. * @param parameters The database parameters supplied to the CreateOrUpdate operation. @@ -888,7 +883,7 @@ private Mono>> createOrUpdateWithResponseAsync( /** * Creates or updates an attached database configuration. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param attachedDatabaseConfigurationName The name of the attached database configuration. * @param parameters The database parameters supplied to the CreateOrUpdate operation. @@ -915,7 +910,7 @@ private Mono>> createOrUpdateWithResponseAsync( /** * Creates or updates an attached database configuration. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param attachedDatabaseConfigurationName The name of the attached database configuration. * @param parameters The database parameters supplied to the CreateOrUpdate operation. @@ -938,7 +933,7 @@ private Mono createOrUpdateAsync( /** * Creates or updates an attached database configuration. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param attachedDatabaseConfigurationName The name of the attached database configuration. * @param parameters The database parameters supplied to the CreateOrUpdate operation. @@ -964,7 +959,7 @@ private Mono createOrUpdateAsync( /** * Creates or updates an attached database configuration. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param attachedDatabaseConfigurationName The name of the attached database configuration. * @param parameters The database parameters supplied to the CreateOrUpdate operation. @@ -986,7 +981,7 @@ public AttachedDatabaseConfigurationInner createOrUpdate( /** * Creates or updates an attached database configuration. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param attachedDatabaseConfigurationName The name of the attached database configuration. * @param parameters The database parameters supplied to the CreateOrUpdate operation. @@ -1011,7 +1006,7 @@ public AttachedDatabaseConfigurationInner createOrUpdate( /** * Deletes the attached database configuration with the given name. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param attachedDatabaseConfigurationName The name of the attached database configuration. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1067,7 +1062,7 @@ private Mono>> deleteWithResponseAsync( /** * Deletes the attached database configuration with the given name. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param attachedDatabaseConfigurationName The name of the attached database configuration. * @param context The context to associate with this operation. @@ -1121,7 +1116,7 @@ private Mono>> deleteWithResponseAsync( /** * Deletes the attached database configuration with the given name. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param attachedDatabaseConfigurationName The name of the attached database configuration. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1143,7 +1138,7 @@ private PollerFlux, Void> beginDeleteAsync( /** * Deletes the attached database configuration with the given name. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param attachedDatabaseConfigurationName The name of the attached database configuration. * @param context The context to associate with this operation. @@ -1166,7 +1161,7 @@ private PollerFlux, Void> beginDeleteAsync( /** * Deletes the attached database configuration with the given name. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param attachedDatabaseConfigurationName The name of the attached database configuration. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1183,7 +1178,7 @@ public SyncPoller, Void> beginDelete( /** * Deletes the attached database configuration with the given name. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param attachedDatabaseConfigurationName The name of the attached database configuration. * @param context The context to associate with this operation. @@ -1203,7 +1198,7 @@ public SyncPoller, Void> beginDelete( /** * Deletes the attached database configuration with the given name. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param attachedDatabaseConfigurationName The name of the attached database configuration. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1222,7 +1217,7 @@ private Mono deleteAsync( /** * Deletes the attached database configuration with the given name. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param attachedDatabaseConfigurationName The name of the attached database configuration. * @param context The context to associate with this operation. @@ -1242,7 +1237,7 @@ private Mono deleteAsync( /** * Deletes the attached database configuration with the given name. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param attachedDatabaseConfigurationName The name of the attached database configuration. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1257,7 +1252,7 @@ public void delete(String resourceGroupName, String clusterName, String attached /** * Deletes the attached database configuration with the given name. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param attachedDatabaseConfigurationName The name of the attached database configuration. * @param context The context to associate with this operation. diff --git a/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/implementation/ClusterImpl.java b/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/implementation/ClusterImpl.java index e9b4190c11ff..9b8a03d1f06d 100644 --- a/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/implementation/ClusterImpl.java +++ b/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/implementation/ClusterImpl.java @@ -14,6 +14,7 @@ import com.azure.resourcemanager.kusto.models.AcceptedAudiences; import com.azure.resourcemanager.kusto.models.AzureSku; import com.azure.resourcemanager.kusto.models.Cluster; +import com.azure.resourcemanager.kusto.models.ClusterMigrateRequest; import com.azure.resourcemanager.kusto.models.ClusterNetworkAccessFlag; import com.azure.resourcemanager.kusto.models.ClusterUpdate; import com.azure.resourcemanager.kusto.models.DiagnoseVirtualNetworkResult; @@ -23,6 +24,7 @@ import com.azure.resourcemanager.kusto.models.KeyVaultProperties; import com.azure.resourcemanager.kusto.models.LanguageExtension; import com.azure.resourcemanager.kusto.models.LanguageExtensionsList; +import com.azure.resourcemanager.kusto.models.MigrationClusterProperties; import com.azure.resourcemanager.kusto.models.OptimizedAutoscale; import com.azure.resourcemanager.kusto.models.PrivateEndpointConnection; import com.azure.resourcemanager.kusto.models.ProvisioningState; @@ -217,6 +219,10 @@ public List privateEndpointConnections() { } } + public MigrationClusterProperties migrationCluster() { + return this.innerModel().migrationCluster(); + } + public Region region() { return Region.fromName(this.regionName()); } @@ -349,6 +355,14 @@ public void start(Context context) { serviceManager.clusters().start(resourceGroupName, clusterName, context); } + public void migrate(ClusterMigrateRequest clusterMigrateRequest) { + serviceManager.clusters().migrate(resourceGroupName, clusterName, clusterMigrateRequest); + } + + public void migrate(ClusterMigrateRequest clusterMigrateRequest, Context context) { + serviceManager.clusters().migrate(resourceGroupName, clusterName, clusterMigrateRequest, context); + } + public PagedIterable listFollowerDatabases() { return serviceManager.clusters().listFollowerDatabases(resourceGroupName, clusterName); } diff --git a/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/implementation/ClusterPrincipalAssignmentsClientImpl.java b/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/implementation/ClusterPrincipalAssignmentsClientImpl.java index 36bf4f2c0b34..3098491fe56e 100644 --- a/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/implementation/ClusterPrincipalAssignmentsClientImpl.java +++ b/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/implementation/ClusterPrincipalAssignmentsClientImpl.java @@ -71,8 +71,7 @@ public final class ClusterPrincipalAssignmentsClientImpl implements ClusterPrinc public interface ClusterPrincipalAssignmentsService { @Headers({"Content-Type: application/json"}) @Post( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters" - + "/{clusterName}/checkPrincipalAssignmentNameAvailability") + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}/checkPrincipalAssignmentNameAvailability") @ExpectedResponses({200}) @UnexpectedResponseExceptionType(ManagementException.class) Mono> checkNameAvailability( @@ -87,8 +86,7 @@ Mono> checkNameAvailability( @Headers({"Content-Type: application/json"}) @Get( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters" - + "/{clusterName}/principalAssignments/{principalAssignmentName}") + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}/principalAssignments/{principalAssignmentName}") @ExpectedResponses({200}) @UnexpectedResponseExceptionType(ManagementException.class) Mono> get( @@ -103,8 +101,7 @@ Mono> get( @Headers({"Content-Type: application/json"}) @Put( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters" - + "/{clusterName}/principalAssignments/{principalAssignmentName}") + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}/principalAssignments/{principalAssignmentName}") @ExpectedResponses({200, 201}) @UnexpectedResponseExceptionType(ManagementException.class) Mono>> createOrUpdate( @@ -120,8 +117,7 @@ Mono>> createOrUpdate( @Headers({"Content-Type: application/json"}) @Delete( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters" - + "/{clusterName}/principalAssignments/{principalAssignmentName}") + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}/principalAssignments/{principalAssignmentName}") @ExpectedResponses({200, 202, 204}) @UnexpectedResponseExceptionType(ManagementException.class) Mono>> delete( @@ -136,8 +132,7 @@ Mono>> delete( @Headers({"Content-Type: application/json"}) @Get( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters" - + "/{clusterName}/principalAssignments") + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}/principalAssignments") @ExpectedResponses({200}) @UnexpectedResponseExceptionType(ManagementException.class) Mono> list( @@ -153,7 +148,7 @@ Mono> list( /** * Checks that the principal assignment name is valid and is not already in use. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param principalAssignmentName The name of the principal assignment. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -213,7 +208,7 @@ private Mono> checkNameAvailabilityWithResponseAs /** * Checks that the principal assignment name is valid and is not already in use. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param principalAssignmentName The name of the principal assignment. * @param context The context to associate with this operation. @@ -272,7 +267,7 @@ private Mono> checkNameAvailabilityWithResponseAs /** * Checks that the principal assignment name is valid and is not already in use. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param principalAssignmentName The name of the principal assignment. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -292,7 +287,7 @@ private Mono checkNameAvailabilityAsync( /** * Checks that the principal assignment name is valid and is not already in use. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param principalAssignmentName The name of the principal assignment. * @param context The context to associate with this operation. @@ -314,7 +309,7 @@ public Response checkNameAvailabilityWithResponse( /** * Checks that the principal assignment name is valid and is not already in use. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param principalAssignmentName The name of the principal assignment. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -334,7 +329,7 @@ public CheckNameResultInner checkNameAvailability( /** * Gets a Kusto cluster principalAssignment. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param principalAssignmentName The name of the Kusto principalAssignment. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -389,7 +384,7 @@ private Mono> getWithResponseAsync( /** * Gets a Kusto cluster principalAssignment. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param principalAssignmentName The name of the Kusto principalAssignment. * @param context The context to associate with this operation. @@ -442,7 +437,7 @@ private Mono> getWithResponseAsync( /** * Gets a Kusto cluster principalAssignment. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param principalAssignmentName The name of the Kusto principalAssignment. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -460,7 +455,7 @@ private Mono getAsync( /** * Gets a Kusto cluster principalAssignment. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param principalAssignmentName The name of the Kusto principalAssignment. * @param context The context to associate with this operation. @@ -478,7 +473,7 @@ public Response getWithResponse( /** * Gets a Kusto cluster principalAssignment. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param principalAssignmentName The name of the Kusto principalAssignment. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -495,7 +490,7 @@ public ClusterPrincipalAssignmentInner get( /** * Create a Kusto cluster principalAssignment. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param principalAssignmentName The name of the Kusto principalAssignment. * @param parameters The Kusto cluster principalAssignment's parameters supplied for the operation. @@ -561,7 +556,7 @@ private Mono>> createOrUpdateWithResponseAsync( /** * Create a Kusto cluster principalAssignment. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param principalAssignmentName The name of the Kusto principalAssignment. * @param parameters The Kusto cluster principalAssignment's parameters supplied for the operation. @@ -626,7 +621,7 @@ private Mono>> createOrUpdateWithResponseAsync( /** * Create a Kusto cluster principalAssignment. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param principalAssignmentName The name of the Kusto principalAssignment. * @param parameters The Kusto cluster principalAssignment's parameters supplied for the operation. @@ -657,7 +652,7 @@ private Mono>> createOrUpdateWithResponseAsync( /** * Create a Kusto cluster principalAssignment. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param principalAssignmentName The name of the Kusto principalAssignment. * @param parameters The Kusto cluster principalAssignment's parameters supplied for the operation. @@ -692,7 +687,7 @@ private Mono>> createOrUpdateWithResponseAsync( /** * Create a Kusto cluster principalAssignment. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param principalAssignmentName The name of the Kusto principalAssignment. * @param parameters The Kusto cluster principalAssignment's parameters supplied for the operation. @@ -715,7 +710,7 @@ public SyncPoller, ClusterPrincipalA /** * Create a Kusto cluster principalAssignment. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param principalAssignmentName The name of the Kusto principalAssignment. * @param parameters The Kusto cluster principalAssignment's parameters supplied for the operation. @@ -740,7 +735,7 @@ public SyncPoller, ClusterPrincipalA /** * Create a Kusto cluster principalAssignment. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param principalAssignmentName The name of the Kusto principalAssignment. * @param parameters The Kusto cluster principalAssignment's parameters supplied for the operation. @@ -763,7 +758,7 @@ private Mono createOrUpdateAsync( /** * Create a Kusto cluster principalAssignment. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param principalAssignmentName The name of the Kusto principalAssignment. * @param parameters The Kusto cluster principalAssignment's parameters supplied for the operation. @@ -788,7 +783,7 @@ private Mono createOrUpdateAsync( /** * Create a Kusto cluster principalAssignment. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param principalAssignmentName The name of the Kusto principalAssignment. * @param parameters The Kusto cluster principalAssignment's parameters supplied for the operation. @@ -809,7 +804,7 @@ public ClusterPrincipalAssignmentInner createOrUpdate( /** * Create a Kusto cluster principalAssignment. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param principalAssignmentName The name of the Kusto principalAssignment. * @param parameters The Kusto cluster principalAssignment's parameters supplied for the operation. @@ -833,7 +828,7 @@ public ClusterPrincipalAssignmentInner createOrUpdate( /** * Deletes a Kusto cluster principalAssignment. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param principalAssignmentName The name of the Kusto principalAssignment. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -888,7 +883,7 @@ private Mono>> deleteWithResponseAsync( /** * Deletes a Kusto cluster principalAssignment. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param principalAssignmentName The name of the Kusto principalAssignment. * @param context The context to associate with this operation. @@ -941,7 +936,7 @@ private Mono>> deleteWithResponseAsync( /** * Deletes a Kusto cluster principalAssignment. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param principalAssignmentName The name of the Kusto principalAssignment. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -963,7 +958,7 @@ private PollerFlux, Void> beginDeleteAsync( /** * Deletes a Kusto cluster principalAssignment. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param principalAssignmentName The name of the Kusto principalAssignment. * @param context The context to associate with this operation. @@ -986,7 +981,7 @@ private PollerFlux, Void> beginDeleteAsync( /** * Deletes a Kusto cluster principalAssignment. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param principalAssignmentName The name of the Kusto principalAssignment. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1003,7 +998,7 @@ public SyncPoller, Void> beginDelete( /** * Deletes a Kusto cluster principalAssignment. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param principalAssignmentName The name of the Kusto principalAssignment. * @param context The context to associate with this operation. @@ -1021,7 +1016,7 @@ public SyncPoller, Void> beginDelete( /** * Deletes a Kusto cluster principalAssignment. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param principalAssignmentName The name of the Kusto principalAssignment. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1039,7 +1034,7 @@ private Mono deleteAsync(String resourceGroupName, String clusterName, Str /** * Deletes a Kusto cluster principalAssignment. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param principalAssignmentName The name of the Kusto principalAssignment. * @param context The context to associate with this operation. @@ -1059,7 +1054,7 @@ private Mono deleteAsync( /** * Deletes a Kusto cluster principalAssignment. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param principalAssignmentName The name of the Kusto principalAssignment. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1074,7 +1069,7 @@ public void delete(String resourceGroupName, String clusterName, String principa /** * Deletes a Kusto cluster principalAssignment. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param principalAssignmentName The name of the Kusto principalAssignment. * @param context The context to associate with this operation. @@ -1090,7 +1085,7 @@ public void delete(String resourceGroupName, String clusterName, String principa /** * Lists all Kusto cluster principalAssignments. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -1143,7 +1138,7 @@ private Mono> listSinglePageAsync /** * Lists all Kusto cluster principalAssignments. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1194,7 +1189,7 @@ private Mono> listSinglePageAsync /** * Lists all Kusto cluster principalAssignments. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -1210,7 +1205,7 @@ private PagedFlux listAsync(String resourceGrou /** * Lists all Kusto cluster principalAssignments. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1228,7 +1223,7 @@ private PagedFlux listAsync( /** * Lists all Kusto cluster principalAssignments. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -1244,7 +1239,7 @@ public PagedIterable list(String resourceGroupN /** * Lists all Kusto cluster principalAssignments. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. diff --git a/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/implementation/ClustersClientImpl.java b/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/implementation/ClustersClientImpl.java index 5493ec38dcb4..710e057a38f1 100644 --- a/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/implementation/ClustersClientImpl.java +++ b/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/implementation/ClustersClientImpl.java @@ -44,6 +44,7 @@ import com.azure.resourcemanager.kusto.fluent.models.SkuDescriptionInner; import com.azure.resourcemanager.kusto.models.ClusterCheckNameRequest; import com.azure.resourcemanager.kusto.models.ClusterListResult; +import com.azure.resourcemanager.kusto.models.ClusterMigrateRequest; import com.azure.resourcemanager.kusto.models.ClusterUpdate; import com.azure.resourcemanager.kusto.models.FollowerDatabaseListResult; import com.azure.resourcemanager.kusto.models.LanguageExtensionsList; @@ -81,8 +82,7 @@ public final class ClustersClientImpl implements ClustersClient { public interface ClustersService { @Headers({"Content-Type: application/json"}) @Get( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters" - + "/{clusterName}") + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}") @ExpectedResponses({200}) @UnexpectedResponseExceptionType(ManagementException.class) Mono> getByResourceGroup( @@ -96,8 +96,7 @@ Mono> getByResourceGroup( @Headers({"Content-Type: application/json"}) @Put( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters" - + "/{clusterName}") + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}") @ExpectedResponses({200, 201}) @UnexpectedResponseExceptionType(ManagementException.class) Mono>> createOrUpdate( @@ -114,8 +113,7 @@ Mono>> createOrUpdate( @Headers({"Content-Type: application/json"}) @Patch( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters" - + "/{clusterName}") + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}") @ExpectedResponses({200, 201, 202}) @UnexpectedResponseExceptionType(ManagementException.class) Mono>> update( @@ -131,8 +129,7 @@ Mono>> update( @Headers({"Content-Type: application/json"}) @Delete( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters" - + "/{clusterName}") + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}") @ExpectedResponses({200, 202, 204}) @UnexpectedResponseExceptionType(ManagementException.class) Mono>> delete( @@ -146,8 +143,7 @@ Mono>> delete( @Headers({"Content-Type: application/json"}) @Post( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters" - + "/{clusterName}/stop") + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}/stop") @ExpectedResponses({200, 202}) @UnexpectedResponseExceptionType(ManagementException.class) Mono>> stop( @@ -161,8 +157,7 @@ Mono>> stop( @Headers({"Content-Type: application/json"}) @Post( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters" - + "/{clusterName}/start") + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}/start") @ExpectedResponses({200, 202}) @UnexpectedResponseExceptionType(ManagementException.class) Mono>> start( @@ -176,8 +171,22 @@ Mono>> start( @Headers({"Content-Type: application/json"}) @Post( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters" - + "/{clusterName}/listFollowerDatabases") + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}/migrate") + @ExpectedResponses({200, 202}) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono>> migrate( + @HostParam("$host") String endpoint, + @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("clusterName") String clusterName, + @PathParam("subscriptionId") String subscriptionId, + @QueryParam("api-version") String apiVersion, + @BodyParam("application/json") ClusterMigrateRequest clusterMigrateRequest, + @HeaderParam("Accept") String accept, + Context context); + + @Headers({"Content-Type: application/json"}) + @Post( + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}/listFollowerDatabases") @ExpectedResponses({200}) @UnexpectedResponseExceptionType(ManagementException.class) Mono> listFollowerDatabases( @@ -191,8 +200,7 @@ Mono> listFollowerDatabases( @Headers({"Content-Type: application/json"}) @Post( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters" - + "/{clusterName}/detachFollowerDatabases") + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}/detachFollowerDatabases") @ExpectedResponses({200, 202}) @UnexpectedResponseExceptionType(ManagementException.class) Mono>> detachFollowerDatabases( @@ -207,8 +215,7 @@ Mono>> detachFollowerDatabases( @Headers({"Content-Type: application/json"}) @Post( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters" - + "/{clusterName}/diagnoseVirtualNetwork") + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}/diagnoseVirtualNetwork") @ExpectedResponses({200, 202}) @UnexpectedResponseExceptionType(ManagementException.class) Mono>> diagnoseVirtualNetwork( @@ -269,8 +276,7 @@ Mono> checkNameAvailability( @Headers({"Content-Type: application/json"}) @Get( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters" - + "/{clusterName}/skus") + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}/skus") @ExpectedResponses({200}) @UnexpectedResponseExceptionType(ManagementException.class) Mono> listSkusByResource( @@ -284,8 +290,7 @@ Mono> listSkusByResource( @Headers({"Content-Type: application/json"}) @Get( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters" - + "/{clusterName}/outboundNetworkDependenciesEndpoints") + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}/outboundNetworkDependenciesEndpoints") @ExpectedResponses({200}) @UnexpectedResponseExceptionType(ManagementException.class) Mono> listOutboundNetworkDependenciesEndpoints( @@ -299,8 +304,7 @@ Mono> listOutboundNetwor @Headers({"Content-Type: application/json"}) @Post( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters" - + "/{clusterName}/listLanguageExtensions") + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}/listLanguageExtensions") @ExpectedResponses({200}) @UnexpectedResponseExceptionType(ManagementException.class) Mono> listLanguageExtensions( @@ -314,8 +318,7 @@ Mono> listLanguageExtensions( @Headers({"Content-Type: application/json"}) @Post( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters" - + "/{clusterName}/addLanguageExtensions") + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}/addLanguageExtensions") @ExpectedResponses({200, 202}) @UnexpectedResponseExceptionType(ManagementException.class) Mono>> addLanguageExtensions( @@ -330,8 +333,7 @@ Mono>> addLanguageExtensions( @Headers({"Content-Type: application/json"}) @Post( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters" - + "/{clusterName}/removeLanguageExtensions") + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}/removeLanguageExtensions") @ExpectedResponses({200, 202}) @UnexpectedResponseExceptionType(ManagementException.class) Mono>> removeLanguageExtensions( @@ -358,7 +360,7 @@ Mono> listOutboundNetwor /** * Gets a Kusto cluster. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -406,7 +408,7 @@ private Mono> getByResourceGroupWithResponseAsync( /** * Gets a Kusto cluster. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -452,7 +454,7 @@ private Mono> getByResourceGroupWithResponseAsync( /** * Gets a Kusto cluster. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -468,7 +470,7 @@ private Mono getByResourceGroupAsync(String resourceGroupName, Str /** * Gets a Kusto cluster. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -485,7 +487,7 @@ public Response getByResourceGroupWithResponse( /** * Gets a Kusto cluster. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -500,7 +502,7 @@ public ClusterInner getByResourceGroup(String resourceGroupName, String clusterN /** * Create or update a Kusto cluster. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param parameters The Kusto cluster parameters supplied to the CreateOrUpdate operation. * @param ifMatch The ETag of the cluster. Omit this value to always overwrite the current cluster. Specify the @@ -561,7 +563,7 @@ private Mono>> createOrUpdateWithResponseAsync( /** * Create or update a Kusto cluster. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param parameters The Kusto cluster parameters supplied to the CreateOrUpdate operation. * @param ifMatch The ETag of the cluster. Omit this value to always overwrite the current cluster. Specify the @@ -625,7 +627,7 @@ private Mono>> createOrUpdateWithResponseAsync( /** * Create or update a Kusto cluster. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param parameters The Kusto cluster parameters supplied to the CreateOrUpdate operation. * @param ifMatch The ETag of the cluster. Omit this value to always overwrite the current cluster. Specify the @@ -651,7 +653,7 @@ private PollerFlux, ClusterInner> beginCreateOrUpdateAs /** * Create or update a Kusto cluster. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param parameters The Kusto cluster parameters supplied to the CreateOrUpdate operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -675,7 +677,7 @@ private PollerFlux, ClusterInner> beginCreateOrUpdateAs /** * Create or update a Kusto cluster. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param parameters The Kusto cluster parameters supplied to the CreateOrUpdate operation. * @param ifMatch The ETag of the cluster. Omit this value to always overwrite the current cluster. Specify the @@ -708,7 +710,7 @@ private PollerFlux, ClusterInner> beginCreateOrUpdateAs /** * Create or update a Kusto cluster. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param parameters The Kusto cluster parameters supplied to the CreateOrUpdate operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -729,7 +731,7 @@ public SyncPoller, ClusterInner> beginCreateOrUpdate( /** * Create or update a Kusto cluster. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param parameters The Kusto cluster parameters supplied to the CreateOrUpdate operation. * @param ifMatch The ETag of the cluster. Omit this value to always overwrite the current cluster. Specify the @@ -758,7 +760,7 @@ public SyncPoller, ClusterInner> beginCreateOrUpdate( /** * Create or update a Kusto cluster. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param parameters The Kusto cluster parameters supplied to the CreateOrUpdate operation. * @param ifMatch The ETag of the cluster. Omit this value to always overwrite the current cluster. Specify the @@ -781,7 +783,7 @@ private Mono createOrUpdateAsync( /** * Create or update a Kusto cluster. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param parameters The Kusto cluster parameters supplied to the CreateOrUpdate operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -802,7 +804,7 @@ private Mono createOrUpdateAsync( /** * Create or update a Kusto cluster. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param parameters The Kusto cluster parameters supplied to the CreateOrUpdate operation. * @param ifMatch The ETag of the cluster. Omit this value to always overwrite the current cluster. Specify the @@ -831,7 +833,7 @@ private Mono createOrUpdateAsync( /** * Create or update a Kusto cluster. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param parameters The Kusto cluster parameters supplied to the CreateOrUpdate operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -849,7 +851,7 @@ public ClusterInner createOrUpdate(String resourceGroupName, String clusterName, /** * Create or update a Kusto cluster. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param parameters The Kusto cluster parameters supplied to the CreateOrUpdate operation. * @param ifMatch The ETag of the cluster. Omit this value to always overwrite the current cluster. Specify the @@ -876,7 +878,7 @@ public ClusterInner createOrUpdate( /** * Update a Kusto cluster. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param parameters The Kusto cluster parameters supplied to the Update operation. * @param ifMatch The ETag of the cluster. Omit this value to always overwrite the current cluster. Specify the @@ -934,7 +936,7 @@ private Mono>> updateWithResponseAsync( /** * Update a Kusto cluster. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param parameters The Kusto cluster parameters supplied to the Update operation. * @param ifMatch The ETag of the cluster. Omit this value to always overwrite the current cluster. Specify the @@ -990,7 +992,7 @@ private Mono>> updateWithResponseAsync( /** * Update a Kusto cluster. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param parameters The Kusto cluster parameters supplied to the Update operation. * @param ifMatch The ETag of the cluster. Omit this value to always overwrite the current cluster. Specify the @@ -1014,7 +1016,7 @@ private PollerFlux, ClusterInner> beginUpdateAsync( /** * Update a Kusto cluster. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param parameters The Kusto cluster parameters supplied to the Update operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1037,7 +1039,7 @@ private PollerFlux, ClusterInner> beginUpdateAsync( /** * Update a Kusto cluster. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param parameters The Kusto cluster parameters supplied to the Update operation. * @param ifMatch The ETag of the cluster. Omit this value to always overwrite the current cluster. Specify the @@ -1063,7 +1065,7 @@ private PollerFlux, ClusterInner> beginUpdateAsync( /** * Update a Kusto cluster. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param parameters The Kusto cluster parameters supplied to the Update operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1081,7 +1083,7 @@ public SyncPoller, ClusterInner> beginUpdate( /** * Update a Kusto cluster. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param parameters The Kusto cluster parameters supplied to the Update operation. * @param ifMatch The ETag of the cluster. Omit this value to always overwrite the current cluster. Specify the @@ -1101,7 +1103,7 @@ public SyncPoller, ClusterInner> beginUpdate( /** * Update a Kusto cluster. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param parameters The Kusto cluster parameters supplied to the Update operation. * @param ifMatch The ETag of the cluster. Omit this value to always overwrite the current cluster. Specify the @@ -1122,7 +1124,7 @@ private Mono updateAsync( /** * Update a Kusto cluster. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param parameters The Kusto cluster parameters supplied to the Update operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1141,7 +1143,7 @@ private Mono updateAsync(String resourceGroupName, String clusterN /** * Update a Kusto cluster. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param parameters The Kusto cluster parameters supplied to the Update operation. * @param ifMatch The ETag of the cluster. Omit this value to always overwrite the current cluster. Specify the @@ -1163,7 +1165,7 @@ private Mono updateAsync( /** * Update a Kusto cluster. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param parameters The Kusto cluster parameters supplied to the Update operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1180,7 +1182,7 @@ public ClusterInner update(String resourceGroupName, String clusterName, Cluster /** * Update a Kusto cluster. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param parameters The Kusto cluster parameters supplied to the Update operation. * @param ifMatch The ETag of the cluster. Omit this value to always overwrite the current cluster. Specify the @@ -1200,7 +1202,7 @@ public ClusterInner update( /** * Deletes a Kusto cluster. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -1247,7 +1249,7 @@ private Mono>> deleteWithResponseAsync(String resource /** * Deletes a Kusto cluster. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1293,7 +1295,7 @@ private Mono>> deleteWithResponseAsync( /** * Deletes a Kusto cluster. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -1312,7 +1314,7 @@ private PollerFlux, Void> beginDeleteAsync(String resourceGroup /** * Deletes a Kusto cluster. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1333,7 +1335,7 @@ private PollerFlux, Void> beginDeleteAsync( /** * Deletes a Kusto cluster. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -1348,7 +1350,7 @@ public SyncPoller, Void> beginDelete(String resourceGroupName, /** * Deletes a Kusto cluster. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1365,7 +1367,7 @@ public SyncPoller, Void> beginDelete( /** * Deletes a Kusto cluster. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -1380,7 +1382,7 @@ private Mono deleteAsync(String resourceGroupName, String clusterName) { /** * Deletes a Kusto cluster. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1398,7 +1400,7 @@ private Mono deleteAsync(String resourceGroupName, String clusterName, Con /** * Deletes a Kusto cluster. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -1412,7 +1414,7 @@ public void delete(String resourceGroupName, String clusterName) { /** * Deletes a Kusto cluster. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1427,7 +1429,7 @@ public void delete(String resourceGroupName, String clusterName, Context context /** * Stops a Kusto cluster. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -1474,7 +1476,7 @@ private Mono>> stopWithResponseAsync(String resourceGr /** * Stops a Kusto cluster. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1520,7 +1522,7 @@ private Mono>> stopWithResponseAsync( /** * Stops a Kusto cluster. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -1539,7 +1541,7 @@ private PollerFlux, Void> beginStopAsync(String resourceGroupNa /** * Stops a Kusto cluster. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1560,7 +1562,7 @@ private PollerFlux, Void> beginStopAsync( /** * Stops a Kusto cluster. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -1575,7 +1577,7 @@ public SyncPoller, Void> beginStop(String resourceGroupName, St /** * Stops a Kusto cluster. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1591,7 +1593,7 @@ public SyncPoller, Void> beginStop(String resourceGroupName, St /** * Stops a Kusto cluster. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -1606,7 +1608,7 @@ private Mono stopAsync(String resourceGroupName, String clusterName) { /** * Stops a Kusto cluster. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1624,7 +1626,7 @@ private Mono stopAsync(String resourceGroupName, String clusterName, Conte /** * Stops a Kusto cluster. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -1638,7 +1640,7 @@ public void stop(String resourceGroupName, String clusterName) { /** * Stops a Kusto cluster. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1653,7 +1655,7 @@ public void stop(String resourceGroupName, String clusterName, Context context) /** * Starts a Kusto cluster. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -1700,7 +1702,7 @@ private Mono>> startWithResponseAsync(String resourceG /** * Starts a Kusto cluster. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1746,7 +1748,7 @@ private Mono>> startWithResponseAsync( /** * Starts a Kusto cluster. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -1765,7 +1767,7 @@ private PollerFlux, Void> beginStartAsync(String resourceGroupN /** * Starts a Kusto cluster. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1786,7 +1788,7 @@ private PollerFlux, Void> beginStartAsync( /** * Starts a Kusto cluster. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -1801,7 +1803,7 @@ public SyncPoller, Void> beginStart(String resourceGroupName, S /** * Starts a Kusto cluster. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1818,7 +1820,7 @@ public SyncPoller, Void> beginStart( /** * Starts a Kusto cluster. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -1833,7 +1835,7 @@ private Mono startAsync(String resourceGroupName, String clusterName) { /** * Starts a Kusto cluster. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1851,7 +1853,7 @@ private Mono startAsync(String resourceGroupName, String clusterName, Cont /** * Starts a Kusto cluster. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -1865,7 +1867,7 @@ public void start(String resourceGroupName, String clusterName) { /** * Starts a Kusto cluster. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1877,10 +1879,271 @@ public void start(String resourceGroupName, String clusterName, Context context) startAsync(resourceGroupName, clusterName, context).block(); } + /** + * Migrate data from a Kusto cluster to another cluster. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the Kusto cluster. + * @param clusterMigrateRequest The cluster migrate request parameters. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono>> migrateWithResponseAsync( + String resourceGroupName, String clusterName, ClusterMigrateRequest clusterMigrateRequest) { + if (this.client.getEndpoint() == null) { + return Mono + .error( + new IllegalArgumentException( + "Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (clusterName == null) { + return Mono.error(new IllegalArgumentException("Parameter clusterName is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono + .error( + new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (clusterMigrateRequest == null) { + return Mono + .error(new IllegalArgumentException("Parameter clusterMigrateRequest is required and cannot be null.")); + } else { + clusterMigrateRequest.validate(); + } + final String accept = "application/json"; + return FluxUtil + .withContext( + context -> + service + .migrate( + this.client.getEndpoint(), + resourceGroupName, + clusterName, + this.client.getSubscriptionId(), + this.client.getApiVersion(), + clusterMigrateRequest, + accept, + context)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Migrate data from a Kusto cluster to another cluster. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the Kusto cluster. + * @param clusterMigrateRequest The cluster migrate request parameters. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono>> migrateWithResponseAsync( + String resourceGroupName, String clusterName, ClusterMigrateRequest clusterMigrateRequest, Context context) { + if (this.client.getEndpoint() == null) { + return Mono + .error( + new IllegalArgumentException( + "Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (clusterName == null) { + return Mono.error(new IllegalArgumentException("Parameter clusterName is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono + .error( + new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (clusterMigrateRequest == null) { + return Mono + .error(new IllegalArgumentException("Parameter clusterMigrateRequest is required and cannot be null.")); + } else { + clusterMigrateRequest.validate(); + } + final String accept = "application/json"; + context = this.client.mergeContext(context); + return service + .migrate( + this.client.getEndpoint(), + resourceGroupName, + clusterName, + this.client.getSubscriptionId(), + this.client.getApiVersion(), + clusterMigrateRequest, + accept, + context); + } + + /** + * Migrate data from a Kusto cluster to another cluster. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the Kusto cluster. + * @param clusterMigrateRequest The cluster migrate request parameters. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link PollerFlux} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + private PollerFlux, Void> beginMigrateAsync( + String resourceGroupName, String clusterName, ClusterMigrateRequest clusterMigrateRequest) { + Mono>> mono = + migrateWithResponseAsync(resourceGroupName, clusterName, clusterMigrateRequest); + return this + .client + .getLroResult( + mono, this.client.getHttpPipeline(), Void.class, Void.class, this.client.getContext()); + } + + /** + * Migrate data from a Kusto cluster to another cluster. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the Kusto cluster. + * @param clusterMigrateRequest The cluster migrate request parameters. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link PollerFlux} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + private PollerFlux, Void> beginMigrateAsync( + String resourceGroupName, String clusterName, ClusterMigrateRequest clusterMigrateRequest, Context context) { + context = this.client.mergeContext(context); + Mono>> mono = + migrateWithResponseAsync(resourceGroupName, clusterName, clusterMigrateRequest, context); + return this + .client + .getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, context); + } + + /** + * Migrate data from a Kusto cluster to another cluster. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the Kusto cluster. + * @param clusterMigrateRequest The cluster migrate request parameters. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller, Void> beginMigrate( + String resourceGroupName, String clusterName, ClusterMigrateRequest clusterMigrateRequest) { + return this.beginMigrateAsync(resourceGroupName, clusterName, clusterMigrateRequest).getSyncPoller(); + } + + /** + * Migrate data from a Kusto cluster to another cluster. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the Kusto cluster. + * @param clusterMigrateRequest The cluster migrate request parameters. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller, Void> beginMigrate( + String resourceGroupName, String clusterName, ClusterMigrateRequest clusterMigrateRequest, Context context) { + return this.beginMigrateAsync(resourceGroupName, clusterName, clusterMigrateRequest, context).getSyncPoller(); + } + + /** + * Migrate data from a Kusto cluster to another cluster. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the Kusto cluster. + * @param clusterMigrateRequest The cluster migrate request parameters. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return A {@link Mono} that completes when a successful response is received. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono migrateAsync( + String resourceGroupName, String clusterName, ClusterMigrateRequest clusterMigrateRequest) { + return beginMigrateAsync(resourceGroupName, clusterName, clusterMigrateRequest) + .last() + .flatMap(this.client::getLroFinalResultOrError); + } + + /** + * Migrate data from a Kusto cluster to another cluster. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the Kusto cluster. + * @param clusterMigrateRequest The cluster migrate request parameters. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return A {@link Mono} that completes when a successful response is received. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono migrateAsync( + String resourceGroupName, String clusterName, ClusterMigrateRequest clusterMigrateRequest, Context context) { + return beginMigrateAsync(resourceGroupName, clusterName, clusterMigrateRequest, context) + .last() + .flatMap(this.client::getLroFinalResultOrError); + } + + /** + * Migrate data from a Kusto cluster to another cluster. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the Kusto cluster. + * @param clusterMigrateRequest The cluster migrate request parameters. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public void migrate(String resourceGroupName, String clusterName, ClusterMigrateRequest clusterMigrateRequest) { + migrateAsync(resourceGroupName, clusterName, clusterMigrateRequest).block(); + } + + /** + * Migrate data from a Kusto cluster to another cluster. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the Kusto cluster. + * @param clusterMigrateRequest The cluster migrate request parameters. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public void migrate( + String resourceGroupName, String clusterName, ClusterMigrateRequest clusterMigrateRequest, Context context) { + migrateAsync(resourceGroupName, clusterName, clusterMigrateRequest, context).block(); + } + /** * Returns a list of databases that are owned by this cluster and were followed by another cluster. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -1933,7 +2196,7 @@ private Mono> listFollowerDatabas /** * Returns a list of databases that are owned by this cluster and were followed by another cluster. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1984,7 +2247,7 @@ private Mono> listFollowerDatabas /** * Returns a list of databases that are owned by this cluster and were followed by another cluster. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -2000,7 +2263,7 @@ private PagedFlux listFollowerDatabasesAsync( /** * Returns a list of databases that are owned by this cluster and were followed by another cluster. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -2017,7 +2280,7 @@ private PagedFlux listFollowerDatabasesAsync( /** * Returns a list of databases that are owned by this cluster and were followed by another cluster. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -2033,7 +2296,7 @@ public PagedIterable listFollowerDatabases( /** * Returns a list of databases that are owned by this cluster and were followed by another cluster. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -2050,7 +2313,7 @@ public PagedIterable listFollowerDatabases( /** * Detaches all followers of a database owned by this cluster. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param followerDatabaseToRemove The follower databases properties to remove. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -2107,7 +2370,7 @@ private Mono>> detachFollowerDatabasesWithResponseAsyn /** * Detaches all followers of a database owned by this cluster. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param followerDatabaseToRemove The follower databases properties to remove. * @param context The context to associate with this operation. @@ -2165,7 +2428,7 @@ private Mono>> detachFollowerDatabasesWithResponseAsyn /** * Detaches all followers of a database owned by this cluster. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param followerDatabaseToRemove The follower databases properties to remove. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -2187,7 +2450,7 @@ private PollerFlux, Void> beginDetachFollowerDatabasesAsync( /** * Detaches all followers of a database owned by this cluster. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param followerDatabaseToRemove The follower databases properties to remove. * @param context The context to associate with this operation. @@ -2213,7 +2476,7 @@ private PollerFlux, Void> beginDetachFollowerDatabasesAsync( /** * Detaches all followers of a database owned by this cluster. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param followerDatabaseToRemove The follower databases properties to remove. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -2232,7 +2495,7 @@ public SyncPoller, Void> beginDetachFollowerDatabases( /** * Detaches all followers of a database owned by this cluster. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param followerDatabaseToRemove The follower databases properties to remove. * @param context The context to associate with this operation. @@ -2255,7 +2518,7 @@ public SyncPoller, Void> beginDetachFollowerDatabases( /** * Detaches all followers of a database owned by this cluster. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param followerDatabaseToRemove The follower databases properties to remove. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -2274,7 +2537,7 @@ private Mono detachFollowerDatabasesAsync( /** * Detaches all followers of a database owned by this cluster. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param followerDatabaseToRemove The follower databases properties to remove. * @param context The context to associate with this operation. @@ -2297,7 +2560,7 @@ private Mono detachFollowerDatabasesAsync( /** * Detaches all followers of a database owned by this cluster. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param followerDatabaseToRemove The follower databases properties to remove. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -2313,7 +2576,7 @@ public void detachFollowerDatabases( /** * Detaches all followers of a database owned by this cluster. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param followerDatabaseToRemove The follower databases properties to remove. * @param context The context to associate with this operation. @@ -2333,7 +2596,7 @@ public void detachFollowerDatabases( /** * Diagnoses network connectivity status for external resources on which the service is dependent on. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -2381,7 +2644,7 @@ private Mono>> diagnoseVirtualNetworkWithResponseAsync /** * Diagnoses network connectivity status for external resources on which the service is dependent on. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -2427,7 +2690,7 @@ private Mono>> diagnoseVirtualNetworkWithResponseAsync /** * Diagnoses network connectivity status for external resources on which the service is dependent on. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -2451,7 +2714,7 @@ private Mono>> diagnoseVirtualNetworkWithResponseAsync /** * Diagnoses network connectivity status for external resources on which the service is dependent on. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -2478,7 +2741,7 @@ private Mono>> diagnoseVirtualNetworkWithResponseAsync /** * Diagnoses network connectivity status for external resources on which the service is dependent on. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -2494,7 +2757,7 @@ private Mono>> diagnoseVirtualNetworkWithResponseAsync /** * Diagnoses network connectivity status for external resources on which the service is dependent on. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -2511,7 +2774,7 @@ private Mono>> diagnoseVirtualNetworkWithResponseAsync /** * Diagnoses network connectivity status for external resources on which the service is dependent on. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -2529,7 +2792,7 @@ private Mono diagnoseVirtualNetworkAsync( /** * Diagnoses network connectivity status for external resources on which the service is dependent on. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -2548,7 +2811,7 @@ private Mono diagnoseVirtualNetworkAsync( /** * Diagnoses network connectivity status for external resources on which the service is dependent on. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -2563,7 +2826,7 @@ public DiagnoseVirtualNetworkResultInner diagnoseVirtualNetwork(String resourceG /** * Diagnoses network connectivity status for external resources on which the service is dependent on. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -2580,7 +2843,7 @@ public DiagnoseVirtualNetworkResultInner diagnoseVirtualNetwork( /** * Lists all Kusto clusters within a resource group. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -2627,7 +2890,7 @@ private Mono> listByResourceGroupSinglePageAsync(Str /** * Lists all Kusto clusters within a resource group. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -2673,7 +2936,7 @@ private Mono> listByResourceGroupSinglePageAsync( /** * Lists all Kusto clusters within a resource group. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -2687,7 +2950,7 @@ private PagedFlux listByResourceGroupAsync(String resourceGroupNam /** * Lists all Kusto clusters within a resource group. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -2702,7 +2965,7 @@ private PagedFlux listByResourceGroupAsync(String resourceGroupNam /** * Lists all Kusto clusters within a resource group. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -2716,7 +2979,7 @@ public PagedIterable listByResourceGroup(String resourceGroupName) /** * Lists all Kusto clusters within a resource group. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -2993,7 +3256,7 @@ public PagedIterable listSkus(Context context) { /** * Checks that the cluster name is valid and is not already in use. * - * @param location Azure location (region) name. + * @param location The name of Azure region. * @param clusterName The name of the cluster. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -3043,7 +3306,7 @@ private Mono> checkNameAvailabilityWithResponseAs /** * Checks that the cluster name is valid and is not already in use. * - * @param location Azure location (region) name. + * @param location The name of Azure region. * @param clusterName The name of the cluster. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -3091,7 +3354,7 @@ private Mono> checkNameAvailabilityWithResponseAs /** * Checks that the cluster name is valid and is not already in use. * - * @param location Azure location (region) name. + * @param location The name of Azure region. * @param clusterName The name of the cluster. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -3108,7 +3371,7 @@ private Mono checkNameAvailabilityAsync( /** * Checks that the cluster name is valid and is not already in use. * - * @param location Azure location (region) name. + * @param location The name of Azure region. * @param clusterName The name of the cluster. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -3125,7 +3388,7 @@ public Response checkNameAvailabilityWithResponse( /** * Checks that the cluster name is valid and is not already in use. * - * @param location Azure location (region) name. + * @param location The name of Azure region. * @param clusterName The name of the cluster. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -3140,7 +3403,7 @@ public CheckNameResultInner checkNameAvailability(String location, ClusterCheckN /** * Returns the SKUs available for the provided resource. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -3193,7 +3456,7 @@ private Mono> listSkusByResourceSinglePageA /** * Returns the SKUs available for the provided resource. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -3244,7 +3507,7 @@ private Mono> listSkusByResourceSinglePageA /** * Returns the SKUs available for the provided resource. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -3259,7 +3522,7 @@ private PagedFlux listSkusByResourceAsync(String resource /** * Returns the SKUs available for the provided resource. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -3276,7 +3539,7 @@ private PagedFlux listSkusByResourceAsync( /** * Returns the SKUs available for the provided resource. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -3291,7 +3554,7 @@ public PagedIterable listSkusByResource(String resourceGr /** * Returns the SKUs available for the provided resource. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -3308,7 +3571,7 @@ public PagedIterable listSkusByResource( /** * Gets the network endpoints of all outbound dependencies of a Kusto cluster. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -3366,7 +3629,7 @@ public PagedIterable listSkusByResource( /** * Gets the network endpoints of all outbound dependencies of a Kusto cluster. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -3423,7 +3686,7 @@ public PagedIterable listSkusByResource( /** * Gets the network endpoints of all outbound dependencies of a Kusto cluster. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -3442,7 +3705,7 @@ private PagedFlux listOutboundNetworkD /** * Gets the network endpoints of all outbound dependencies of a Kusto cluster. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -3462,7 +3725,7 @@ private PagedFlux listOutboundNetworkD /** * Gets the network endpoints of all outbound dependencies of a Kusto cluster. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -3479,7 +3742,7 @@ public PagedIterable listOutboundNetwo /** * Gets the network endpoints of all outbound dependencies of a Kusto cluster. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -3498,7 +3761,7 @@ public PagedIterable listOutboundNetwo /** * Returns a list of language extensions that can run within KQL queries. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -3551,7 +3814,7 @@ private Mono> listLanguageExtensionsSingle /** * Returns a list of language extensions that can run within KQL queries. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -3602,7 +3865,7 @@ private Mono> listLanguageExtensionsSingle /** * Returns a list of language extensions that can run within KQL queries. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -3618,7 +3881,7 @@ private PagedFlux listLanguageExtensionsAsync( /** * Returns a list of language extensions that can run within KQL queries. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -3635,7 +3898,7 @@ private PagedFlux listLanguageExtensionsAsync( /** * Returns a list of language extensions that can run within KQL queries. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -3650,7 +3913,7 @@ public PagedIterable listLanguageExtensions(String resou /** * Returns a list of language extensions that can run within KQL queries. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -3667,7 +3930,7 @@ public PagedIterable listLanguageExtensions( /** * Add a list of language extensions that can run within KQL queries. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param languageExtensionsToAdd The language extensions to add. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -3724,7 +3987,7 @@ private Mono>> addLanguageExtensionsWithResponseAsync( /** * Add a list of language extensions that can run within KQL queries. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param languageExtensionsToAdd The language extensions to add. * @param context The context to associate with this operation. @@ -3779,7 +4042,7 @@ private Mono>> addLanguageExtensionsWithResponseAsync( /** * Add a list of language extensions that can run within KQL queries. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param languageExtensionsToAdd The language extensions to add. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -3801,7 +4064,7 @@ private PollerFlux, Void> beginAddLanguageExtensionsAsync( /** * Add a list of language extensions that can run within KQL queries. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param languageExtensionsToAdd The language extensions to add. * @param context The context to associate with this operation. @@ -3824,7 +4087,7 @@ private PollerFlux, Void> beginAddLanguageExtensionsAsync( /** * Add a list of language extensions that can run within KQL queries. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param languageExtensionsToAdd The language extensions to add. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -3843,7 +4106,7 @@ public SyncPoller, Void> beginAddLanguageExtensions( /** * Add a list of language extensions that can run within KQL queries. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param languageExtensionsToAdd The language extensions to add. * @param context The context to associate with this operation. @@ -3863,7 +4126,7 @@ public SyncPoller, Void> beginAddLanguageExtensions( /** * Add a list of language extensions that can run within KQL queries. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param languageExtensionsToAdd The language extensions to add. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -3882,7 +4145,7 @@ private Mono addLanguageExtensionsAsync( /** * Add a list of language extensions that can run within KQL queries. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param languageExtensionsToAdd The language extensions to add. * @param context The context to associate with this operation. @@ -3902,7 +4165,7 @@ private Mono addLanguageExtensionsAsync( /** * Add a list of language extensions that can run within KQL queries. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param languageExtensionsToAdd The language extensions to add. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -3918,7 +4181,7 @@ public void addLanguageExtensions( /** * Add a list of language extensions that can run within KQL queries. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param languageExtensionsToAdd The language extensions to add. * @param context The context to associate with this operation. @@ -3935,7 +4198,7 @@ public void addLanguageExtensions( /** * Remove a list of language extensions that can run within KQL queries. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param languageExtensionsToRemove The language extensions to remove. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -3993,7 +4256,7 @@ private Mono>> removeLanguageExtensionsWithResponseAsy /** * Remove a list of language extensions that can run within KQL queries. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param languageExtensionsToRemove The language extensions to remove. * @param context The context to associate with this operation. @@ -4052,7 +4315,7 @@ private Mono>> removeLanguageExtensionsWithResponseAsy /** * Remove a list of language extensions that can run within KQL queries. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param languageExtensionsToRemove The language extensions to remove. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -4074,7 +4337,7 @@ private PollerFlux, Void> beginRemoveLanguageExtensionsAsync( /** * Remove a list of language extensions that can run within KQL queries. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param languageExtensionsToRemove The language extensions to remove. * @param context The context to associate with this operation. @@ -4101,7 +4364,7 @@ private PollerFlux, Void> beginRemoveLanguageExtensionsAsync( /** * Remove a list of language extensions that can run within KQL queries. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param languageExtensionsToRemove The language extensions to remove. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -4120,7 +4383,7 @@ public SyncPoller, Void> beginRemoveLanguageExtensions( /** * Remove a list of language extensions that can run within KQL queries. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param languageExtensionsToRemove The language extensions to remove. * @param context The context to associate with this operation. @@ -4143,7 +4406,7 @@ public SyncPoller, Void> beginRemoveLanguageExtensions( /** * Remove a list of language extensions that can run within KQL queries. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param languageExtensionsToRemove The language extensions to remove. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -4162,7 +4425,7 @@ private Mono removeLanguageExtensionsAsync( /** * Remove a list of language extensions that can run within KQL queries. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param languageExtensionsToRemove The language extensions to remove. * @param context The context to associate with this operation. @@ -4185,7 +4448,7 @@ private Mono removeLanguageExtensionsAsync( /** * Remove a list of language extensions that can run within KQL queries. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param languageExtensionsToRemove The language extensions to remove. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -4201,7 +4464,7 @@ public void removeLanguageExtensions( /** * Remove a list of language extensions that can run within KQL queries. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param languageExtensionsToRemove The language extensions to remove. * @param context The context to associate with this operation. diff --git a/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/implementation/ClustersImpl.java b/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/implementation/ClustersImpl.java index 68b40bc4dc95..e688f1d58a63 100644 --- a/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/implementation/ClustersImpl.java +++ b/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/implementation/ClustersImpl.java @@ -22,6 +22,7 @@ import com.azure.resourcemanager.kusto.models.CheckNameResult; import com.azure.resourcemanager.kusto.models.Cluster; import com.azure.resourcemanager.kusto.models.ClusterCheckNameRequest; +import com.azure.resourcemanager.kusto.models.ClusterMigrateRequest; import com.azure.resourcemanager.kusto.models.Clusters; import com.azure.resourcemanager.kusto.models.DiagnoseVirtualNetworkResult; import com.azure.resourcemanager.kusto.models.FollowerDatabaseDefinition; @@ -90,6 +91,15 @@ public void start(String resourceGroupName, String clusterName, Context context) this.serviceClient().start(resourceGroupName, clusterName, context); } + public void migrate(String resourceGroupName, String clusterName, ClusterMigrateRequest clusterMigrateRequest) { + this.serviceClient().migrate(resourceGroupName, clusterName, clusterMigrateRequest); + } + + public void migrate( + String resourceGroupName, String clusterName, ClusterMigrateRequest clusterMigrateRequest, Context context) { + this.serviceClient().migrate(resourceGroupName, clusterName, clusterMigrateRequest, context); + } + public PagedIterable listFollowerDatabases( String resourceGroupName, String clusterName) { PagedIterable inner = diff --git a/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/implementation/DataConnectionsClientImpl.java b/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/implementation/DataConnectionsClientImpl.java index 545034fac2fe..6a0073b5b893 100644 --- a/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/implementation/DataConnectionsClientImpl.java +++ b/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/implementation/DataConnectionsClientImpl.java @@ -72,8 +72,7 @@ public final class DataConnectionsClientImpl implements DataConnectionsClient { public interface DataConnectionsService { @Headers({"Content-Type: application/json"}) @Get( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters" - + "/{clusterName}/databases/{databaseName}/dataConnections") + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}/databases/{databaseName}/dataConnections") @ExpectedResponses({200}) @UnexpectedResponseExceptionType(ManagementException.class) Mono> listByDatabase( @@ -88,8 +87,7 @@ Mono> listByDatabase( @Headers({"Content-Type: application/json"}) @Post( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters" - + "/{clusterName}/databases/{databaseName}/dataConnectionValidation") + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}/databases/{databaseName}/dataConnectionValidation") @ExpectedResponses({200, 202}) @UnexpectedResponseExceptionType(ManagementException.class) Mono>> dataConnectionValidation( @@ -105,8 +103,7 @@ Mono>> dataConnectionValidation( @Headers({"Content-Type: application/json"}) @Post( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters" - + "/{clusterName}/databases/{databaseName}/checkNameAvailability") + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}/databases/{databaseName}/checkNameAvailability") @ExpectedResponses({200}) @UnexpectedResponseExceptionType(ManagementException.class) Mono> checkNameAvailability( @@ -122,8 +119,7 @@ Mono> checkNameAvailability( @Headers({"Content-Type: application/json"}) @Get( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters" - + "/{clusterName}/databases/{databaseName}/dataConnections/{dataConnectionName}") + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}/databases/{databaseName}/dataConnections/{dataConnectionName}") @ExpectedResponses({200}) @UnexpectedResponseExceptionType(ManagementException.class) Mono> get( @@ -139,8 +135,7 @@ Mono> get( @Headers({"Content-Type: application/json"}) @Put( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters" - + "/{clusterName}/databases/{databaseName}/dataConnections/{dataConnectionName}") + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}/databases/{databaseName}/dataConnections/{dataConnectionName}") @ExpectedResponses({200, 201, 202}) @UnexpectedResponseExceptionType(ManagementException.class) Mono>> createOrUpdate( @@ -157,8 +152,7 @@ Mono>> createOrUpdate( @Headers({"Content-Type: application/json"}) @Patch( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters" - + "/{clusterName}/databases/{databaseName}/dataConnections/{dataConnectionName}") + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}/databases/{databaseName}/dataConnections/{dataConnectionName}") @ExpectedResponses({200, 201, 202}) @UnexpectedResponseExceptionType(ManagementException.class) Mono>> update( @@ -175,8 +169,7 @@ Mono>> update( @Headers({"Content-Type: application/json"}) @Delete( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters" - + "/{clusterName}/databases/{databaseName}/dataConnections/{dataConnectionName}") + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}/databases/{databaseName}/dataConnections/{dataConnectionName}") @ExpectedResponses({200, 202, 204}) @UnexpectedResponseExceptionType(ManagementException.class) Mono>> delete( @@ -194,7 +187,7 @@ Mono>> delete( /** * Returns the list of data connections of the given Kusto database. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param databaseName The name of the database in the Kusto cluster. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -252,7 +245,7 @@ private Mono> listByDatabaseSinglePageAsync( /** * Returns the list of data connections of the given Kusto database. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param databaseName The name of the database in the Kusto cluster. * @param context The context to associate with this operation. @@ -308,7 +301,7 @@ private Mono> listByDatabaseSinglePageAsync( /** * Returns the list of data connections of the given Kusto database. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param databaseName The name of the database in the Kusto cluster. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -325,7 +318,7 @@ private PagedFlux listByDatabaseAsync( /** * Returns the list of data connections of the given Kusto database. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param databaseName The name of the database in the Kusto cluster. * @param context The context to associate with this operation. @@ -344,7 +337,7 @@ private PagedFlux listByDatabaseAsync( /** * Returns the list of data connections of the given Kusto database. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param databaseName The name of the database in the Kusto cluster. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -361,7 +354,7 @@ public PagedIterable listByDatabase( /** * Returns the list of data connections of the given Kusto database. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param databaseName The name of the database in the Kusto cluster. * @param context The context to associate with this operation. @@ -379,7 +372,7 @@ public PagedIterable listByDatabase( /** * Checks that the data connection parameters are valid. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param databaseName The name of the database in the Kusto cluster. * @param parameters The data connection parameters supplied to the CreateOrUpdate operation. @@ -440,7 +433,7 @@ private Mono>> dataConnectionValidationWithResponseAsy /** * Checks that the data connection parameters are valid. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param databaseName The name of the database in the Kusto cluster. * @param parameters The data connection parameters supplied to the CreateOrUpdate operation. @@ -503,7 +496,7 @@ private Mono>> dataConnectionValidationWithResponseAsy /** * Checks that the data connection parameters are valid. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param databaseName The name of the database in the Kusto cluster. * @param parameters The data connection parameters supplied to the CreateOrUpdate operation. @@ -534,7 +527,7 @@ private Mono>> dataConnectionValidationWithResponseAsy /** * Checks that the data connection parameters are valid. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param databaseName The name of the database in the Kusto cluster. * @param parameters The data connection parameters supplied to the CreateOrUpdate operation. @@ -569,7 +562,7 @@ private Mono>> dataConnectionValidationWithResponseAsy /** * Checks that the data connection parameters are valid. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param databaseName The name of the database in the Kusto cluster. * @param parameters The data connection parameters supplied to the CreateOrUpdate operation. @@ -593,7 +586,7 @@ private Mono>> dataConnectionValidationWithResponseAsy /** * Checks that the data connection parameters are valid. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param databaseName The name of the database in the Kusto cluster. * @param parameters The data connection parameters supplied to the CreateOrUpdate operation. @@ -619,7 +612,7 @@ private Mono>> dataConnectionValidationWithResponseAsy /** * Checks that the data connection parameters are valid. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param databaseName The name of the database in the Kusto cluster. * @param parameters The data connection parameters supplied to the CreateOrUpdate operation. @@ -639,7 +632,7 @@ private Mono dataConnectionValidationAs /** * Checks that the data connection parameters are valid. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param databaseName The name of the database in the Kusto cluster. * @param parameters The data connection parameters supplied to the CreateOrUpdate operation. @@ -664,7 +657,7 @@ private Mono dataConnectionValidationAs /** * Checks that the data connection parameters are valid. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param databaseName The name of the database in the Kusto cluster. * @param parameters The data connection parameters supplied to the CreateOrUpdate operation. @@ -682,7 +675,7 @@ public DataConnectionValidationListResultInner dataConnectionValidation( /** * Checks that the data connection parameters are valid. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param databaseName The name of the database in the Kusto cluster. * @param parameters The data connection parameters supplied to the CreateOrUpdate operation. @@ -705,7 +698,7 @@ public DataConnectionValidationListResultInner dataConnectionValidation( /** * Checks that the data connection name is valid and is not already in use. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param databaseName The name of the database in the Kusto cluster. * @param dataConnectionName The name of the data connection. @@ -770,7 +763,7 @@ private Mono> checkNameAvailabilityWithResponseAs /** * Checks that the data connection name is valid and is not already in use. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param databaseName The name of the database in the Kusto cluster. * @param dataConnectionName The name of the data connection. @@ -834,7 +827,7 @@ private Mono> checkNameAvailabilityWithResponseAs /** * Checks that the data connection name is valid and is not already in use. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param databaseName The name of the database in the Kusto cluster. * @param dataConnectionName The name of the data connection. @@ -856,7 +849,7 @@ private Mono checkNameAvailabilityAsync( /** * Checks that the data connection name is valid and is not already in use. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param databaseName The name of the database in the Kusto cluster. * @param dataConnectionName The name of the data connection. @@ -881,7 +874,7 @@ public Response checkNameAvailabilityWithResponse( /** * Checks that the data connection name is valid and is not already in use. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param databaseName The name of the database in the Kusto cluster. * @param dataConnectionName The name of the data connection. @@ -904,7 +897,7 @@ public CheckNameResultInner checkNameAvailability( /** * Returns a data connection. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param databaseName The name of the database in the Kusto cluster. * @param dataConnectionName The name of the data connection. @@ -964,7 +957,7 @@ private Mono> getWithResponseAsync( /** * Returns a data connection. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param databaseName The name of the database in the Kusto cluster. * @param dataConnectionName The name of the data connection. @@ -1022,7 +1015,7 @@ private Mono> getWithResponseAsync( /** * Returns a data connection. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param databaseName The name of the database in the Kusto cluster. * @param dataConnectionName The name of the data connection. @@ -1041,7 +1034,7 @@ private Mono getAsync( /** * Returns a data connection. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param databaseName The name of the database in the Kusto cluster. * @param dataConnectionName The name of the data connection. @@ -1060,7 +1053,7 @@ public Response getWithResponse( /** * Returns a data connection. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param databaseName The name of the database in the Kusto cluster. * @param dataConnectionName The name of the data connection. @@ -1079,7 +1072,7 @@ public DataConnectionInner get( /** * Creates or updates a data connection. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param databaseName The name of the database in the Kusto cluster. * @param dataConnectionName The name of the data connection. @@ -1150,7 +1143,7 @@ private Mono>> createOrUpdateWithResponseAsync( /** * Creates or updates a data connection. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param databaseName The name of the database in the Kusto cluster. * @param dataConnectionName The name of the data connection. @@ -1220,7 +1213,7 @@ private Mono>> createOrUpdateWithResponseAsync( /** * Creates or updates a data connection. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param databaseName The name of the database in the Kusto cluster. * @param dataConnectionName The name of the data connection. @@ -1253,7 +1246,7 @@ private PollerFlux, DataConnectionInner> beginCr /** * Creates or updates a data connection. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param databaseName The name of the database in the Kusto cluster. * @param dataConnectionName The name of the data connection. @@ -1285,7 +1278,7 @@ private PollerFlux, DataConnectionInner> beginCr /** * Creates or updates a data connection. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param databaseName The name of the database in the Kusto cluster. * @param dataConnectionName The name of the data connection. @@ -1310,7 +1303,7 @@ public SyncPoller, DataConnectionInner> beginCre /** * Creates or updates a data connection. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param databaseName The name of the database in the Kusto cluster. * @param dataConnectionName The name of the data connection. @@ -1338,7 +1331,7 @@ public SyncPoller, DataConnectionInner> beginCre /** * Creates or updates a data connection. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param databaseName The name of the database in the Kusto cluster. * @param dataConnectionName The name of the data connection. @@ -1363,7 +1356,7 @@ private Mono createOrUpdateAsync( /** * Creates or updates a data connection. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param databaseName The name of the database in the Kusto cluster. * @param dataConnectionName The name of the data connection. @@ -1391,7 +1384,7 @@ private Mono createOrUpdateAsync( /** * Creates or updates a data connection. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param databaseName The name of the database in the Kusto cluster. * @param dataConnectionName The name of the data connection. @@ -1415,7 +1408,7 @@ public DataConnectionInner createOrUpdate( /** * Creates or updates a data connection. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param databaseName The name of the database in the Kusto cluster. * @param dataConnectionName The name of the data connection. @@ -1442,7 +1435,7 @@ public DataConnectionInner createOrUpdate( /** * Updates a data connection. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param databaseName The name of the database in the Kusto cluster. * @param dataConnectionName The name of the data connection. @@ -1513,7 +1506,7 @@ private Mono>> updateWithResponseAsync( /** * Updates a data connection. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param databaseName The name of the database in the Kusto cluster. * @param dataConnectionName The name of the data connection. @@ -1583,7 +1576,7 @@ private Mono>> updateWithResponseAsync( /** * Updates a data connection. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param databaseName The name of the database in the Kusto cluster. * @param dataConnectionName The name of the data connection. @@ -1615,7 +1608,7 @@ private PollerFlux, DataConnectionInner> beginUp /** * Updates a data connection. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param databaseName The name of the database in the Kusto cluster. * @param dataConnectionName The name of the data connection. @@ -1647,7 +1640,7 @@ private PollerFlux, DataConnectionInner> beginUp /** * Updates a data connection. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param databaseName The name of the database in the Kusto cluster. * @param dataConnectionName The name of the data connection. @@ -1672,7 +1665,7 @@ public SyncPoller, DataConnectionInner> beginUpd /** * Updates a data connection. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param databaseName The name of the database in the Kusto cluster. * @param dataConnectionName The name of the data connection. @@ -1699,7 +1692,7 @@ public SyncPoller, DataConnectionInner> beginUpd /** * Updates a data connection. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param databaseName The name of the database in the Kusto cluster. * @param dataConnectionName The name of the data connection. @@ -1724,7 +1717,7 @@ private Mono updateAsync( /** * Updates a data connection. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param databaseName The name of the database in the Kusto cluster. * @param dataConnectionName The name of the data connection. @@ -1751,7 +1744,7 @@ private Mono updateAsync( /** * Updates a data connection. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param databaseName The name of the database in the Kusto cluster. * @param dataConnectionName The name of the data connection. @@ -1774,7 +1767,7 @@ public DataConnectionInner update( /** * Updates a data connection. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param databaseName The name of the database in the Kusto cluster. * @param dataConnectionName The name of the data connection. @@ -1800,7 +1793,7 @@ public DataConnectionInner update( /** * Deletes the data connection with the given name. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param databaseName The name of the database in the Kusto cluster. * @param dataConnectionName The name of the data connection. @@ -1859,7 +1852,7 @@ private Mono>> deleteWithResponseAsync( /** * Deletes the data connection with the given name. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param databaseName The name of the database in the Kusto cluster. * @param dataConnectionName The name of the data connection. @@ -1916,7 +1909,7 @@ private Mono>> deleteWithResponseAsync( /** * Deletes the data connection with the given name. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param databaseName The name of the database in the Kusto cluster. * @param dataConnectionName The name of the data connection. @@ -1939,7 +1932,7 @@ private PollerFlux, Void> beginDeleteAsync( /** * Deletes the data connection with the given name. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param databaseName The name of the database in the Kusto cluster. * @param dataConnectionName The name of the data connection. @@ -1963,7 +1956,7 @@ private PollerFlux, Void> beginDeleteAsync( /** * Deletes the data connection with the given name. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param databaseName The name of the database in the Kusto cluster. * @param dataConnectionName The name of the data connection. @@ -1981,7 +1974,7 @@ public SyncPoller, Void> beginDelete( /** * Deletes the data connection with the given name. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param databaseName The name of the database in the Kusto cluster. * @param dataConnectionName The name of the data connection. @@ -2002,7 +1995,7 @@ public SyncPoller, Void> beginDelete( /** * Deletes the data connection with the given name. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param databaseName The name of the database in the Kusto cluster. * @param dataConnectionName The name of the data connection. @@ -2022,7 +2015,7 @@ private Mono deleteAsync( /** * Deletes the data connection with the given name. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param databaseName The name of the database in the Kusto cluster. * @param dataConnectionName The name of the data connection. @@ -2043,7 +2036,7 @@ private Mono deleteAsync( /** * Deletes the data connection with the given name. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param databaseName The name of the database in the Kusto cluster. * @param dataConnectionName The name of the data connection. @@ -2059,7 +2052,7 @@ public void delete(String resourceGroupName, String clusterName, String database /** * Deletes the data connection with the given name. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param databaseName The name of the database in the Kusto cluster. * @param dataConnectionName The name of the data connection. diff --git a/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/implementation/DatabaseInviteFollowerResultImpl.java b/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/implementation/DatabaseInviteFollowerResultImpl.java new file mode 100644 index 000000000000..d789f4a6c25b --- /dev/null +++ b/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/implementation/DatabaseInviteFollowerResultImpl.java @@ -0,0 +1,32 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.kusto.implementation; + +import com.azure.resourcemanager.kusto.fluent.models.DatabaseInviteFollowerResultInner; +import com.azure.resourcemanager.kusto.models.DatabaseInviteFollowerResult; + +public final class DatabaseInviteFollowerResultImpl implements DatabaseInviteFollowerResult { + private DatabaseInviteFollowerResultInner innerObject; + + private final com.azure.resourcemanager.kusto.KustoManager serviceManager; + + DatabaseInviteFollowerResultImpl( + DatabaseInviteFollowerResultInner innerObject, com.azure.resourcemanager.kusto.KustoManager serviceManager) { + this.innerObject = innerObject; + this.serviceManager = serviceManager; + } + + public String generatedInvitation() { + return this.innerModel().generatedInvitation(); + } + + public DatabaseInviteFollowerResultInner innerModel() { + return this.innerObject; + } + + private com.azure.resourcemanager.kusto.KustoManager manager() { + return this.serviceManager; + } +} diff --git a/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/implementation/DatabaseOperationsClientImpl.java b/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/implementation/DatabaseOperationsClientImpl.java new file mode 100644 index 000000000000..9765ddc8492f --- /dev/null +++ b/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/implementation/DatabaseOperationsClientImpl.java @@ -0,0 +1,259 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.kusto.implementation; + +import com.azure.core.annotation.BodyParam; +import com.azure.core.annotation.ExpectedResponses; +import com.azure.core.annotation.HeaderParam; +import com.azure.core.annotation.Headers; +import com.azure.core.annotation.Host; +import com.azure.core.annotation.HostParam; +import com.azure.core.annotation.PathParam; +import com.azure.core.annotation.Post; +import com.azure.core.annotation.QueryParam; +import com.azure.core.annotation.ReturnType; +import com.azure.core.annotation.ServiceInterface; +import com.azure.core.annotation.ServiceMethod; +import com.azure.core.annotation.UnexpectedResponseExceptionType; +import com.azure.core.http.rest.Response; +import com.azure.core.http.rest.RestProxy; +import com.azure.core.management.exception.ManagementException; +import com.azure.core.util.Context; +import com.azure.core.util.FluxUtil; +import com.azure.resourcemanager.kusto.fluent.DatabaseOperationsClient; +import com.azure.resourcemanager.kusto.fluent.models.DatabaseInviteFollowerResultInner; +import com.azure.resourcemanager.kusto.models.DatabaseInviteFollowerRequest; +import reactor.core.publisher.Mono; + +/** An instance of this class provides access to all the operations defined in DatabaseOperationsClient. */ +public final class DatabaseOperationsClientImpl implements DatabaseOperationsClient { + /** The proxy service used to perform REST calls. */ + private final DatabaseOperationsService service; + + /** The service client containing this operation class. */ + private final KustoManagementClientImpl client; + + /** + * Initializes an instance of DatabaseOperationsClientImpl. + * + * @param client the instance of the service client containing this operation class. + */ + DatabaseOperationsClientImpl(KustoManagementClientImpl client) { + this.service = + RestProxy.create(DatabaseOperationsService.class, client.getHttpPipeline(), client.getSerializerAdapter()); + this.client = client; + } + + /** + * The interface defining all the services for KustoManagementClientDatabaseOperations to be used by the proxy + * service to perform REST calls. + */ + @Host("{$host}") + @ServiceInterface(name = "KustoManagementClien") + public interface DatabaseOperationsService { + @Headers({"Content-Type: application/json"}) + @Post( + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}/databases/{databaseName}/inviteFollower") + @ExpectedResponses({200}) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> inviteFollower( + @HostParam("$host") String endpoint, + @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("clusterName") String clusterName, + @PathParam("databaseName") String databaseName, + @QueryParam("api-version") String apiVersion, + @BodyParam("application/json") DatabaseInviteFollowerRequest parameters, + @HeaderParam("Accept") String accept, + Context context); + } + + /** + * Generates an invitation token that allows attaching a follower database to this database. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the Kusto cluster. + * @param databaseName The name of the database in the Kusto cluster. + * @param parameters The follower invitation request parameters. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the result returned from a follower invitation generation request along with {@link Response} on + * successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> inviteFollowerWithResponseAsync( + String resourceGroupName, String clusterName, String databaseName, DatabaseInviteFollowerRequest parameters) { + if (this.client.getEndpoint() == null) { + return Mono + .error( + new IllegalArgumentException( + "Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono + .error( + new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (clusterName == null) { + return Mono.error(new IllegalArgumentException("Parameter clusterName is required and cannot be null.")); + } + if (databaseName == null) { + return Mono.error(new IllegalArgumentException("Parameter databaseName is required and cannot be null.")); + } + if (parameters == null) { + return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); + } else { + parameters.validate(); + } + final String accept = "application/json"; + return FluxUtil + .withContext( + context -> + service + .inviteFollower( + this.client.getEndpoint(), + this.client.getSubscriptionId(), + resourceGroupName, + clusterName, + databaseName, + this.client.getApiVersion(), + parameters, + accept, + context)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Generates an invitation token that allows attaching a follower database to this database. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the Kusto cluster. + * @param databaseName The name of the database in the Kusto cluster. + * @param parameters The follower invitation request parameters. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the result returned from a follower invitation generation request along with {@link Response} on + * successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> inviteFollowerWithResponseAsync( + String resourceGroupName, + String clusterName, + String databaseName, + DatabaseInviteFollowerRequest parameters, + Context context) { + if (this.client.getEndpoint() == null) { + return Mono + .error( + new IllegalArgumentException( + "Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono + .error( + new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (clusterName == null) { + return Mono.error(new IllegalArgumentException("Parameter clusterName is required and cannot be null.")); + } + if (databaseName == null) { + return Mono.error(new IllegalArgumentException("Parameter databaseName is required and cannot be null.")); + } + if (parameters == null) { + return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); + } else { + parameters.validate(); + } + final String accept = "application/json"; + context = this.client.mergeContext(context); + return service + .inviteFollower( + this.client.getEndpoint(), + this.client.getSubscriptionId(), + resourceGroupName, + clusterName, + databaseName, + this.client.getApiVersion(), + parameters, + accept, + context); + } + + /** + * Generates an invitation token that allows attaching a follower database to this database. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the Kusto cluster. + * @param databaseName The name of the database in the Kusto cluster. + * @param parameters The follower invitation request parameters. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the result returned from a follower invitation generation request on successful completion of {@link + * Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono inviteFollowerAsync( + String resourceGroupName, String clusterName, String databaseName, DatabaseInviteFollowerRequest parameters) { + return inviteFollowerWithResponseAsync(resourceGroupName, clusterName, databaseName, parameters) + .flatMap(res -> Mono.justOrEmpty(res.getValue())); + } + + /** + * Generates an invitation token that allows attaching a follower database to this database. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the Kusto cluster. + * @param databaseName The name of the database in the Kusto cluster. + * @param parameters The follower invitation request parameters. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the result returned from a follower invitation generation request along with {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Response inviteFollowerWithResponse( + String resourceGroupName, + String clusterName, + String databaseName, + DatabaseInviteFollowerRequest parameters, + Context context) { + return inviteFollowerWithResponseAsync(resourceGroupName, clusterName, databaseName, parameters, context) + .block(); + } + + /** + * Generates an invitation token that allows attaching a follower database to this database. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the Kusto cluster. + * @param databaseName The name of the database in the Kusto cluster. + * @param parameters The follower invitation request parameters. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the result returned from a follower invitation generation request. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public DatabaseInviteFollowerResultInner inviteFollower( + String resourceGroupName, String clusterName, String databaseName, DatabaseInviteFollowerRequest parameters) { + return inviteFollowerWithResponse(resourceGroupName, clusterName, databaseName, parameters, Context.NONE) + .getValue(); + } +} diff --git a/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/implementation/DatabaseOperationsImpl.java b/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/implementation/DatabaseOperationsImpl.java new file mode 100644 index 000000000000..690b02e60aae --- /dev/null +++ b/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/implementation/DatabaseOperationsImpl.java @@ -0,0 +1,69 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.kusto.implementation; + +import com.azure.core.http.rest.Response; +import com.azure.core.http.rest.SimpleResponse; +import com.azure.core.util.Context; +import com.azure.core.util.logging.ClientLogger; +import com.azure.resourcemanager.kusto.fluent.DatabaseOperationsClient; +import com.azure.resourcemanager.kusto.fluent.models.DatabaseInviteFollowerResultInner; +import com.azure.resourcemanager.kusto.models.DatabaseInviteFollowerRequest; +import com.azure.resourcemanager.kusto.models.DatabaseInviteFollowerResult; +import com.azure.resourcemanager.kusto.models.DatabaseOperations; + +public final class DatabaseOperationsImpl implements DatabaseOperations { + private static final ClientLogger LOGGER = new ClientLogger(DatabaseOperationsImpl.class); + + private final DatabaseOperationsClient innerClient; + + private final com.azure.resourcemanager.kusto.KustoManager serviceManager; + + public DatabaseOperationsImpl( + DatabaseOperationsClient innerClient, com.azure.resourcemanager.kusto.KustoManager serviceManager) { + this.innerClient = innerClient; + this.serviceManager = serviceManager; + } + + public Response inviteFollowerWithResponse( + String resourceGroupName, + String clusterName, + String databaseName, + DatabaseInviteFollowerRequest parameters, + Context context) { + Response inner = + this + .serviceClient() + .inviteFollowerWithResponse(resourceGroupName, clusterName, databaseName, parameters, context); + if (inner != null) { + return new SimpleResponse<>( + inner.getRequest(), + inner.getStatusCode(), + inner.getHeaders(), + new DatabaseInviteFollowerResultImpl(inner.getValue(), this.manager())); + } else { + return null; + } + } + + public DatabaseInviteFollowerResult inviteFollower( + String resourceGroupName, String clusterName, String databaseName, DatabaseInviteFollowerRequest parameters) { + DatabaseInviteFollowerResultInner inner = + this.serviceClient().inviteFollower(resourceGroupName, clusterName, databaseName, parameters); + if (inner != null) { + return new DatabaseInviteFollowerResultImpl(inner, this.manager()); + } else { + return null; + } + } + + private DatabaseOperationsClient serviceClient() { + return this.innerClient; + } + + private com.azure.resourcemanager.kusto.KustoManager manager() { + return this.serviceManager; + } +} diff --git a/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/implementation/DatabasePrincipalAssignmentsClientImpl.java b/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/implementation/DatabasePrincipalAssignmentsClientImpl.java index 7be072838623..431fcf3bff62 100644 --- a/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/implementation/DatabasePrincipalAssignmentsClientImpl.java +++ b/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/implementation/DatabasePrincipalAssignmentsClientImpl.java @@ -71,8 +71,7 @@ public final class DatabasePrincipalAssignmentsClientImpl implements DatabasePri public interface DatabasePrincipalAssignmentsService { @Headers({"Content-Type: application/json"}) @Post( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters" - + "/{clusterName}/databases/{databaseName}/checkPrincipalAssignmentNameAvailability") + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}/databases/{databaseName}/checkPrincipalAssignmentNameAvailability") @ExpectedResponses({200}) @UnexpectedResponseExceptionType(ManagementException.class) Mono> checkNameAvailability( @@ -88,8 +87,7 @@ Mono> checkNameAvailability( @Headers({"Content-Type: application/json"}) @Get( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters" - + "/{clusterName}/databases/{databaseName}/principalAssignments/{principalAssignmentName}") + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}/databases/{databaseName}/principalAssignments/{principalAssignmentName}") @ExpectedResponses({200}) @UnexpectedResponseExceptionType(ManagementException.class) Mono> get( @@ -105,8 +103,7 @@ Mono> get( @Headers({"Content-Type: application/json"}) @Put( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters" - + "/{clusterName}/databases/{databaseName}/principalAssignments/{principalAssignmentName}") + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}/databases/{databaseName}/principalAssignments/{principalAssignmentName}") @ExpectedResponses({200, 201}) @UnexpectedResponseExceptionType(ManagementException.class) Mono>> createOrUpdate( @@ -123,8 +120,7 @@ Mono>> createOrUpdate( @Headers({"Content-Type: application/json"}) @Delete( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters" - + "/{clusterName}/databases/{databaseName}/principalAssignments/{principalAssignmentName}") + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}/databases/{databaseName}/principalAssignments/{principalAssignmentName}") @ExpectedResponses({200, 202, 204}) @UnexpectedResponseExceptionType(ManagementException.class) Mono>> delete( @@ -140,8 +136,7 @@ Mono>> delete( @Headers({"Content-Type: application/json"}) @Get( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters" - + "/{clusterName}/databases/{databaseName}/principalAssignments") + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}/databases/{databaseName}/principalAssignments") @ExpectedResponses({200}) @UnexpectedResponseExceptionType(ManagementException.class) Mono> list( @@ -158,7 +153,7 @@ Mono> list( /** * Checks that the database principal assignment is valid and is not already in use. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param databaseName The name of the database in the Kusto cluster. * @param principalAssignmentName The name of the resource. @@ -224,7 +219,7 @@ private Mono> checkNameAvailabilityWithResponseAs /** * Checks that the database principal assignment is valid and is not already in use. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param databaseName The name of the database in the Kusto cluster. * @param principalAssignmentName The name of the resource. @@ -289,7 +284,7 @@ private Mono> checkNameAvailabilityWithResponseAs /** * Checks that the database principal assignment is valid and is not already in use. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param databaseName The name of the database in the Kusto cluster. * @param principalAssignmentName The name of the resource. @@ -312,7 +307,7 @@ private Mono checkNameAvailabilityAsync( /** * Checks that the database principal assignment is valid and is not already in use. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param databaseName The name of the database in the Kusto cluster. * @param principalAssignmentName The name of the resource. @@ -337,7 +332,7 @@ public Response checkNameAvailabilityWithResponse( /** * Checks that the database principal assignment is valid and is not already in use. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param databaseName The name of the database in the Kusto cluster. * @param principalAssignmentName The name of the resource. @@ -360,7 +355,7 @@ public CheckNameResultInner checkNameAvailability( /** * Gets a Kusto cluster database principalAssignment. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param databaseName The name of the database in the Kusto cluster. * @param principalAssignmentName The name of the Kusto principalAssignment. @@ -421,7 +416,7 @@ private Mono> getWithResponseAsync( /** * Gets a Kusto cluster database principalAssignment. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param databaseName The name of the database in the Kusto cluster. * @param principalAssignmentName The name of the Kusto principalAssignment. @@ -484,7 +479,7 @@ private Mono> getWithResponseAsync( /** * Gets a Kusto cluster database principalAssignment. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param databaseName The name of the database in the Kusto cluster. * @param principalAssignmentName The name of the Kusto principalAssignment. @@ -503,7 +498,7 @@ private Mono getAsync( /** * Gets a Kusto cluster database principalAssignment. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param databaseName The name of the database in the Kusto cluster. * @param principalAssignmentName The name of the Kusto principalAssignment. @@ -527,7 +522,7 @@ public Response getWithResponse( /** * Gets a Kusto cluster database principalAssignment. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param databaseName The name of the database in the Kusto cluster. * @param principalAssignmentName The name of the Kusto principalAssignment. @@ -546,7 +541,7 @@ public DatabasePrincipalAssignmentInner get( /** * Creates a Kusto cluster database principalAssignment. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param databaseName The name of the database in the Kusto cluster. * @param principalAssignmentName The name of the Kusto principalAssignment. @@ -618,7 +613,7 @@ private Mono>> createOrUpdateWithResponseAsync( /** * Creates a Kusto cluster database principalAssignment. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param databaseName The name of the database in the Kusto cluster. * @param principalAssignmentName The name of the Kusto principalAssignment. @@ -689,7 +684,7 @@ private Mono>> createOrUpdateWithResponseAsync( /** * Creates a Kusto cluster database principalAssignment. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param databaseName The name of the database in the Kusto cluster. * @param principalAssignmentName The name of the Kusto principalAssignment. @@ -723,7 +718,7 @@ private Mono>> createOrUpdateWithResponseAsync( /** * Creates a Kusto cluster database principalAssignment. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param databaseName The name of the database in the Kusto cluster. * @param principalAssignmentName The name of the Kusto principalAssignment. @@ -760,7 +755,7 @@ private Mono>> createOrUpdateWithResponseAsync( /** * Creates a Kusto cluster database principalAssignment. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param databaseName The name of the database in the Kusto cluster. * @param principalAssignmentName The name of the Kusto principalAssignment. @@ -786,7 +781,7 @@ private Mono>> createOrUpdateWithResponseAsync( /** * Creates a Kusto cluster database principalAssignment. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param databaseName The name of the database in the Kusto cluster. * @param principalAssignmentName The name of the Kusto principalAssignment. @@ -815,7 +810,7 @@ private Mono>> createOrUpdateWithResponseAsync( /** * Creates a Kusto cluster database principalAssignment. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param databaseName The name of the database in the Kusto cluster. * @param principalAssignmentName The name of the Kusto principalAssignment. @@ -841,7 +836,7 @@ private Mono createOrUpdateAsync( /** * Creates a Kusto cluster database principalAssignment. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param databaseName The name of the database in the Kusto cluster. * @param principalAssignmentName The name of the Kusto principalAssignment. @@ -869,7 +864,7 @@ private Mono createOrUpdateAsync( /** * Creates a Kusto cluster database principalAssignment. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param databaseName The name of the database in the Kusto cluster. * @param principalAssignmentName The name of the Kusto principalAssignment. @@ -893,7 +888,7 @@ public DatabasePrincipalAssignmentInner createOrUpdate( /** * Creates a Kusto cluster database principalAssignment. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param databaseName The name of the database in the Kusto cluster. * @param principalAssignmentName The name of the Kusto principalAssignment. @@ -920,7 +915,7 @@ public DatabasePrincipalAssignmentInner createOrUpdate( /** * Deletes a Kusto principalAssignment. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param databaseName The name of the database in the Kusto cluster. * @param principalAssignmentName The name of the Kusto principalAssignment. @@ -980,7 +975,7 @@ private Mono>> deleteWithResponseAsync( /** * Deletes a Kusto principalAssignment. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param databaseName The name of the database in the Kusto cluster. * @param principalAssignmentName The name of the Kusto principalAssignment. @@ -1042,7 +1037,7 @@ private Mono>> deleteWithResponseAsync( /** * Deletes a Kusto principalAssignment. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param databaseName The name of the database in the Kusto cluster. * @param principalAssignmentName The name of the Kusto principalAssignment. @@ -1065,7 +1060,7 @@ private PollerFlux, Void> beginDeleteAsync( /** * Deletes a Kusto principalAssignment. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param databaseName The name of the database in the Kusto cluster. * @param principalAssignmentName The name of the Kusto principalAssignment. @@ -1093,7 +1088,7 @@ private PollerFlux, Void> beginDeleteAsync( /** * Deletes a Kusto principalAssignment. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param databaseName The name of the database in the Kusto cluster. * @param principalAssignmentName The name of the Kusto principalAssignment. @@ -1113,7 +1108,7 @@ public SyncPoller, Void> beginDelete( /** * Deletes a Kusto principalAssignment. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param databaseName The name of the database in the Kusto cluster. * @param principalAssignmentName The name of the Kusto principalAssignment. @@ -1138,7 +1133,7 @@ public SyncPoller, Void> beginDelete( /** * Deletes a Kusto principalAssignment. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param databaseName The name of the database in the Kusto cluster. * @param principalAssignmentName The name of the Kusto principalAssignment. @@ -1158,7 +1153,7 @@ private Mono deleteAsync( /** * Deletes a Kusto principalAssignment. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param databaseName The name of the database in the Kusto cluster. * @param principalAssignmentName The name of the Kusto principalAssignment. @@ -1183,7 +1178,7 @@ private Mono deleteAsync( /** * Deletes a Kusto principalAssignment. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param databaseName The name of the database in the Kusto cluster. * @param principalAssignmentName The name of the Kusto principalAssignment. @@ -1200,7 +1195,7 @@ public void delete( /** * Deletes a Kusto principalAssignment. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param databaseName The name of the database in the Kusto cluster. * @param principalAssignmentName The name of the Kusto principalAssignment. @@ -1222,7 +1217,7 @@ public void delete( /** * Lists all Kusto cluster database principalAssignments. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param databaseName The name of the database in the Kusto cluster. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1280,7 +1275,7 @@ private Mono> listSinglePageAsyn /** * Lists all Kusto cluster database principalAssignments. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param databaseName The name of the database in the Kusto cluster. * @param context The context to associate with this operation. @@ -1336,7 +1331,7 @@ private Mono> listSinglePageAsyn /** * Lists all Kusto cluster database principalAssignments. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param databaseName The name of the database in the Kusto cluster. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1354,7 +1349,7 @@ private PagedFlux listAsync( /** * Lists all Kusto cluster database principalAssignments. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param databaseName The name of the database in the Kusto cluster. * @param context The context to associate with this operation. @@ -1373,7 +1368,7 @@ private PagedFlux listAsync( /** * Lists all Kusto cluster database principalAssignments. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param databaseName The name of the database in the Kusto cluster. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1391,7 +1386,7 @@ public PagedIterable list( /** * Lists all Kusto cluster database principalAssignments. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param databaseName The name of the database in the Kusto cluster. * @param context The context to associate with this operation. diff --git a/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/implementation/DatabasesClientImpl.java b/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/implementation/DatabasesClientImpl.java index f8a30397505a..7db191e0212f 100644 --- a/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/implementation/DatabasesClientImpl.java +++ b/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/implementation/DatabasesClientImpl.java @@ -74,8 +74,7 @@ public final class DatabasesClientImpl implements DatabasesClient { public interface DatabasesService { @Headers({"Content-Type: application/json"}) @Post( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters" - + "/{clusterName}/checkNameAvailability") + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}/checkNameAvailability") @ExpectedResponses({200}) @UnexpectedResponseExceptionType(ManagementException.class) Mono> checkNameAvailability( @@ -90,8 +89,7 @@ Mono> checkNameAvailability( @Headers({"Content-Type: application/json"}) @Get( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters" - + "/{clusterName}/databases") + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}/databases") @ExpectedResponses({200}) @UnexpectedResponseExceptionType(ManagementException.class) Mono> listByCluster( @@ -100,13 +98,14 @@ Mono> listByCluster( @PathParam("clusterName") String clusterName, @PathParam("subscriptionId") String subscriptionId, @QueryParam("api-version") String apiVersion, + @QueryParam("$top") Integer top, + @QueryParam("$skiptoken") String skiptoken, @HeaderParam("Accept") String accept, Context context); @Headers({"Content-Type: application/json"}) @Get( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters" - + "/{clusterName}/databases/{databaseName}") + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}/databases/{databaseName}") @ExpectedResponses({200}) @UnexpectedResponseExceptionType(ManagementException.class) Mono> get( @@ -121,8 +120,7 @@ Mono> get( @Headers({"Content-Type: application/json"}) @Put( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters" - + "/{clusterName}/databases/{databaseName}") + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}/databases/{databaseName}") @ExpectedResponses({200, 201, 202}) @UnexpectedResponseExceptionType(ManagementException.class) Mono>> createOrUpdate( @@ -139,8 +137,7 @@ Mono>> createOrUpdate( @Headers({"Content-Type: application/json"}) @Patch( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters" - + "/{clusterName}/databases/{databaseName}") + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}/databases/{databaseName}") @ExpectedResponses({200, 201, 202}) @UnexpectedResponseExceptionType(ManagementException.class) Mono>> update( @@ -157,8 +154,7 @@ Mono>> update( @Headers({"Content-Type: application/json"}) @Delete( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters" - + "/{clusterName}/databases/{databaseName}") + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}/databases/{databaseName}") @ExpectedResponses({200, 202, 204}) @UnexpectedResponseExceptionType(ManagementException.class) Mono>> delete( @@ -173,8 +169,7 @@ Mono>> delete( @Headers({"Content-Type: application/json"}) @Post( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters" - + "/{clusterName}/databases/{databaseName}/listPrincipals") + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}/databases/{databaseName}/listPrincipals") @ExpectedResponses({200}) @UnexpectedResponseExceptionType(ManagementException.class) Mono> listPrincipals( @@ -189,8 +184,7 @@ Mono> listPrincipals( @Headers({"Content-Type: application/json"}) @Post( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters" - + "/{clusterName}/databases/{databaseName}/addPrincipals") + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}/databases/{databaseName}/addPrincipals") @ExpectedResponses({200}) @UnexpectedResponseExceptionType(ManagementException.class) Mono> addPrincipals( @@ -206,8 +200,7 @@ Mono> addPrincipals( @Headers({"Content-Type: application/json"}) @Post( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters" - + "/{clusterName}/databases/{databaseName}/removePrincipals") + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}/databases/{databaseName}/removePrincipals") @ExpectedResponses({200}) @UnexpectedResponseExceptionType(ManagementException.class) Mono> removePrincipals( @@ -220,12 +213,22 @@ Mono> removePrincipals( @BodyParam("application/json") DatabasePrincipalListRequest databasePrincipalsToRemove, @HeaderParam("Accept") String accept, Context context); + + @Headers({"Content-Type: application/json"}) + @Get("{nextLink}") + @ExpectedResponses({200}) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> listByClusterNext( + @PathParam(value = "nextLink", encoded = true) String nextLink, + @HostParam("$host") String endpoint, + @HeaderParam("Accept") String accept, + Context context); } /** * Checks that the databases resource name is valid and is not already in use. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param resourceName The name of the resource. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -281,7 +284,7 @@ private Mono> checkNameAvailabilityWithResponseAs /** * Checks that the databases resource name is valid and is not already in use. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param resourceName The name of the resource. * @param context The context to associate with this operation. @@ -335,7 +338,7 @@ private Mono> checkNameAvailabilityWithResponseAs /** * Checks that the databases resource name is valid and is not already in use. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param resourceName The name of the resource. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -353,7 +356,7 @@ private Mono checkNameAvailabilityAsync( /** * Checks that the databases resource name is valid and is not already in use. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param resourceName The name of the resource. * @param context The context to associate with this operation. @@ -371,7 +374,7 @@ public Response checkNameAvailabilityWithResponse( /** * Checks that the databases resource name is valid and is not already in use. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param resourceName The name of the resource. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -388,8 +391,12 @@ public CheckNameResultInner checkNameAvailability( /** * Returns the list of databases of the given Kusto cluster. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. + * @param top limit the number of results. + * @param skiptoken Skiptoken is only used if a previous operation returned a partial result. If a previous response + * contains a nextLink element, the value of the nextLink element will include a skiptoken parameter that + * specifies a starting point to use for subsequent calls. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -398,7 +405,7 @@ public CheckNameResultInner checkNameAvailability( */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listByClusterSinglePageAsync( - String resourceGroupName, String clusterName) { + String resourceGroupName, String clusterName, Integer top, String skiptoken) { if (this.client.getEndpoint() == null) { return Mono .error( @@ -429,20 +436,31 @@ private Mono> listByClusterSinglePageAsync( clusterName, this.client.getSubscriptionId(), this.client.getApiVersion(), + top, + skiptoken, accept, context)) .>map( res -> new PagedResponseBase<>( - res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), null, null)) + res.getRequest(), + res.getStatusCode(), + res.getHeaders(), + res.getValue().value(), + res.getValue().nextLink(), + null)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Returns the list of databases of the given Kusto cluster. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. + * @param top limit the number of results. + * @param skiptoken Skiptoken is only used if a previous operation returned a partial result. If a previous response + * contains a nextLink element, the value of the nextLink element will include a skiptoken parameter that + * specifies a starting point to use for subsequent calls. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -452,7 +470,7 @@ private Mono> listByClusterSinglePageAsync( */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listByClusterSinglePageAsync( - String resourceGroupName, String clusterName, Context context) { + String resourceGroupName, String clusterName, Integer top, String skiptoken, Context context) { if (this.client.getEndpoint() == null) { return Mono .error( @@ -481,18 +499,47 @@ private Mono> listByClusterSinglePageAsync( clusterName, this.client.getSubscriptionId(), this.client.getApiVersion(), + top, + skiptoken, accept, context) .map( res -> new PagedResponseBase<>( - res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), null, null)); + res.getRequest(), + res.getStatusCode(), + res.getHeaders(), + res.getValue().value(), + res.getValue().nextLink(), + null)); } /** * Returns the list of databases of the given Kusto cluster. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the Kusto cluster. + * @param top limit the number of results. + * @param skiptoken Skiptoken is only used if a previous operation returned a partial result. If a previous response + * contains a nextLink element, the value of the nextLink element will include a skiptoken parameter that + * specifies a starting point to use for subsequent calls. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the list Kusto databases operation response as paginated response with {@link PagedFlux}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + private PagedFlux listByClusterAsync( + String resourceGroupName, String clusterName, Integer top, String skiptoken) { + return new PagedFlux<>( + () -> listByClusterSinglePageAsync(resourceGroupName, clusterName, top, skiptoken), + nextLink -> listByClusterNextSinglePageAsync(nextLink)); + } + + /** + * Returns the list of databases of the given Kusto cluster. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -501,14 +548,22 @@ private Mono> listByClusterSinglePageAsync( */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listByClusterAsync(String resourceGroupName, String clusterName) { - return new PagedFlux<>(() -> listByClusterSinglePageAsync(resourceGroupName, clusterName)); + final Integer top = null; + final String skiptoken = null; + return new PagedFlux<>( + () -> listByClusterSinglePageAsync(resourceGroupName, clusterName, top, skiptoken), + nextLink -> listByClusterNextSinglePageAsync(nextLink)); } /** * Returns the list of databases of the given Kusto cluster. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. + * @param top limit the number of results. + * @param skiptoken Skiptoken is only used if a previous operation returned a partial result. If a previous response + * contains a nextLink element, the value of the nextLink element will include a skiptoken parameter that + * specifies a starting point to use for subsequent calls. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -516,14 +571,17 @@ private PagedFlux listByClusterAsync(String resourceGroupName, St * @return the list Kusto databases operation response as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listByClusterAsync(String resourceGroupName, String clusterName, Context context) { - return new PagedFlux<>(() -> listByClusterSinglePageAsync(resourceGroupName, clusterName, context)); + private PagedFlux listByClusterAsync( + String resourceGroupName, String clusterName, Integer top, String skiptoken, Context context) { + return new PagedFlux<>( + () -> listByClusterSinglePageAsync(resourceGroupName, clusterName, top, skiptoken, context), + nextLink -> listByClusterNextSinglePageAsync(nextLink, context)); } /** * Returns the list of databases of the given Kusto cluster. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -532,14 +590,20 @@ private PagedFlux listByClusterAsync(String resourceGroupName, St */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable listByCluster(String resourceGroupName, String clusterName) { - return new PagedIterable<>(listByClusterAsync(resourceGroupName, clusterName)); + final Integer top = null; + final String skiptoken = null; + return new PagedIterable<>(listByClusterAsync(resourceGroupName, clusterName, top, skiptoken)); } /** * Returns the list of databases of the given Kusto cluster. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. + * @param top limit the number of results. + * @param skiptoken Skiptoken is only used if a previous operation returned a partial result. If a previous response + * contains a nextLink element, the value of the nextLink element will include a skiptoken parameter that + * specifies a starting point to use for subsequent calls. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -547,14 +611,15 @@ public PagedIterable listByCluster(String resourceGroupName, Stri * @return the list Kusto databases operation response as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable listByCluster(String resourceGroupName, String clusterName, Context context) { - return new PagedIterable<>(listByClusterAsync(resourceGroupName, clusterName, context)); + public PagedIterable listByCluster( + String resourceGroupName, String clusterName, Integer top, String skiptoken, Context context) { + return new PagedIterable<>(listByClusterAsync(resourceGroupName, clusterName, top, skiptoken, context)); } /** * Returns a database. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param databaseName The name of the database in the Kusto cluster. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -607,7 +672,7 @@ private Mono> getWithResponseAsync( /** * Returns a database. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param databaseName The name of the database in the Kusto cluster. * @param context The context to associate with this operation. @@ -658,7 +723,7 @@ private Mono> getWithResponseAsync( /** * Returns a database. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param databaseName The name of the database in the Kusto cluster. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -675,7 +740,7 @@ private Mono getAsync(String resourceGroupName, String clusterNam /** * Returns a database. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param databaseName The name of the database in the Kusto cluster. * @param context The context to associate with this operation. @@ -693,7 +758,7 @@ public Response getWithResponse( /** * Returns a database. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param databaseName The name of the database in the Kusto cluster. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -709,7 +774,7 @@ public DatabaseInner get(String resourceGroupName, String clusterName, String da /** * Creates or updates a database. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param databaseName The name of the database in the Kusto cluster. * @param parameters The database parameters supplied to the CreateOrUpdate operation. @@ -776,7 +841,7 @@ private Mono>> createOrUpdateWithResponseAsync( /** * Creates or updates a database. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param databaseName The name of the database in the Kusto cluster. * @param parameters The database parameters supplied to the CreateOrUpdate operation. @@ -842,7 +907,7 @@ private Mono>> createOrUpdateWithResponseAsync( /** * Creates or updates a database. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param databaseName The name of the database in the Kusto cluster. * @param parameters The database parameters supplied to the CreateOrUpdate operation. @@ -875,7 +940,7 @@ private PollerFlux, DatabaseInner> beginCreateOrUpdate /** * Creates or updates a database. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param databaseName The name of the database in the Kusto cluster. * @param parameters The database parameters supplied to the CreateOrUpdate operation. @@ -903,7 +968,7 @@ private PollerFlux, DatabaseInner> beginCreateOrUpdate /** * Creates or updates a database. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param databaseName The name of the database in the Kusto cluster. * @param parameters The database parameters supplied to the CreateOrUpdate operation. @@ -936,7 +1001,7 @@ private PollerFlux, DatabaseInner> beginCreateOrUpdate /** * Creates or updates a database. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param databaseName The name of the database in the Kusto cluster. * @param parameters The database parameters supplied to the CreateOrUpdate operation. @@ -957,7 +1022,7 @@ public SyncPoller, DatabaseInner> beginCreateOrUpdate( /** * Creates or updates a database. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param databaseName The name of the database in the Kusto cluster. * @param parameters The database parameters supplied to the CreateOrUpdate operation. @@ -985,7 +1050,7 @@ public SyncPoller, DatabaseInner> beginCreateOrUpdate( /** * Creates or updates a database. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param databaseName The name of the database in the Kusto cluster. * @param parameters The database parameters supplied to the CreateOrUpdate operation. @@ -1011,7 +1076,7 @@ private Mono createOrUpdateAsync( /** * Creates or updates a database. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param databaseName The name of the database in the Kusto cluster. * @param parameters The database parameters supplied to the CreateOrUpdate operation. @@ -1032,7 +1097,7 @@ private Mono createOrUpdateAsync( /** * Creates or updates a database. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param databaseName The name of the database in the Kusto cluster. * @param parameters The database parameters supplied to the CreateOrUpdate operation. @@ -1060,7 +1125,7 @@ private Mono createOrUpdateAsync( /** * Creates or updates a database. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param databaseName The name of the database in the Kusto cluster. * @param parameters The database parameters supplied to the CreateOrUpdate operation. @@ -1079,7 +1144,7 @@ public DatabaseInner createOrUpdate( /** * Creates or updates a database. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param databaseName The name of the database in the Kusto cluster. * @param parameters The database parameters supplied to the CreateOrUpdate operation. @@ -1106,7 +1171,7 @@ public DatabaseInner createOrUpdate( /** * Updates a database. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param databaseName The name of the database in the Kusto cluster. * @param parameters The database parameters supplied to the Update operation. @@ -1173,7 +1238,7 @@ private Mono>> updateWithResponseAsync( /** * Updates a database. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param databaseName The name of the database in the Kusto cluster. * @param parameters The database parameters supplied to the Update operation. @@ -1239,7 +1304,7 @@ private Mono>> updateWithResponseAsync( /** * Updates a database. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param databaseName The name of the database in the Kusto cluster. * @param parameters The database parameters supplied to the Update operation. @@ -1272,7 +1337,7 @@ private PollerFlux, DatabaseInner> beginUpdateAsync( /** * Updates a database. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param databaseName The name of the database in the Kusto cluster. * @param parameters The database parameters supplied to the Update operation. @@ -1300,7 +1365,7 @@ private PollerFlux, DatabaseInner> beginUpdateAsync( /** * Updates a database. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param databaseName The name of the database in the Kusto cluster. * @param parameters The database parameters supplied to the Update operation. @@ -1332,7 +1397,7 @@ private PollerFlux, DatabaseInner> beginUpdateAsync( /** * Updates a database. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param databaseName The name of the database in the Kusto cluster. * @param parameters The database parameters supplied to the Update operation. @@ -1353,7 +1418,7 @@ public SyncPoller, DatabaseInner> beginUpdate( /** * Updates a database. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param databaseName The name of the database in the Kusto cluster. * @param parameters The database parameters supplied to the Update operation. @@ -1381,7 +1446,7 @@ public SyncPoller, DatabaseInner> beginUpdate( /** * Updates a database. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param databaseName The name of the database in the Kusto cluster. * @param parameters The database parameters supplied to the Update operation. @@ -1407,7 +1472,7 @@ private Mono updateAsync( /** * Updates a database. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param databaseName The name of the database in the Kusto cluster. * @param parameters The database parameters supplied to the Update operation. @@ -1428,7 +1493,7 @@ private Mono updateAsync( /** * Updates a database. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param databaseName The name of the database in the Kusto cluster. * @param parameters The database parameters supplied to the Update operation. @@ -1456,7 +1521,7 @@ private Mono updateAsync( /** * Updates a database. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param databaseName The name of the database in the Kusto cluster. * @param parameters The database parameters supplied to the Update operation. @@ -1475,7 +1540,7 @@ public DatabaseInner update( /** * Updates a database. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param databaseName The name of the database in the Kusto cluster. * @param parameters The database parameters supplied to the Update operation. @@ -1501,7 +1566,7 @@ public DatabaseInner update( /** * Deletes the database with the given name. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param databaseName The name of the database in the Kusto cluster. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1554,7 +1619,7 @@ private Mono>> deleteWithResponseAsync( /** * Deletes the database with the given name. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param databaseName The name of the database in the Kusto cluster. * @param context The context to associate with this operation. @@ -1605,7 +1670,7 @@ private Mono>> deleteWithResponseAsync( /** * Deletes the database with the given name. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param databaseName The name of the database in the Kusto cluster. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1626,7 +1691,7 @@ private PollerFlux, Void> beginDeleteAsync( /** * Deletes the database with the given name. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param databaseName The name of the database in the Kusto cluster. * @param context The context to associate with this operation. @@ -1649,7 +1714,7 @@ private PollerFlux, Void> beginDeleteAsync( /** * Deletes the database with the given name. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param databaseName The name of the database in the Kusto cluster. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1666,7 +1731,7 @@ public SyncPoller, Void> beginDelete( /** * Deletes the database with the given name. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param databaseName The name of the database in the Kusto cluster. * @param context The context to associate with this operation. @@ -1684,7 +1749,7 @@ public SyncPoller, Void> beginDelete( /** * Deletes the database with the given name. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param databaseName The name of the database in the Kusto cluster. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1702,7 +1767,7 @@ private Mono deleteAsync(String resourceGroupName, String clusterName, Str /** * Deletes the database with the given name. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param databaseName The name of the database in the Kusto cluster. * @param context The context to associate with this operation. @@ -1721,7 +1786,7 @@ private Mono deleteAsync(String resourceGroupName, String clusterName, Str /** * Deletes the database with the given name. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param databaseName The name of the database in the Kusto cluster. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1736,7 +1801,7 @@ public void delete(String resourceGroupName, String clusterName, String database /** * Deletes the database with the given name. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param databaseName The name of the database in the Kusto cluster. * @param context The context to associate with this operation. @@ -1752,7 +1817,7 @@ public void delete(String resourceGroupName, String clusterName, String database /** * Returns a list of database principals of the given Kusto cluster and database. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param databaseName The name of the database in the Kusto cluster. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1810,7 +1875,7 @@ private Mono> listPrincipalsSinglePageAsyn /** * Returns a list of database principals of the given Kusto cluster and database. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param databaseName The name of the database in the Kusto cluster. * @param context The context to associate with this operation. @@ -1866,7 +1931,7 @@ private Mono> listPrincipalsSinglePageAsyn /** * Returns a list of database principals of the given Kusto cluster and database. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param databaseName The name of the database in the Kusto cluster. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1883,7 +1948,7 @@ private PagedFlux listPrincipalsAsync( /** * Returns a list of database principals of the given Kusto cluster and database. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param databaseName The name of the database in the Kusto cluster. * @param context The context to associate with this operation. @@ -1902,7 +1967,7 @@ private PagedFlux listPrincipalsAsync( /** * Returns a list of database principals of the given Kusto cluster and database. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param databaseName The name of the database in the Kusto cluster. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1919,7 +1984,7 @@ public PagedIterable listPrincipals( /** * Returns a list of database principals of the given Kusto cluster and database. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param databaseName The name of the database in the Kusto cluster. * @param context The context to associate with this operation. @@ -1937,7 +2002,7 @@ public PagedIterable listPrincipals( /** * Add Database principals permissions. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param databaseName The name of the database in the Kusto cluster. * @param databasePrincipalsToAdd List of database principals to add. @@ -2003,7 +2068,7 @@ private Mono> addPrincipalsWithRespon /** * Add Database principals permissions. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param databaseName The name of the database in the Kusto cluster. * @param databasePrincipalsToAdd List of database principals to add. @@ -2068,7 +2133,7 @@ private Mono> addPrincipalsWithRespon /** * Add Database principals permissions. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param databaseName The name of the database in the Kusto cluster. * @param databasePrincipalsToAdd List of database principals to add. @@ -2090,7 +2155,7 @@ private Mono addPrincipalsAsync( /** * Add Database principals permissions. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param databaseName The name of the database in the Kusto cluster. * @param databasePrincipalsToAdd List of database principals to add. @@ -2115,7 +2180,7 @@ public Response addPrincipalsWithResponse( /** * Add Database principals permissions. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param databaseName The name of the database in the Kusto cluster. * @param databasePrincipalsToAdd List of database principals to add. @@ -2138,7 +2203,7 @@ public DatabasePrincipalListResultInner addPrincipals( /** * Remove Database principals permissions. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param databaseName The name of the database in the Kusto cluster. * @param databasePrincipalsToRemove List of database principals to remove. @@ -2205,7 +2270,7 @@ private Mono> removePrincipalsWithRes /** * Remove Database principals permissions. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param databaseName The name of the database in the Kusto cluster. * @param databasePrincipalsToRemove List of database principals to remove. @@ -2271,7 +2336,7 @@ private Mono> removePrincipalsWithRes /** * Remove Database principals permissions. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param databaseName The name of the database in the Kusto cluster. * @param databasePrincipalsToRemove List of database principals to remove. @@ -2294,7 +2359,7 @@ private Mono removePrincipalsAsync( /** * Remove Database principals permissions. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param databaseName The name of the database in the Kusto cluster. * @param databasePrincipalsToRemove List of database principals to remove. @@ -2319,7 +2384,7 @@ public Response removePrincipalsWithResponse( /** * Remove Database principals permissions. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param databaseName The name of the database in the Kusto cluster. * @param databasePrincipalsToRemove List of database principals to remove. @@ -2338,4 +2403,79 @@ public DatabasePrincipalListResultInner removePrincipals( resourceGroupName, clusterName, databaseName, databasePrincipalsToRemove, Context.NONE) .getValue(); } + + /** + * Get the next page of items. + * + * @param nextLink The URL to get the next list of items + *

The nextLink parameter. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the list Kusto databases operation response along with {@link PagedResponse} on successful completion of + * {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> listByClusterNextSinglePageAsync(String nextLink) { + if (nextLink == null) { + return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); + } + if (this.client.getEndpoint() == null) { + return Mono + .error( + new IllegalArgumentException( + "Parameter this.client.getEndpoint() is required and cannot be null.")); + } + final String accept = "application/json"; + return FluxUtil + .withContext(context -> service.listByClusterNext(nextLink, this.client.getEndpoint(), accept, context)) + .>map( + res -> + new PagedResponseBase<>( + res.getRequest(), + res.getStatusCode(), + res.getHeaders(), + res.getValue().value(), + res.getValue().nextLink(), + null)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Get the next page of items. + * + * @param nextLink The URL to get the next list of items + *

The nextLink parameter. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the list Kusto databases operation response along with {@link PagedResponse} on successful completion of + * {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> listByClusterNextSinglePageAsync(String nextLink, Context context) { + if (nextLink == null) { + return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); + } + if (this.client.getEndpoint() == null) { + return Mono + .error( + new IllegalArgumentException( + "Parameter this.client.getEndpoint() is required and cannot be null.")); + } + final String accept = "application/json"; + context = this.client.mergeContext(context); + return service + .listByClusterNext(nextLink, this.client.getEndpoint(), accept, context) + .map( + res -> + new PagedResponseBase<>( + res.getRequest(), + res.getStatusCode(), + res.getHeaders(), + res.getValue().value(), + res.getValue().nextLink(), + null)); + } } diff --git a/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/implementation/DatabasesImpl.java b/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/implementation/DatabasesImpl.java index a139c134441e..fab10fa7bff3 100644 --- a/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/implementation/DatabasesImpl.java +++ b/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/implementation/DatabasesImpl.java @@ -68,9 +68,10 @@ public PagedIterable listByCluster(String resourceGroupName, String cl return Utils.mapPage(inner, inner1 -> new DatabaseImpl(inner1, this.manager())); } - public PagedIterable listByCluster(String resourceGroupName, String clusterName, Context context) { + public PagedIterable listByCluster( + String resourceGroupName, String clusterName, Integer top, String skiptoken, Context context) { PagedIterable inner = - this.serviceClient().listByCluster(resourceGroupName, clusterName, context); + this.serviceClient().listByCluster(resourceGroupName, clusterName, top, skiptoken, context); return Utils.mapPage(inner, inner1 -> new DatabaseImpl(inner1, this.manager())); } diff --git a/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/implementation/KustoManagementClientBuilder.java b/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/implementation/KustoManagementClientBuilder.java index 55ac5ad00735..bef1498f8a7e 100644 --- a/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/implementation/KustoManagementClientBuilder.java +++ b/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/implementation/KustoManagementClientBuilder.java @@ -18,14 +18,12 @@ @ServiceClientBuilder(serviceClients = {KustoManagementClientImpl.class}) public final class KustoManagementClientBuilder { /* - * Gets subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms - * part of the URI for every service call. + * The ID of the target subscription. */ private String subscriptionId; /** - * Sets Gets subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID - * forms part of the URI for every service call. + * Sets The ID of the target subscription. * * @param subscriptionId the subscriptionId value. * @return the KustoManagementClientBuilder. diff --git a/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/implementation/KustoManagementClientImpl.java b/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/implementation/KustoManagementClientImpl.java index eacea1c39bcb..f42508be9a17 100644 --- a/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/implementation/KustoManagementClientImpl.java +++ b/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/implementation/KustoManagementClientImpl.java @@ -26,6 +26,7 @@ import com.azure.resourcemanager.kusto.fluent.ClusterPrincipalAssignmentsClient; import com.azure.resourcemanager.kusto.fluent.ClustersClient; import com.azure.resourcemanager.kusto.fluent.DataConnectionsClient; +import com.azure.resourcemanager.kusto.fluent.DatabaseOperationsClient; import com.azure.resourcemanager.kusto.fluent.DatabasePrincipalAssignmentsClient; import com.azure.resourcemanager.kusto.fluent.DatabasesClient; import com.azure.resourcemanager.kusto.fluent.KustoManagementClient; @@ -49,15 +50,11 @@ /** Initializes a new instance of the KustoManagementClientImpl type. */ @ServiceClient(builder = KustoManagementClientBuilder.class) public final class KustoManagementClientImpl implements KustoManagementClient { - /** - * Gets subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms - * part of the URI for every service call. - */ + /** The ID of the target subscription. */ private final String subscriptionId; /** - * Gets Gets subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID - * forms part of the URI for every service call. + * Gets The ID of the target subscription. * * @return the subscriptionId value. */ @@ -197,6 +194,18 @@ public ManagedPrivateEndpointsClient getManagedPrivateEndpoints() { return this.managedPrivateEndpoints; } + /** The DatabaseOperationsClient object to access its operations. */ + private final DatabaseOperationsClient databaseOperations; + + /** + * Gets the DatabaseOperationsClient object to access its operations. + * + * @return the DatabaseOperationsClient object. + */ + public DatabaseOperationsClient getDatabaseOperations() { + return this.databaseOperations; + } + /** The DatabasePrincipalAssignmentsClient object to access its operations. */ private final DatabasePrincipalAssignmentsClient databasePrincipalAssignments; @@ -300,8 +309,7 @@ public OperationsResultsLocationsClient getOperationsResultsLocations() { * @param serializerAdapter The serializer to serialize an object into a string. * @param defaultPollInterval The default poll interval for long-running operation. * @param environment The Azure environment. - * @param subscriptionId Gets subscription credentials which uniquely identify Microsoft Azure subscription. The - * subscription ID forms part of the URI for every service call. + * @param subscriptionId The ID of the target subscription. * @param endpoint server parameter. */ KustoManagementClientImpl( @@ -316,13 +324,14 @@ public OperationsResultsLocationsClient getOperationsResultsLocations() { this.defaultPollInterval = defaultPollInterval; this.subscriptionId = subscriptionId; this.endpoint = endpoint; - this.apiVersion = "2022-12-29"; + this.apiVersion = "2023-05-02"; this.clusters = new ClustersClientImpl(this); this.clusterPrincipalAssignments = new ClusterPrincipalAssignmentsClientImpl(this); this.skus = new SkusClientImpl(this); this.databases = new DatabasesClientImpl(this); this.attachedDatabaseConfigurations = new AttachedDatabaseConfigurationsClientImpl(this); this.managedPrivateEndpoints = new ManagedPrivateEndpointsClientImpl(this); + this.databaseOperations = new DatabaseOperationsClientImpl(this); this.databasePrincipalAssignments = new DatabasePrincipalAssignmentsClientImpl(this); this.scripts = new ScriptsClientImpl(this); this.privateEndpointConnections = new PrivateEndpointConnectionsClientImpl(this); diff --git a/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/implementation/ManagedPrivateEndpointsClientImpl.java b/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/implementation/ManagedPrivateEndpointsClientImpl.java index 35aa03aace31..430b214207d2 100644 --- a/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/implementation/ManagedPrivateEndpointsClientImpl.java +++ b/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/implementation/ManagedPrivateEndpointsClientImpl.java @@ -71,8 +71,7 @@ public final class ManagedPrivateEndpointsClientImpl implements ManagedPrivateEn public interface ManagedPrivateEndpointsService { @Headers({"Content-Type: application/json"}) @Post( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters" - + "/{clusterName}/managedPrivateEndpointsCheckNameAvailability") + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}/managedPrivateEndpointsCheckNameAvailability") @ExpectedResponses({200}) @UnexpectedResponseExceptionType(ManagementException.class) Mono> checkNameAvailability( @@ -87,8 +86,7 @@ Mono> checkNameAvailability( @Headers({"Content-Type: application/json"}) @Get( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters" - + "/{clusterName}/managedPrivateEndpoints") + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}/managedPrivateEndpoints") @ExpectedResponses({200}) @UnexpectedResponseExceptionType(ManagementException.class) Mono> list( @@ -102,8 +100,7 @@ Mono> list( @Headers({"Content-Type: application/json"}) @Get( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters" - + "/{clusterName}/managedPrivateEndpoints/{managedPrivateEndpointName}") + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}/managedPrivateEndpoints/{managedPrivateEndpointName}") @ExpectedResponses({200}) @UnexpectedResponseExceptionType(ManagementException.class) Mono> get( @@ -118,8 +115,7 @@ Mono> get( @Headers({"Content-Type: application/json"}) @Put( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters" - + "/{clusterName}/managedPrivateEndpoints/{managedPrivateEndpointName}") + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}/managedPrivateEndpoints/{managedPrivateEndpointName}") @ExpectedResponses({200, 201, 202}) @UnexpectedResponseExceptionType(ManagementException.class) Mono>> createOrUpdate( @@ -135,8 +131,7 @@ Mono>> createOrUpdate( @Headers({"Content-Type: application/json"}) @Patch( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters" - + "/{clusterName}/managedPrivateEndpoints/{managedPrivateEndpointName}") + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}/managedPrivateEndpoints/{managedPrivateEndpointName}") @ExpectedResponses({200, 202}) @UnexpectedResponseExceptionType(ManagementException.class) Mono>> update( @@ -152,8 +147,7 @@ Mono>> update( @Headers({"Content-Type: application/json"}) @Delete( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters" - + "/{clusterName}/managedPrivateEndpoints/{managedPrivateEndpointName}") + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}/managedPrivateEndpoints/{managedPrivateEndpointName}") @ExpectedResponses({200, 202, 204}) @UnexpectedResponseExceptionType(ManagementException.class) Mono>> delete( @@ -170,7 +164,7 @@ Mono>> delete( /** * Checks that the managed private endpoints resource name is valid and is not already in use. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param resourceName The name of the resource. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -226,7 +220,7 @@ private Mono> checkNameAvailabilityWithResponseAs /** * Checks that the managed private endpoints resource name is valid and is not already in use. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param resourceName The name of the resource. * @param context The context to associate with this operation. @@ -283,7 +277,7 @@ private Mono> checkNameAvailabilityWithResponseAs /** * Checks that the managed private endpoints resource name is valid and is not already in use. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param resourceName The name of the resource. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -301,7 +295,7 @@ private Mono checkNameAvailabilityAsync( /** * Checks that the managed private endpoints resource name is valid and is not already in use. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param resourceName The name of the resource. * @param context The context to associate with this operation. @@ -322,7 +316,7 @@ public Response checkNameAvailabilityWithResponse( /** * Checks that the managed private endpoints resource name is valid and is not already in use. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param resourceName The name of the resource. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -339,7 +333,7 @@ public CheckNameResultInner checkNameAvailability( /** * Returns the list of managed private endpoints. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -392,7 +386,7 @@ private Mono> listSinglePageAsync( /** * Returns the list of managed private endpoints. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -443,7 +437,7 @@ private Mono> listSinglePageAsync( /** * Returns the list of managed private endpoints. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -458,7 +452,7 @@ private PagedFlux listAsync(String resourceGroupNam /** * Returns the list of managed private endpoints. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -475,7 +469,7 @@ private PagedFlux listAsync( /** * Returns the list of managed private endpoints. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -490,7 +484,7 @@ public PagedIterable list(String resourceGroupName, /** * Returns the list of managed private endpoints. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -507,7 +501,7 @@ public PagedIterable list( /** * Gets a managed private endpoint. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param managedPrivateEndpointName The name of the managed private endpoint. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -563,7 +557,7 @@ private Mono> getWithResponseAsync( /** * Gets a managed private endpoint. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param managedPrivateEndpointName The name of the managed private endpoint. * @param context The context to associate with this operation. @@ -617,7 +611,7 @@ private Mono> getWithResponseAsync( /** * Gets a managed private endpoint. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param managedPrivateEndpointName The name of the managed private endpoint. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -635,7 +629,7 @@ private Mono getAsync( /** * Gets a managed private endpoint. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param managedPrivateEndpointName The name of the managed private endpoint. * @param context The context to associate with this operation. @@ -653,7 +647,7 @@ public Response getWithResponse( /** * Gets a managed private endpoint. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param managedPrivateEndpointName The name of the managed private endpoint. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -670,7 +664,7 @@ public ManagedPrivateEndpointInner get( /** * Creates a managed private endpoint. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param managedPrivateEndpointName The name of the managed private endpoint. * @param parameters The managed private endpoint parameters. @@ -737,7 +731,7 @@ private Mono>> createOrUpdateWithResponseAsync( /** * Creates a managed private endpoint. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param managedPrivateEndpointName The name of the managed private endpoint. * @param parameters The managed private endpoint parameters. @@ -803,7 +797,7 @@ private Mono>> createOrUpdateWithResponseAsync( /** * Creates a managed private endpoint. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param managedPrivateEndpointName The name of the managed private endpoint. * @param parameters The managed private endpoint parameters. @@ -833,7 +827,7 @@ private PollerFlux, ManagedPrivateEndpoi /** * Creates a managed private endpoint. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param managedPrivateEndpointName The name of the managed private endpoint. * @param parameters The managed private endpoint parameters. @@ -867,7 +861,7 @@ private PollerFlux, ManagedPrivateEndpoi /** * Creates a managed private endpoint. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param managedPrivateEndpointName The name of the managed private endpoint. * @param parameters The managed private endpoint parameters. @@ -890,7 +884,7 @@ public SyncPoller, ManagedPrivateEndpoin /** * Creates a managed private endpoint. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param managedPrivateEndpointName The name of the managed private endpoint. * @param parameters The managed private endpoint parameters. @@ -915,7 +909,7 @@ public SyncPoller, ManagedPrivateEndpoin /** * Creates a managed private endpoint. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param managedPrivateEndpointName The name of the managed private endpoint. * @param parameters The managed private endpoint parameters. @@ -938,7 +932,7 @@ private Mono createOrUpdateAsync( /** * Creates a managed private endpoint. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param managedPrivateEndpointName The name of the managed private endpoint. * @param parameters The managed private endpoint parameters. @@ -963,7 +957,7 @@ private Mono createOrUpdateAsync( /** * Creates a managed private endpoint. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param managedPrivateEndpointName The name of the managed private endpoint. * @param parameters The managed private endpoint parameters. @@ -984,7 +978,7 @@ public ManagedPrivateEndpointInner createOrUpdate( /** * Creates a managed private endpoint. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param managedPrivateEndpointName The name of the managed private endpoint. * @param parameters The managed private endpoint parameters. @@ -1008,7 +1002,7 @@ public ManagedPrivateEndpointInner createOrUpdate( /** * Updates a managed private endpoint. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param managedPrivateEndpointName The name of the managed private endpoint. * @param parameters The managed private endpoint parameters. @@ -1075,7 +1069,7 @@ private Mono>> updateWithResponseAsync( /** * Updates a managed private endpoint. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param managedPrivateEndpointName The name of the managed private endpoint. * @param parameters The managed private endpoint parameters. @@ -1141,7 +1135,7 @@ private Mono>> updateWithResponseAsync( /** * Updates a managed private endpoint. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param managedPrivateEndpointName The name of the managed private endpoint. * @param parameters The managed private endpoint parameters. @@ -1171,7 +1165,7 @@ private PollerFlux, ManagedPrivateEndpoi /** * Updates a managed private endpoint. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param managedPrivateEndpointName The name of the managed private endpoint. * @param parameters The managed private endpoint parameters. @@ -1204,7 +1198,7 @@ private PollerFlux, ManagedPrivateEndpoi /** * Updates a managed private endpoint. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param managedPrivateEndpointName The name of the managed private endpoint. * @param parameters The managed private endpoint parameters. @@ -1227,7 +1221,7 @@ public SyncPoller, ManagedPrivateEndpoin /** * Updates a managed private endpoint. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param managedPrivateEndpointName The name of the managed private endpoint. * @param parameters The managed private endpoint parameters. @@ -1252,7 +1246,7 @@ public SyncPoller, ManagedPrivateEndpoin /** * Updates a managed private endpoint. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param managedPrivateEndpointName The name of the managed private endpoint. * @param parameters The managed private endpoint parameters. @@ -1275,7 +1269,7 @@ private Mono updateAsync( /** * Updates a managed private endpoint. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param managedPrivateEndpointName The name of the managed private endpoint. * @param parameters The managed private endpoint parameters. @@ -1300,7 +1294,7 @@ private Mono updateAsync( /** * Updates a managed private endpoint. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param managedPrivateEndpointName The name of the managed private endpoint. * @param parameters The managed private endpoint parameters. @@ -1321,7 +1315,7 @@ public ManagedPrivateEndpointInner update( /** * Updates a managed private endpoint. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param managedPrivateEndpointName The name of the managed private endpoint. * @param parameters The managed private endpoint parameters. @@ -1344,7 +1338,7 @@ public ManagedPrivateEndpointInner update( /** * Deletes a managed private endpoint. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param managedPrivateEndpointName The name of the managed private endpoint. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1400,7 +1394,7 @@ private Mono>> deleteWithResponseAsync( /** * Deletes a managed private endpoint. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param managedPrivateEndpointName The name of the managed private endpoint. * @param context The context to associate with this operation. @@ -1454,7 +1448,7 @@ private Mono>> deleteWithResponseAsync( /** * Deletes a managed private endpoint. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param managedPrivateEndpointName The name of the managed private endpoint. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1476,7 +1470,7 @@ private PollerFlux, Void> beginDeleteAsync( /** * Deletes a managed private endpoint. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param managedPrivateEndpointName The name of the managed private endpoint. * @param context The context to associate with this operation. @@ -1499,7 +1493,7 @@ private PollerFlux, Void> beginDeleteAsync( /** * Deletes a managed private endpoint. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param managedPrivateEndpointName The name of the managed private endpoint. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1516,7 +1510,7 @@ public SyncPoller, Void> beginDelete( /** * Deletes a managed private endpoint. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param managedPrivateEndpointName The name of the managed private endpoint. * @param context The context to associate with this operation. @@ -1536,7 +1530,7 @@ public SyncPoller, Void> beginDelete( /** * Deletes a managed private endpoint. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param managedPrivateEndpointName The name of the managed private endpoint. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1554,7 +1548,7 @@ private Mono deleteAsync(String resourceGroupName, String clusterName, Str /** * Deletes a managed private endpoint. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param managedPrivateEndpointName The name of the managed private endpoint. * @param context The context to associate with this operation. @@ -1574,7 +1568,7 @@ private Mono deleteAsync( /** * Deletes a managed private endpoint. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param managedPrivateEndpointName The name of the managed private endpoint. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1589,7 +1583,7 @@ public void delete(String resourceGroupName, String clusterName, String managedP /** * Deletes a managed private endpoint. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param managedPrivateEndpointName The name of the managed private endpoint. * @param context The context to associate with this operation. diff --git a/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/implementation/OperationsResultsClientImpl.java b/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/implementation/OperationsResultsClientImpl.java index 2d5ac17bdfd4..771027e4717c 100644 --- a/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/implementation/OperationsResultsClientImpl.java +++ b/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/implementation/OperationsResultsClientImpl.java @@ -53,8 +53,7 @@ public final class OperationsResultsClientImpl implements OperationsResultsClien public interface OperationsResultsService { @Headers({"Content-Type: application/json"}) @Get( - "/subscriptions/{subscriptionId}/providers/Microsoft.Kusto/locations/{location}/operationResults" - + "/{operationId}") + "/subscriptions/{subscriptionId}/providers/Microsoft.Kusto/locations/{location}/operationResults/{operationId}") @ExpectedResponses({200}) @UnexpectedResponseExceptionType(ManagementException.class) Mono> get( @@ -70,8 +69,8 @@ Mono> get( /** * Returns operation results. * - * @param location Azure location (region) name. - * @param operationId The Guid of the operation ID. + * @param location The name of Azure region. + * @param operationId The ID of an ongoing async operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -116,8 +115,8 @@ private Mono> getWithResponseAsync(String locatio /** * Returns operation results. * - * @param location Azure location (region) name. - * @param operationId The Guid of the operation ID. + * @param location The name of Azure region. + * @param operationId The ID of an ongoing async operation. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -161,8 +160,8 @@ private Mono> getWithResponseAsync( /** * Returns operation results. * - * @param location Azure location (region) name. - * @param operationId The Guid of the operation ID. + * @param location The name of Azure region. + * @param operationId The ID of an ongoing async operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -176,8 +175,8 @@ private Mono getAsync(String location, String operationId) /** * Returns operation results. * - * @param location Azure location (region) name. - * @param operationId The Guid of the operation ID. + * @param location The name of Azure region. + * @param operationId The ID of an ongoing async operation. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -192,8 +191,8 @@ public Response getWithResponse(String location, String op /** * Returns operation results. * - * @param location Azure location (region) name. - * @param operationId The Guid of the operation ID. + * @param location The name of Azure region. + * @param operationId The ID of an ongoing async operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. diff --git a/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/implementation/OperationsResultsLocationsClientImpl.java b/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/implementation/OperationsResultsLocationsClientImpl.java index 336492576a1b..92e515b43228 100644 --- a/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/implementation/OperationsResultsLocationsClientImpl.java +++ b/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/implementation/OperationsResultsLocationsClientImpl.java @@ -15,12 +15,12 @@ import com.azure.core.annotation.ServiceInterface; import com.azure.core.annotation.ServiceMethod; import com.azure.core.annotation.UnexpectedResponseExceptionType; -import com.azure.core.http.rest.Response; import com.azure.core.http.rest.RestProxy; import com.azure.core.management.exception.ManagementException; import com.azure.core.util.Context; import com.azure.core.util.FluxUtil; import com.azure.resourcemanager.kusto.fluent.OperationsResultsLocationsClient; +import com.azure.resourcemanager.kusto.models.OperationsResultsLocationsGetResponse; import reactor.core.publisher.Mono; /** An instance of this class provides access to all the operations defined in OperationsResultsLocationsClient. */ @@ -53,11 +53,10 @@ public final class OperationsResultsLocationsClientImpl implements OperationsRes public interface OperationsResultsLocationsService { @Headers({"Accept: application/json;q=0.9", "Content-Type: application/json"}) @Get( - "/subscriptions/{subscriptionId}/providers/Microsoft.Kusto/locations/{location}/operationResults" - + "/{operationId}") + "/subscriptions/{subscriptionId}/providers/Microsoft.Kusto/locations/{location}/operationResults/{operationId}") @ExpectedResponses({200, 202}) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> get( + Mono get( @HostParam("$host") String endpoint, @PathParam("subscriptionId") String subscriptionId, @PathParam("location") String location, @@ -69,15 +68,15 @@ Mono> get( /** * Returns operation results. * - * @param location Azure location (region) name. - * @param operationId The Guid of the operation ID. + * @param location The name of Azure region. + * @param operationId The ID of an ongoing async operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. + * @return A {@link Mono} that completes when a successful response is received. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> getWithResponseAsync(String location, String operationId) { + private Mono getWithResponseAsync(String location, String operationId) { if (this.client.getEndpoint() == null) { return Mono .error( @@ -113,16 +112,17 @@ private Mono> getWithResponseAsync(String location, String operat /** * Returns operation results. * - * @param location Azure location (region) name. - * @param operationId The Guid of the operation ID. + * @param location The name of Azure region. + * @param operationId The ID of an ongoing async operation. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. + * @return A {@link Mono} that completes when a successful response is received. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> getWithResponseAsync(String location, String operationId, Context context) { + private Mono getWithResponseAsync( + String location, String operationId, Context context) { if (this.client.getEndpoint() == null) { return Mono .error( @@ -155,8 +155,8 @@ private Mono> getWithResponseAsync(String location, String operat /** * Returns operation results. * - * @param location Azure location (region) name. - * @param operationId The Guid of the operation ID. + * @param location The name of Azure region. + * @param operationId The ID of an ongoing async operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -170,24 +170,24 @@ private Mono getAsync(String location, String operationId) { /** * Returns operation results. * - * @param location Azure location (region) name. - * @param operationId The Guid of the operation ID. + * @param location The name of Azure region. + * @param operationId The ID of an ongoing async operation. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response}. + * @return the response. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response getWithResponse(String location, String operationId, Context context) { + public OperationsResultsLocationsGetResponse getWithResponse(String location, String operationId, Context context) { return getWithResponseAsync(location, operationId, context).block(); } /** * Returns operation results. * - * @param location Azure location (region) name. - * @param operationId The Guid of the operation ID. + * @param location The name of Azure region. + * @param operationId The ID of an ongoing async operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. diff --git a/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/implementation/OperationsResultsLocationsImpl.java b/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/implementation/OperationsResultsLocationsImpl.java index ae1d45e12e41..33f70de59294 100644 --- a/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/implementation/OperationsResultsLocationsImpl.java +++ b/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/implementation/OperationsResultsLocationsImpl.java @@ -4,11 +4,11 @@ package com.azure.resourcemanager.kusto.implementation; -import com.azure.core.http.rest.Response; import com.azure.core.util.Context; import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.kusto.fluent.OperationsResultsLocationsClient; import com.azure.resourcemanager.kusto.models.OperationsResultsLocations; +import com.azure.resourcemanager.kusto.models.OperationsResultsLocationsGetResponse; public final class OperationsResultsLocationsImpl implements OperationsResultsLocations { private static final ClientLogger LOGGER = new ClientLogger(OperationsResultsLocationsImpl.class); @@ -23,7 +23,7 @@ public OperationsResultsLocationsImpl( this.serviceManager = serviceManager; } - public Response getWithResponse(String location, String operationId, Context context) { + public OperationsResultsLocationsGetResponse getWithResponse(String location, String operationId, Context context) { return this.serviceClient().getWithResponse(location, operationId, context); } diff --git a/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/implementation/PrivateEndpointConnectionsClientImpl.java b/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/implementation/PrivateEndpointConnectionsClientImpl.java index 9a5bd9ed964c..36afdd8e8ccb 100644 --- a/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/implementation/PrivateEndpointConnectionsClientImpl.java +++ b/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/implementation/PrivateEndpointConnectionsClientImpl.java @@ -68,8 +68,7 @@ public final class PrivateEndpointConnectionsClientImpl implements PrivateEndpoi public interface PrivateEndpointConnectionsService { @Headers({"Content-Type: application/json"}) @Get( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters" - + "/{clusterName}/privateEndpointConnections") + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}/privateEndpointConnections") @ExpectedResponses({200}) @UnexpectedResponseExceptionType(ManagementException.class) Mono> list( @@ -83,8 +82,7 @@ Mono> list( @Headers({"Content-Type: application/json"}) @Get( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters" - + "/{clusterName}/privateEndpointConnections/{privateEndpointConnectionName}") + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}/privateEndpointConnections/{privateEndpointConnectionName}") @ExpectedResponses({200}) @UnexpectedResponseExceptionType(ManagementException.class) Mono> get( @@ -99,8 +97,7 @@ Mono> get( @Headers({"Content-Type: application/json"}) @Put( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters" - + "/{clusterName}/privateEndpointConnections/{privateEndpointConnectionName}") + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}/privateEndpointConnections/{privateEndpointConnectionName}") @ExpectedResponses({200, 201}) @UnexpectedResponseExceptionType(ManagementException.class) Mono>> createOrUpdate( @@ -116,8 +113,7 @@ Mono>> createOrUpdate( @Headers({"Content-Type: application/json"}) @Delete( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters" - + "/{clusterName}/privateEndpointConnections/{privateEndpointConnectionName}") + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}/privateEndpointConnections/{privateEndpointConnectionName}") @ExpectedResponses({200, 202, 204}) @UnexpectedResponseExceptionType(ManagementException.class) Mono>> delete( @@ -134,7 +130,7 @@ Mono>> delete( /** * Returns the list of private endpoint connections. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -187,7 +183,7 @@ private Mono> listSinglePageAsync( /** * Returns the list of private endpoint connections. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -238,7 +234,7 @@ private Mono> listSinglePageAsync( /** * Returns the list of private endpoint connections. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -253,7 +249,7 @@ private PagedFlux listAsync(String resourceGroup /** * Returns the list of private endpoint connections. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -270,7 +266,7 @@ private PagedFlux listAsync( /** * Returns the list of private endpoint connections. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -285,7 +281,7 @@ public PagedIterable list(String resourceGroupNa /** * Returns the list of private endpoint connections. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -302,7 +298,7 @@ public PagedIterable list( /** * Gets a private endpoint connection. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param privateEndpointConnectionName The name of the private endpoint connection. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -358,7 +354,7 @@ private Mono> getWithResponseAsync( /** * Gets a private endpoint connection. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param privateEndpointConnectionName The name of the private endpoint connection. * @param context The context to associate with this operation. @@ -412,7 +408,7 @@ private Mono> getWithResponseAsync( /** * Gets a private endpoint connection. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param privateEndpointConnectionName The name of the private endpoint connection. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -430,7 +426,7 @@ private Mono getAsync( /** * Gets a private endpoint connection. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param privateEndpointConnectionName The name of the private endpoint connection. * @param context The context to associate with this operation. @@ -448,7 +444,7 @@ public Response getWithResponse( /** * Gets a private endpoint connection. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param privateEndpointConnectionName The name of the private endpoint connection. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -465,7 +461,7 @@ public PrivateEndpointConnectionInner get( /** * Approve or reject a private endpoint connection with a given name. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param privateEndpointConnectionName The name of the private endpoint connection. * @param parameters A private endpoint connection. @@ -531,7 +527,7 @@ private Mono>> createOrUpdateWithResponseAsync( /** * Approve or reject a private endpoint connection with a given name. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param privateEndpointConnectionName The name of the private endpoint connection. * @param parameters A private endpoint connection. @@ -596,7 +592,7 @@ private Mono>> createOrUpdateWithResponseAsync( /** * Approve or reject a private endpoint connection with a given name. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param privateEndpointConnectionName The name of the private endpoint connection. * @param parameters A private endpoint connection. @@ -627,7 +623,7 @@ private Mono>> createOrUpdateWithResponseAsync( /** * Approve or reject a private endpoint connection with a given name. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param privateEndpointConnectionName The name of the private endpoint connection. * @param parameters A private endpoint connection. @@ -662,7 +658,7 @@ private Mono>> createOrUpdateWithResponseAsync( /** * Approve or reject a private endpoint connection with a given name. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param privateEndpointConnectionName The name of the private endpoint connection. * @param parameters A private endpoint connection. @@ -685,7 +681,7 @@ public SyncPoller, PrivateEndpointCon /** * Approve or reject a private endpoint connection with a given name. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param privateEndpointConnectionName The name of the private endpoint connection. * @param parameters A private endpoint connection. @@ -711,7 +707,7 @@ public SyncPoller, PrivateEndpointCon /** * Approve or reject a private endpoint connection with a given name. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param privateEndpointConnectionName The name of the private endpoint connection. * @param parameters A private endpoint connection. @@ -734,7 +730,7 @@ private Mono createOrUpdateAsync( /** * Approve or reject a private endpoint connection with a given name. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param privateEndpointConnectionName The name of the private endpoint connection. * @param parameters A private endpoint connection. @@ -760,7 +756,7 @@ private Mono createOrUpdateAsync( /** * Approve or reject a private endpoint connection with a given name. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param privateEndpointConnectionName The name of the private endpoint connection. * @param parameters A private endpoint connection. @@ -781,7 +777,7 @@ public PrivateEndpointConnectionInner createOrUpdate( /** * Approve or reject a private endpoint connection with a given name. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param privateEndpointConnectionName The name of the private endpoint connection. * @param parameters A private endpoint connection. @@ -805,7 +801,7 @@ public PrivateEndpointConnectionInner createOrUpdate( /** * Deletes a private endpoint connection with a given name. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param privateEndpointConnectionName The name of the private endpoint connection. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -861,7 +857,7 @@ private Mono>> deleteWithResponseAsync( /** * Deletes a private endpoint connection with a given name. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param privateEndpointConnectionName The name of the private endpoint connection. * @param context The context to associate with this operation. @@ -915,7 +911,7 @@ private Mono>> deleteWithResponseAsync( /** * Deletes a private endpoint connection with a given name. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param privateEndpointConnectionName The name of the private endpoint connection. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -937,7 +933,7 @@ private PollerFlux, Void> beginDeleteAsync( /** * Deletes a private endpoint connection with a given name. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param privateEndpointConnectionName The name of the private endpoint connection. * @param context The context to associate with this operation. @@ -960,7 +956,7 @@ private PollerFlux, Void> beginDeleteAsync( /** * Deletes a private endpoint connection with a given name. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param privateEndpointConnectionName The name of the private endpoint connection. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -977,7 +973,7 @@ public SyncPoller, Void> beginDelete( /** * Deletes a private endpoint connection with a given name. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param privateEndpointConnectionName The name of the private endpoint connection. * @param context The context to associate with this operation. @@ -997,7 +993,7 @@ public SyncPoller, Void> beginDelete( /** * Deletes a private endpoint connection with a given name. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param privateEndpointConnectionName The name of the private endpoint connection. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1015,7 +1011,7 @@ private Mono deleteAsync(String resourceGroupName, String clusterName, Str /** * Deletes a private endpoint connection with a given name. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param privateEndpointConnectionName The name of the private endpoint connection. * @param context The context to associate with this operation. @@ -1035,7 +1031,7 @@ private Mono deleteAsync( /** * Deletes a private endpoint connection with a given name. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param privateEndpointConnectionName The name of the private endpoint connection. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1050,7 +1046,7 @@ public void delete(String resourceGroupName, String clusterName, String privateE /** * Deletes a private endpoint connection with a given name. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param privateEndpointConnectionName The name of the private endpoint connection. * @param context The context to associate with this operation. diff --git a/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/implementation/PrivateLinkResourcesClientImpl.java b/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/implementation/PrivateLinkResourcesClientImpl.java index ddae4fec4392..cbee6f651f8e 100644 --- a/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/implementation/PrivateLinkResourcesClientImpl.java +++ b/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/implementation/PrivateLinkResourcesClientImpl.java @@ -59,8 +59,7 @@ public final class PrivateLinkResourcesClientImpl implements PrivateLinkResource public interface PrivateLinkResourcesService { @Headers({"Content-Type: application/json"}) @Get( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters" - + "/{clusterName}/privateLinkResources") + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}/privateLinkResources") @ExpectedResponses({200}) @UnexpectedResponseExceptionType(ManagementException.class) Mono> list( @@ -74,8 +73,7 @@ Mono> list( @Headers({"Content-Type: application/json"}) @Get( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters" - + "/{clusterName}/privateLinkResources/{privateLinkResourceName}") + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}/privateLinkResources/{privateLinkResourceName}") @ExpectedResponses({200}) @UnexpectedResponseExceptionType(ManagementException.class) Mono> get( @@ -92,7 +90,7 @@ Mono> get( /** * Returns the list of private link resources. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -145,7 +143,7 @@ private Mono> listSinglePageAsync( /** * Returns the list of private link resources. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -196,7 +194,7 @@ private Mono> listSinglePageAsync( /** * Returns the list of private link resources. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -211,7 +209,7 @@ private PagedFlux listAsync(String resourceGroupName, /** * Returns the list of private link resources. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -228,7 +226,7 @@ private PagedFlux listAsync( /** * Returns the list of private link resources. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -243,7 +241,7 @@ public PagedIterable list(String resourceGroupName, St /** * Returns the list of private link resources. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -259,7 +257,7 @@ public PagedIterable list(String resourceGroupName, St /** * Gets a private link resource. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param privateLinkResourceName The name of the private link resource. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -314,7 +312,7 @@ private Mono> getWithResponseAsync( /** * Gets a private link resource. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param privateLinkResourceName The name of the private link resource. * @param context The context to associate with this operation. @@ -367,7 +365,7 @@ private Mono> getWithResponseAsync( /** * Gets a private link resource. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param privateLinkResourceName The name of the private link resource. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -385,7 +383,7 @@ private Mono getAsync( /** * Gets a private link resource. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param privateLinkResourceName The name of the private link resource. * @param context The context to associate with this operation. @@ -403,7 +401,7 @@ public Response getWithResponse( /** * Gets a private link resource. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param privateLinkResourceName The name of the private link resource. * @throws IllegalArgumentException thrown if parameters fail the validation. diff --git a/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/implementation/ScriptsClientImpl.java b/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/implementation/ScriptsClientImpl.java index 1a16a8363b6a..b456b362ba38 100644 --- a/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/implementation/ScriptsClientImpl.java +++ b/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/implementation/ScriptsClientImpl.java @@ -69,8 +69,7 @@ public final class ScriptsClientImpl implements ScriptsClient { public interface ScriptsService { @Headers({"Content-Type: application/json"}) @Get( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters" - + "/{clusterName}/databases/{databaseName}/scripts") + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}/databases/{databaseName}/scripts") @ExpectedResponses({200}) @UnexpectedResponseExceptionType(ManagementException.class) Mono> listByDatabase( @@ -85,8 +84,7 @@ Mono> listByDatabase( @Headers({"Content-Type: application/json"}) @Get( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters" - + "/{clusterName}/databases/{databaseName}/scripts/{scriptName}") + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}/databases/{databaseName}/scripts/{scriptName}") @ExpectedResponses({200}) @UnexpectedResponseExceptionType(ManagementException.class) Mono> get( @@ -102,8 +100,7 @@ Mono> get( @Headers({"Content-Type: application/json"}) @Put( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters" - + "/{clusterName}/databases/{databaseName}/scripts/{scriptName}") + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}/databases/{databaseName}/scripts/{scriptName}") @ExpectedResponses({200, 201, 202}) @UnexpectedResponseExceptionType(ManagementException.class) Mono>> createOrUpdate( @@ -120,8 +117,7 @@ Mono>> createOrUpdate( @Headers({"Content-Type: application/json"}) @Patch( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters" - + "/{clusterName}/databases/{databaseName}/scripts/{scriptName}") + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}/databases/{databaseName}/scripts/{scriptName}") @ExpectedResponses({200, 202}) @UnexpectedResponseExceptionType(ManagementException.class) Mono>> update( @@ -138,8 +134,7 @@ Mono>> update( @Headers({"Content-Type: application/json"}) @Delete( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters" - + "/{clusterName}/databases/{databaseName}/scripts/{scriptName}") + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}/databases/{databaseName}/scripts/{scriptName}") @ExpectedResponses({200, 202, 204}) @UnexpectedResponseExceptionType(ManagementException.class) Mono>> delete( @@ -155,8 +150,7 @@ Mono>> delete( @Headers({"Content-Type: application/json"}) @Post( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters" - + "/{clusterName}/databases/{databaseName}/scriptsCheckNameAvailability") + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}/databases/{databaseName}/scriptsCheckNameAvailability") @ExpectedResponses({200}) @UnexpectedResponseExceptionType(ManagementException.class) Mono> checkNameAvailability( @@ -174,7 +168,7 @@ Mono> checkNameAvailability( /** * Returns the list of database scripts for given database. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param databaseName The name of the database in the Kusto cluster. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -232,7 +226,7 @@ private Mono> listByDatabaseSinglePageAsync( /** * Returns the list of database scripts for given database. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param databaseName The name of the database in the Kusto cluster. * @param context The context to associate with this operation. @@ -288,7 +282,7 @@ private Mono> listByDatabaseSinglePageAsync( /** * Returns the list of database scripts for given database. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param databaseName The name of the database in the Kusto cluster. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -305,7 +299,7 @@ private PagedFlux listByDatabaseAsync( /** * Returns the list of database scripts for given database. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param databaseName The name of the database in the Kusto cluster. * @param context The context to associate with this operation. @@ -324,7 +318,7 @@ private PagedFlux listByDatabaseAsync( /** * Returns the list of database scripts for given database. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param databaseName The name of the database in the Kusto cluster. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -341,7 +335,7 @@ public PagedIterable listByDatabase( /** * Returns the list of database scripts for given database. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param databaseName The name of the database in the Kusto cluster. * @param context The context to associate with this operation. @@ -359,7 +353,7 @@ public PagedIterable listByDatabase( /** * Gets a Kusto cluster database script. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param databaseName The name of the database in the Kusto cluster. * @param scriptName The name of the Kusto database script. @@ -417,7 +411,7 @@ private Mono> getWithResponseAsync( /** * Gets a Kusto cluster database script. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param databaseName The name of the database in the Kusto cluster. * @param scriptName The name of the Kusto database script. @@ -473,7 +467,7 @@ private Mono> getWithResponseAsync( /** * Gets a Kusto cluster database script. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param databaseName The name of the database in the Kusto cluster. * @param scriptName The name of the Kusto database script. @@ -492,7 +486,7 @@ private Mono getAsync( /** * Gets a Kusto cluster database script. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param databaseName The name of the database in the Kusto cluster. * @param scriptName The name of the Kusto database script. @@ -511,7 +505,7 @@ public Response getWithResponse( /** * Gets a Kusto cluster database script. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param databaseName The name of the database in the Kusto cluster. * @param scriptName The name of the Kusto database script. @@ -528,7 +522,7 @@ public ScriptInner get(String resourceGroupName, String clusterName, String data /** * Creates a Kusto database script. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param databaseName The name of the database in the Kusto cluster. * @param scriptName The name of the Kusto database script. @@ -594,7 +588,7 @@ private Mono>> createOrUpdateWithResponseAsync( /** * Creates a Kusto database script. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param databaseName The name of the database in the Kusto cluster. * @param scriptName The name of the Kusto database script. @@ -663,7 +657,7 @@ private Mono>> createOrUpdateWithResponseAsync( /** * Creates a Kusto database script. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param databaseName The name of the database in the Kusto cluster. * @param scriptName The name of the Kusto database script. @@ -687,7 +681,7 @@ private PollerFlux, ScriptInner> beginCreateOrUpdateAsyn /** * Creates a Kusto database script. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param databaseName The name of the database in the Kusto cluster. * @param scriptName The name of the Kusto database script. @@ -719,7 +713,7 @@ private PollerFlux, ScriptInner> beginCreateOrUpdateAsyn /** * Creates a Kusto database script. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param databaseName The name of the database in the Kusto cluster. * @param scriptName The name of the Kusto database script. @@ -740,7 +734,7 @@ public SyncPoller, ScriptInner> beginCreateOrUpdate( /** * Creates a Kusto database script. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param databaseName The name of the database in the Kusto cluster. * @param scriptName The name of the Kusto database script. @@ -767,7 +761,7 @@ public SyncPoller, ScriptInner> beginCreateOrUpdate( /** * Creates a Kusto database script. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param databaseName The name of the database in the Kusto cluster. * @param scriptName The name of the Kusto database script. @@ -788,7 +782,7 @@ private Mono createOrUpdateAsync( /** * Creates a Kusto database script. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param databaseName The name of the database in the Kusto cluster. * @param scriptName The name of the Kusto database script. @@ -815,7 +809,7 @@ private Mono createOrUpdateAsync( /** * Creates a Kusto database script. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param databaseName The name of the database in the Kusto cluster. * @param scriptName The name of the Kusto database script. @@ -834,7 +828,7 @@ public ScriptInner createOrUpdate( /** * Creates a Kusto database script. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param databaseName The name of the database in the Kusto cluster. * @param scriptName The name of the Kusto database script. @@ -860,7 +854,7 @@ public ScriptInner createOrUpdate( /** * Updates a database script. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param databaseName The name of the database in the Kusto cluster. * @param scriptName The name of the Kusto database script. @@ -926,7 +920,7 @@ private Mono>> updateWithResponseAsync( /** * Updates a database script. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param databaseName The name of the database in the Kusto cluster. * @param scriptName The name of the Kusto database script. @@ -995,7 +989,7 @@ private Mono>> updateWithResponseAsync( /** * Updates a database script. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param databaseName The name of the database in the Kusto cluster. * @param scriptName The name of the Kusto database script. @@ -1019,7 +1013,7 @@ private PollerFlux, ScriptInner> beginUpdateAsync( /** * Updates a database script. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param databaseName The name of the database in the Kusto cluster. * @param scriptName The name of the Kusto database script. @@ -1050,7 +1044,7 @@ private PollerFlux, ScriptInner> beginUpdateAsync( /** * Updates a database script. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param databaseName The name of the database in the Kusto cluster. * @param scriptName The name of the Kusto database script. @@ -1071,7 +1065,7 @@ public SyncPoller, ScriptInner> beginUpdate( /** * Updates a database script. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param databaseName The name of the database in the Kusto cluster. * @param scriptName The name of the Kusto database script. @@ -1098,7 +1092,7 @@ public SyncPoller, ScriptInner> beginUpdate( /** * Updates a database script. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param databaseName The name of the database in the Kusto cluster. * @param scriptName The name of the Kusto database script. @@ -1119,7 +1113,7 @@ private Mono updateAsync( /** * Updates a database script. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param databaseName The name of the database in the Kusto cluster. * @param scriptName The name of the Kusto database script. @@ -1146,7 +1140,7 @@ private Mono updateAsync( /** * Updates a database script. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param databaseName The name of the database in the Kusto cluster. * @param scriptName The name of the Kusto database script. @@ -1165,7 +1159,7 @@ public ScriptInner update( /** * Updates a database script. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param databaseName The name of the database in the Kusto cluster. * @param scriptName The name of the Kusto database script. @@ -1188,9 +1182,9 @@ public ScriptInner update( } /** - * Deletes a Kusto principalAssignment. + * Deletes a Kusto database script. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param databaseName The name of the database in the Kusto cluster. * @param scriptName The name of the Kusto database script. @@ -1246,9 +1240,9 @@ private Mono>> deleteWithResponseAsync( } /** - * Deletes a Kusto principalAssignment. + * Deletes a Kusto database script. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param databaseName The name of the database in the Kusto cluster. * @param scriptName The name of the Kusto database script. @@ -1302,9 +1296,9 @@ private Mono>> deleteWithResponseAsync( } /** - * Deletes a Kusto principalAssignment. + * Deletes a Kusto database script. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param databaseName The name of the database in the Kusto cluster. * @param scriptName The name of the Kusto database script. @@ -1325,9 +1319,9 @@ private PollerFlux, Void> beginDeleteAsync( } /** - * Deletes a Kusto principalAssignment. + * Deletes a Kusto database script. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param databaseName The name of the database in the Kusto cluster. * @param scriptName The name of the Kusto database script. @@ -1349,9 +1343,9 @@ private PollerFlux, Void> beginDeleteAsync( } /** - * Deletes a Kusto principalAssignment. + * Deletes a Kusto database script. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param databaseName The name of the database in the Kusto cluster. * @param scriptName The name of the Kusto database script. @@ -1367,9 +1361,9 @@ public SyncPoller, Void> beginDelete( } /** - * Deletes a Kusto principalAssignment. + * Deletes a Kusto database script. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param databaseName The name of the database in the Kusto cluster. * @param scriptName The name of the Kusto database script. @@ -1386,9 +1380,9 @@ public SyncPoller, Void> beginDelete( } /** - * Deletes a Kusto principalAssignment. + * Deletes a Kusto database script. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param databaseName The name of the database in the Kusto cluster. * @param scriptName The name of the Kusto database script. @@ -1406,9 +1400,9 @@ private Mono deleteAsync( } /** - * Deletes a Kusto principalAssignment. + * Deletes a Kusto database script. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param databaseName The name of the database in the Kusto cluster. * @param scriptName The name of the Kusto database script. @@ -1427,9 +1421,9 @@ private Mono deleteAsync( } /** - * Deletes a Kusto principalAssignment. + * Deletes a Kusto database script. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param databaseName The name of the database in the Kusto cluster. * @param scriptName The name of the Kusto database script. @@ -1443,9 +1437,9 @@ public void delete(String resourceGroupName, String clusterName, String database } /** - * Deletes a Kusto principalAssignment. + * Deletes a Kusto database script. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param databaseName The name of the database in the Kusto cluster. * @param scriptName The name of the Kusto database script. @@ -1463,7 +1457,7 @@ public void delete( /** * Checks that the script name is valid and is not already in use. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param databaseName The name of the database in the Kusto cluster. * @param scriptName The name of the script. @@ -1524,7 +1518,7 @@ private Mono> checkNameAvailabilityWithResponseAs /** * Checks that the script name is valid and is not already in use. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param databaseName The name of the database in the Kusto cluster. * @param scriptName The name of the script. @@ -1587,7 +1581,7 @@ private Mono> checkNameAvailabilityWithResponseAs /** * Checks that the script name is valid and is not already in use. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param databaseName The name of the database in the Kusto cluster. * @param scriptName The name of the script. @@ -1606,7 +1600,7 @@ private Mono checkNameAvailabilityAsync( /** * Checks that the script name is valid and is not already in use. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param databaseName The name of the database in the Kusto cluster. * @param scriptName The name of the script. @@ -1630,7 +1624,7 @@ public Response checkNameAvailabilityWithResponse( /** * Checks that the script name is valid and is not already in use. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param databaseName The name of the database in the Kusto cluster. * @param scriptName The name of the script. diff --git a/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/implementation/SkusClientImpl.java b/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/implementation/SkusClientImpl.java index cf285116ccec..39d4435386df 100644 --- a/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/implementation/SkusClientImpl.java +++ b/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/implementation/SkusClientImpl.java @@ -71,7 +71,7 @@ Mono> list( /** * Lists eligible region SKUs for Kusto resource provider by Azure region. * - * @param location Azure location (region) name. + * @param location The name of Azure region. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -117,7 +117,7 @@ private Mono> listSinglePageAsync(String loca /** * Lists eligible region SKUs for Kusto resource provider by Azure region. * - * @param location Azure location (region) name. + * @param location The name of Azure region. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -161,7 +161,7 @@ private Mono> listSinglePageAsync(String loca /** * Lists eligible region SKUs for Kusto resource provider by Azure region. * - * @param location Azure location (region) name. + * @param location The name of Azure region. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -175,7 +175,7 @@ private PagedFlux listAsync(String location) { /** * Lists eligible region SKUs for Kusto resource provider by Azure region. * - * @param location Azure location (region) name. + * @param location The name of Azure region. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -190,7 +190,7 @@ private PagedFlux listAsync(String location, Context contex /** * Lists eligible region SKUs for Kusto resource provider by Azure region. * - * @param location Azure location (region) name. + * @param location The name of Azure region. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -204,7 +204,7 @@ public PagedIterable list(String location) { /** * Lists eligible region SKUs for Kusto resource provider by Azure region. * - * @param location Azure location (region) name. + * @param location The name of Azure region. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. diff --git a/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/models/AttachedDatabaseConfiguration.java b/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/models/AttachedDatabaseConfiguration.java index 50466c89a8cb..119b0b04eb2a 100644 --- a/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/models/AttachedDatabaseConfiguration.java +++ b/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/models/AttachedDatabaseConfiguration.java @@ -142,7 +142,7 @@ interface WithParentResource { /** * Specifies resourceGroupName, clusterName. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @return the next definition stage. */ diff --git a/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/models/AttachedDatabaseConfigurations.java b/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/models/AttachedDatabaseConfigurations.java index d4b76ad432a7..79dd687df5e5 100644 --- a/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/models/AttachedDatabaseConfigurations.java +++ b/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/models/AttachedDatabaseConfigurations.java @@ -13,7 +13,7 @@ public interface AttachedDatabaseConfigurations { /** * Checks that the attached database configuration resource name is valid and is not already in use. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param resourceName The name of the resource. * @param context The context to associate with this operation. @@ -31,7 +31,7 @@ Response checkNameAvailabilityWithResponse( /** * Checks that the attached database configuration resource name is valid and is not already in use. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param resourceName The name of the resource. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -45,7 +45,7 @@ CheckNameResult checkNameAvailability( /** * Returns the list of attached database configurations of the given Kusto cluster. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -58,7 +58,7 @@ CheckNameResult checkNameAvailability( /** * Returns the list of attached database configurations of the given Kusto cluster. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -73,7 +73,7 @@ PagedIterable listByCluster( /** * Returns an attached database configuration. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param attachedDatabaseConfigurationName The name of the attached database configuration. * @param context The context to associate with this operation. @@ -88,7 +88,7 @@ Response getWithResponse( /** * Returns an attached database configuration. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param attachedDatabaseConfigurationName The name of the attached database configuration. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -102,7 +102,7 @@ AttachedDatabaseConfiguration get( /** * Deletes the attached database configuration with the given name. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param attachedDatabaseConfigurationName The name of the attached database configuration. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -114,7 +114,7 @@ AttachedDatabaseConfiguration get( /** * Deletes the attached database configuration with the given name. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param attachedDatabaseConfigurationName The name of the attached database configuration. * @param context The context to associate with this operation. diff --git a/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/models/Cluster.java b/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/models/Cluster.java index e5a32ba4b09c..208210456ed0 100644 --- a/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/models/Cluster.java +++ b/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/models/Cluster.java @@ -257,6 +257,13 @@ public interface Cluster { */ List privateEndpointConnections(); + /** + * Gets the migrationCluster property: Properties of the peer cluster involved in a migration to/from this cluster. + * + * @return the migrationCluster value. + */ + MigrationClusterProperties migrationCluster(); + /** * Gets the region of the resource. * @@ -321,7 +328,7 @@ interface WithResourceGroup { /** * Specifies resourceGroupName. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @return the next definition stage. */ WithSku withExistingResourceGroup(String resourceGroupName); @@ -951,6 +958,27 @@ interface WithIfMatch { */ void start(Context context); + /** + * Migrate data from a Kusto cluster to another cluster. + * + * @param clusterMigrateRequest The cluster migrate request parameters. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + void migrate(ClusterMigrateRequest clusterMigrateRequest); + + /** + * Migrate data from a Kusto cluster to another cluster. + * + * @param clusterMigrateRequest The cluster migrate request parameters. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + void migrate(ClusterMigrateRequest clusterMigrateRequest, Context context); + /** * Returns a list of databases that are owned by this cluster and were followed by another cluster. * diff --git a/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/models/ClusterMigrateRequest.java b/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/models/ClusterMigrateRequest.java new file mode 100644 index 000000000000..c051ac72cbc2 --- /dev/null +++ b/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/models/ClusterMigrateRequest.java @@ -0,0 +1,59 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.kusto.models; + +import com.azure.core.annotation.Fluent; +import com.azure.core.util.logging.ClientLogger; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** A cluster migrate request. */ +@Fluent +public final class ClusterMigrateRequest { + /* + * Resource ID of the destination cluster or kusto pool. + */ + @JsonProperty(value = "clusterResourceId", required = true) + private String clusterResourceId; + + /** Creates an instance of ClusterMigrateRequest class. */ + public ClusterMigrateRequest() { + } + + /** + * Get the clusterResourceId property: Resource ID of the destination cluster or kusto pool. + * + * @return the clusterResourceId value. + */ + public String clusterResourceId() { + return this.clusterResourceId; + } + + /** + * Set the clusterResourceId property: Resource ID of the destination cluster or kusto pool. + * + * @param clusterResourceId the clusterResourceId value to set. + * @return the ClusterMigrateRequest object itself. + */ + public ClusterMigrateRequest withClusterResourceId(String clusterResourceId) { + this.clusterResourceId = clusterResourceId; + return this; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + if (clusterResourceId() == null) { + throw LOGGER + .logExceptionAsError( + new IllegalArgumentException( + "Missing required property clusterResourceId in model ClusterMigrateRequest")); + } + } + + private static final ClientLogger LOGGER = new ClientLogger(ClusterMigrateRequest.class); +} diff --git a/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/models/ClusterPrincipalAssignment.java b/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/models/ClusterPrincipalAssignment.java index 409a37eae052..2b9b2e31f291 100644 --- a/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/models/ClusterPrincipalAssignment.java +++ b/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/models/ClusterPrincipalAssignment.java @@ -115,7 +115,7 @@ interface WithParentResource { /** * Specifies resourceGroupName, clusterName. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @return the next definition stage. */ diff --git a/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/models/ClusterPrincipalAssignments.java b/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/models/ClusterPrincipalAssignments.java index c7d443a9b038..d7eb6700e3c9 100644 --- a/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/models/ClusterPrincipalAssignments.java +++ b/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/models/ClusterPrincipalAssignments.java @@ -13,7 +13,7 @@ public interface ClusterPrincipalAssignments { /** * Checks that the principal assignment name is valid and is not already in use. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param principalAssignmentName The name of the principal assignment. * @param context The context to associate with this operation. @@ -31,7 +31,7 @@ Response checkNameAvailabilityWithResponse( /** * Checks that the principal assignment name is valid and is not already in use. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param principalAssignmentName The name of the principal assignment. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -47,7 +47,7 @@ CheckNameResult checkNameAvailability( /** * Gets a Kusto cluster principalAssignment. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param principalAssignmentName The name of the Kusto principalAssignment. * @param context The context to associate with this operation. @@ -62,7 +62,7 @@ Response getWithResponse( /** * Gets a Kusto cluster principalAssignment. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param principalAssignmentName The name of the Kusto principalAssignment. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -75,7 +75,7 @@ Response getWithResponse( /** * Deletes a Kusto cluster principalAssignment. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param principalAssignmentName The name of the Kusto principalAssignment. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -87,7 +87,7 @@ Response getWithResponse( /** * Deletes a Kusto cluster principalAssignment. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param principalAssignmentName The name of the Kusto principalAssignment. * @param context The context to associate with this operation. @@ -100,7 +100,7 @@ Response getWithResponse( /** * Lists all Kusto cluster principalAssignments. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -113,7 +113,7 @@ Response getWithResponse( /** * Lists all Kusto cluster principalAssignments. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. diff --git a/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/models/ClusterUpdate.java b/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/models/ClusterUpdate.java index dc027f3cb661..0aa45e4f3544 100644 --- a/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/models/ClusterUpdate.java +++ b/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/models/ClusterUpdate.java @@ -616,6 +616,15 @@ public List privateEndpointConnections() { return this.innerProperties() == null ? null : this.innerProperties().privateEndpointConnections(); } + /** + * Get the migrationCluster property: Properties of the peer cluster involved in a migration to/from this cluster. + * + * @return the migrationCluster value. + */ + public MigrationClusterProperties migrationCluster() { + return this.innerProperties() == null ? null : this.innerProperties().migrationCluster(); + } + /** * Validates the instance. * diff --git a/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/models/Clusters.java b/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/models/Clusters.java index 32a65c11b8a4..8a04d21d4bb0 100644 --- a/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/models/Clusters.java +++ b/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/models/Clusters.java @@ -14,7 +14,7 @@ public interface Clusters { /** * Gets a Kusto cluster. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -27,7 +27,7 @@ public interface Clusters { /** * Gets a Kusto cluster. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -39,7 +39,7 @@ public interface Clusters { /** * Deletes a Kusto cluster. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -50,7 +50,7 @@ public interface Clusters { /** * Deletes a Kusto cluster. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -62,7 +62,7 @@ public interface Clusters { /** * Stops a Kusto cluster. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -73,7 +73,7 @@ public interface Clusters { /** * Stops a Kusto cluster. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -85,7 +85,7 @@ public interface Clusters { /** * Starts a Kusto cluster. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -96,7 +96,7 @@ public interface Clusters { /** * Starts a Kusto cluster. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -105,10 +105,36 @@ public interface Clusters { */ void start(String resourceGroupName, String clusterName, Context context); + /** + * Migrate data from a Kusto cluster to another cluster. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the Kusto cluster. + * @param clusterMigrateRequest The cluster migrate request parameters. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + void migrate(String resourceGroupName, String clusterName, ClusterMigrateRequest clusterMigrateRequest); + + /** + * Migrate data from a Kusto cluster to another cluster. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the Kusto cluster. + * @param clusterMigrateRequest The cluster migrate request parameters. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + void migrate( + String resourceGroupName, String clusterName, ClusterMigrateRequest clusterMigrateRequest, Context context); + /** * Returns a list of databases that are owned by this cluster and were followed by another cluster. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -120,7 +146,7 @@ public interface Clusters { /** * Returns a list of databases that are owned by this cluster and were followed by another cluster. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -134,7 +160,7 @@ PagedIterable listFollowerDatabases( /** * Detaches all followers of a database owned by this cluster. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param followerDatabaseToRemove The follower databases properties to remove. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -147,7 +173,7 @@ void detachFollowerDatabases( /** * Detaches all followers of a database owned by this cluster. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param followerDatabaseToRemove The follower databases properties to remove. * @param context The context to associate with this operation. @@ -164,7 +190,7 @@ void detachFollowerDatabases( /** * Diagnoses network connectivity status for external resources on which the service is dependent on. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -176,7 +202,7 @@ void detachFollowerDatabases( /** * Diagnoses network connectivity status for external resources on which the service is dependent on. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -189,7 +215,7 @@ void detachFollowerDatabases( /** * Lists all Kusto clusters within a resource group. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -200,7 +226,7 @@ void detachFollowerDatabases( /** * Lists all Kusto clusters within a resource group. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -252,7 +278,7 @@ void detachFollowerDatabases( /** * Checks that the cluster name is valid and is not already in use. * - * @param location Azure location (region) name. + * @param location The name of Azure region. * @param clusterName The name of the cluster. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -266,7 +292,7 @@ Response checkNameAvailabilityWithResponse( /** * Checks that the cluster name is valid and is not already in use. * - * @param location Azure location (region) name. + * @param location The name of Azure region. * @param clusterName The name of the cluster. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -278,7 +304,7 @@ Response checkNameAvailabilityWithResponse( /** * Returns the SKUs available for the provided resource. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -290,7 +316,7 @@ Response checkNameAvailabilityWithResponse( /** * Returns the SKUs available for the provided resource. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -303,7 +329,7 @@ Response checkNameAvailabilityWithResponse( /** * Gets the network endpoints of all outbound dependencies of a Kusto cluster. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -317,7 +343,7 @@ PagedIterable listOutboundNetworkDependenci /** * Gets the network endpoints of all outbound dependencies of a Kusto cluster. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -332,7 +358,7 @@ PagedIterable listOutboundNetworkDependenci /** * Returns a list of language extensions that can run within KQL queries. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -344,7 +370,7 @@ PagedIterable listOutboundNetworkDependenci /** * Returns a list of language extensions that can run within KQL queries. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -358,7 +384,7 @@ PagedIterable listLanguageExtensions( /** * Add a list of language extensions that can run within KQL queries. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param languageExtensionsToAdd The language extensions to add. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -371,7 +397,7 @@ void addLanguageExtensions( /** * Add a list of language extensions that can run within KQL queries. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param languageExtensionsToAdd The language extensions to add. * @param context The context to associate with this operation. @@ -385,7 +411,7 @@ void addLanguageExtensions( /** * Remove a list of language extensions that can run within KQL queries. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param languageExtensionsToRemove The language extensions to remove. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -398,7 +424,7 @@ void removeLanguageExtensions( /** * Remove a list of language extensions that can run within KQL queries. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param languageExtensionsToRemove The language extensions to remove. * @param context The context to associate with this operation. diff --git a/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/models/DataConnections.java b/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/models/DataConnections.java index cca69b60800c..cd4559565f3f 100644 --- a/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/models/DataConnections.java +++ b/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/models/DataConnections.java @@ -15,7 +15,7 @@ public interface DataConnections { /** * Returns the list of data connections of the given Kusto database. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param databaseName The name of the database in the Kusto cluster. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -28,7 +28,7 @@ public interface DataConnections { /** * Returns the list of data connections of the given Kusto database. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param databaseName The name of the database in the Kusto cluster. * @param context The context to associate with this operation. @@ -43,7 +43,7 @@ PagedIterable listByDatabase( /** * Checks that the data connection parameters are valid. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param databaseName The name of the database in the Kusto cluster. * @param parameters The data connection parameters supplied to the CreateOrUpdate operation. @@ -58,7 +58,7 @@ DataConnectionValidationListResult dataConnectionValidation( /** * Checks that the data connection parameters are valid. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param databaseName The name of the database in the Kusto cluster. * @param parameters The data connection parameters supplied to the CreateOrUpdate operation. @@ -78,7 +78,7 @@ DataConnectionValidationListResult dataConnectionValidation( /** * Checks that the data connection name is valid and is not already in use. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param databaseName The name of the database in the Kusto cluster. * @param dataConnectionName The name of the data connection. @@ -98,7 +98,7 @@ Response checkNameAvailabilityWithResponse( /** * Checks that the data connection name is valid and is not already in use. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param databaseName The name of the database in the Kusto cluster. * @param dataConnectionName The name of the data connection. @@ -116,7 +116,7 @@ CheckNameResult checkNameAvailability( /** * Returns a data connection. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param databaseName The name of the database in the Kusto cluster. * @param dataConnectionName The name of the data connection. @@ -132,7 +132,7 @@ Response getWithResponse( /** * Returns a data connection. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param databaseName The name of the database in the Kusto cluster. * @param dataConnectionName The name of the data connection. @@ -146,7 +146,7 @@ Response getWithResponse( /** * Creates or updates a data connection. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param databaseName The name of the database in the Kusto cluster. * @param dataConnectionName The name of the data connection. @@ -166,7 +166,7 @@ DataConnection createOrUpdate( /** * Creates or updates a data connection. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param databaseName The name of the database in the Kusto cluster. * @param dataConnectionName The name of the data connection. @@ -188,7 +188,7 @@ DataConnection createOrUpdate( /** * Updates a data connection. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param databaseName The name of the database in the Kusto cluster. * @param dataConnectionName The name of the data connection. @@ -208,7 +208,7 @@ DataConnection update( /** * Updates a data connection. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param databaseName The name of the database in the Kusto cluster. * @param dataConnectionName The name of the data connection. @@ -230,7 +230,7 @@ DataConnection update( /** * Deletes the data connection with the given name. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param databaseName The name of the database in the Kusto cluster. * @param dataConnectionName The name of the data connection. @@ -243,7 +243,7 @@ DataConnection update( /** * Deletes the data connection with the given name. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param databaseName The name of the database in the Kusto cluster. * @param dataConnectionName The name of the data connection. diff --git a/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/models/DatabaseInviteFollowerRequest.java b/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/models/DatabaseInviteFollowerRequest.java new file mode 100644 index 000000000000..4bb7ab1c8943 --- /dev/null +++ b/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/models/DatabaseInviteFollowerRequest.java @@ -0,0 +1,89 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.kusto.models; + +import com.azure.core.annotation.Fluent; +import com.azure.core.util.logging.ClientLogger; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** The request to invite a follower to a database. */ +@Fluent +public final class DatabaseInviteFollowerRequest { + /* + * The email of the invited user for which the follower invitation is generated. + */ + @JsonProperty(value = "inviteeEmail", required = true) + private String inviteeEmail; + + /* + * Table level sharing specifications + */ + @JsonProperty(value = "tableLevelSharingProperties") + private TableLevelSharingProperties tableLevelSharingProperties; + + /** Creates an instance of DatabaseInviteFollowerRequest class. */ + public DatabaseInviteFollowerRequest() { + } + + /** + * Get the inviteeEmail property: The email of the invited user for which the follower invitation is generated. + * + * @return the inviteeEmail value. + */ + public String inviteeEmail() { + return this.inviteeEmail; + } + + /** + * Set the inviteeEmail property: The email of the invited user for which the follower invitation is generated. + * + * @param inviteeEmail the inviteeEmail value to set. + * @return the DatabaseInviteFollowerRequest object itself. + */ + public DatabaseInviteFollowerRequest withInviteeEmail(String inviteeEmail) { + this.inviteeEmail = inviteeEmail; + return this; + } + + /** + * Get the tableLevelSharingProperties property: Table level sharing specifications. + * + * @return the tableLevelSharingProperties value. + */ + public TableLevelSharingProperties tableLevelSharingProperties() { + return this.tableLevelSharingProperties; + } + + /** + * Set the tableLevelSharingProperties property: Table level sharing specifications. + * + * @param tableLevelSharingProperties the tableLevelSharingProperties value to set. + * @return the DatabaseInviteFollowerRequest object itself. + */ + public DatabaseInviteFollowerRequest withTableLevelSharingProperties( + TableLevelSharingProperties tableLevelSharingProperties) { + this.tableLevelSharingProperties = tableLevelSharingProperties; + return this; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + if (inviteeEmail() == null) { + throw LOGGER + .logExceptionAsError( + new IllegalArgumentException( + "Missing required property inviteeEmail in model DatabaseInviteFollowerRequest")); + } + if (tableLevelSharingProperties() != null) { + tableLevelSharingProperties().validate(); + } + } + + private static final ClientLogger LOGGER = new ClientLogger(DatabaseInviteFollowerRequest.class); +} diff --git a/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/models/DatabaseInviteFollowerResult.java b/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/models/DatabaseInviteFollowerResult.java new file mode 100644 index 000000000000..36bfd64ad528 --- /dev/null +++ b/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/models/DatabaseInviteFollowerResult.java @@ -0,0 +1,24 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.kusto.models; + +import com.azure.resourcemanager.kusto.fluent.models.DatabaseInviteFollowerResultInner; + +/** An immutable client-side representation of DatabaseInviteFollowerResult. */ +public interface DatabaseInviteFollowerResult { + /** + * Gets the generatedInvitation property: The generated invitation token. + * + * @return the generatedInvitation value. + */ + String generatedInvitation(); + + /** + * Gets the inner com.azure.resourcemanager.kusto.fluent.models.DatabaseInviteFollowerResultInner object. + * + * @return the inner object. + */ + DatabaseInviteFollowerResultInner innerModel(); +} diff --git a/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/models/DatabaseListResult.java b/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/models/DatabaseListResult.java index e07542505b3b..07bd7ad471b8 100644 --- a/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/models/DatabaseListResult.java +++ b/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/models/DatabaseListResult.java @@ -12,6 +12,12 @@ /** The list Kusto databases operation response. */ @Fluent public final class DatabaseListResult { + /* + * Link to the next page of results + */ + @JsonProperty(value = "nextLink") + private String nextLink; + /* * The list of Kusto databases. */ @@ -22,6 +28,26 @@ public final class DatabaseListResult { public DatabaseListResult() { } + /** + * Get the nextLink property: Link to the next page of results. + * + * @return the nextLink value. + */ + public String nextLink() { + return this.nextLink; + } + + /** + * Set the nextLink property: Link to the next page of results. + * + * @param nextLink the nextLink value to set. + * @return the DatabaseListResult object itself. + */ + public DatabaseListResult withNextLink(String nextLink) { + this.nextLink = nextLink; + return this; + } + /** * Get the value property: The list of Kusto databases. * diff --git a/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/models/DatabaseOperations.java b/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/models/DatabaseOperations.java new file mode 100644 index 000000000000..02ec588c3200 --- /dev/null +++ b/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/models/DatabaseOperations.java @@ -0,0 +1,46 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.kusto.models; + +import com.azure.core.http.rest.Response; +import com.azure.core.util.Context; + +/** Resource collection API of DatabaseOperations. */ +public interface DatabaseOperations { + /** + * Generates an invitation token that allows attaching a follower database to this database. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the Kusto cluster. + * @param databaseName The name of the database in the Kusto cluster. + * @param parameters The follower invitation request parameters. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the result returned from a follower invitation generation request along with {@link Response}. + */ + Response inviteFollowerWithResponse( + String resourceGroupName, + String clusterName, + String databaseName, + DatabaseInviteFollowerRequest parameters, + Context context); + + /** + * Generates an invitation token that allows attaching a follower database to this database. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the Kusto cluster. + * @param databaseName The name of the database in the Kusto cluster. + * @param parameters The follower invitation request parameters. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the result returned from a follower invitation generation request. + */ + DatabaseInviteFollowerResult inviteFollower( + String resourceGroupName, String clusterName, String databaseName, DatabaseInviteFollowerRequest parameters); +} diff --git a/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/models/DatabasePrincipalAssignment.java b/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/models/DatabasePrincipalAssignment.java index 771029ad134e..10500d7fe328 100644 --- a/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/models/DatabasePrincipalAssignment.java +++ b/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/models/DatabasePrincipalAssignment.java @@ -115,7 +115,7 @@ interface WithParentResource { /** * Specifies resourceGroupName, clusterName, databaseName. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param databaseName The name of the database in the Kusto cluster. * @return the next definition stage. diff --git a/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/models/DatabasePrincipalAssignments.java b/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/models/DatabasePrincipalAssignments.java index 2c9ac57e6e26..b10aea0f2782 100644 --- a/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/models/DatabasePrincipalAssignments.java +++ b/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/models/DatabasePrincipalAssignments.java @@ -13,7 +13,7 @@ public interface DatabasePrincipalAssignments { /** * Checks that the database principal assignment is valid and is not already in use. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param databaseName The name of the database in the Kusto cluster. * @param principalAssignmentName The name of the resource. @@ -33,7 +33,7 @@ Response checkNameAvailabilityWithResponse( /** * Checks that the database principal assignment is valid and is not already in use. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param databaseName The name of the database in the Kusto cluster. * @param principalAssignmentName The name of the resource. @@ -51,7 +51,7 @@ CheckNameResult checkNameAvailability( /** * Gets a Kusto cluster database principalAssignment. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param databaseName The name of the database in the Kusto cluster. * @param principalAssignmentName The name of the Kusto principalAssignment. @@ -71,7 +71,7 @@ Response getWithResponse( /** * Gets a Kusto cluster database principalAssignment. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param databaseName The name of the database in the Kusto cluster. * @param principalAssignmentName The name of the Kusto principalAssignment. @@ -86,7 +86,7 @@ DatabasePrincipalAssignment get( /** * Deletes a Kusto principalAssignment. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param databaseName The name of the database in the Kusto cluster. * @param principalAssignmentName The name of the Kusto principalAssignment. @@ -99,7 +99,7 @@ DatabasePrincipalAssignment get( /** * Deletes a Kusto principalAssignment. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param databaseName The name of the database in the Kusto cluster. * @param principalAssignmentName The name of the Kusto principalAssignment. @@ -118,7 +118,7 @@ void delete( /** * Lists all Kusto cluster database principalAssignments. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param databaseName The name of the database in the Kusto cluster. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -132,7 +132,7 @@ void delete( /** * Lists all Kusto cluster database principalAssignments. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param databaseName The name of the database in the Kusto cluster. * @param context The context to associate with this operation. diff --git a/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/models/Databases.java b/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/models/Databases.java index c2da94c04bec..adc451df91c5 100644 --- a/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/models/Databases.java +++ b/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/models/Databases.java @@ -14,7 +14,7 @@ public interface Databases { /** * Checks that the databases resource name is valid and is not already in use. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param resourceName The name of the resource. * @param context The context to associate with this operation. @@ -29,7 +29,7 @@ Response checkNameAvailabilityWithResponse( /** * Checks that the databases resource name is valid and is not already in use. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param resourceName The name of the resource. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -42,7 +42,7 @@ Response checkNameAvailabilityWithResponse( /** * Returns the list of databases of the given Kusto cluster. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -54,20 +54,25 @@ Response checkNameAvailabilityWithResponse( /** * Returns the list of databases of the given Kusto cluster. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. + * @param top limit the number of results. + * @param skiptoken Skiptoken is only used if a previous operation returned a partial result. If a previous response + * contains a nextLink element, the value of the nextLink element will include a skiptoken parameter that + * specifies a starting point to use for subsequent calls. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the list Kusto databases operation response as paginated response with {@link PagedIterable}. */ - PagedIterable listByCluster(String resourceGroupName, String clusterName, Context context); + PagedIterable listByCluster( + String resourceGroupName, String clusterName, Integer top, String skiptoken, Context context); /** * Returns a database. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param databaseName The name of the database in the Kusto cluster. * @param context The context to associate with this operation. @@ -82,7 +87,7 @@ Response getWithResponse( /** * Returns a database. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param databaseName The name of the database in the Kusto cluster. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -95,7 +100,7 @@ Response getWithResponse( /** * Creates or updates a database. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param databaseName The name of the database in the Kusto cluster. * @param parameters The database parameters supplied to the CreateOrUpdate operation. @@ -110,7 +115,7 @@ Database createOrUpdate( /** * Creates or updates a database. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param databaseName The name of the database in the Kusto cluster. * @param parameters The database parameters supplied to the CreateOrUpdate operation. @@ -133,7 +138,7 @@ Database createOrUpdate( /** * Updates a database. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param databaseName The name of the database in the Kusto cluster. * @param parameters The database parameters supplied to the Update operation. @@ -147,7 +152,7 @@ Database createOrUpdate( /** * Updates a database. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param databaseName The name of the database in the Kusto cluster. * @param parameters The database parameters supplied to the Update operation. @@ -170,7 +175,7 @@ Database update( /** * Deletes the database with the given name. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param databaseName The name of the database in the Kusto cluster. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -182,7 +187,7 @@ Database update( /** * Deletes the database with the given name. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param databaseName The name of the database in the Kusto cluster. * @param context The context to associate with this operation. @@ -195,7 +200,7 @@ Database update( /** * Returns a list of database principals of the given Kusto cluster and database. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param databaseName The name of the database in the Kusto cluster. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -208,7 +213,7 @@ Database update( /** * Returns a list of database principals of the given Kusto cluster and database. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param databaseName The name of the database in the Kusto cluster. * @param context The context to associate with this operation. @@ -223,7 +228,7 @@ PagedIterable listPrincipals( /** * Add Database principals permissions. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param databaseName The name of the database in the Kusto cluster. * @param databasePrincipalsToAdd List of database principals to add. @@ -243,7 +248,7 @@ Response addPrincipalsWithResponse( /** * Add Database principals permissions. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param databaseName The name of the database in the Kusto cluster. * @param databasePrincipalsToAdd List of database principals to add. @@ -261,7 +266,7 @@ DatabasePrincipalListResult addPrincipals( /** * Remove Database principals permissions. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param databaseName The name of the database in the Kusto cluster. * @param databasePrincipalsToRemove List of database principals to remove. @@ -281,7 +286,7 @@ Response removePrincipalsWithResponse( /** * Remove Database principals permissions. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param databaseName The name of the database in the Kusto cluster. * @param databasePrincipalsToRemove List of database principals to remove. diff --git a/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/models/Identity.java b/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/models/Identity.java index c3a2d47c6e48..df78c4eafc3c 100644 --- a/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/models/Identity.java +++ b/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/models/Identity.java @@ -12,7 +12,7 @@ /** Identity for the resource. */ @Fluent -public class Identity { +public final class Identity { /* * The principal ID of resource identity. */ diff --git a/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/models/LanguageExtensionImageName.java b/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/models/LanguageExtensionImageName.java index f924c79358b7..ea98b43af7fb 100644 --- a/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/models/LanguageExtensionImageName.java +++ b/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/models/LanguageExtensionImageName.java @@ -16,13 +16,6 @@ public final class LanguageExtensionImageName extends ExpandableStringEnum checkNameAvailabilityWithResponse( /** * Checks that the managed private endpoints resource name is valid and is not already in use. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param resourceName The name of the resource. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -45,7 +45,7 @@ CheckNameResult checkNameAvailability( /** * Returns the list of managed private endpoints. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -57,7 +57,7 @@ CheckNameResult checkNameAvailability( /** * Returns the list of managed private endpoints. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -70,7 +70,7 @@ CheckNameResult checkNameAvailability( /** * Gets a managed private endpoint. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param managedPrivateEndpointName The name of the managed private endpoint. * @param context The context to associate with this operation. @@ -85,7 +85,7 @@ Response getWithResponse( /** * Gets a managed private endpoint. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param managedPrivateEndpointName The name of the managed private endpoint. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -98,7 +98,7 @@ Response getWithResponse( /** * Deletes a managed private endpoint. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param managedPrivateEndpointName The name of the managed private endpoint. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -110,7 +110,7 @@ Response getWithResponse( /** * Deletes a managed private endpoint. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param managedPrivateEndpointName The name of the managed private endpoint. * @param context The context to associate with this operation. diff --git a/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/models/MigrationClusterProperties.java b/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/models/MigrationClusterProperties.java new file mode 100644 index 000000000000..7cf48f350e8f --- /dev/null +++ b/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/models/MigrationClusterProperties.java @@ -0,0 +1,84 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.kusto.models; + +import com.azure.core.annotation.Immutable; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** Represents a properties of a cluster that is part of a migration. */ +@Immutable +public final class MigrationClusterProperties { + /* + * The resource ID of the cluster. + */ + @JsonProperty(value = "id", access = JsonProperty.Access.WRITE_ONLY) + private String id; + + /* + * The public URL of the cluster. + */ + @JsonProperty(value = "uri", access = JsonProperty.Access.WRITE_ONLY) + private String uri; + + /* + * The public data ingestion URL of the cluster. + */ + @JsonProperty(value = "dataIngestionUri", access = JsonProperty.Access.WRITE_ONLY) + private String dataIngestionUri; + + /* + * The role of the cluster in the migration process. + */ + @JsonProperty(value = "role", access = JsonProperty.Access.WRITE_ONLY) + private MigrationClusterRole role; + + /** Creates an instance of MigrationClusterProperties class. */ + public MigrationClusterProperties() { + } + + /** + * Get the id property: The resource ID of the cluster. + * + * @return the id value. + */ + public String id() { + return this.id; + } + + /** + * Get the uri property: The public URL of the cluster. + * + * @return the uri value. + */ + public String uri() { + return this.uri; + } + + /** + * Get the dataIngestionUri property: The public data ingestion URL of the cluster. + * + * @return the dataIngestionUri value. + */ + public String dataIngestionUri() { + return this.dataIngestionUri; + } + + /** + * Get the role property: The role of the cluster in the migration process. + * + * @return the role value. + */ + public MigrationClusterRole role() { + return this.role; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + } +} diff --git a/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/models/MigrationClusterRole.java b/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/models/MigrationClusterRole.java new file mode 100644 index 000000000000..49984905ba99 --- /dev/null +++ b/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/models/MigrationClusterRole.java @@ -0,0 +1,47 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.kusto.models; + +import com.azure.core.util.ExpandableStringEnum; +import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.Collection; + +/** The role of the cluster in the migration process. */ +public final class MigrationClusterRole extends ExpandableStringEnum { + /** Static value Source for MigrationClusterRole. */ + public static final MigrationClusterRole SOURCE = fromString("Source"); + + /** Static value Destination for MigrationClusterRole. */ + public static final MigrationClusterRole DESTINATION = fromString("Destination"); + + /** + * Creates a new instance of MigrationClusterRole value. + * + * @deprecated Use the {@link #fromString(String)} factory method. + */ + @Deprecated + public MigrationClusterRole() { + } + + /** + * Creates or finds a MigrationClusterRole from its string representation. + * + * @param name a name to look for. + * @return the corresponding MigrationClusterRole. + */ + @JsonCreator + public static MigrationClusterRole fromString(String name) { + return fromString(name, MigrationClusterRole.class); + } + + /** + * Gets known MigrationClusterRole values. + * + * @return known MigrationClusterRole values. + */ + public static Collection values() { + return values(MigrationClusterRole.class); + } +} diff --git a/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/models/OperationsResults.java b/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/models/OperationsResults.java index 9406f36bc80d..b55745920020 100644 --- a/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/models/OperationsResults.java +++ b/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/models/OperationsResults.java @@ -12,8 +12,8 @@ public interface OperationsResults { /** * Returns operation results. * - * @param location Azure location (region) name. - * @param operationId The Guid of the operation ID. + * @param location The name of Azure region. + * @param operationId The ID of an ongoing async operation. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -25,8 +25,8 @@ public interface OperationsResults { /** * Returns operation results. * - * @param location Azure location (region) name. - * @param operationId The Guid of the operation ID. + * @param location The name of Azure region. + * @param operationId The ID of an ongoing async operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. diff --git a/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/models/OperationsResultsLocations.java b/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/models/OperationsResultsLocations.java index 954a8cb37cde..22787db4c8df 100644 --- a/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/models/OperationsResultsLocations.java +++ b/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/models/OperationsResultsLocations.java @@ -4,7 +4,6 @@ package com.azure.resourcemanager.kusto.models; -import com.azure.core.http.rest.Response; import com.azure.core.util.Context; /** Resource collection API of OperationsResultsLocations. */ @@ -12,21 +11,21 @@ public interface OperationsResultsLocations { /** * Returns operation results. * - * @param location Azure location (region) name. - * @param operationId The Guid of the operation ID. + * @param location The name of Azure region. + * @param operationId The ID of an ongoing async operation. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response}. + * @return the response. */ - Response getWithResponse(String location, String operationId, Context context); + OperationsResultsLocationsGetResponse getWithResponse(String location, String operationId, Context context); /** * Returns operation results. * - * @param location Azure location (region) name. - * @param operationId The Guid of the operation ID. + * @param location The name of Azure region. + * @param operationId The ID of an ongoing async operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. diff --git a/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/models/OperationsResultsLocationsGetHeaders.java b/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/models/OperationsResultsLocationsGetHeaders.java new file mode 100644 index 000000000000..200050446d1e --- /dev/null +++ b/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/models/OperationsResultsLocationsGetHeaders.java @@ -0,0 +1,60 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.kusto.models; + +import com.azure.core.annotation.Fluent; +import com.azure.core.http.HttpHeaderName; +import com.azure.core.http.HttpHeaders; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** The OperationsResultsLocationsGetHeaders model. */ +@Fluent +public final class OperationsResultsLocationsGetHeaders { + /* + * The Azure-AsyncOperation property. + */ + @JsonProperty(value = "Azure-AsyncOperation") + private String azureAsyncOperation; + + private static final HttpHeaderName AZURE_ASYNC_OPERATION = HttpHeaderName.fromString("Azure-AsyncOperation"); + + // HttpHeaders containing the raw property values. + /** + * Creates an instance of OperationsResultsLocationsGetHeaders class. + * + * @param rawHeaders The raw HttpHeaders that will be used to create the property values. + */ + public OperationsResultsLocationsGetHeaders(HttpHeaders rawHeaders) { + this.azureAsyncOperation = rawHeaders.getValue(AZURE_ASYNC_OPERATION); + } + + /** + * Get the azureAsyncOperation property: The Azure-AsyncOperation property. + * + * @return the azureAsyncOperation value. + */ + public String azureAsyncOperation() { + return this.azureAsyncOperation; + } + + /** + * Set the azureAsyncOperation property: The Azure-AsyncOperation property. + * + * @param azureAsyncOperation the azureAsyncOperation value to set. + * @return the OperationsResultsLocationsGetHeaders object itself. + */ + public OperationsResultsLocationsGetHeaders withAzureAsyncOperation(String azureAsyncOperation) { + this.azureAsyncOperation = azureAsyncOperation; + return this; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + } +} diff --git a/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/models/OperationsResultsLocationsGetResponse.java b/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/models/OperationsResultsLocationsGetResponse.java new file mode 100644 index 000000000000..31312b85d79f --- /dev/null +++ b/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/models/OperationsResultsLocationsGetResponse.java @@ -0,0 +1,31 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.kusto.models; + +import com.azure.core.http.HttpHeaders; +import com.azure.core.http.HttpRequest; +import com.azure.core.http.rest.ResponseBase; + +/** Contains all response data for the get operation. */ +public final class OperationsResultsLocationsGetResponse + extends ResponseBase { + /** + * Creates an instance of OperationsResultsLocationsGetResponse. + * + * @param request the request which resulted in this OperationsResultsLocationsGetResponse. + * @param statusCode the status code of the HTTP response. + * @param rawHeaders the raw headers of the HTTP response. + * @param value the deserialized value of the HTTP response. + * @param headers the deserialized headers of the HTTP response. + */ + public OperationsResultsLocationsGetResponse( + HttpRequest request, + int statusCode, + HttpHeaders rawHeaders, + Void value, + OperationsResultsLocationsGetHeaders headers) { + super(request, statusCode, rawHeaders, value, headers); + } +} diff --git a/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/models/PrivateEndpointConnection.java b/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/models/PrivateEndpointConnection.java index 96fa4d04388f..69d7433c3453 100644 --- a/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/models/PrivateEndpointConnection.java +++ b/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/models/PrivateEndpointConnection.java @@ -94,7 +94,7 @@ interface WithParentResource { /** * Specifies resourceGroupName, clusterName. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @return the next definition stage. */ diff --git a/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/models/PrivateEndpointConnections.java b/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/models/PrivateEndpointConnections.java index 827757b78b73..5a877e5c05eb 100644 --- a/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/models/PrivateEndpointConnections.java +++ b/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/models/PrivateEndpointConnections.java @@ -13,7 +13,7 @@ public interface PrivateEndpointConnections { /** * Returns the list of private endpoint connections. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -25,7 +25,7 @@ public interface PrivateEndpointConnections { /** * Returns the list of private endpoint connections. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -38,7 +38,7 @@ public interface PrivateEndpointConnections { /** * Gets a private endpoint connection. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param privateEndpointConnectionName The name of the private endpoint connection. * @param context The context to associate with this operation. @@ -53,7 +53,7 @@ Response getWithResponse( /** * Gets a private endpoint connection. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param privateEndpointConnectionName The name of the private endpoint connection. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -66,7 +66,7 @@ Response getWithResponse( /** * Deletes a private endpoint connection with a given name. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param privateEndpointConnectionName The name of the private endpoint connection. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -78,7 +78,7 @@ Response getWithResponse( /** * Deletes a private endpoint connection with a given name. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param privateEndpointConnectionName The name of the private endpoint connection. * @param context The context to associate with this operation. diff --git a/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/models/PrivateLinkResources.java b/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/models/PrivateLinkResources.java index 67b99762904b..2e12fc7b9044 100644 --- a/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/models/PrivateLinkResources.java +++ b/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/models/PrivateLinkResources.java @@ -13,7 +13,7 @@ public interface PrivateLinkResources { /** * Returns the list of private link resources. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -25,7 +25,7 @@ public interface PrivateLinkResources { /** * Returns the list of private link resources. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -38,7 +38,7 @@ public interface PrivateLinkResources { /** * Gets a private link resource. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param privateLinkResourceName The name of the private link resource. * @param context The context to associate with this operation. @@ -53,7 +53,7 @@ Response getWithResponse( /** * Gets a private link resource. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param privateLinkResourceName The name of the private link resource. * @throws IllegalArgumentException thrown if parameters fail the validation. diff --git a/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/models/ReadOnlyFollowingDatabase.java b/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/models/ReadOnlyFollowingDatabase.java index 8d86bb9f00a8..ec502825c323 100644 --- a/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/models/ReadOnlyFollowingDatabase.java +++ b/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/models/ReadOnlyFollowingDatabase.java @@ -149,6 +149,16 @@ public DatabaseShareOrigin databaseShareOrigin() { return this.innerProperties() == null ? null : this.innerProperties().databaseShareOrigin(); } + /** + * Get the suspensionDetails property: The database suspension details. If the database is suspended, this object + * contains information related to the database's suspension state. + * + * @return the suspensionDetails value. + */ + public SuspensionDetails suspensionDetails() { + return this.innerProperties() == null ? null : this.innerProperties().suspensionDetails(); + } + /** * Validates the instance. * diff --git a/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/models/ReadWriteDatabase.java b/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/models/ReadWriteDatabase.java index 3d3f98bb8c13..8d87fba1f40f 100644 --- a/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/models/ReadWriteDatabase.java +++ b/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/models/ReadWriteDatabase.java @@ -118,6 +118,39 @@ public Boolean isFollowed() { return this.innerProperties() == null ? null : this.innerProperties().isFollowed(); } + /** + * Get the keyVaultProperties property: KeyVault properties for the database encryption. + * + * @return the keyVaultProperties value. + */ + public KeyVaultProperties keyVaultProperties() { + return this.innerProperties() == null ? null : this.innerProperties().keyVaultProperties(); + } + + /** + * Set the keyVaultProperties property: KeyVault properties for the database encryption. + * + * @param keyVaultProperties the keyVaultProperties value to set. + * @return the ReadWriteDatabase object itself. + */ + public ReadWriteDatabase withKeyVaultProperties(KeyVaultProperties keyVaultProperties) { + if (this.innerProperties() == null) { + this.innerProperties = new ReadWriteDatabaseProperties(); + } + this.innerProperties().withKeyVaultProperties(keyVaultProperties); + return this; + } + + /** + * Get the suspensionDetails property: The database suspension details. If the database is suspended, this object + * contains information related to the database's suspension state. + * + * @return the suspensionDetails value. + */ + public SuspensionDetails suspensionDetails() { + return this.innerProperties() == null ? null : this.innerProperties().suspensionDetails(); + } + /** * Validates the instance. * diff --git a/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/models/Script.java b/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/models/Script.java index 9a930713cfcc..5a8e7fc69ba3 100644 --- a/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/models/Script.java +++ b/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/models/Script.java @@ -111,7 +111,7 @@ interface WithParentResource { /** * Specifies resourceGroupName, clusterName, databaseName. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param databaseName The name of the database in the Kusto cluster. * @return the next definition stage. diff --git a/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/models/Scripts.java b/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/models/Scripts.java index e3a7327f8b81..9cc1e28bf1cd 100644 --- a/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/models/Scripts.java +++ b/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/models/Scripts.java @@ -13,7 +13,7 @@ public interface Scripts { /** * Returns the list of database scripts for given database. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param databaseName The name of the database in the Kusto cluster. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -26,7 +26,7 @@ public interface Scripts { /** * Returns the list of database scripts for given database. * - * @param resourceGroupName The name of the resource group containing the Kusto cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the Kusto cluster. * @param databaseName The name of the database in the Kusto cluster. * @param context The context to associate with this operation. @@ -41,7 +41,7 @@ PagedIterable