diff --git a/sdk/kusto/azure-resourcemanager-kusto/CHANGELOG.md b/sdk/kusto/azure-resourcemanager-kusto/CHANGELOG.md index 0ef14a22d29a..79c6d065f3a9 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.4 (Unreleased) +## 1.0.0-beta.1 (2022-02-14) + +- 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-02. 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 a64bd7823629..e7b742650327 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-2021-08-27. 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-2022-02. 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.3 + 1.0.0-beta.4 ``` [//]: # ({x-version-update-end}) diff --git a/sdk/kusto/azure-resourcemanager-kusto/SAMPLE.md b/sdk/kusto/azure-resourcemanager-kusto/SAMPLE.md index 7b6aab19ff4b..f14e6a7b7ae2 100644 --- a/sdk/kusto/azure-resourcemanager-kusto/SAMPLE.md +++ b/sdk/kusto/azure-resourcemanager-kusto/SAMPLE.md @@ -85,6 +85,10 @@ - [Get](#operationsresults_get) +## OperationsResultsLocation + +- [Get](#operationsresultslocation_get) + ## PrivateEndpointConnections - [CreateOrUpdate](#privateendpointconnections_createorupdate) @@ -114,7 +118,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/2021-08-27/examples/KustoAttachedDatabaseConfigurationCheckNameAvailability.json + * x-ms-original-file: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2022-02-01/examples/KustoAttachedDatabaseConfigurationCheckNameAvailability.json */ /** * Sample code: KustoAttachedDatabaseConfigurationCheckNameAvailability. @@ -127,7 +131,7 @@ public final class AttachedDatabaseConfigurationsCheckNameAvailabilitySamples { .attachedDatabaseConfigurations() .checkNameAvailabilityWithResponse( "kustorptest", - "kustoclusterrptest4", + "kustoCluster", new AttachedDatabaseConfigurationsCheckNameRequest().withName("adc1"), Context.NONE); } @@ -144,7 +148,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/2021-08-27/examples/KustoAttachedDatabaseConfigurationsCreateOrUpdate.json + * x-ms-original-file: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2022-02-01/examples/KustoAttachedDatabaseConfigurationsCreateOrUpdate.json */ /** * Sample code: AttachedDatabaseConfigurationsCreateOrUpdate. @@ -155,12 +159,12 @@ public final class AttachedDatabaseConfigurationsCreateOrUpdateSamples { com.azure.resourcemanager.kusto.KustoManager manager) { manager .attachedDatabaseConfigurations() - .define("attachedDatabaseConfigurations1") - .withExistingCluster("kustorptest", "kustoclusterrptest4") + .define("attachedDatabaseConfigurationsTest") + .withExistingCluster("kustorptest", "kustoCluster2") .withRegion("westus") .withDatabaseName("kustodatabase") .withClusterResourceId( - "/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.Kusto/Clusters/KustoClusterLeader") + "/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.Kusto/Clusters/kustoCluster2") .withDefaultPrincipalsModificationKind(DefaultPrincipalsModificationKind.UNION) .withTableLevelSharingProperties( new TableLevelSharingProperties() @@ -183,7 +187,7 @@ import com.azure.core.util.Context; /** Samples for AttachedDatabaseConfigurations Delete. */ public final class AttachedDatabaseConfigurationsDeleteSamples { /* - * x-ms-original-file: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2021-08-27/examples/KustoAttachedDatabaseConfigurationsDelete.json + * x-ms-original-file: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2022-02-01/examples/KustoAttachedDatabaseConfigurationsDelete.json */ /** * Sample code: AttachedDatabaseConfigurationsDelete. @@ -193,7 +197,7 @@ public final class AttachedDatabaseConfigurationsDeleteSamples { public static void attachedDatabaseConfigurationsDelete(com.azure.resourcemanager.kusto.KustoManager manager) { manager .attachedDatabaseConfigurations() - .delete("kustorptest", "kustoclusterrptest4", "attachedDatabaseConfigurations1", Context.NONE); + .delete("kustorptest", "kustoCluster", "attachedDatabaseConfigurationsTest", Context.NONE); } } ``` @@ -206,7 +210,7 @@ import com.azure.core.util.Context; /** Samples for AttachedDatabaseConfigurations Get. */ public final class AttachedDatabaseConfigurationsGetSamples { /* - * x-ms-original-file: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2021-08-27/examples/KustoAttachedDatabaseConfigurationsGet.json + * x-ms-original-file: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2022-02-01/examples/KustoAttachedDatabaseConfigurationsGet.json */ /** * Sample code: AttachedDatabaseConfigurationsGet. @@ -216,7 +220,7 @@ public final class AttachedDatabaseConfigurationsGetSamples { public static void attachedDatabaseConfigurationsGet(com.azure.resourcemanager.kusto.KustoManager manager) { manager .attachedDatabaseConfigurations() - .getWithResponse("kustorptest", "kustoclusterrptest4", "attachedDatabaseConfigurations1", Context.NONE); + .getWithResponse("kustorptest", "kustoCluster2", "attachedDatabaseConfigurationsTest", Context.NONE); } } ``` @@ -229,7 +233,7 @@ import com.azure.core.util.Context; /** Samples for AttachedDatabaseConfigurations ListByCluster. */ public final class AttachedDatabaseConfigurationsListByClusterSamples { /* - * x-ms-original-file: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2021-08-27/examples/KustoAttachedDatabaseConfigurationsListByCluster.json + * x-ms-original-file: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2022-02-01/examples/KustoAttachedDatabaseConfigurationsListByCluster.json */ /** * Sample code: KustoAttachedDatabaseConfigurationsListByCluster. @@ -238,7 +242,7 @@ public final class AttachedDatabaseConfigurationsListByClusterSamples { */ public static void kustoAttachedDatabaseConfigurationsListByCluster( com.azure.resourcemanager.kusto.KustoManager manager) { - manager.attachedDatabaseConfigurations().listByCluster("kustorptest", "kustoclusterrptest4", Context.NONE); + manager.attachedDatabaseConfigurations().listByCluster("kustorptest", "kustoCluster2", Context.NONE); } } ``` @@ -252,7 +256,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/2021-08-27/examples/KustoClusterPrincipalAssignmentsCheckNameAvailability.json + * x-ms-original-file: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2022-02-01/examples/KustoClusterPrincipalAssignmentsCheckNameAvailability.json */ /** * Sample code: KustoClusterPrincipalAssignmentsCheckNameAvailability. @@ -265,7 +269,7 @@ public final class ClusterPrincipalAssignmentsCheckNameAvailabilitySamples { .clusterPrincipalAssignments() .checkNameAvailabilityWithResponse( "kustorptest", - "kustoclusterrptest4", + "kustoCluster", new ClusterPrincipalAssignmentCheckNameRequest().withName("kustoprincipal1"), Context.NONE); } @@ -281,7 +285,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/2021-08-27/examples/KustoClusterPrincipalAssignmentsCreateOrUpdate.json + * x-ms-original-file: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2022-02-01/examples/KustoClusterPrincipalAssignmentsCreateOrUpdate.json */ /** * Sample code: KustoClusterPrincipalAssignmentsCreateOrUpdate. @@ -293,7 +297,7 @@ public final class ClusterPrincipalAssignmentsCreateOrUpdateSamples { manager .clusterPrincipalAssignments() .define("kustoprincipal1") - .withExistingCluster("kustorptest", "kustoclusterrptest4") + .withExistingCluster("kustorptest", "kustoCluster") .withPrincipalId("87654321-1234-1234-1234-123456789123") .withRole(ClusterPrincipalRole.ALL_DATABASES_ADMIN) .withTenantId("12345678-1234-1234-1234-123456789123") @@ -311,7 +315,7 @@ import com.azure.core.util.Context; /** Samples for ClusterPrincipalAssignments Delete. */ public final class ClusterPrincipalAssignmentsDeleteSamples { /* - * x-ms-original-file: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2021-08-27/examples/KustoClusterPrincipalAssignmentsDelete.json + * x-ms-original-file: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2022-02-01/examples/KustoClusterPrincipalAssignmentsDelete.json */ /** * Sample code: KustoClusterPrincipalAssignmentsDelete. @@ -319,9 +323,7 @@ public final class ClusterPrincipalAssignmentsDeleteSamples { * @param manager Entry point to KustoManager. */ public static void kustoClusterPrincipalAssignmentsDelete(com.azure.resourcemanager.kusto.KustoManager manager) { - manager - .clusterPrincipalAssignments() - .delete("kustorptest", "kustoclusterrptest4", "kustoprincipal1", Context.NONE); + manager.clusterPrincipalAssignments().delete("kustorptest", "kustoCluster", "kustoprincipal1", Context.NONE); } } ``` @@ -334,7 +336,7 @@ import com.azure.core.util.Context; /** Samples for ClusterPrincipalAssignments Get. */ public final class ClusterPrincipalAssignmentsGetSamples { /* - * x-ms-original-file: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2021-08-27/examples/KustoClusterPrincipalAssignmentsGet.json + * x-ms-original-file: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2022-02-01/examples/KustoClusterPrincipalAssignmentsGet.json */ /** * Sample code: KustoClusterPrincipalAssignmentsGet. @@ -344,7 +346,7 @@ public final class ClusterPrincipalAssignmentsGetSamples { public static void kustoClusterPrincipalAssignmentsGet(com.azure.resourcemanager.kusto.KustoManager manager) { manager .clusterPrincipalAssignments() - .getWithResponse("kustorptest", "kustoclusterrptest4", "kustoprincipal1", Context.NONE); + .getWithResponse("kustorptest", "kustoCluster", "kustoprincipal1", Context.NONE); } } ``` @@ -357,7 +359,7 @@ import com.azure.core.util.Context; /** Samples for ClusterPrincipalAssignments List. */ public final class ClusterPrincipalAssignmentsListSamples { /* - * x-ms-original-file: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2021-08-27/examples/KustoClusterPrincipalAssignmentsList.json + * x-ms-original-file: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2022-02-01/examples/KustoClusterPrincipalAssignmentsList.json */ /** * Sample code: KustoPrincipalAssignmentsList. @@ -365,7 +367,7 @@ public final class ClusterPrincipalAssignmentsListSamples { * @param manager Entry point to KustoManager. */ public static void kustoPrincipalAssignmentsList(com.azure.resourcemanager.kusto.KustoManager manager) { - manager.clusterPrincipalAssignments().list("kustorptest", "kustoclusterrptest4", Context.NONE); + manager.clusterPrincipalAssignments().list("kustorptest", "kustoCluster", Context.NONE); } } ``` @@ -382,7 +384,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/2021-08-27/examples/KustoClusterAddLanguageExtensions.json + * x-ms-original-file: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2022-02-01/examples/KustoClusterAddLanguageExtensions.json */ /** * Sample code: KustoClusterAddLanguageExtensions. @@ -394,7 +396,7 @@ public final class ClustersAddLanguageExtensionsSamples { .clusters() .addLanguageExtensions( "kustorptest", - "kustoclusterrptest4", + "kustoCluster", new LanguageExtensionsList() .withValue( Arrays @@ -415,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/2021-08-27/examples/KustoClustersCheckNameAvailability.json + * x-ms-original-file: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2022-02-01/examples/KustoClustersCheckNameAvailability.json */ /** * Sample code: KustoClustersCheckNameAvailability. @@ -426,7 +428,7 @@ public final class ClustersCheckNameAvailabilitySamples { manager .clusters() .checkNameAvailabilityWithResponse( - "westus", new ClusterCheckNameRequest().withName("kustoclusterrptest4"), Context.NONE); + "westus", new ClusterCheckNameRequest().withName("kustoCluster"), Context.NONE); } } ``` @@ -439,13 +441,14 @@ 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.PublicIpType; import com.azure.resourcemanager.kusto.models.PublicNetworkAccess; import java.util.Arrays; /** Samples for Clusters CreateOrUpdate. */ public final class ClustersCreateOrUpdateSamples { /* - * x-ms-original-file: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2021-08-27/examples/KustoClustersCreateOrUpdate.json + * x-ms-original-file: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2022-02-01/examples/KustoClustersCreateOrUpdate.json */ /** * Sample code: KustoClustersCreateOrUpdate. @@ -455,7 +458,7 @@ public final class ClustersCreateOrUpdateSamples { public static void kustoClustersCreateOrUpdate(com.azure.resourcemanager.kusto.KustoManager manager) { manager .clusters() - .define("kustoclusterrptest4") + .define("kustoCluster") .withRegion("westus") .withExistingResourceGroup("kustorptest") .withSku(new AzureSku().withName(AzureSkuName.STANDARD_L8S).withCapacity(2).withTier(AzureSkuTier.STANDARD)) @@ -466,6 +469,7 @@ public final class ClustersCreateOrUpdateSamples { .withPublicNetworkAccess(PublicNetworkAccess.ENABLED) .withAllowedIpRangeList(Arrays.asList("0.0.0.0/0")) .withEnableAutoStop(true) + .withPublicIpType(PublicIpType.DUAL_STACK) .create(); } } @@ -479,7 +483,7 @@ import com.azure.core.util.Context; /** Samples for Clusters Delete. */ public final class ClustersDeleteSamples { /* - * x-ms-original-file: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2021-08-27/examples/KustoClustersDelete.json + * x-ms-original-file: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2022-02-01/examples/KustoClustersDelete.json */ /** * Sample code: KustoClustersDelete. @@ -487,7 +491,7 @@ public final class ClustersDeleteSamples { * @param manager Entry point to KustoManager. */ public static void kustoClustersDelete(com.azure.resourcemanager.kusto.KustoManager manager) { - manager.clusters().delete("kustorptest", "kustoclusterrptest4", Context.NONE); + manager.clusters().delete("kustorptest", "kustoCluster2", Context.NONE); } } ``` @@ -501,7 +505,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/2021-08-27/examples/KustoClusterDetachFollowerDatabases.json + * x-ms-original-file: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2022-02-01/examples/KustoClusterDetachFollowerDatabases.json */ /** * Sample code: KustoClusterDetachFollowerDatabases. @@ -513,11 +517,11 @@ public final class ClustersDetachFollowerDatabasesSamples { .clusters() .detachFollowerDatabases( "kustorptest", - "kustoclusterrptest4", + "kustoCluster", new FollowerDatabaseDefinitionInner() .withClusterResourceId( - "/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.Kusto/clusters/leader4") - .withAttachedDatabaseConfigurationName("myAttachedDatabaseConfiguration"), + "/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.Kusto/clusters/kustoCluster2") + .withAttachedDatabaseConfigurationName("attachedDatabaseConfigurationsTest"), Context.NONE); } } @@ -531,7 +535,7 @@ import com.azure.core.util.Context; /** Samples for Clusters DiagnoseVirtualNetwork. */ public final class ClustersDiagnoseVirtualNetworkSamples { /* - * x-ms-original-file: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2021-08-27/examples/KustoClustersDiagnoseVirtualNetwork.json + * x-ms-original-file: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2022-02-01/examples/KustoClustersDiagnoseVirtualNetwork.json */ /** * Sample code: KustoClusterDiagnoseVirtualNetwork. @@ -539,7 +543,7 @@ public final class ClustersDiagnoseVirtualNetworkSamples { * @param manager Entry point to KustoManager. */ public static void kustoClusterDiagnoseVirtualNetwork(com.azure.resourcemanager.kusto.KustoManager manager) { - manager.clusters().diagnoseVirtualNetwork("kustorptest", "kustoclusterrptest4", Context.NONE); + manager.clusters().diagnoseVirtualNetwork("kustorptest", "kustoCluster", Context.NONE); } } ``` @@ -552,7 +556,7 @@ import com.azure.core.util.Context; /** Samples for Clusters GetByResourceGroup. */ public final class ClustersGetByResourceGroupSamples { /* - * x-ms-original-file: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2021-08-27/examples/KustoClustersGet.json + * x-ms-original-file: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2022-02-01/examples/KustoClustersGet.json */ /** * Sample code: KustoClustersGet. @@ -560,7 +564,7 @@ public final class ClustersGetByResourceGroupSamples { * @param manager Entry point to KustoManager. */ public static void kustoClustersGet(com.azure.resourcemanager.kusto.KustoManager manager) { - manager.clusters().getByResourceGroupWithResponse("kustorptest", "kustoclusterrptest4", Context.NONE); + manager.clusters().getByResourceGroupWithResponse("kustorptest", "kustoCluster", Context.NONE); } } ``` @@ -573,7 +577,7 @@ import com.azure.core.util.Context; /** Samples for Clusters List. */ public final class ClustersListSamples { /* - * x-ms-original-file: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2021-08-27/examples/KustoClustersList.json + * x-ms-original-file: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2022-02-01/examples/KustoClustersList.json */ /** * Sample code: KustoClustersList. @@ -594,7 +598,7 @@ import com.azure.core.util.Context; /** Samples for Clusters ListByResourceGroup. */ public final class ClustersListByResourceGroupSamples { /* - * x-ms-original-file: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2021-08-27/examples/KustoClustersListByResourceGroup.json + * x-ms-original-file: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2022-02-01/examples/KustoClustersListByResourceGroup.json */ /** * Sample code: KustoClustersListByResourceGroup. @@ -615,7 +619,7 @@ import com.azure.core.util.Context; /** Samples for Clusters ListFollowerDatabases. */ public final class ClustersListFollowerDatabasesSamples { /* - * x-ms-original-file: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2021-08-27/examples/KustoClusterListFollowerDatabases.json + * x-ms-original-file: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2022-02-01/examples/KustoClusterListFollowerDatabases.json */ /** * Sample code: KustoClusterListFollowerDatabases. @@ -623,7 +627,7 @@ public final class ClustersListFollowerDatabasesSamples { * @param manager Entry point to KustoManager. */ public static void kustoClusterListFollowerDatabases(com.azure.resourcemanager.kusto.KustoManager manager) { - manager.clusters().listFollowerDatabases("kustorptest", "kustoclusterrptest4", Context.NONE); + manager.clusters().listFollowerDatabases("kustorptest", "kustoCluster", Context.NONE); } } ``` @@ -636,7 +640,7 @@ import com.azure.core.util.Context; /** Samples for Clusters ListLanguageExtensions. */ public final class ClustersListLanguageExtensionsSamples { /* - * x-ms-original-file: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2021-08-27/examples/KustoClusterListLanguageExtensions.json + * x-ms-original-file: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2022-02-01/examples/KustoClusterListLanguageExtensions.json */ /** * Sample code: KustoClusterListLanguageExtensions. @@ -644,7 +648,7 @@ public final class ClustersListLanguageExtensionsSamples { * @param manager Entry point to KustoManager. */ public static void kustoClusterListLanguageExtensions(com.azure.resourcemanager.kusto.KustoManager manager) { - manager.clusters().listLanguageExtensions("kustorptest", "kustoclusterrptest4", Context.NONE); + manager.clusters().listLanguageExtensions("kustorptest", "kustoCluster", Context.NONE); } } ``` @@ -657,7 +661,7 @@ import com.azure.core.util.Context; /** Samples for Clusters ListOutboundNetworkDependenciesEndpoints. */ public final class ClustersListOutboundNetworkDependenciesEndpointsSamples { /* - * x-ms-original-file: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2021-08-27/examples/KustoOutboundNetworkDependenciesList.json + * x-ms-original-file: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2022-02-01/examples/KustoOutboundNetworkDependenciesList.json */ /** * Sample code: Get Kusto cluster outbound network dependencies. @@ -666,7 +670,7 @@ public final class ClustersListOutboundNetworkDependenciesEndpointsSamples { */ public static void getKustoClusterOutboundNetworkDependencies( com.azure.resourcemanager.kusto.KustoManager manager) { - manager.clusters().listOutboundNetworkDependenciesEndpoints("kustorptest", "kustoclusterrptest", Context.NONE); + manager.clusters().listOutboundNetworkDependenciesEndpoints("kustorptest", "kustoCluster", Context.NONE); } } ``` @@ -679,7 +683,7 @@ import com.azure.core.util.Context; /** Samples for Clusters ListSkus. */ public final class ClustersListSkusSamples { /* - * x-ms-original-file: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2021-08-27/examples/KustoClustersListSkus.json + * x-ms-original-file: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2022-02-01/examples/KustoClustersListSkus.json */ /** * Sample code: KustoClustersListSkus. @@ -700,7 +704,7 @@ import com.azure.core.util.Context; /** Samples for Clusters ListSkusByResource. */ public final class ClustersListSkusByResourceSamples { /* - * x-ms-original-file: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2021-08-27/examples/KustoClustersListResourceSkus.json + * x-ms-original-file: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2022-02-01/examples/KustoClustersListResourceSkus.json */ /** * Sample code: KustoClustersListResourceSkus. @@ -708,7 +712,7 @@ public final class ClustersListSkusByResourceSamples { * @param manager Entry point to KustoManager. */ public static void kustoClustersListResourceSkus(com.azure.resourcemanager.kusto.KustoManager manager) { - manager.clusters().listSkusByResource("kustorptest", "kustoclusterrptest4", Context.NONE); + manager.clusters().listSkusByResource("kustorptest", "kustoCluster", Context.NONE); } } ``` @@ -725,7 +729,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/2021-08-27/examples/KustoClusterRemoveLanguageExtensions.json + * x-ms-original-file: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2022-02-01/examples/KustoClusterRemoveLanguageExtensions.json */ /** * Sample code: KustoClusterRemoveLanguageExtensions. @@ -737,7 +741,7 @@ public final class ClustersRemoveLanguageExtensionsSamples { .clusters() .removeLanguageExtensions( "kustorptest", - "kustoclusterrptest4", + "kustoCluster", new LanguageExtensionsList() .withValue( Arrays @@ -757,7 +761,7 @@ import com.azure.core.util.Context; /** Samples for Clusters Start. */ public final class ClustersStartSamples { /* - * x-ms-original-file: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2021-08-27/examples/KustoClustersStart.json + * x-ms-original-file: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2022-02-01/examples/KustoClustersStart.json */ /** * Sample code: KustoClustersStart. @@ -765,7 +769,7 @@ public final class ClustersStartSamples { * @param manager Entry point to KustoManager. */ public static void kustoClustersStart(com.azure.resourcemanager.kusto.KustoManager manager) { - manager.clusters().start("kustorptest", "kustoclusterrptest4", Context.NONE); + manager.clusters().start("kustorptest", "kustoCluster2", Context.NONE); } } ``` @@ -778,7 +782,7 @@ import com.azure.core.util.Context; /** Samples for Clusters Stop. */ public final class ClustersStopSamples { /* - * x-ms-original-file: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2021-08-27/examples/KustoClustersStop.json + * x-ms-original-file: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2022-02-01/examples/KustoClustersStop.json */ /** * Sample code: KustoClustersStop. @@ -786,7 +790,7 @@ public final class ClustersStopSamples { * @param manager Entry point to KustoManager. */ public static void kustoClustersStop(com.azure.resourcemanager.kusto.KustoManager manager) { - manager.clusters().stop("kustorptest", "kustoclusterrptest4", Context.NONE); + manager.clusters().stop("kustorptest", "kustoCluster2", Context.NONE); } } ``` @@ -800,7 +804,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/2021-08-27/examples/KustoClustersUpdate.json + * x-ms-original-file: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2022-02-01/examples/KustoClustersUpdate.json */ /** * Sample code: KustoClustersUpdate. @@ -809,10 +813,7 @@ public final class ClustersUpdateSamples { */ public static void kustoClustersUpdate(com.azure.resourcemanager.kusto.KustoManager manager) { Cluster resource = - manager - .clusters() - .getByResourceGroupWithResponse("kustorptest", "kustoclusterrptest4", Context.NONE) - .getValue(); + manager.clusters().getByResourceGroupWithResponse("kustorptest", "kustoCluster2", Context.NONE).getValue(); resource.update().withIfMatch("*").apply(); } } @@ -827,7 +828,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/2021-08-27/examples/KustoDataConnectionsCheckNameAvailability.json + * x-ms-original-file: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2022-02-01/examples/KustoDataConnectionsCheckNameAvailability.json */ /** * Sample code: KustoDataConnectionsCheckNameAvailability. @@ -839,7 +840,7 @@ public final class DataConnectionsCheckNameAvailabilitySamples { .dataConnections() .checkNameAvailabilityWithResponse( "kustorptest", - "kustoclusterrptest4", + "kustoCluster", "KustoDatabase8", new DataConnectionCheckNameRequest().withName("DataConnections8"), Context.NONE); @@ -851,12 +852,53 @@ public final class DataConnectionsCheckNameAvailabilitySamples { ```java import com.azure.core.util.Context; +import com.azure.resourcemanager.kusto.models.BlobStorageEventType; +import com.azure.resourcemanager.kusto.models.DatabaseRouting; +import com.azure.resourcemanager.kusto.models.EventGridDataConnection; +import com.azure.resourcemanager.kusto.models.EventGridDataFormat; import com.azure.resourcemanager.kusto.models.EventHubDataConnection; /** Samples for DataConnections CreateOrUpdate. */ public final class DataConnectionsCreateOrUpdateSamples { /* - * x-ms-original-file: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2021-08-27/examples/KustoDataConnectionsCreateOrUpdate.json + * x-ms-original-file: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2022-02-01/examples/KustoDataConnectionsEventGridCreateOrUpdate.json + */ + /** + * Sample code: KustoDataConnectionsEventGridCreateOrUpdate. + * + * @param manager Entry point to KustoManager. + */ + public static void kustoDataConnectionsEventGridCreateOrUpdate( + com.azure.resourcemanager.kusto.KustoManager manager) { + manager + .dataConnections() + .createOrUpdate( + "kustorptest", + "kustoCluster", + "KustoDatabase8", + "dataConnectionTest", + new EventGridDataConnection() + .withLocation("westus") + .withStorageAccountResourceId( + "/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.Storage/storageAccounts/teststorageaccount") + .withEventGridResourceId( + "/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.Storage/storageAccounts/teststorageaccount/providers/Microsoft.EventGrid/eventSubscriptions/eventSubscriptionTest") + .withEventHubResourceId( + "/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.EventHub/namespaces/eventhubTestns1/eventhubs/eventhubTest2") + .withConsumerGroup("$Default") + .withTableName("TestTable") + .withMappingRuleName("TestMapping") + .withDataFormat(EventGridDataFormat.JSON) + .withIgnoreFirstRecord(false) + .withBlobStorageEventType(BlobStorageEventType.MICROSOFT_STORAGE_BLOB_CREATED) + .withManagedIdentityResourceId( + "/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.ManagedIdentity/userAssignedIdentities/managedidentityTest1") + .withDatabaseRouting(DatabaseRouting.SINGLE), + Context.NONE); + } + + /* + * x-ms-original-file: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2022-02-01/examples/KustoDataConnectionsCreateOrUpdate.json */ /** * Sample code: KustoDataConnectionsCreateOrUpdate. @@ -868,9 +910,9 @@ public final class DataConnectionsCreateOrUpdateSamples { .dataConnections() .createOrUpdate( "kustorptest", - "kustoclusterrptest4", + "kustoCluster", "KustoDatabase8", - "DataConnections8", + "dataConnectionTest", new EventHubDataConnection() .withLocation("westus") .withEventHubResourceId( @@ -888,12 +930,18 @@ public final class DataConnectionsCreateOrUpdateSamples { ```java import com.azure.core.util.Context; import com.azure.resourcemanager.kusto.fluent.models.DataConnectionValidationInner; +import com.azure.resourcemanager.kusto.models.BlobStorageEventType; +import com.azure.resourcemanager.kusto.models.Compression; +import com.azure.resourcemanager.kusto.models.DatabaseRouting; +import com.azure.resourcemanager.kusto.models.EventGridDataConnection; +import com.azure.resourcemanager.kusto.models.EventGridDataFormat; import com.azure.resourcemanager.kusto.models.EventHubDataConnection; +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/2021-08-27/examples/KustoDataConnectionValidationAsync.json + * x-ms-original-file: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2022-02-01/examples/KustoDataConnectionValidationAsync.json */ /** * Sample code: KustoDataConnectionValidation. @@ -905,11 +953,58 @@ public final class DataConnectionsDataConnectionValidationSamples { .dataConnections() .dataConnectionValidation( "kustorptest", - "kustoclusterrptest4", + "kustoCluster", + "KustoDatabase8", + new DataConnectionValidationInner() + .withDataConnectionName("dataConnectionTest") + .withProperties( + new EventHubDataConnection() + .withEventHubResourceId( + "/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.EventHub/namespaces/eventhubTestns1/eventhubs/eventhubTest1") + .withConsumerGroup("testConsumerGroup1") + .withTableName("TestTable") + .withMappingRuleName("TestMapping") + .withDataFormat(EventHubDataFormat.JSON) + .withCompression(Compression.NONE) + .withManagedIdentityResourceId( + "/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.ManagedIdentity/userAssignedIdentities/managedidentityTest1")), + Context.NONE); + } + + /* + * x-ms-original-file: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2022-02-01/examples/KustoDataConnectionEventGridValidationAsync.json + */ + /** + * Sample code: KustoDataConnectionEventGridValidation. + * + * @param manager Entry point to KustoManager. + */ + public static void kustoDataConnectionEventGridValidation(com.azure.resourcemanager.kusto.KustoManager manager) { + manager + .dataConnections() + .dataConnectionValidation( + "kustorptest", + "kustoCluster", "KustoDatabase8", new DataConnectionValidationInner() - .withDataConnectionName("DataConnections8") - .withProperties(new EventHubDataConnection()), + .withDataConnectionName("dataConnectionTest") + .withProperties( + new EventGridDataConnection() + .withStorageAccountResourceId( + "/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.Storage/storageAccounts/teststorageaccount") + .withEventGridResourceId( + "/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.Storage/storageAccounts/teststorageaccount/providers/Microsoft.EventGrid/eventSubscriptions/eventSubscriptionTest") + .withEventHubResourceId( + "/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.EventHub/namespaces/eventhubTestns1/eventhubs/eventhubTest1") + .withConsumerGroup("$Default") + .withTableName("TestTable") + .withMappingRuleName("TestMapping") + .withDataFormat(EventGridDataFormat.JSON) + .withIgnoreFirstRecord(false) + .withBlobStorageEventType(BlobStorageEventType.MICROSOFT_STORAGE_BLOB_CREATED) + .withManagedIdentityResourceId( + "/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.ManagedIdentity/userAssignedIdentities/managedidentityTest1") + .withDatabaseRouting(DatabaseRouting.SINGLE)), Context.NONE); } } @@ -923,7 +1018,7 @@ import com.azure.core.util.Context; /** Samples for DataConnections Delete. */ public final class DataConnectionsDeleteSamples { /* - * x-ms-original-file: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2021-08-27/examples/KustoDataConnectionsDelete.json + * x-ms-original-file: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2022-02-01/examples/KustoDataConnectionsDelete.json */ /** * Sample code: KustoDataConnectionsDelete. @@ -933,7 +1028,7 @@ public final class DataConnectionsDeleteSamples { public static void kustoDataConnectionsDelete(com.azure.resourcemanager.kusto.KustoManager manager) { manager .dataConnections() - .delete("kustorptest", "kustoclusterrptest4", "KustoDatabase8", "kustoeventhubconnection1", Context.NONE); + .delete("kustorptest", "kustoCluster", "KustoDatabase8", "dataConnectionTest", Context.NONE); } } ``` @@ -946,7 +1041,21 @@ import com.azure.core.util.Context; /** Samples for DataConnections Get. */ public final class DataConnectionsGetSamples { /* - * x-ms-original-file: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2021-08-27/examples/KustoDataConnectionsGet.json + * x-ms-original-file: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2022-02-01/examples/KustoDataConnectionsEventGridGet.json + */ + /** + * Sample code: KustoDataConnectionsEventGridGet. + * + * @param manager Entry point to KustoManager. + */ + public static void kustoDataConnectionsEventGridGet(com.azure.resourcemanager.kusto.KustoManager manager) { + manager + .dataConnections() + .getWithResponse("kustorptest", "kustoCluster", "KustoDatabase8", "dataConnectionTest", Context.NONE); + } + + /* + * x-ms-original-file: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2022-02-01/examples/KustoDataConnectionsGet.json */ /** * Sample code: KustoDataConnectionsGet. @@ -956,7 +1065,7 @@ public final class DataConnectionsGetSamples { public static void kustoDataConnectionsGet(com.azure.resourcemanager.kusto.KustoManager manager) { manager .dataConnections() - .getWithResponse("kustorptest", "kustoclusterrptest4", "KustoDatabase8", "DataConnections8", Context.NONE); + .getWithResponse("kustorptest", "kustoCluster", "KustoDatabase8", "dataConnectionTest", Context.NONE); } } ``` @@ -969,7 +1078,7 @@ import com.azure.core.util.Context; /** Samples for DataConnections ListByDatabase. */ public final class DataConnectionsListByDatabaseSamples { /* - * x-ms-original-file: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2021-08-27/examples/KustoDataConnectionsListByDatabase.json + * x-ms-original-file: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2022-02-01/examples/KustoDataConnectionsListByDatabase.json */ /** * Sample code: KustoDatabasesListByCluster. @@ -977,7 +1086,7 @@ public final class DataConnectionsListByDatabaseSamples { * @param manager Entry point to KustoManager. */ public static void kustoDatabasesListByCluster(com.azure.resourcemanager.kusto.KustoManager manager) { - manager.dataConnections().listByDatabase("kustorptest", "kustoclusterrptest4", "KustoDatabase8", Context.NONE); + manager.dataConnections().listByDatabase("kustorptest", "kustoCluster", "KustoDatabase8", Context.NONE); } } ``` @@ -986,12 +1095,16 @@ public final class DataConnectionsListByDatabaseSamples { ```java import com.azure.core.util.Context; +import com.azure.resourcemanager.kusto.models.BlobStorageEventType; +import com.azure.resourcemanager.kusto.models.DatabaseRouting; +import com.azure.resourcemanager.kusto.models.EventGridDataConnection; +import com.azure.resourcemanager.kusto.models.EventGridDataFormat; import com.azure.resourcemanager.kusto.models.EventHubDataConnection; /** Samples for DataConnections Update. */ public final class DataConnectionsUpdateSamples { /* - * x-ms-original-file: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2021-08-27/examples/KustoDataConnectionsUpdate.json + * x-ms-original-file: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2022-02-01/examples/KustoDataConnectionsUpdate.json */ /** * Sample code: KustoDataConnectionsUpdate. @@ -1003,9 +1116,9 @@ public final class DataConnectionsUpdateSamples { .dataConnections() .update( "kustorptest", - "kustoclusterrptest4", + "kustoCluster", "KustoDatabase8", - "DataConnections8", + "dataConnectionTest", new EventHubDataConnection() .withLocation("westus") .withEventHubResourceId( @@ -1015,6 +1128,42 @@ public final class DataConnectionsUpdateSamples { "/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.ManagedIdentity/userAssignedIdentities/managedidentityTest1"), Context.NONE); } + + /* + * x-ms-original-file: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2022-02-01/examples/KustoDataConnectionsEventGridUpdate.json + */ + /** + * Sample code: KustoDataConnectionsEventGridUpdate. + * + * @param manager Entry point to KustoManager. + */ + public static void kustoDataConnectionsEventGridUpdate(com.azure.resourcemanager.kusto.KustoManager manager) { + manager + .dataConnections() + .update( + "kustorptest", + "kustoCluster", + "KustoDatabase8", + "dataConnectionTest", + new EventGridDataConnection() + .withLocation("westus") + .withStorageAccountResourceId( + "/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.Storage/storageAccounts/teststorageaccount") + .withEventGridResourceId( + "/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.Storage/storageAccounts/teststorageaccount/providers/Microsoft.EventGrid/eventSubscriptions/eventSubscriptionTest") + .withEventHubResourceId( + "/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.EventHub/namespaces/eventhubTestns1/eventhubs/eventhubTest2") + .withConsumerGroup("$Default") + .withTableName("TestTable") + .withMappingRuleName("TestMapping") + .withDataFormat(EventGridDataFormat.JSON) + .withIgnoreFirstRecord(false) + .withBlobStorageEventType(BlobStorageEventType.MICROSOFT_STORAGE_BLOB_CREATED) + .withManagedIdentityResourceId( + "/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.ManagedIdentity/userAssignedIdentities/managedidentityTest1") + .withDatabaseRouting(DatabaseRouting.SINGLE), + Context.NONE); + } } ``` @@ -1027,7 +1176,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/2021-08-27/examples/KustoDatabasePrincipalAssignmentsCheckNameAvailability.json + * x-ms-original-file: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2022-02-01/examples/KustoDatabasePrincipalAssignmentsCheckNameAvailability.json */ /** * Sample code: KustoDatabaseCheckNameAvailability. @@ -1039,7 +1188,7 @@ public final class DatabasePrincipalAssignmentsCheckNameAvailabilitySamples { .databasePrincipalAssignments() .checkNameAvailabilityWithResponse( "kustorptest", - "kustoclusterrptest4", + "kustoCluster", "Kustodatabase8", new DatabasePrincipalAssignmentCheckNameRequest().withName("kustoprincipal1"), Context.NONE); @@ -1056,7 +1205,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/2021-08-27/examples/KustoDatabasePrincipalAssignmentsCreateOrUpdate.json + * x-ms-original-file: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2022-02-01/examples/KustoDatabasePrincipalAssignmentsCreateOrUpdate.json */ /** * Sample code: KustoDatabasePrincipalAssignmentsCreateOrUpdate. @@ -1068,7 +1217,7 @@ public final class DatabasePrincipalAssignmentsCreateOrUpdateSamples { manager .databasePrincipalAssignments() .define("kustoprincipal1") - .withExistingDatabase("kustorptest", "kustoclusterrptest4", "Kustodatabase8") + .withExistingDatabase("kustorptest", "kustoCluster", "Kustodatabase8") .withPrincipalId("87654321-1234-1234-1234-123456789123") .withRole(DatabasePrincipalRole.ADMIN) .withTenantId("12345678-1234-1234-1234-123456789123") @@ -1086,7 +1235,7 @@ import com.azure.core.util.Context; /** Samples for DatabasePrincipalAssignments Delete. */ public final class DatabasePrincipalAssignmentsDeleteSamples { /* - * x-ms-original-file: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2021-08-27/examples/KustoDatabasePrincipalAssignmentsDelete.json + * x-ms-original-file: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2022-02-01/examples/KustoDatabasePrincipalAssignmentsDelete.json */ /** * Sample code: KustoDatabasePrincipalAssignmentsDelete. @@ -1096,7 +1245,7 @@ public final class DatabasePrincipalAssignmentsDeleteSamples { public static void kustoDatabasePrincipalAssignmentsDelete(com.azure.resourcemanager.kusto.KustoManager manager) { manager .databasePrincipalAssignments() - .delete("kustorptest", "kustoclusterrptest4", "Kustodatabase8", "kustoprincipal1", Context.NONE); + .delete("kustorptest", "kustoCluster", "Kustodatabase8", "kustoprincipal1", Context.NONE); } } ``` @@ -1109,7 +1258,7 @@ import com.azure.core.util.Context; /** Samples for DatabasePrincipalAssignments Get. */ public final class DatabasePrincipalAssignmentsGetSamples { /* - * x-ms-original-file: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2021-08-27/examples/KustoDatabasePrincipalAssignmentsGet.json + * x-ms-original-file: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2022-02-01/examples/KustoDatabasePrincipalAssignmentsGet.json */ /** * Sample code: KustoDatabasePrincipalAssignmentsGet. @@ -1119,7 +1268,7 @@ public final class DatabasePrincipalAssignmentsGetSamples { public static void kustoDatabasePrincipalAssignmentsGet(com.azure.resourcemanager.kusto.KustoManager manager) { manager .databasePrincipalAssignments() - .getWithResponse("kustorptest", "kustoclusterrptest4", "Kustodatabase8", "kustoprincipal1", Context.NONE); + .getWithResponse("kustorptest", "kustoCluster", "Kustodatabase8", "kustoprincipal1", Context.NONE); } } ``` @@ -1132,7 +1281,7 @@ import com.azure.core.util.Context; /** Samples for DatabasePrincipalAssignments List. */ public final class DatabasePrincipalAssignmentsListSamples { /* - * x-ms-original-file: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2021-08-27/examples/KustoDatabasePrincipalAssignmentsList.json + * x-ms-original-file: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2022-02-01/examples/KustoDatabasePrincipalAssignmentsList.json */ /** * Sample code: KustoPrincipalAssignmentsList. @@ -1140,9 +1289,7 @@ public final class DatabasePrincipalAssignmentsListSamples { * @param manager Entry point to KustoManager. */ public static void kustoPrincipalAssignmentsList(com.azure.resourcemanager.kusto.KustoManager manager) { - manager - .databasePrincipalAssignments() - .list("kustorptest", "kustoclusterrptest4", "Kustodatabase8", Context.NONE); + manager.databasePrincipalAssignments().list("kustorptest", "kustoCluster", "Kustodatabase8", Context.NONE); } } ``` @@ -1160,7 +1307,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/2021-08-27/examples/KustoDatabaseAddPrincipals.json + * x-ms-original-file: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2022-02-01/examples/KustoDatabaseAddPrincipals.json */ /** * Sample code: KustoDatabaseAddPrincipals. @@ -1172,7 +1319,7 @@ public final class DatabasesAddPrincipalsSamples { .databases() .addPrincipalsWithResponse( "kustorptest", - "kustoclusterrptest4", + "kustoCluster", "KustoDatabase8", new DatabasePrincipalListRequest() .withValue( @@ -1214,7 +1361,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/2021-08-27/examples/KustoDatabasesCheckNameAvailability.json + * x-ms-original-file: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2022-02-01/examples/KustoDatabasesCheckNameAvailability.json */ /** * Sample code: KustoDatabasesCheckNameAvailability. @@ -1226,7 +1373,7 @@ public final class DatabasesCheckNameAvailabilitySamples { .databases() .checkNameAvailabilityWithResponse( "kustorptest", - "kustoclusterrptest4", + "kustoCluster", new CheckNameRequest().withName("database1").withType(Type.MICROSOFT_KUSTO_CLUSTERS_DATABASES), Context.NONE); } @@ -1237,14 +1384,14 @@ public final class DatabasesCheckNameAvailabilitySamples { ```java import com.azure.core.util.Context; -import com.azure.resourcemanager.kusto.fluent.models.DatabaseInner; import com.azure.resourcemanager.kusto.models.ReadOnlyFollowingDatabase; +import com.azure.resourcemanager.kusto.models.ReadWriteDatabase; import java.time.Duration; /** Samples for Databases CreateOrUpdate. */ public final class DatabasesCreateOrUpdateSamples { /* - * x-ms-original-file: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2021-08-27/examples/KustoDatabaseReadonlyUpdate.json + * x-ms-original-file: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2022-02-01/examples/KustoDatabaseReadonlyUpdate.json */ /** * Sample code: Kusto ReadOnly database update. @@ -1256,14 +1403,14 @@ public final class DatabasesCreateOrUpdateSamples { .databases() .createOrUpdate( "kustorptest", - "kustoclusterrptest4", - "KustoreadOnlyDatabase", + "kustoCluster", + "kustoReadOnlyDatabase", new ReadOnlyFollowingDatabase().withLocation("westus").withHotCachePeriod(Duration.parse("P1D")), Context.NONE); } /* - * x-ms-original-file: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2021-08-27/examples/KustoDatabasesCreateOrUpdate.json + * x-ms-original-file: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2022-02-01/examples/KustoDatabasesCreateOrUpdate.json */ /** * Sample code: Kusto ReadWrite database create or update. @@ -1275,9 +1422,9 @@ public final class DatabasesCreateOrUpdateSamples { .databases() .createOrUpdate( "kustorptest", - "kustoclusterrptest4", + "kustoCluster", "KustoDatabase8", - new DatabaseInner().withLocation("westus"), + new ReadWriteDatabase().withLocation("westus").withSoftDeletePeriod(Duration.parse("P1D")), Context.NONE); } } @@ -1291,7 +1438,7 @@ import com.azure.core.util.Context; /** Samples for Databases Delete. */ public final class DatabasesDeleteSamples { /* - * x-ms-original-file: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2021-08-27/examples/KustoDatabasesDelete.json + * x-ms-original-file: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2022-02-01/examples/KustoDatabasesDelete.json */ /** * Sample code: KustoDatabasesDelete. @@ -1299,7 +1446,7 @@ public final class DatabasesDeleteSamples { * @param manager Entry point to KustoManager. */ public static void kustoDatabasesDelete(com.azure.resourcemanager.kusto.KustoManager manager) { - manager.databases().delete("kustorptest", "kustoclusterrptest4", "KustoDatabase8", Context.NONE); + manager.databases().delete("kustorptest", "kustoCluster", "KustoDatabase8", Context.NONE); } } ``` @@ -1312,7 +1459,7 @@ import com.azure.core.util.Context; /** Samples for Databases Get. */ public final class DatabasesGetSamples { /* - * x-ms-original-file: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2021-08-27/examples/KustoDatabasesGet.json + * x-ms-original-file: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2022-02-01/examples/KustoDatabasesGet.json */ /** * Sample code: KustoDatabasesGet. @@ -1320,7 +1467,7 @@ public final class DatabasesGetSamples { * @param manager Entry point to KustoManager. */ public static void kustoDatabasesGet(com.azure.resourcemanager.kusto.KustoManager manager) { - manager.databases().getWithResponse("kustorptest", "kustoclusterrptest4", "KustoDatabase8", Context.NONE); + manager.databases().getWithResponse("kustorptest", "kustoCluster", "KustoDatabase8", Context.NONE); } } ``` @@ -1333,7 +1480,7 @@ import com.azure.core.util.Context; /** Samples for Databases ListByCluster. */ public final class DatabasesListByClusterSamples { /* - * x-ms-original-file: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2021-08-27/examples/KustoDatabasesListByCluster.json + * x-ms-original-file: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2022-02-01/examples/KustoDatabasesListByCluster.json */ /** * Sample code: KustoDatabasesListByCluster. @@ -1341,7 +1488,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", "kustoclusterrptest4", Context.NONE); + manager.databases().listByCluster("kustorptest", "kustoCluster", Context.NONE); } } ``` @@ -1354,7 +1501,7 @@ import com.azure.core.util.Context; /** Samples for Databases ListPrincipals. */ public final class DatabasesListPrincipalsSamples { /* - * x-ms-original-file: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2021-08-27/examples/KustoDatabaseListPrincipals.json + * x-ms-original-file: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2022-02-01/examples/KustoDatabaseListPrincipals.json */ /** * Sample code: KustoDatabaseListPrincipals. @@ -1362,7 +1509,7 @@ public final class DatabasesListPrincipalsSamples { * @param manager Entry point to KustoManager. */ public static void kustoDatabaseListPrincipals(com.azure.resourcemanager.kusto.KustoManager manager) { - manager.databases().listPrincipals("kustorptest", "kustoclusterrptest4", "KustoDatabase8", Context.NONE); + manager.databases().listPrincipals("kustorptest", "kustoCluster", "KustoDatabase8", Context.NONE); } } ``` @@ -1380,7 +1527,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/2021-08-27/examples/KustoDatabaseRemovePrincipals.json + * x-ms-original-file: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2022-02-01/examples/KustoDatabaseRemovePrincipals.json */ /** * Sample code: KustoDatabaseRemovePrincipals. @@ -1392,7 +1539,7 @@ public final class DatabasesRemovePrincipalsSamples { .databases() .removePrincipalsWithResponse( "kustorptest", - "kustoclusterrptest4", + "kustoCluster", "KustoDatabase8", new DatabasePrincipalListRequest() .withValue( @@ -1428,12 +1575,13 @@ public final class DatabasesRemovePrincipalsSamples { ```java import com.azure.core.util.Context; -import com.azure.resourcemanager.kusto.fluent.models.DatabaseInner; +import com.azure.resourcemanager.kusto.models.ReadWriteDatabase; +import java.time.Duration; /** Samples for Databases Update. */ public final class DatabasesUpdateSamples { /* - * x-ms-original-file: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2021-08-27/examples/KustoDatabasesUpdate.json + * x-ms-original-file: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2022-02-01/examples/KustoDatabasesUpdate.json */ /** * Sample code: KustoDatabasesUpdate. @@ -1443,7 +1591,12 @@ public final class DatabasesUpdateSamples { public static void kustoDatabasesUpdate(com.azure.resourcemanager.kusto.KustoManager manager) { manager .databases() - .update("kustorptest", "kustoclusterrptest4", "KustoDatabase8", new DatabaseInner(), Context.NONE); + .update( + "kustorptest", + "kustoCluster", + "KustoDatabase8", + new ReadWriteDatabase().withHotCachePeriod(Duration.parse("P1D")), + Context.NONE); } } ``` @@ -1457,7 +1610,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/2021-08-27/examples/KustoManagedPrivateEndpointsCheckNameAvailability.json + * x-ms-original-file: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2022-02-01/examples/KustoManagedPrivateEndpointsCheckNameAvailability.json */ /** * Sample code: KustoManagedPrivateEndpointsCheckNameAvailability. @@ -1470,7 +1623,7 @@ public final class ManagedPrivateEndpointsCheckNameAvailabilitySamples { .managedPrivateEndpoints() .checkNameAvailabilityWithResponse( "kustorptest", - "kustoclusterrptest4", + "kustoCluster", new ManagedPrivateEndpointsCheckNameRequest().withName("pme1"), Context.NONE); } @@ -1483,7 +1636,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/2021-08-27/examples/KustoManagedPrivateEndpointsCreateOrUpdate.json + * x-ms-original-file: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2022-02-01/examples/KustoManagedPrivateEndpointsCreateOrUpdate.json */ /** * Sample code: KustoManagedPrivateEndpointsCreateOrUpdate. @@ -1494,8 +1647,8 @@ public final class ManagedPrivateEndpointsCreateOrUpdateSamples { com.azure.resourcemanager.kusto.KustoManager manager) { manager .managedPrivateEndpoints() - .define("kustoManagedPrivateEndpoint1") - .withExistingCluster("kustorptest", "kustoclusterrptest4") + .define("managedPrivateEndpointTest") + .withExistingCluster("kustorptest", "kustoCluster") .withPrivateLinkResourceId( "/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.Storage/storageAccounts/storageAccountTest") .withGroupId("blob") @@ -1513,7 +1666,7 @@ import com.azure.core.util.Context; /** Samples for ManagedPrivateEndpoints Delete. */ public final class ManagedPrivateEndpointsDeleteSamples { /* - * x-ms-original-file: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2021-08-27/examples/KustoManagedPrivateEndpointsDelete.json + * x-ms-original-file: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2022-02-01/examples/KustoManagedPrivateEndpointsDelete.json */ /** * Sample code: ManagedPrivateEndpointsDelete. @@ -1523,7 +1676,7 @@ public final class ManagedPrivateEndpointsDeleteSamples { public static void managedPrivateEndpointsDelete(com.azure.resourcemanager.kusto.KustoManager manager) { manager .managedPrivateEndpoints() - .delete("kustorptest", "kustoclusterrptest4", "kustoManagedPrivateEndpoint1", Context.NONE); + .delete("kustorptest", "kustoCluster", "managedPrivateEndpointTest", Context.NONE); } } ``` @@ -1536,7 +1689,7 @@ import com.azure.core.util.Context; /** Samples for ManagedPrivateEndpoints Get. */ public final class ManagedPrivateEndpointsGetSamples { /* - * x-ms-original-file: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2021-08-27/examples/KustoManagedPrivateEndpointsGet.json + * x-ms-original-file: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2022-02-01/examples/KustoManagedPrivateEndpointsGet.json */ /** * Sample code: KustoManagedPrivateEndpointsGet. @@ -1546,7 +1699,7 @@ public final class ManagedPrivateEndpointsGetSamples { public static void kustoManagedPrivateEndpointsGet(com.azure.resourcemanager.kusto.KustoManager manager) { manager .managedPrivateEndpoints() - .getWithResponse("kustorptest", "kustoclusterrptest4", "kustoManagedPrivateEndpoint1", Context.NONE); + .getWithResponse("kustorptest", "kustoCluster", "managedPrivateEndpointTest", Context.NONE); } } ``` @@ -1559,7 +1712,7 @@ import com.azure.core.util.Context; /** Samples for ManagedPrivateEndpoints List. */ public final class ManagedPrivateEndpointsListSamples { /* - * x-ms-original-file: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2021-08-27/examples/KustoManagedPrivateEndpointsList.json + * x-ms-original-file: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2022-02-01/examples/KustoManagedPrivateEndpointsList.json */ /** * Sample code: KustoManagedPrivateEndpointsList. @@ -1567,7 +1720,7 @@ public final class ManagedPrivateEndpointsListSamples { * @param manager Entry point to KustoManager. */ public static void kustoManagedPrivateEndpointsList(com.azure.resourcemanager.kusto.KustoManager manager) { - manager.managedPrivateEndpoints().list("kustorptest", "kustoclusterrptest4", Context.NONE); + manager.managedPrivateEndpoints().list("kustorptest", "kustoCluster", Context.NONE); } } ``` @@ -1581,7 +1734,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/2021-08-27/examples/KustoManagedPrivateEndpointsUpdate.json + * x-ms-original-file: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2022-02-01/examples/KustoManagedPrivateEndpointsUpdate.json */ /** * Sample code: KustoManagedPrivateEndpointsUpdate. @@ -1592,7 +1745,7 @@ public final class ManagedPrivateEndpointsUpdateSamples { ManagedPrivateEndpoint resource = manager .managedPrivateEndpoints() - .getWithResponse("kustorptest", "kustoclusterrptest4", "kustoManagedPrivateEndpoint1", Context.NONE) + .getWithResponse("kustorptest", "kustoCluster", "managedPrivateEndpointTest", Context.NONE) .getValue(); resource .update() @@ -1613,7 +1766,7 @@ import com.azure.core.util.Context; /** Samples for Operations List. */ public final class OperationsListSamples { /* - * x-ms-original-file: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2021-08-27/examples/KustoOperationsList.json + * x-ms-original-file: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2022-02-01/examples/KustoOperationsList.json */ /** * Sample code: KustoOperationsList. @@ -1634,7 +1787,7 @@ import com.azure.core.util.Context; /** Samples for OperationsResults Get. */ public final class OperationsResultsGetSamples { /* - * x-ms-original-file: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2021-08-27/examples/KustoOperationResultsGet.json + * x-ms-original-file: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2022-02-01/examples/KustoOperationResultsGet.json */ /** * Sample code: KustoOperationResultsGet. @@ -1647,6 +1800,29 @@ public final class OperationsResultsGetSamples { } ``` +### OperationsResultsLocation_Get + +```java +import com.azure.core.util.Context; + +/** Samples for OperationsResultsLocation Get. */ +public final class OperationsResultsLocationGetSamples { + /* + * x-ms-original-file: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2022-02-01/examples/KustoOperationResultsOperationResultResponseTypeGet.json + */ + /** + * Sample code: KustoOperationsResultsLocationGet. + * + * @param manager Entry point to KustoManager. + */ + public static void kustoOperationsResultsLocationGet(com.azure.resourcemanager.kusto.KustoManager manager) { + manager + .operationsResultsLocations() + .getWithResponse("westus", "30972f1b-b61d-4fd8-bd34-3dcfa24670f3", Context.NONE); + } +} +``` + ### PrivateEndpointConnections_CreateOrUpdate ```java @@ -1655,7 +1831,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/2021-08-27/examples/KustoPrivateEndpointConnectionsCreateOrUpdate.json + * x-ms-original-file: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2022-02-01/examples/KustoPrivateEndpointConnectionsCreateOrUpdate.json */ /** * Sample code: Approve or reject a private endpoint connection with a given name. @@ -1666,7 +1842,7 @@ public final class PrivateEndpointConnectionsCreateOrUpdateSamples { com.azure.resourcemanager.kusto.KustoManager manager) { manager .privateEndpointConnections() - .define("privateEndpointConnectionName") + .define("privateEndpointTest") .withExistingCluster("kustorptest", "kustoclusterrptest4") .withPrivateLinkServiceConnectionState( new PrivateLinkServiceConnectionStateProperty() @@ -1685,7 +1861,7 @@ import com.azure.core.util.Context; /** Samples for PrivateEndpointConnections Delete. */ public final class PrivateEndpointConnectionsDeleteSamples { /* - * x-ms-original-file: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2021-08-27/examples/KustoPrivateEndpointConnectionsDelete.json + * x-ms-original-file: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2022-02-01/examples/KustoPrivateEndpointConnectionsDelete.json */ /** * Sample code: Deletes a private endpoint connection with a given name. @@ -1694,9 +1870,7 @@ public final class PrivateEndpointConnectionsDeleteSamples { */ public static void deletesAPrivateEndpointConnectionWithAGivenName( com.azure.resourcemanager.kusto.KustoManager manager) { - manager - .privateEndpointConnections() - .delete("kustorptest", "kustoclusterrptest4", "privateEndpointConnectionName", Context.NONE); + manager.privateEndpointConnections().delete("kustorptest", "kustoCluster", "privateEndpointTest", Context.NONE); } } ``` @@ -1709,7 +1883,7 @@ import com.azure.core.util.Context; /** Samples for PrivateEndpointConnections Get. */ public final class PrivateEndpointConnectionsGetSamples { /* - * x-ms-original-file: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2021-08-27/examples/KustoPrivateEndpointConnectionsGet.json + * x-ms-original-file: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2022-02-01/examples/KustoPrivateEndpointConnectionsGet.json */ /** * Sample code: Gets private endpoint connection. @@ -1719,7 +1893,7 @@ public final class PrivateEndpointConnectionsGetSamples { public static void getsPrivateEndpointConnection(com.azure.resourcemanager.kusto.KustoManager manager) { manager .privateEndpointConnections() - .getWithResponse("kustorptest", "kustoclusterrptest4", "privateEndpointConnectionName", Context.NONE); + .getWithResponse("kustorptest", "kustoCluster", "privateEndpointTest", Context.NONE); } } ``` @@ -1732,7 +1906,7 @@ import com.azure.core.util.Context; /** Samples for PrivateEndpointConnections List. */ public final class PrivateEndpointConnectionsListSamples { /* - * x-ms-original-file: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2021-08-27/examples/KustoPrivateEndpointConnectionsList.json + * x-ms-original-file: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2022-02-01/examples/KustoPrivateEndpointConnectionsList.json */ /** * Sample code: KustoPrivateEndpointConnectionsList. @@ -1740,7 +1914,7 @@ public final class PrivateEndpointConnectionsListSamples { * @param manager Entry point to KustoManager. */ public static void kustoPrivateEndpointConnectionsList(com.azure.resourcemanager.kusto.KustoManager manager) { - manager.privateEndpointConnections().list("kustorptest", "kustoclusterrptest4", Context.NONE); + manager.privateEndpointConnections().list("kustorptest", "kustoCluster", Context.NONE); } } ``` @@ -1753,7 +1927,7 @@ import com.azure.core.util.Context; /** Samples for PrivateLinkResources Get. */ public final class PrivateLinkResourcesGetSamples { /* - * x-ms-original-file: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2021-08-27/examples/KustoPrivateLinkResourcesGet.json + * x-ms-original-file: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2022-02-01/examples/KustoPrivateLinkResourcesGet.json */ /** * Sample code: Gets private endpoint connection. @@ -1761,7 +1935,7 @@ public final class PrivateLinkResourcesGetSamples { * @param manager Entry point to KustoManager. */ public static void getsPrivateEndpointConnection(com.azure.resourcemanager.kusto.KustoManager manager) { - manager.privateLinkResources().getWithResponse("kustorptest", "kustoclusterrptest4", "cluster", Context.NONE); + manager.privateLinkResources().getWithResponse("kustorptest", "kustoCluster", "cluster", Context.NONE); } } ``` @@ -1774,7 +1948,7 @@ import com.azure.core.util.Context; /** Samples for PrivateLinkResources List. */ public final class PrivateLinkResourcesListSamples { /* - * x-ms-original-file: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2021-08-27/examples/KustoPrivateLinkResourcesList.json + * x-ms-original-file: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2022-02-01/examples/KustoPrivateLinkResourcesList.json */ /** * Sample code: Gets private endpoint connections. @@ -1782,7 +1956,7 @@ public final class PrivateLinkResourcesListSamples { * @param manager Entry point to KustoManager. */ public static void getsPrivateEndpointConnections(com.azure.resourcemanager.kusto.KustoManager manager) { - manager.privateLinkResources().list("kustorptest", "kustoclusterrptest4", Context.NONE); + manager.privateLinkResources().list("kustorptest", "kustoCluster", Context.NONE); } } ``` @@ -1796,7 +1970,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/2021-08-27/examples/KustoScriptsCheckNameAvailability.json + * x-ms-original-file: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2022-02-01/examples/KustoScriptsCheckNameAvailability.json */ /** * Sample code: KustoScriptsCheckNameAvailability. @@ -1808,7 +1982,7 @@ public final class ScriptsCheckNameAvailabilitySamples { .scripts() .checkNameAvailabilityWithResponse( "kustorptest", - "kustoclusterrptest4", + "kustoCluster", "db", new ScriptCheckNameRequest().withName("kustoScriptName1"), Context.NONE); @@ -1822,7 +1996,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/2021-08-27/examples/KustoScriptsCreateOrUpdate.json + * x-ms-original-file: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2022-02-01/examples/KustoScriptsCreateOrUpdate.json */ /** * Sample code: KustoScriptsCreateOrUpdate. @@ -1832,8 +2006,8 @@ public final class ScriptsCreateOrUpdateSamples { public static void kustoScriptsCreateOrUpdate(com.azure.resourcemanager.kusto.KustoManager manager) { manager .scripts() - .define("kustoScript1") - .withExistingDatabase("kustorptest", "kustoclusterrptest4", "KustoDatabase8") + .define("kustoScript") + .withExistingDatabase("kustorptest", "kustoCluster", "KustoDatabase8") .withScriptUrl("https://mysa.blob.core.windows.net/container/script.txt") .withScriptUrlSasToken( "?sv=2019-02-02&st=2019-04-29T22%3A18%3A26Z&se=2019-04-30T02%3A23%3A26Z&sr=b&sp=rw&sip=168.1.5.60-168.1.5.70&spr=https&sig=********************************") @@ -1852,7 +2026,7 @@ import com.azure.core.util.Context; /** Samples for Scripts Delete. */ public final class ScriptsDeleteSamples { /* - * x-ms-original-file: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2021-08-27/examples/KustoScriptsDelete.json + * x-ms-original-file: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2022-02-01/examples/KustoScriptsDelete.json */ /** * Sample code: KustoScriptsDelete. @@ -1860,7 +2034,7 @@ public final class ScriptsDeleteSamples { * @param manager Entry point to KustoManager. */ public static void kustoScriptsDelete(com.azure.resourcemanager.kusto.KustoManager manager) { - manager.scripts().delete("kustorptest", "kustoclusterrptest4", "KustoDatabase8", "kustoScript1", Context.NONE); + manager.scripts().delete("kustorptest", "kustoCluster", "KustoDatabase8", "kustoScript", Context.NONE); } } ``` @@ -1873,7 +2047,7 @@ import com.azure.core.util.Context; /** Samples for Scripts Get. */ public final class ScriptsGetSamples { /* - * x-ms-original-file: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2021-08-27/examples/KustoScriptsGet.json + * x-ms-original-file: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2022-02-01/examples/KustoScriptsGet.json */ /** * Sample code: KustoScriptsGet. @@ -1881,9 +2055,7 @@ public final class ScriptsGetSamples { * @param manager Entry point to KustoManager. */ public static void kustoScriptsGet(com.azure.resourcemanager.kusto.KustoManager manager) { - manager - .scripts() - .getWithResponse("kustorptest", "kustoclusterrptest4", "Kustodatabase8", "kustoScript1", Context.NONE); + manager.scripts().getWithResponse("kustorptest", "kustoCluster", "Kustodatabase8", "kustoScript", Context.NONE); } } ``` @@ -1896,7 +2068,7 @@ import com.azure.core.util.Context; /** Samples for Scripts ListByDatabase. */ public final class ScriptsListByDatabaseSamples { /* - * x-ms-original-file: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2021-08-27/examples/KustoScriptsListByDatabase.json + * x-ms-original-file: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2022-02-01/examples/KustoScriptsListByDatabase.json */ /** * Sample code: KustoScriptsList. @@ -1904,7 +2076,7 @@ public final class ScriptsListByDatabaseSamples { * @param manager Entry point to KustoManager. */ public static void kustoScriptsList(com.azure.resourcemanager.kusto.KustoManager manager) { - manager.scripts().listByDatabase("kustorptest", "kustoclusterrptest4", "Kustodatabase8", Context.NONE); + manager.scripts().listByDatabase("kustorptest", "kustoCluster", "Kustodatabase8", Context.NONE); } } ``` @@ -1918,7 +2090,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/2021-08-27/examples/KustoScriptsUpdate.json + * x-ms-original-file: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2022-02-01/examples/KustoScriptsUpdate.json */ /** * Sample code: KustoScriptsUpdate. @@ -1929,7 +2101,7 @@ public final class ScriptsUpdateSamples { Script resource = manager .scripts() - .getWithResponse("kustorptest", "kustoclusterrptest4", "KustoDatabase8", "kustoScript1", Context.NONE) + .getWithResponse("kustorptest", "kustoCluster", "KustoDatabase8", "kustoScript", Context.NONE) .getValue(); resource .update() diff --git a/sdk/kusto/azure-resourcemanager-kusto/pom.xml b/sdk/kusto/azure-resourcemanager-kusto/pom.xml index a58ab8f588f4..64af8be80973 100644 --- a/sdk/kusto/azure-resourcemanager-kusto/pom.xml +++ b/sdk/kusto/azure-resourcemanager-kusto/pom.xml @@ -13,7 +13,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-2021-08-27. + 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-02. 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 45eff1c72dc0..73e97affa6a6 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 @@ -8,6 +8,7 @@ import com.azure.core.http.HttpClient; import com.azure.core.http.HttpPipeline; import com.azure.core.http.HttpPipelineBuilder; +import com.azure.core.http.HttpPipelinePosition; import com.azure.core.http.policy.AddDatePolicy; import com.azure.core.http.policy.HttpLogOptions; import com.azure.core.http.policy.HttpLoggingPolicy; @@ -31,6 +32,7 @@ import com.azure.resourcemanager.kusto.implementation.ManagedPrivateEndpointsImpl; import com.azure.resourcemanager.kusto.implementation.OperationsImpl; import com.azure.resourcemanager.kusto.implementation.OperationsResultsImpl; +import com.azure.resourcemanager.kusto.implementation.OperationsResultsLocationsImpl; import com.azure.resourcemanager.kusto.implementation.PrivateEndpointConnectionsImpl; import com.azure.resourcemanager.kusto.implementation.PrivateLinkResourcesImpl; import com.azure.resourcemanager.kusto.implementation.ScriptsImpl; @@ -43,6 +45,7 @@ import com.azure.resourcemanager.kusto.models.ManagedPrivateEndpoints; import com.azure.resourcemanager.kusto.models.Operations; import com.azure.resourcemanager.kusto.models.OperationsResults; +import com.azure.resourcemanager.kusto.models.OperationsResultsLocations; import com.azure.resourcemanager.kusto.models.PrivateEndpointConnections; import com.azure.resourcemanager.kusto.models.PrivateLinkResources; import com.azure.resourcemanager.kusto.models.Scripts; @@ -51,6 +54,7 @@ import java.util.ArrayList; import java.util.List; import java.util.Objects; +import java.util.stream.Collectors; /** * Entry point to KustoManager. The Azure Kusto management API provides a RESTful set of web services that interact with @@ -82,6 +86,8 @@ public final class KustoManager { private OperationsResults operationsResults; + private OperationsResultsLocations operationsResultsLocations; + private final KustoManagementClient clientObject; private KustoManager(HttpPipeline httpPipeline, AzureProfile profile, Duration defaultPollInterval) { @@ -218,7 +224,7 @@ public KustoManager authenticate(TokenCredential credential, AzureProfile profil .append("-") .append("com.azure.resourcemanager.kusto") .append("/") - .append("1.0.0-beta.3"); + .append("1.0.0-beta.1"); if (!Configuration.getGlobalConfiguration().get("AZURE_TELEMETRY_DISABLED", false)) { userAgentBuilder .append(" (") @@ -241,11 +247,24 @@ public KustoManager authenticate(TokenCredential credential, AzureProfile profil List policies = new ArrayList<>(); policies.add(new UserAgentPolicy(userAgentBuilder.toString())); policies.add(new RequestIdPolicy()); + policies + .addAll( + this + .policies + .stream() + .filter(p -> p.getPipelinePosition() == HttpPipelinePosition.PER_CALL) + .collect(Collectors.toList())); HttpPolicyProviders.addBeforeRetryPolicies(policies); policies.add(retryPolicy); policies.add(new AddDatePolicy()); policies.add(new ArmChallengeAuthenticationPolicy(credential, scopes.toArray(new String[0]))); - policies.addAll(this.policies); + policies + .addAll( + this + .policies + .stream() + .filter(p -> p.getPipelinePosition() == HttpPipelinePosition.PER_RETRY) + .collect(Collectors.toList())); HttpPolicyProviders.addAfterRetryPolicies(policies); policies.add(new HttpLoggingPolicy(httpLogOptions)); HttpPipeline httpPipeline = @@ -358,6 +377,15 @@ public OperationsResults operationsResults() { return operationsResults; } + /** @return Resource collection API of OperationsResultsLocations. */ + public OperationsResultsLocations operationsResultsLocations() { + if (this.operationsResultsLocations == null) { + this.operationsResultsLocations = + new OperationsResultsLocationsImpl(clientObject.getOperationsResultsLocations(), this); + } + return operationsResultsLocations; + } + /** * @return Wrapped service client KustoManagementClient providing direct access to the underlying auto-generated API * implementation, based on Azure REST API. 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 c09df4dcf14e..872c55b8d313 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 @@ -42,7 +42,7 @@ CheckNameResultInner checkNameAvailability( * @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 check name availability request. + * @return the result returned from a check name availability request along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) Response checkNameAvailabilityWithResponse( @@ -59,7 +59,8 @@ Response checkNameAvailabilityWithResponse( * @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 attached database configurations operation response. + * @return the list attached database configurations operation response as paginated response with {@link + * PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable listByCluster(String resourceGroupName, String clusterName); @@ -73,7 +74,8 @@ Response checkNameAvailabilityWithResponse( * @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 attached database configurations operation response. + * @return the list attached database configurations operation response as paginated response with {@link + * PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable listByCluster( @@ -104,7 +106,7 @@ AttachedDatabaseConfigurationInner get( * @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 class representing an attached database configuration. + * @return class representing an attached database configuration along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) Response getWithResponse( @@ -120,9 +122,9 @@ Response getWithResponse( * @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 class representing an attached database configuration. + * @return the {@link SyncPoller} for polling of class representing an attached database configuration. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, AttachedDatabaseConfigurationInner> beginCreateOrUpdate( String resourceGroupName, String clusterName, @@ -140,9 +142,9 @@ SyncPoller, AttachedDatabaseConfi * @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 class representing an attached database configuration. + * @return the {@link SyncPoller} for polling of class representing an attached database configuration. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, AttachedDatabaseConfigurationInner> beginCreateOrUpdate( String resourceGroupName, String clusterName, @@ -199,9 +201,9 @@ AttachedDatabaseConfigurationInner createOrUpdate( * @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 completion. + * @return the {@link SyncPoller} for polling of long-running operation. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, Void> beginDelete( String resourceGroupName, String clusterName, String attachedDatabaseConfigurationName); @@ -215,9 +217,9 @@ SyncPoller, Void> beginDelete( * @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 completion. + * @return the {@link SyncPoller} for polling of long-running operation. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, Void> beginDelete( String resourceGroupName, String clusterName, String attachedDatabaseConfigurationName, Context context); 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 8d5f90bb17fa..03fd1b891eb9 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 @@ -44,7 +44,7 @@ CheckNameResultInner checkNameAvailability( * @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 check name availability request. + * @return the result returned from a check name availability request along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) Response checkNameAvailabilityWithResponse( @@ -77,7 +77,7 @@ Response checkNameAvailabilityWithResponse( * @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 a Kusto cluster principalAssignment. + * @return a Kusto cluster principalAssignment along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) Response getWithResponse( @@ -93,9 +93,9 @@ Response getWithResponse( * @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 class representing a cluster principal assignment. + * @return the {@link SyncPoller} for polling of class representing a cluster principal assignment. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, ClusterPrincipalAssignmentInner> beginCreateOrUpdate( String resourceGroupName, String clusterName, @@ -113,9 +113,9 @@ SyncPoller, ClusterPrincipalAssignme * @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 class representing a cluster principal assignment. + * @return the {@link SyncPoller} for polling of class representing a cluster principal assignment. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, ClusterPrincipalAssignmentInner> beginCreateOrUpdate( String resourceGroupName, String clusterName, @@ -172,9 +172,9 @@ ClusterPrincipalAssignmentInner createOrUpdate( * @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 completion. + * @return the {@link SyncPoller} for polling of long-running operation. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, Void> beginDelete( String resourceGroupName, String clusterName, String principalAssignmentName); @@ -188,9 +188,9 @@ SyncPoller, Void> beginDelete( * @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 completion. + * @return the {@link SyncPoller} for polling of long-running operation. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, Void> beginDelete( String resourceGroupName, String clusterName, String principalAssignmentName, Context context); @@ -229,7 +229,8 @@ SyncPoller, Void> beginDelete( * @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 cluster principal assignments operation response. + * @return the list Kusto cluster principal assignments operation response as paginated response with {@link + * PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable list(String resourceGroupName, String clusterName); @@ -243,7 +244,8 @@ SyncPoller, Void> beginDelete( * @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 cluster principal assignments operation response. + * @return the list Kusto cluster principal assignments operation response as paginated response with {@link + * PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable list(String resourceGroupName, String clusterName, Context context); 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 5a613e887909..1569957627c9 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 @@ -47,7 +47,7 @@ public interface ClustersClient { * @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 a Kusto cluster. + * @return a Kusto cluster along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) Response getByResourceGroupWithResponse( @@ -66,9 +66,9 @@ Response getByResourceGroupWithResponse( * @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 class representing a Kusto cluster. + * @return the {@link SyncPoller} for polling of class representing a Kusto cluster. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, ClusterInner> beginCreateOrUpdate( String resourceGroupName, String clusterName, ClusterInner parameters, String ifMatch, String ifNoneMatch); @@ -86,9 +86,9 @@ SyncPoller, ClusterInner> beginCreateOrUpdate( * @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 class representing a Kusto cluster. + * @return the {@link SyncPoller} for polling of class representing a Kusto cluster. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, ClusterInner> beginCreateOrUpdate( String resourceGroupName, String clusterName, @@ -166,9 +166,9 @@ ClusterInner createOrUpdate( * @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 class representing a Kusto cluster. + * @return the {@link SyncPoller} for polling of class representing a Kusto cluster. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, ClusterInner> beginUpdate( String resourceGroupName, String clusterName, ClusterUpdate parameters, String ifMatch); @@ -184,9 +184,9 @@ SyncPoller, ClusterInner> beginUpdate( * @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 class representing a Kusto cluster. + * @return the {@link SyncPoller} for polling of class representing a Kusto cluster. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, ClusterInner> beginUpdate( String resourceGroupName, String clusterName, ClusterUpdate parameters, String ifMatch, Context context); @@ -246,9 +246,9 @@ ClusterInner update( * @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 completion. + * @return the {@link SyncPoller} for polling of long-running operation. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, Void> beginDelete(String resourceGroupName, String clusterName); /** @@ -260,9 +260,9 @@ ClusterInner update( * @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 completion. + * @return the {@link SyncPoller} for polling of long-running operation. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, Void> beginDelete(String resourceGroupName, String clusterName, Context context); /** @@ -298,9 +298,9 @@ ClusterInner update( * @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 completion. + * @return the {@link SyncPoller} for polling of long-running operation. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, Void> beginStop(String resourceGroupName, String clusterName); /** @@ -312,9 +312,9 @@ ClusterInner update( * @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 completion. + * @return the {@link SyncPoller} for polling of long-running operation. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, Void> beginStop(String resourceGroupName, String clusterName, Context context); /** @@ -350,9 +350,9 @@ ClusterInner update( * @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 completion. + * @return the {@link SyncPoller} for polling of long-running operation. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, Void> beginStart(String resourceGroupName, String clusterName); /** @@ -364,9 +364,9 @@ ClusterInner update( * @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 completion. + * @return the {@link SyncPoller} for polling of long-running operation. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, Void> beginStart(String resourceGroupName, String clusterName, Context context); /** @@ -402,7 +402,7 @@ ClusterInner update( * @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 database principals operation response. + * @return the list Kusto database principals operation response as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable listFollowerDatabases(String resourceGroupName, String clusterName); @@ -416,7 +416,7 @@ ClusterInner update( * @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 database principals operation response. + * @return the list Kusto database principals operation response as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable listFollowerDatabases( @@ -431,9 +431,9 @@ PagedIterable listFollowerDatabases( * @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 completion. + * @return the {@link SyncPoller} for polling of long-running operation. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, Void> beginDetachFollowerDatabases( String resourceGroupName, String clusterName, FollowerDatabaseDefinitionInner followerDatabaseToRemove); @@ -447,9 +447,9 @@ SyncPoller, Void> beginDetachFollowerDatabases( * @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 completion. + * @return the {@link SyncPoller} for polling of long-running operation. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, Void> beginDetachFollowerDatabases( String resourceGroupName, String clusterName, @@ -496,9 +496,9 @@ void detachFollowerDatabases( * @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 response. + * @return the {@link SyncPoller} for polling of long-running operation. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, DiagnoseVirtualNetworkResultInner> beginDiagnoseVirtualNetwork(String resourceGroupName, String clusterName); @@ -511,9 +511,9 @@ void detachFollowerDatabases( * @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 response. + * @return the {@link SyncPoller} for polling of long-running operation. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, DiagnoseVirtualNetworkResultInner> beginDiagnoseVirtualNetwork(String resourceGroupName, String clusterName, Context context); @@ -552,7 +552,7 @@ DiagnoseVirtualNetworkResultInner diagnoseVirtualNetwork( * @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 clusters operation response. + * @return the list Kusto clusters operation response as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable listByResourceGroup(String resourceGroupName); @@ -565,7 +565,7 @@ DiagnoseVirtualNetworkResultInner diagnoseVirtualNetwork( * @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 clusters operation response. + * @return the list Kusto clusters operation response as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable listByResourceGroup(String resourceGroupName, Context context); @@ -575,7 +575,7 @@ DiagnoseVirtualNetworkResultInner diagnoseVirtualNetwork( * * @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 clusters operation response. + * @return the list Kusto clusters operation response as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable list(); @@ -587,7 +587,7 @@ DiagnoseVirtualNetworkResultInner diagnoseVirtualNetwork( * @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 clusters operation response. + * @return the list Kusto clusters operation response as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable list(Context context); @@ -597,7 +597,7 @@ DiagnoseVirtualNetworkResultInner diagnoseVirtualNetwork( * * @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 of the EngagementFabric SKU descriptions. + * @return the list of the EngagementFabric SKU descriptions as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable listSkus(); @@ -609,7 +609,7 @@ DiagnoseVirtualNetworkResultInner diagnoseVirtualNetwork( * @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 of the EngagementFabric SKU descriptions. + * @return the list of the EngagementFabric SKU descriptions as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable listSkus(Context context); @@ -636,7 +636,7 @@ DiagnoseVirtualNetworkResultInner diagnoseVirtualNetwork( * @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 check name availability request. + * @return the result returned from a check name availability request along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) Response checkNameAvailabilityWithResponse( @@ -650,7 +650,7 @@ Response checkNameAvailabilityWithResponse( * @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 list of available SKUs for a Kusto Cluster. + * @return list of available SKUs for a Kusto Cluster as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable listSkusByResource(String resourceGroupName, String clusterName); @@ -664,7 +664,7 @@ Response checkNameAvailabilityWithResponse( * @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 list of available SKUs for a Kusto Cluster. + * @return list of available SKUs for a Kusto Cluster as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable listSkusByResource( @@ -678,7 +678,8 @@ PagedIterable listSkusByResource( * @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 network endpoints of all outbound dependencies of a Kusto cluster. + * @return the network endpoints of all outbound dependencies of a Kusto cluster as paginated response with {@link + * PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable listOutboundNetworkDependenciesEndpoints( @@ -693,7 +694,8 @@ PagedIterable listOutboundNetworkDepen * @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 network endpoints of all outbound dependencies of a Kusto cluster. + * @return the network endpoints of all outbound dependencies of a Kusto cluster as paginated response with {@link + * PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable listOutboundNetworkDependenciesEndpoints( @@ -707,7 +709,7 @@ PagedIterable listOutboundNetworkDepen * @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 of language extension objects. + * @return the list of language extension objects as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable listLanguageExtensions(String resourceGroupName, String clusterName); @@ -721,7 +723,7 @@ PagedIterable listOutboundNetworkDepen * @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 of language extension objects. + * @return the list of language extension objects as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable listLanguageExtensions( @@ -736,9 +738,9 @@ PagedIterable listLanguageExtensions( * @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 completion. + * @return the {@link SyncPoller} for polling of long-running operation. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, Void> beginAddLanguageExtensions( String resourceGroupName, String clusterName, LanguageExtensionsList languageExtensionsToAdd); @@ -752,9 +754,9 @@ SyncPoller, Void> beginAddLanguageExtensions( * @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 completion. + * @return the {@link SyncPoller} for polling of long-running operation. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, Void> beginAddLanguageExtensions( String resourceGroupName, String clusterName, LanguageExtensionsList languageExtensionsToAdd, Context context); @@ -796,9 +798,9 @@ void addLanguageExtensions( * @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 completion. + * @return the {@link SyncPoller} for polling of long-running operation. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, Void> beginRemoveLanguageExtensions( String resourceGroupName, String clusterName, LanguageExtensionsList languageExtensionsToRemove); @@ -812,9 +814,9 @@ SyncPoller, Void> beginRemoveLanguageExtensions( * @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 completion. + * @return the {@link SyncPoller} for polling of long-running operation. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, Void> beginRemoveLanguageExtensions( String resourceGroupName, String clusterName, 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 3fca0fd0c0fe..7604743c109c 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 @@ -28,7 +28,7 @@ public interface DataConnectionsClient { * @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 data connections operation response. + * @return the list Kusto data connections operation response as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable listByDatabase( @@ -44,7 +44,7 @@ PagedIterable listByDatabase( * @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 data connections operation response. + * @return the list Kusto data connections operation response as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable listByDatabase( @@ -60,9 +60,9 @@ PagedIterable listByDatabase( * @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 data connection validation result. + * @return the {@link SyncPoller} for polling of the list Kusto data connection validation result. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, DataConnectionValidationListResultInner> beginDataConnectionValidation( String resourceGroupName, @@ -81,9 +81,9 @@ PagedIterable listByDatabase( * @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 data connection validation result. + * @return the {@link SyncPoller} for polling of the list Kusto data connection validation result. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, DataConnectionValidationListResultInner> beginDataConnectionValidation( String resourceGroupName, @@ -159,7 +159,7 @@ CheckNameResultInner checkNameAvailability( * @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 check name availability request. + * @return the result returned from a check name availability request along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) Response checkNameAvailabilityWithResponse( @@ -196,7 +196,7 @@ DataConnectionInner get( * @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 class representing an data connection. + * @return class representing an data connection along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) Response getWithResponse( @@ -213,9 +213,9 @@ Response getWithResponse( * @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 class representing an data connection. + * @return the {@link SyncPoller} for polling of class representing an data connection. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, DataConnectionInner> beginCreateOrUpdate( String resourceGroupName, String clusterName, @@ -235,9 +235,9 @@ SyncPoller, DataConnectionInner> beginCreateOrUp * @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 class representing an data connection. + * @return the {@link SyncPoller} for polling of class representing an data connection. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, DataConnectionInner> beginCreateOrUpdate( String resourceGroupName, String clusterName, @@ -301,9 +301,9 @@ DataConnectionInner createOrUpdate( * @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 class representing an data connection. + * @return the {@link SyncPoller} for polling of class representing an data connection. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, DataConnectionInner> beginUpdate( String resourceGroupName, String clusterName, @@ -323,9 +323,9 @@ SyncPoller, DataConnectionInner> beginUpdate( * @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 class representing an data connection. + * @return the {@link SyncPoller} for polling of class representing an data connection. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, DataConnectionInner> beginUpdate( String resourceGroupName, String clusterName, @@ -388,9 +388,9 @@ DataConnectionInner update( * @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 completion. + * @return the {@link SyncPoller} for polling of long-running operation. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, Void> beginDelete( String resourceGroupName, String clusterName, String databaseName, String dataConnectionName); @@ -405,9 +405,9 @@ SyncPoller, Void> beginDelete( * @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 completion. + * @return the {@link SyncPoller} for polling of long-running operation. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, Void> beginDelete( String resourceGroupName, String clusterName, String databaseName, String dataConnectionName, Context context); 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 695e0d04be85..1761c8b97b0d 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 @@ -47,7 +47,7 @@ CheckNameResultInner checkNameAvailability( * @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 check name availability request. + * @return the result returned from a check name availability request along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) Response checkNameAvailabilityWithResponse( @@ -84,7 +84,7 @@ DatabasePrincipalAssignmentInner get( * @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 a Kusto cluster database principalAssignment. + * @return a Kusto cluster database principalAssignment along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) Response getWithResponse( @@ -105,9 +105,9 @@ Response getWithResponse( * @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 class representing a database principal assignment. + * @return the {@link SyncPoller} for polling of class representing a database principal assignment. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, DatabasePrincipalAssignmentInner> beginCreateOrUpdate( String resourceGroupName, String clusterName, @@ -127,9 +127,9 @@ SyncPoller, DatabasePrincipalAssign * @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 class representing a database principal assignment. + * @return the {@link SyncPoller} for polling of class representing a database principal assignment. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, DatabasePrincipalAssignmentInner> beginCreateOrUpdate( String resourceGroupName, String clusterName, @@ -192,9 +192,9 @@ DatabasePrincipalAssignmentInner createOrUpdate( * @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 completion. + * @return the {@link SyncPoller} for polling of long-running operation. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, Void> beginDelete( String resourceGroupName, String clusterName, String databaseName, String principalAssignmentName); @@ -209,9 +209,9 @@ SyncPoller, Void> beginDelete( * @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 completion. + * @return the {@link SyncPoller} for polling of long-running operation. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, Void> beginDelete( String resourceGroupName, String clusterName, @@ -262,7 +262,8 @@ void delete( * @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 database principal assignments operation response. + * @return the list Kusto database principal assignments operation response as paginated response with {@link + * PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable list( @@ -278,7 +279,8 @@ PagedIterable list( * @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 database principal assignments operation response. + * @return the list Kusto database principal assignments operation response as paginated response with {@link + * PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable list( 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 f9dd55ea45b7..1c05a8926758 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 @@ -45,7 +45,7 @@ CheckNameResultInner checkNameAvailability( * @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 check name availability request. + * @return the result returned from a check name availability request along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) Response checkNameAvailabilityWithResponse( @@ -59,7 +59,7 @@ Response checkNameAvailabilityWithResponse( * @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. + * @return the list Kusto databases operation response as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable listByCluster(String resourceGroupName, String clusterName); @@ -73,7 +73,7 @@ Response checkNameAvailabilityWithResponse( * @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. + * @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); @@ -102,7 +102,7 @@ Response checkNameAvailabilityWithResponse( * @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 class representing a Kusto database. + * @return class representing a Kusto database along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) Response getWithResponse( @@ -118,9 +118,9 @@ Response getWithResponse( * @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 class representing a Kusto database. + * @return the {@link SyncPoller} for polling of class representing a Kusto database. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, DatabaseInner> beginCreateOrUpdate( String resourceGroupName, String clusterName, String databaseName, DatabaseInner parameters); @@ -135,9 +135,9 @@ SyncPoller, DatabaseInner> beginCreateOrUpdate( * @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 class representing a Kusto database. + * @return the {@link SyncPoller} for polling of class representing a Kusto database. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, DatabaseInner> beginCreateOrUpdate( String resourceGroupName, String clusterName, String databaseName, DatabaseInner parameters, Context context); @@ -184,9 +184,9 @@ DatabaseInner createOrUpdate( * @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 class representing a Kusto database. + * @return the {@link SyncPoller} for polling of class representing a Kusto database. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, DatabaseInner> beginUpdate( String resourceGroupName, String clusterName, String databaseName, DatabaseInner parameters); @@ -201,9 +201,9 @@ SyncPoller, DatabaseInner> beginUpdate( * @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 class representing a Kusto database. + * @return the {@link SyncPoller} for polling of class representing a Kusto database. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, DatabaseInner> beginUpdate( String resourceGroupName, String clusterName, String databaseName, DatabaseInner parameters, Context context); @@ -248,9 +248,9 @@ DatabaseInner update( * @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 completion. + * @return the {@link SyncPoller} for polling of long-running operation. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, Void> beginDelete(String resourceGroupName, String clusterName, String databaseName); /** @@ -263,9 +263,9 @@ DatabaseInner update( * @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 completion. + * @return the {@link SyncPoller} for polling of long-running operation. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, Void> beginDelete( String resourceGroupName, String clusterName, String databaseName, Context context); @@ -305,7 +305,7 @@ SyncPoller, Void> beginDelete( * @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 database principals operation response. + * @return the list Kusto database principals operation response as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable listPrincipals( @@ -321,7 +321,7 @@ PagedIterable listPrincipals( * @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 database principals operation response. + * @return the list Kusto database principals operation response as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable listPrincipals( @@ -357,7 +357,7 @@ DatabasePrincipalListResultInner addPrincipals( * @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 database principals operation response. + * @return the list Kusto database principals operation response along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) Response addPrincipalsWithResponse( @@ -397,7 +397,7 @@ DatabasePrincipalListResultInner removePrincipals( * @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 database principals operation response. + * @return the list Kusto database principals operation response along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) Response removePrincipalsWithResponse( 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 dcb024a298d2..786ec0744af7 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 @@ -128,4 +128,11 @@ public interface KustoManagementClient { * @return the OperationsResultsClient object. */ OperationsResultsClient getOperationsResults(); + + /** + * Gets the OperationsResultsLocationsClient object to access its operations. + * + * @return the OperationsResultsLocationsClient object. + */ + OperationsResultsLocationsClient getOperationsResultsLocations(); } 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 51870be55f40..695244263eda 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 @@ -42,7 +42,7 @@ CheckNameResultInner checkNameAvailability( * @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 check name availability request. + * @return the result returned from a check name availability request along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) Response checkNameAvailabilityWithResponse( @@ -59,7 +59,7 @@ Response checkNameAvailabilityWithResponse( * @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 managed private endpoints operation response. + * @return the list managed private endpoints operation response as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable list(String resourceGroupName, String clusterName); @@ -73,7 +73,7 @@ Response checkNameAvailabilityWithResponse( * @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 managed private endpoints operation response. + * @return the list managed private endpoints operation response as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable list(String resourceGroupName, String clusterName, Context context); @@ -102,7 +102,7 @@ Response checkNameAvailabilityWithResponse( * @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 a managed private endpoint. + * @return a managed private endpoint along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) Response getWithResponse( @@ -118,9 +118,9 @@ Response getWithResponse( * @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 class representing a managed private endpoint. + * @return the {@link SyncPoller} for polling of class representing a managed private endpoint. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, ManagedPrivateEndpointInner> beginCreateOrUpdate( String resourceGroupName, String clusterName, @@ -138,9 +138,9 @@ SyncPoller, ManagedPrivateEndpointInner> * @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 class representing a managed private endpoint. + * @return the {@link SyncPoller} for polling of class representing a managed private endpoint. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, ManagedPrivateEndpointInner> beginCreateOrUpdate( String resourceGroupName, String clusterName, @@ -198,9 +198,9 @@ ManagedPrivateEndpointInner createOrUpdate( * @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 class representing a managed private endpoint. + * @return the {@link SyncPoller} for polling of class representing a managed private endpoint. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, ManagedPrivateEndpointInner> beginUpdate( String resourceGroupName, String clusterName, @@ -218,9 +218,9 @@ SyncPoller, ManagedPrivateEndpointInner> * @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 class representing a managed private endpoint. + * @return the {@link SyncPoller} for polling of class representing a managed private endpoint. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, ManagedPrivateEndpointInner> beginUpdate( String resourceGroupName, String clusterName, @@ -277,9 +277,9 @@ ManagedPrivateEndpointInner update( * @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 completion. + * @return the {@link SyncPoller} for polling of long-running operation. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, Void> beginDelete( String resourceGroupName, String clusterName, String managedPrivateEndpointName); @@ -293,9 +293,9 @@ SyncPoller, Void> beginDelete( * @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 completion. + * @return the {@link SyncPoller} for polling of long-running operation. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, Void> beginDelete( String resourceGroupName, String clusterName, String managedPrivateEndpointName, Context context); diff --git a/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/fluent/OperationsClient.java b/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/fluent/OperationsClient.java index 48396b10970e..7c75035ae250 100644 --- a/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/fluent/OperationsClient.java +++ b/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/fluent/OperationsClient.java @@ -17,7 +17,7 @@ public interface OperationsClient { * * @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 result of the request to list REST API operations. + * @return result of the request to list REST API operations as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable list(); @@ -29,7 +29,7 @@ public interface OperationsClient { * @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 result of the request to list REST API operations. + * @return result of the request to list REST API operations as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable list(Context context); 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 185efb42adf1..2bce5b097efb 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 @@ -34,7 +34,7 @@ public interface OperationsResultsClient { * @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 operation Result Entity. + * @return operation Result Entity along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) Response getWithResponse(String location, String operationId, Context context); 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 new file mode 100644 index 000000000000..92a2ae24a1a8 --- /dev/null +++ b/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/fluent/OperationsResultsLocationsClient.java @@ -0,0 +1,39 @@ +// 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; + +/** 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. + * @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 get(String location, String operationId); + + /** + * Returns operation results. + * + * @param location Azure location (region) name. + * @param operationId The Guid of the operation ID. + * @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}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Response getWithResponse(String location, String operationId, Context context); +} 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 9d428aebd388..1ba27d19cb58 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 @@ -23,7 +23,7 @@ public interface PrivateEndpointConnectionsClient { * @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 a list of private endpoint connections. + * @return a list of private endpoint connections as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable list(String resourceGroupName, String clusterName); @@ -37,7 +37,7 @@ public interface PrivateEndpointConnectionsClient { * @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 a list of private endpoint connections. + * @return a list of private endpoint connections as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable list(String resourceGroupName, String clusterName, Context context); @@ -67,7 +67,7 @@ PrivateEndpointConnectionInner get( * @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 a private endpoint connection. + * @return a private endpoint connection along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) Response getWithResponse( @@ -83,9 +83,9 @@ Response getWithResponse( * @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 a private endpoint connection. + * @return the {@link SyncPoller} for polling of a private endpoint connection. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, PrivateEndpointConnectionInner> beginCreateOrUpdate( String resourceGroupName, String clusterName, @@ -103,9 +103,9 @@ SyncPoller, PrivateEndpointConnection * @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 a private endpoint connection. + * @return the {@link SyncPoller} for polling of a private endpoint connection. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, PrivateEndpointConnectionInner> beginCreateOrUpdate( String resourceGroupName, String clusterName, @@ -162,9 +162,9 @@ PrivateEndpointConnectionInner createOrUpdate( * @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 completion. + * @return the {@link SyncPoller} for polling of long-running operation. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, Void> beginDelete( String resourceGroupName, String clusterName, String privateEndpointConnectionName); @@ -178,9 +178,9 @@ SyncPoller, Void> beginDelete( * @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 completion. + * @return the {@link SyncPoller} for polling of long-running operation. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, Void> beginDelete( String resourceGroupName, String clusterName, String privateEndpointConnectionName, Context context); 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 6d388d7f47f6..4f4bcf3b7206 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 @@ -21,7 +21,7 @@ public interface PrivateLinkResourcesClient { * @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 a list of private link resources. + * @return a list of private link resources as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable list(String resourceGroupName, String clusterName); @@ -35,7 +35,7 @@ public interface PrivateLinkResourcesClient { * @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 a list of private link resources. + * @return a list of private link resources as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable list(String resourceGroupName, String clusterName, Context context); @@ -64,7 +64,7 @@ public interface PrivateLinkResourcesClient { * @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 a private link resource. + * @return a private link resource along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) Response getWithResponse( 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 55f1080e0b57..dbb4a715f3fc 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 @@ -26,7 +26,7 @@ public interface ScriptsClient { * @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 database script operation response. + * @return the list Kusto database script operation response as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable listByDatabase(String resourceGroupName, String clusterName, String databaseName); @@ -41,7 +41,7 @@ public interface ScriptsClient { * @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 database script operation response. + * @return the list Kusto database script operation response as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable listByDatabase( @@ -73,7 +73,7 @@ PagedIterable listByDatabase( * @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 a Kusto cluster database script. + * @return a Kusto cluster database script along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) Response getWithResponse( @@ -90,9 +90,9 @@ Response getWithResponse( * @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 class representing a database script. + * @return the {@link SyncPoller} for polling of class representing a database script. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, ScriptInner> beginCreateOrUpdate( String resourceGroupName, String clusterName, String databaseName, String scriptName, ScriptInner parameters); @@ -108,9 +108,9 @@ SyncPoller, ScriptInner> beginCreateOrUpdate( * @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 class representing a database script. + * @return the {@link SyncPoller} for polling of class representing a database script. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, ScriptInner> beginCreateOrUpdate( String resourceGroupName, String clusterName, @@ -170,9 +170,9 @@ ScriptInner createOrUpdate( * @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 class representing a database script. + * @return the {@link SyncPoller} for polling of class representing a database script. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, ScriptInner> beginUpdate( String resourceGroupName, String clusterName, String databaseName, String scriptName, ScriptInner parameters); @@ -188,9 +188,9 @@ SyncPoller, ScriptInner> beginUpdate( * @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 class representing a database script. + * @return the {@link SyncPoller} for polling of class representing a database script. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, ScriptInner> beginUpdate( String resourceGroupName, String clusterName, @@ -249,9 +249,9 @@ ScriptInner update( * @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 completion. + * @return the {@link SyncPoller} for polling of long-running operation. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, Void> beginDelete( String resourceGroupName, String clusterName, String databaseName, String scriptName); @@ -266,9 +266,9 @@ SyncPoller, Void> beginDelete( * @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 completion. + * @return the {@link SyncPoller} for polling of long-running operation. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, Void> beginDelete( String resourceGroupName, String clusterName, String databaseName, String scriptName, Context context); @@ -328,7 +328,7 @@ CheckNameResultInner checkNameAvailability( * @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 check name availability request. + * @return the result returned from a check name availability request along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) Response checkNameAvailabilityWithResponse( 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 ea8ecba0bbae..0ca9fa765467 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 @@ -17,6 +17,7 @@ import com.azure.resourcemanager.kusto.models.LanguageExtensionsList; import com.azure.resourcemanager.kusto.models.OptimizedAutoscale; import com.azure.resourcemanager.kusto.models.ProvisioningState; +import com.azure.resourcemanager.kusto.models.PublicIpType; import com.azure.resourcemanager.kusto.models.PublicNetworkAccess; import com.azure.resourcemanager.kusto.models.State; import com.azure.resourcemanager.kusto.models.TrustedExternalTenant; @@ -573,6 +574,63 @@ public ClusterInner withAllowedFqdnList(List allowedFqdnList) { return this; } + /** + * Get the publicIpType property: Indicates what public IP type to create - IPv4 (default), or DualStack (both IPv4 + * and IPv6). + * + * @return the publicIpType value. + */ + public PublicIpType publicIpType() { + return this.innerProperties() == null ? null : this.innerProperties().publicIpType(); + } + + /** + * Set the publicIpType property: Indicates what public IP type to create - IPv4 (default), or DualStack (both IPv4 + * and IPv6). + * + * @param publicIpType the publicIpType value to set. + * @return the ClusterInner object itself. + */ + public ClusterInner withPublicIpType(PublicIpType publicIpType) { + if (this.innerProperties() == null) { + this.innerProperties = new ClusterProperties(); + } + this.innerProperties().withPublicIpType(publicIpType); + return this; + } + + /** + * Get the virtualClusterGraduationProperties property: Virtual Cluster graduation properties. + * + * @return the virtualClusterGraduationProperties value. + */ + public String virtualClusterGraduationProperties() { + return this.innerProperties() == null ? null : this.innerProperties().virtualClusterGraduationProperties(); + } + + /** + * Set the virtualClusterGraduationProperties property: Virtual Cluster graduation properties. + * + * @param virtualClusterGraduationProperties the virtualClusterGraduationProperties value to set. + * @return the ClusterInner object itself. + */ + public ClusterInner withVirtualClusterGraduationProperties(String virtualClusterGraduationProperties) { + if (this.innerProperties() == null) { + this.innerProperties = new ClusterProperties(); + } + this.innerProperties().withVirtualClusterGraduationProperties(virtualClusterGraduationProperties); + return this; + } + + /** + * Get the privateEndpointConnections property: A list of private endpoint connections. + * + * @return the privateEndpointConnections value. + */ + public List privateEndpointConnections() { + return this.innerProperties() == null ? null : this.innerProperties().privateEndpointConnections(); + } + /** * Validates the instance. * diff --git a/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/fluent/models/ClusterPrincipalAssignmentInner.java b/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/fluent/models/ClusterPrincipalAssignmentInner.java index 23ebbbcf2404..390c1efe3331 100644 --- a/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/fluent/models/ClusterPrincipalAssignmentInner.java +++ b/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/fluent/models/ClusterPrincipalAssignmentInner.java @@ -154,6 +154,15 @@ public ProvisioningState provisioningState() { return this.innerProperties() == null ? null : this.innerProperties().provisioningState(); } + /** + * Get the aadObjectId property: The service principal object id in AAD (Azure active directory). + * + * @return the aadObjectId value. + */ + public String aadObjectId() { + return this.innerProperties() == null ? null : this.innerProperties().aadObjectId(); + } + /** * Validates the instance. * diff --git a/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/fluent/models/ClusterPrincipalProperties.java b/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/fluent/models/ClusterPrincipalProperties.java index 32774eb5687d..5ecfc75b92c5 100644 --- a/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/fluent/models/ClusterPrincipalProperties.java +++ b/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/fluent/models/ClusterPrincipalProperties.java @@ -60,6 +60,12 @@ public final class ClusterPrincipalProperties { @JsonProperty(value = "provisioningState", access = JsonProperty.Access.WRITE_ONLY) private ProvisioningState provisioningState; + /* + * The service principal object id in AAD (Azure active directory) + */ + @JsonProperty(value = "aadObjectId", access = JsonProperty.Access.WRITE_ONLY) + private String aadObjectId; + /** * Get the principalId property: The principal ID assigned to the cluster principal. It can be a user email, * application ID, or security group name. @@ -169,6 +175,15 @@ public ProvisioningState provisioningState() { return this.provisioningState; } + /** + * Get the aadObjectId property: The service principal object id in AAD (Azure active directory). + * + * @return the aadObjectId value. + */ + public String aadObjectId() { + return this.aadObjectId; + } + /** * 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 6150e72c2cf9..2d46169da798 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 @@ -13,6 +13,7 @@ import com.azure.resourcemanager.kusto.models.LanguageExtensionsList; import com.azure.resourcemanager.kusto.models.OptimizedAutoscale; import com.azure.resourcemanager.kusto.models.ProvisioningState; +import com.azure.resourcemanager.kusto.models.PublicIpType; import com.azure.resourcemanager.kusto.models.PublicNetworkAccess; import com.azure.resourcemanager.kusto.models.State; import com.azure.resourcemanager.kusto.models.TrustedExternalTenant; @@ -156,6 +157,25 @@ public final class ClusterProperties { @JsonProperty(value = "allowedFqdnList") private List allowedFqdnList; + /* + * Indicates what public IP type to create - IPv4 (default), or DualStack + * (both IPv4 and IPv6) + */ + @JsonProperty(value = "publicIPType") + private PublicIpType publicIpType; + + /* + * Virtual Cluster graduation properties + */ + @JsonProperty(value = "virtualClusterGraduationProperties") + private String virtualClusterGraduationProperties; + + /* + * A list of private endpoint connections. + */ + @JsonProperty(value = "privateEndpointConnections", access = JsonProperty.Access.WRITE_ONLY) + private List privateEndpointConnections; + /** * Get the state property: The state of the resource. * @@ -516,6 +536,57 @@ public ClusterProperties withAllowedFqdnList(List allowedFqdnList) { return this; } + /** + * Get the publicIpType property: Indicates what public IP type to create - IPv4 (default), or DualStack (both IPv4 + * and IPv6). + * + * @return the publicIpType value. + */ + public PublicIpType publicIpType() { + return this.publicIpType; + } + + /** + * Set the publicIpType property: Indicates what public IP type to create - IPv4 (default), or DualStack (both IPv4 + * and IPv6). + * + * @param publicIpType the publicIpType value to set. + * @return the ClusterProperties object itself. + */ + public ClusterProperties withPublicIpType(PublicIpType publicIpType) { + this.publicIpType = publicIpType; + return this; + } + + /** + * Get the virtualClusterGraduationProperties property: Virtual Cluster graduation properties. + * + * @return the virtualClusterGraduationProperties value. + */ + public String virtualClusterGraduationProperties() { + return this.virtualClusterGraduationProperties; + } + + /** + * Set the virtualClusterGraduationProperties property: Virtual Cluster graduation properties. + * + * @param virtualClusterGraduationProperties the virtualClusterGraduationProperties value to set. + * @return the ClusterProperties object itself. + */ + public ClusterProperties withVirtualClusterGraduationProperties(String virtualClusterGraduationProperties) { + this.virtualClusterGraduationProperties = virtualClusterGraduationProperties; + return this; + } + + /** + * Get the privateEndpointConnections property: A list of private endpoint connections. + * + * @return the privateEndpointConnections value. + */ + public List privateEndpointConnections() { + return this.privateEndpointConnections; + } + /** * Validates the instance. * @@ -540,5 +611,8 @@ public void validate() { if (acceptedAudiences() != null) { acceptedAudiences().forEach(e -> e.validate()); } + if (privateEndpointConnections() != null) { + privateEndpointConnections().forEach(e -> e.validate()); + } } } diff --git a/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/fluent/models/DatabasePrincipalAssignmentInner.java b/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/fluent/models/DatabasePrincipalAssignmentInner.java index 9471adc59a0c..cbe068ed2cba 100644 --- a/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/fluent/models/DatabasePrincipalAssignmentInner.java +++ b/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/fluent/models/DatabasePrincipalAssignmentInner.java @@ -154,6 +154,15 @@ public ProvisioningState provisioningState() { return this.innerProperties() == null ? null : this.innerProperties().provisioningState(); } + /** + * Get the aadObjectId property: The service principal object id in AAD (Azure active directory). + * + * @return the aadObjectId value. + */ + public String aadObjectId() { + return this.innerProperties() == null ? null : this.innerProperties().aadObjectId(); + } + /** * Validates the instance. * diff --git a/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/fluent/models/DatabasePrincipalProperties.java b/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/fluent/models/DatabasePrincipalProperties.java index 35bbeabd4516..00b21471a84c 100644 --- a/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/fluent/models/DatabasePrincipalProperties.java +++ b/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/fluent/models/DatabasePrincipalProperties.java @@ -60,6 +60,12 @@ public final class DatabasePrincipalProperties { @JsonProperty(value = "provisioningState", access = JsonProperty.Access.WRITE_ONLY) private ProvisioningState provisioningState; + /* + * The service principal object id in AAD (Azure active directory) + */ + @JsonProperty(value = "aadObjectId", access = JsonProperty.Access.WRITE_ONLY) + private String aadObjectId; + /** * Get the principalId property: The principal ID assigned to the database principal. It can be a user email, * application ID, or security group name. @@ -169,6 +175,15 @@ public ProvisioningState provisioningState() { return this.provisioningState; } + /** + * Get the aadObjectId property: The service principal object id in AAD (Azure active directory). + * + * @return the aadObjectId value. + */ + public String aadObjectId() { + return this.aadObjectId; + } + /** * Validates the instance. * diff --git a/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/fluent/models/EventGridConnectionProperties.java b/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/fluent/models/EventGridConnectionProperties.java index bc9a22888675..978dde91b846 100644 --- a/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/fluent/models/EventGridConnectionProperties.java +++ b/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/fluent/models/EventGridConnectionProperties.java @@ -7,6 +7,7 @@ import com.azure.core.annotation.Fluent; import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.kusto.models.BlobStorageEventType; +import com.azure.resourcemanager.kusto.models.DatabaseRouting; import com.azure.resourcemanager.kusto.models.EventGridDataFormat; import com.azure.resourcemanager.kusto.models.ProvisioningState; import com.fasterxml.jackson.annotation.JsonIgnore; @@ -23,6 +24,13 @@ public final class EventGridConnectionProperties { @JsonProperty(value = "storageAccountResourceId", required = true) private String storageAccountResourceId; + /* + * The resource ID of the event grid that is subscribed to the storage + * account events. + */ + @JsonProperty(value = "eventGridResourceId") + private String eventGridResourceId; + /* * The resource ID where the event grid is configured to send events. */ @@ -69,6 +77,26 @@ public final class EventGridConnectionProperties { @JsonProperty(value = "blobStorageEventType") private BlobStorageEventType blobStorageEventType; + /* + * The resource ID of a managed identity (system or user assigned) to be + * used to authenticate with event hub and storage account. + */ + @JsonProperty(value = "managedIdentityResourceId") + private String managedIdentityResourceId; + + /* + * The object ID of managedIdentityResourceId + */ + @JsonProperty(value = "managedIdentityObjectId", access = JsonProperty.Access.WRITE_ONLY) + private String managedIdentityObjectId; + + /* + * Indication for database routing information from the data connection, by + * default only database routing information is allowed + */ + @JsonProperty(value = "databaseRouting") + private DatabaseRouting databaseRouting; + /* * The provisioned state of the resource. */ @@ -95,6 +123,28 @@ public EventGridConnectionProperties withStorageAccountResourceId(String storage return this; } + /** + * Get the eventGridResourceId property: The resource ID of the event grid that is subscribed to the storage account + * events. + * + * @return the eventGridResourceId value. + */ + public String eventGridResourceId() { + return this.eventGridResourceId; + } + + /** + * Set the eventGridResourceId property: The resource ID of the event grid that is subscribed to the storage account + * events. + * + * @param eventGridResourceId the eventGridResourceId value to set. + * @return the EventGridConnectionProperties object itself. + */ + public EventGridConnectionProperties withEventGridResourceId(String eventGridResourceId) { + this.eventGridResourceId = eventGridResourceId; + return this; + } + /** * Get the eventHubResourceId property: The resource ID where the event grid is configured to send events. * @@ -243,6 +293,59 @@ public EventGridConnectionProperties withBlobStorageEventType(BlobStorageEventTy return this; } + /** + * Get the managedIdentityResourceId property: The resource ID of a managed identity (system or user assigned) to be + * used to authenticate with event hub and storage account. + * + * @return the managedIdentityResourceId value. + */ + public String managedIdentityResourceId() { + return this.managedIdentityResourceId; + } + + /** + * Set the managedIdentityResourceId property: The resource ID of a managed identity (system or user assigned) to be + * used to authenticate with event hub and storage account. + * + * @param managedIdentityResourceId the managedIdentityResourceId value to set. + * @return the EventGridConnectionProperties object itself. + */ + public EventGridConnectionProperties withManagedIdentityResourceId(String managedIdentityResourceId) { + this.managedIdentityResourceId = managedIdentityResourceId; + return this; + } + + /** + * Get the managedIdentityObjectId property: The object ID of managedIdentityResourceId. + * + * @return the managedIdentityObjectId value. + */ + public String managedIdentityObjectId() { + return this.managedIdentityObjectId; + } + + /** + * Get the databaseRouting property: Indication for database routing information from the data connection, by + * default only database routing information is allowed. + * + * @return the databaseRouting value. + */ + public DatabaseRouting databaseRouting() { + return this.databaseRouting; + } + + /** + * Set the databaseRouting property: Indication for database routing information from the data connection, by + * default only database routing information is allowed. + * + * @param databaseRouting the databaseRouting value to set. + * @return the EventGridConnectionProperties object itself. + */ + public EventGridConnectionProperties withDatabaseRouting(DatabaseRouting databaseRouting) { + this.databaseRouting = databaseRouting; + return this; + } + /** * Get the provisioningState property: The provisioned state of the resource. * diff --git a/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/fluent/models/EventHubConnectionProperties.java b/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/fluent/models/EventHubConnectionProperties.java index 763970347a1a..bb2d49a23b01 100644 --- a/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/fluent/models/EventHubConnectionProperties.java +++ b/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/fluent/models/EventHubConnectionProperties.java @@ -7,6 +7,7 @@ import com.azure.core.annotation.Fluent; import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.kusto.models.Compression; +import com.azure.resourcemanager.kusto.models.DatabaseRouting; import com.azure.resourcemanager.kusto.models.EventHubDataFormat; import com.azure.resourcemanager.kusto.models.ProvisioningState; import com.fasterxml.jackson.annotation.JsonIgnore; @@ -76,6 +77,19 @@ public final class EventHubConnectionProperties { @JsonProperty(value = "managedIdentityResourceId") private String managedIdentityResourceId; + /* + * The object ID of the managedIdentityResourceId + */ + @JsonProperty(value = "managedIdentityObjectId", access = JsonProperty.Access.WRITE_ONLY) + private String managedIdentityObjectId; + + /* + * Indication for database routing information from the data connection, by + * default only database routing information is allowed + */ + @JsonProperty(value = "databaseRouting") + private DatabaseRouting databaseRouting; + /** * Get the eventHubResourceId property: The resource ID of the event hub to be used to create a data connection. * @@ -253,6 +267,37 @@ public EventHubConnectionProperties withManagedIdentityResourceId(String managed return this; } + /** + * Get the managedIdentityObjectId property: The object ID of the managedIdentityResourceId. + * + * @return the managedIdentityObjectId value. + */ + public String managedIdentityObjectId() { + return this.managedIdentityObjectId; + } + + /** + * Get the databaseRouting property: Indication for database routing information from the data connection, by + * default only database routing information is allowed. + * + * @return the databaseRouting value. + */ + public DatabaseRouting databaseRouting() { + return this.databaseRouting; + } + + /** + * Set the databaseRouting property: Indication for database routing information from the data connection, by + * default only database routing information is allowed. + * + * @param databaseRouting the databaseRouting value to set. + * @return the EventHubConnectionProperties object itself. + */ + public EventHubConnectionProperties withDatabaseRouting(DatabaseRouting databaseRouting) { + this.databaseRouting = databaseRouting; + return this; + } + /** * Validates the instance. * diff --git a/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/fluent/models/IotHubConnectionProperties.java b/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/fluent/models/IotHubConnectionProperties.java index 40806e05cf2c..0473e6cddf3f 100644 --- a/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/fluent/models/IotHubConnectionProperties.java +++ b/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/fluent/models/IotHubConnectionProperties.java @@ -6,6 +6,7 @@ import com.azure.core.annotation.Fluent; import com.azure.core.util.logging.ClientLogger; +import com.azure.resourcemanager.kusto.models.DatabaseRouting; import com.azure.resourcemanager.kusto.models.IotHubDataFormat; import com.azure.resourcemanager.kusto.models.ProvisioningState; import com.fasterxml.jackson.annotation.JsonIgnore; @@ -62,6 +63,13 @@ public final class IotHubConnectionProperties { @JsonProperty(value = "sharedAccessPolicyName", required = true) private String sharedAccessPolicyName; + /* + * Indication for database routing information from the data connection, by + * default only database routing information is allowed + */ + @JsonProperty(value = "databaseRouting") + private DatabaseRouting databaseRouting; + /* * The provisioned state of the resource. */ @@ -214,6 +222,28 @@ public IotHubConnectionProperties withSharedAccessPolicyName(String sharedAccess return this; } + /** + * Get the databaseRouting property: Indication for database routing information from the data connection, by + * default only database routing information is allowed. + * + * @return the databaseRouting value. + */ + public DatabaseRouting databaseRouting() { + return this.databaseRouting; + } + + /** + * Set the databaseRouting property: Indication for database routing information from the data connection, by + * default only database routing information is allowed. + * + * @param databaseRouting the databaseRouting value to set. + * @return the IotHubConnectionProperties object itself. + */ + public IotHubConnectionProperties withDatabaseRouting(DatabaseRouting databaseRouting) { + this.databaseRouting = databaseRouting; + return this; + } + /** * Get the provisioningState property: The provisioned state of the resource. * diff --git a/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/fluent/models/OperationResultInner.java b/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/fluent/models/OperationResultInner.java index ed35ebcf36a9..fe0b75c1eb44 100644 --- a/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/fluent/models/OperationResultInner.java +++ b/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/fluent/models/OperationResultInner.java @@ -6,6 +6,7 @@ import com.azure.core.annotation.Fluent; import com.azure.core.util.logging.ClientLogger; +import com.azure.resourcemanager.kusto.models.ProvisioningState; import com.azure.resourcemanager.kusto.models.Status; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; @@ -192,6 +193,15 @@ public OperationResultInner withOperationKind(String operationKind) { return this; } + /** + * Get the provisioningState property: The provisioned state of the resource. + * + * @return the provisioningState value. + */ + public ProvisioningState provisioningState() { + return this.innerProperties() == null ? null : this.innerProperties().provisioningState(); + } + /** * Get the operationState property: The state of the operation. * diff --git a/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/fluent/models/OperationResultProperties.java b/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/fluent/models/OperationResultProperties.java index a8f512b731da..f2684b67be30 100644 --- a/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/fluent/models/OperationResultProperties.java +++ b/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/fluent/models/OperationResultProperties.java @@ -6,6 +6,7 @@ import com.azure.core.annotation.Fluent; import com.azure.core.util.logging.ClientLogger; +import com.azure.resourcemanager.kusto.models.ProvisioningState; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; @@ -20,6 +21,12 @@ public final class OperationResultProperties { @JsonProperty(value = "operationKind") private String operationKind; + /* + * The provisioned state of the resource. + */ + @JsonProperty(value = "provisioningState", access = JsonProperty.Access.WRITE_ONLY) + private ProvisioningState provisioningState; + /* * The state of the operation. */ @@ -46,6 +53,15 @@ public OperationResultProperties withOperationKind(String operationKind) { return this; } + /** + * Get the provisioningState property: The provisioned state of the resource. + * + * @return the provisioningState value. + */ + public ProvisioningState provisioningState() { + return this.provisioningState; + } + /** * Get the operationState property: The state of the operation. * diff --git a/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/fluent/models/ScriptInner.java b/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/fluent/models/ScriptInner.java index ccbc077049e7..06a3498cfe13 100644 --- a/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/fluent/models/ScriptInner.java +++ b/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/fluent/models/ScriptInner.java @@ -48,7 +48,8 @@ public SystemData systemData() { } /** - * Get the scriptUrl property: The url to the KQL script blob file. + * Get the scriptUrl property: The url to the KQL script blob file. Must not be used together with scriptContent + * property. * * @return the scriptUrl value. */ @@ -57,7 +58,8 @@ public String scriptUrl() { } /** - * Set the scriptUrl property: The url to the KQL script blob file. + * Set the scriptUrl property: The url to the KQL script blob file. Must not be used together with scriptContent + * property. * * @param scriptUrl the scriptUrl value to set. * @return the ScriptInner object itself. @@ -71,7 +73,8 @@ public ScriptInner withScriptUrl(String scriptUrl) { } /** - * Get the scriptUrlSasToken property: The SaS token. + * Get the scriptUrlSasToken property: The SaS token that provide read access to the file which contain the script. + * Must be provided when using scriptUrl property. * * @return the scriptUrlSasToken value. */ @@ -80,7 +83,8 @@ public String scriptUrlSasToken() { } /** - * Set the scriptUrlSasToken property: The SaS token. + * Set the scriptUrlSasToken property: The SaS token that provide read access to the file which contain the script. + * Must be provided when using scriptUrl property. * * @param scriptUrlSasToken the scriptUrlSasToken value to set. * @return the ScriptInner object itself. @@ -93,6 +97,31 @@ public ScriptInner withScriptUrlSasToken(String scriptUrlSasToken) { return this; } + /** + * Get the scriptContent property: The script content. This property should be used when the script is provide + * inline and not through file in a SA. Must not be used together with scriptUrl and scriptUrlSasToken properties. + * + * @return the scriptContent value. + */ + public String scriptContent() { + return this.innerProperties() == null ? null : this.innerProperties().scriptContent(); + } + + /** + * Set the scriptContent property: The script content. This property should be used when the script is provide + * inline and not through file in a SA. Must not be used together with scriptUrl and scriptUrlSasToken properties. + * + * @param scriptContent the scriptContent value to set. + * @return the ScriptInner object itself. + */ + public ScriptInner withScriptContent(String scriptContent) { + if (this.innerProperties() == null) { + this.innerProperties = new ScriptProperties(); + } + this.innerProperties().withScriptContent(scriptContent); + return this; + } + /** * Get the forceUpdateTag property: A unique string. If changed the script will be applied again. * diff --git a/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/fluent/models/ScriptProperties.java b/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/fluent/models/ScriptProperties.java index 06bb84ad2225..f904a179e530 100644 --- a/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/fluent/models/ScriptProperties.java +++ b/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/fluent/models/ScriptProperties.java @@ -16,17 +16,27 @@ public final class ScriptProperties { @JsonIgnore private final ClientLogger logger = new ClientLogger(ScriptProperties.class); /* - * The url to the KQL script blob file. + * The url to the KQL script blob file. Must not be used together with + * scriptContent property */ - @JsonProperty(value = "scriptUrl", required = true) + @JsonProperty(value = "scriptUrl") private String scriptUrl; /* - * The SaS token. + * The SaS token that provide read access to the file which contain the + * script. Must be provided when using scriptUrl property. */ - @JsonProperty(value = "scriptUrlSasToken", required = true) + @JsonProperty(value = "scriptUrlSasToken") private String scriptUrlSasToken; + /* + * The script content. This property should be used when the script is + * provide inline and not through file in a SA. Must not be used together + * with scriptUrl and scriptUrlSasToken properties. + */ + @JsonProperty(value = "scriptContent") + private String scriptContent; + /* * A unique string. If changed the script will be applied again. */ @@ -46,7 +56,8 @@ public final class ScriptProperties { private ProvisioningState provisioningState; /** - * Get the scriptUrl property: The url to the KQL script blob file. + * Get the scriptUrl property: The url to the KQL script blob file. Must not be used together with scriptContent + * property. * * @return the scriptUrl value. */ @@ -55,7 +66,8 @@ public String scriptUrl() { } /** - * Set the scriptUrl property: The url to the KQL script blob file. + * Set the scriptUrl property: The url to the KQL script blob file. Must not be used together with scriptContent + * property. * * @param scriptUrl the scriptUrl value to set. * @return the ScriptProperties object itself. @@ -66,7 +78,8 @@ public ScriptProperties withScriptUrl(String scriptUrl) { } /** - * Get the scriptUrlSasToken property: The SaS token. + * Get the scriptUrlSasToken property: The SaS token that provide read access to the file which contain the script. + * Must be provided when using scriptUrl property. * * @return the scriptUrlSasToken value. */ @@ -75,7 +88,8 @@ public String scriptUrlSasToken() { } /** - * Set the scriptUrlSasToken property: The SaS token. + * Set the scriptUrlSasToken property: The SaS token that provide read access to the file which contain the script. + * Must be provided when using scriptUrl property. * * @param scriptUrlSasToken the scriptUrlSasToken value to set. * @return the ScriptProperties object itself. @@ -85,6 +99,28 @@ public ScriptProperties withScriptUrlSasToken(String scriptUrlSasToken) { return this; } + /** + * Get the scriptContent property: The script content. This property should be used when the script is provide + * inline and not through file in a SA. Must not be used together with scriptUrl and scriptUrlSasToken properties. + * + * @return the scriptContent value. + */ + public String scriptContent() { + return this.scriptContent; + } + + /** + * Set the scriptContent property: The script content. This property should be used when the script is provide + * inline and not through file in a SA. Must not be used together with scriptUrl and scriptUrlSasToken properties. + * + * @param scriptContent the scriptContent value to set. + * @return the ScriptProperties object itself. + */ + public ScriptProperties withScriptContent(String scriptContent) { + this.scriptContent = scriptContent; + return this; + } + /** * Get the forceUpdateTag property: A unique string. If changed the script will be applied again. * @@ -140,16 +176,5 @@ public ProvisioningState provisioningState() { * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { - if (scriptUrl() == null) { - throw logger - .logExceptionAsError( - new IllegalArgumentException("Missing required property scriptUrl in model ScriptProperties")); - } - if (scriptUrlSasToken() == null) { - throw logger - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property scriptUrlSasToken in model ScriptProperties")); - } } } 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 0eb819456e00..4407285f4bb1 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 @@ -164,7 +164,8 @@ Mono>> delete( * @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 check name availability request. + * @return the result returned from a check name availability request along with {@link Response} on successful + * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> checkNameAvailabilityWithResponseAsync( @@ -220,7 +221,8 @@ private Mono> checkNameAvailabilityWithResponseAs * @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 check name availability request. + * @return the result returned from a check name availability request along with {@link Response} on successful + * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> checkNameAvailabilityWithResponseAsync( @@ -275,7 +277,7 @@ private Mono> checkNameAvailabilityWithResponseAs * @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 check name availability request. + * @return the result returned from a check name availability request on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono checkNameAvailabilityAsync( @@ -318,7 +320,7 @@ public CheckNameResultInner checkNameAvailability( * @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 check name availability request. + * @return the result returned from a check name availability request along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) public Response checkNameAvailabilityWithResponse( @@ -337,7 +339,8 @@ public Response checkNameAvailabilityWithResponse( * @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 attached database configurations operation response. + * @return the list attached database configurations operation response along with {@link PagedResponse} on + * successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listByClusterSinglePageAsync( @@ -390,7 +393,8 @@ private Mono> listByClusterSin * @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 attached database configurations operation response. + * @return the list attached database configurations operation response along with {@link PagedResponse} on + * successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listByClusterSinglePageAsync( @@ -439,7 +443,8 @@ private Mono> listByClusterSin * @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 attached database configurations operation response. + * @return the list attached database configurations operation response as paginated response with {@link + * PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listByClusterAsync( @@ -456,7 +461,8 @@ private PagedFlux listByClusterAsync( * @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 attached database configurations operation response. + * @return the list attached database configurations operation response as paginated response with {@link + * PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listByClusterAsync( @@ -472,7 +478,8 @@ private PagedFlux listByClusterAsync( * @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 attached database configurations operation response. + * @return the list attached database configurations operation response as paginated response with {@link + * PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable listByCluster( @@ -489,7 +496,8 @@ public PagedIterable listByCluster( * @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 attached database configurations operation response. + * @return the list attached database configurations operation response as paginated response with {@link + * PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable listByCluster( @@ -506,7 +514,8 @@ public PagedIterable listByCluster( * @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 class representing an attached database configuration. + * @return class representing an attached database configuration along with {@link Response} on successful + * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> getWithResponseAsync( @@ -563,7 +572,8 @@ private Mono> getWithResponseAsync( * @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 class representing an attached database configuration. + * @return class representing an attached database configuration along with {@link Response} on successful + * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> getWithResponseAsync( @@ -616,7 +626,7 @@ private Mono> getWithResponseAsync( * @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 class representing an attached database configuration. + * @return class representing an attached database configuration on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono getAsync( @@ -659,7 +669,7 @@ public AttachedDatabaseConfigurationInner get( * @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 class representing an attached database configuration. + * @return class representing an attached database configuration along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) public Response getWithResponse( @@ -677,7 +687,8 @@ public Response getWithResponse( * @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 class representing an attached database configuration. + * @return class representing an attached database configuration along with {@link Response} on successful + * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> createOrUpdateWithResponseAsync( @@ -744,7 +755,8 @@ private Mono>> createOrUpdateWithResponseAsync( * @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 class representing an attached database configuration. + * @return class representing an attached database configuration along with {@link Response} on successful + * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> createOrUpdateWithResponseAsync( @@ -808,9 +820,9 @@ private Mono>> createOrUpdateWithResponseAsync( * @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 class representing an attached database configuration. + * @return the {@link PollerFlux} for polling of class representing an attached database configuration. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, AttachedDatabaseConfigurationInner> beginCreateOrUpdateAsync( String resourceGroupName, @@ -827,7 +839,7 @@ private Mono>> createOrUpdateWithResponseAsync( this.client.getHttpPipeline(), AttachedDatabaseConfigurationInner.class, AttachedDatabaseConfigurationInner.class, - Context.NONE); + this.client.getContext()); } /** @@ -841,9 +853,9 @@ private Mono>> createOrUpdateWithResponseAsync( * @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 class representing an attached database configuration. + * @return the {@link PollerFlux} for polling of class representing an attached database configuration. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, AttachedDatabaseConfigurationInner> beginCreateOrUpdateAsync( String resourceGroupName, @@ -875,9 +887,9 @@ private Mono>> createOrUpdateWithResponseAsync( * @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 class representing an attached database configuration. + * @return the {@link SyncPoller} for polling of class representing an attached database configuration. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, AttachedDatabaseConfigurationInner> beginCreateOrUpdate( String resourceGroupName, @@ -899,9 +911,9 @@ private Mono>> createOrUpdateWithResponseAsync( * @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 class representing an attached database configuration. + * @return the {@link SyncPoller} for polling of class representing an attached database configuration. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, AttachedDatabaseConfigurationInner> beginCreateOrUpdate( String resourceGroupName, @@ -924,7 +936,7 @@ private Mono>> createOrUpdateWithResponseAsync( * @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 class representing an attached database configuration. + * @return class representing an attached database configuration on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono createOrUpdateAsync( @@ -948,7 +960,7 @@ private Mono createOrUpdateAsync( * @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 class representing an attached database configuration. + * @return class representing an attached database configuration on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono createOrUpdateAsync( @@ -1019,7 +1031,7 @@ public AttachedDatabaseConfigurationInner createOrUpdate( * @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 completion. + * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> deleteWithResponseAsync( @@ -1076,7 +1088,7 @@ private Mono>> deleteWithResponseAsync( * @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 completion. + * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> deleteWithResponseAsync( @@ -1129,16 +1141,17 @@ private Mono>> deleteWithResponseAsync( * @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 completion. + * @return the {@link PollerFlux} for polling of long-running operation. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, Void> beginDeleteAsync( String resourceGroupName, String clusterName, String attachedDatabaseConfigurationName) { Mono>> mono = deleteWithResponseAsync(resourceGroupName, clusterName, attachedDatabaseConfigurationName); return this .client - .getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, Context.NONE); + .getLroResult( + mono, this.client.getHttpPipeline(), Void.class, Void.class, this.client.getContext()); } /** @@ -1151,9 +1164,9 @@ private PollerFlux, Void> beginDeleteAsync( * @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 completion. + * @return the {@link PollerFlux} for polling of long-running operation. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, Void> beginDeleteAsync( String resourceGroupName, String clusterName, String attachedDatabaseConfigurationName, Context context) { context = this.client.mergeContext(context); @@ -1173,9 +1186,9 @@ private PollerFlux, Void> beginDeleteAsync( * @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 completion. + * @return the {@link SyncPoller} for polling of long-running operation. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, Void> beginDelete( String resourceGroupName, String clusterName, String attachedDatabaseConfigurationName) { return beginDeleteAsync(resourceGroupName, clusterName, attachedDatabaseConfigurationName).getSyncPoller(); @@ -1191,9 +1204,9 @@ public SyncPoller, Void> beginDelete( * @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 completion. + * @return the {@link SyncPoller} for polling of long-running operation. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, Void> beginDelete( String resourceGroupName, String clusterName, String attachedDatabaseConfigurationName, Context context) { return beginDeleteAsync(resourceGroupName, clusterName, attachedDatabaseConfigurationName, context) @@ -1209,7 +1222,7 @@ public SyncPoller, Void> beginDelete( * @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 completion. + * @return A {@link Mono} that completes when a successful response is received. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono deleteAsync( @@ -1229,7 +1242,7 @@ private Mono deleteAsync( * @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 completion. + * @return A {@link Mono} that completes when a successful response is received. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono deleteAsync( 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 46c8052bfe46..8fdd4a522d05 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 @@ -10,6 +10,7 @@ import com.azure.core.util.Context; import com.azure.resourcemanager.kusto.fluent.models.ClusterInner; import com.azure.resourcemanager.kusto.fluent.models.FollowerDatabaseDefinitionInner; +import com.azure.resourcemanager.kusto.fluent.models.PrivateEndpointConnectionInner; import com.azure.resourcemanager.kusto.models.AcceptedAudiences; import com.azure.resourcemanager.kusto.models.AzureSku; import com.azure.resourcemanager.kusto.models.Cluster; @@ -23,7 +24,9 @@ import com.azure.resourcemanager.kusto.models.LanguageExtension; import com.azure.resourcemanager.kusto.models.LanguageExtensionsList; import com.azure.resourcemanager.kusto.models.OptimizedAutoscale; +import com.azure.resourcemanager.kusto.models.PrivateEndpointConnection; import com.azure.resourcemanager.kusto.models.ProvisioningState; +import com.azure.resourcemanager.kusto.models.PublicIpType; import com.azure.resourcemanager.kusto.models.PublicNetworkAccess; import com.azure.resourcemanager.kusto.models.State; import com.azure.resourcemanager.kusto.models.TrustedExternalTenant; @@ -31,6 +34,7 @@ import java.util.Collections; import java.util.List; import java.util.Map; +import java.util.stream.Collectors; public final class ClusterImpl implements Cluster, Cluster.Definition, Cluster.Update { private ClusterInner innerObject; @@ -191,6 +195,28 @@ public List allowedFqdnList() { } } + public PublicIpType publicIpType() { + return this.innerModel().publicIpType(); + } + + public String virtualClusterGraduationProperties() { + return this.innerModel().virtualClusterGraduationProperties(); + } + + public List privateEndpointConnections() { + List inner = this.innerModel().privateEndpointConnections(); + if (inner != null) { + return Collections + .unmodifiableList( + inner + .stream() + .map(inner1 -> new PrivateEndpointConnectionImpl(inner1, this.manager())) + .collect(Collectors.toList())); + } else { + return Collections.emptyList(); + } + } + public Region region() { return Region.fromName(this.regionName()); } @@ -568,6 +594,21 @@ public ClusterImpl withAllowedFqdnList(List allowedFqdnList) { } } + public ClusterImpl withPublicIpType(PublicIpType publicIpType) { + if (isInCreateMode()) { + this.innerModel().withPublicIpType(publicIpType); + return this; + } else { + this.updateParameters.withPublicIpType(publicIpType); + return this; + } + } + + public ClusterImpl withVirtualClusterGraduationProperties(String virtualClusterGraduationProperties) { + this.innerModel().withVirtualClusterGraduationProperties(virtualClusterGraduationProperties); + return this; + } + public ClusterImpl withIfMatch(String ifMatch) { if (isInCreateMode()) { this.createIfMatch = ifMatch; diff --git a/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/implementation/ClusterPrincipalAssignmentImpl.java b/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/implementation/ClusterPrincipalAssignmentImpl.java index 8f09e1704993..a02a4f865339 100644 --- a/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/implementation/ClusterPrincipalAssignmentImpl.java +++ b/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/implementation/ClusterPrincipalAssignmentImpl.java @@ -57,6 +57,10 @@ public ProvisioningState provisioningState() { return this.innerModel().provisioningState(); } + public String aadObjectId() { + return this.innerModel().aadObjectId(); + } + public ClusterPrincipalAssignmentInner innerModel() { return this.innerObject; } 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 51d0d7460440..393c43c5c358 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 @@ -162,7 +162,8 @@ Mono> list( * @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 check name availability request. + * @return the result returned from a check name availability request along with {@link Response} on successful + * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> checkNameAvailabilityWithResponseAsync( @@ -222,7 +223,8 @@ private Mono> checkNameAvailabilityWithResponseAs * @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 check name availability request. + * @return the result returned from a check name availability request along with {@link Response} on successful + * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> checkNameAvailabilityWithResponseAsync( @@ -279,7 +281,7 @@ private Mono> checkNameAvailabilityWithResponseAs * @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 check name availability request. + * @return the result returned from a check name availability request on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono checkNameAvailabilityAsync( @@ -326,7 +328,7 @@ public CheckNameResultInner checkNameAvailability( * @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 check name availability request. + * @return the result returned from a check name availability request along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) public Response checkNameAvailabilityWithResponse( @@ -347,7 +349,7 @@ public Response checkNameAvailabilityWithResponse( * @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 Kusto cluster principalAssignment. + * @return a Kusto cluster principalAssignment along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> getWithResponseAsync( @@ -403,7 +405,7 @@ private Mono> getWithResponseAsync( * @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 Kusto cluster principalAssignment. + * @return a Kusto cluster principalAssignment along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> getWithResponseAsync( @@ -455,7 +457,7 @@ private Mono> getWithResponseAsync( * @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 Kusto cluster principalAssignment. + * @return a Kusto cluster principalAssignment on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono getAsync( @@ -498,7 +500,7 @@ public ClusterPrincipalAssignmentInner get( * @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 Kusto cluster principalAssignment. + * @return a Kusto cluster principalAssignment along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) public Response getWithResponse( @@ -516,7 +518,8 @@ public Response getWithResponse( * @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 class representing a cluster principal assignment. + * @return class representing a cluster principal assignment along with {@link Response} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> createOrUpdateWithResponseAsync( @@ -582,7 +585,8 @@ private Mono>> createOrUpdateWithResponseAsync( * @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 class representing a cluster principal assignment. + * @return class representing a cluster principal assignment along with {@link Response} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> createOrUpdateWithResponseAsync( @@ -645,9 +649,9 @@ private Mono>> createOrUpdateWithResponseAsync( * @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 class representing a cluster principal assignment. + * @return the {@link PollerFlux} for polling of class representing a cluster principal assignment. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, ClusterPrincipalAssignmentInner> beginCreateOrUpdateAsync( String resourceGroupName, @@ -663,7 +667,7 @@ private Mono>> createOrUpdateWithResponseAsync( this.client.getHttpPipeline(), ClusterPrincipalAssignmentInner.class, ClusterPrincipalAssignmentInner.class, - Context.NONE); + this.client.getContext()); } /** @@ -677,9 +681,9 @@ private Mono>> createOrUpdateWithResponseAsync( * @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 class representing a cluster principal assignment. + * @return the {@link PollerFlux} for polling of class representing a cluster principal assignment. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, ClusterPrincipalAssignmentInner> beginCreateOrUpdateAsync( String resourceGroupName, @@ -711,9 +715,9 @@ private Mono>> createOrUpdateWithResponseAsync( * @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 class representing a cluster principal assignment. + * @return the {@link SyncPoller} for polling of class representing a cluster principal assignment. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, ClusterPrincipalAssignmentInner> beginCreateOrUpdate( String resourceGroupName, String clusterName, @@ -734,9 +738,9 @@ public SyncPoller, ClusterPrincipalA * @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 class representing a cluster principal assignment. + * @return the {@link SyncPoller} for polling of class representing a cluster principal assignment. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, ClusterPrincipalAssignmentInner> beginCreateOrUpdate( String resourceGroupName, String clusterName, @@ -757,7 +761,7 @@ public SyncPoller, ClusterPrincipalA * @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 class representing a cluster principal assignment. + * @return class representing a cluster principal assignment on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono createOrUpdateAsync( @@ -781,7 +785,7 @@ private Mono createOrUpdateAsync( * @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 class representing a cluster principal assignment. + * @return class representing a cluster principal assignment on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono createOrUpdateAsync( @@ -849,7 +853,7 @@ public ClusterPrincipalAssignmentInner createOrUpdate( * @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 completion. + * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> deleteWithResponseAsync( @@ -905,7 +909,7 @@ private Mono>> deleteWithResponseAsync( * @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 completion. + * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> deleteWithResponseAsync( @@ -957,16 +961,17 @@ private Mono>> deleteWithResponseAsync( * @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 completion. + * @return the {@link PollerFlux} for polling of long-running operation. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, Void> beginDeleteAsync( String resourceGroupName, String clusterName, String principalAssignmentName) { Mono>> mono = deleteWithResponseAsync(resourceGroupName, clusterName, principalAssignmentName); return this .client - .getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, Context.NONE); + .getLroResult( + mono, this.client.getHttpPipeline(), Void.class, Void.class, this.client.getContext()); } /** @@ -979,9 +984,9 @@ private PollerFlux, Void> beginDeleteAsync( * @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 completion. + * @return the {@link PollerFlux} for polling of long-running operation. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, Void> beginDeleteAsync( String resourceGroupName, String clusterName, String principalAssignmentName, Context context) { context = this.client.mergeContext(context); @@ -1001,9 +1006,9 @@ private PollerFlux, Void> beginDeleteAsync( * @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 completion. + * @return the {@link SyncPoller} for polling of long-running operation. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, Void> beginDelete( String resourceGroupName, String clusterName, String principalAssignmentName) { return beginDeleteAsync(resourceGroupName, clusterName, principalAssignmentName).getSyncPoller(); @@ -1019,9 +1024,9 @@ public SyncPoller, Void> beginDelete( * @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 completion. + * @return the {@link SyncPoller} for polling of long-running operation. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, Void> beginDelete( String resourceGroupName, String clusterName, String principalAssignmentName, Context context) { return beginDeleteAsync(resourceGroupName, clusterName, principalAssignmentName, context).getSyncPoller(); @@ -1036,7 +1041,7 @@ public SyncPoller, Void> beginDelete( * @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 completion. + * @return A {@link Mono} that completes when a successful response is received. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono deleteAsync(String resourceGroupName, String clusterName, String principalAssignmentName) { @@ -1055,7 +1060,7 @@ private Mono deleteAsync(String resourceGroupName, String clusterName, Str * @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 completion. + * @return A {@link Mono} that completes when a successful response is received. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono deleteAsync( @@ -1104,7 +1109,8 @@ public void delete(String resourceGroupName, String clusterName, String principa * @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 cluster principal assignments operation response. + * @return the list Kusto cluster principal assignments operation response along with {@link PagedResponse} on + * successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listSinglePageAsync( @@ -1157,7 +1163,8 @@ private Mono> listSinglePageAsync * @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 cluster principal assignments operation response. + * @return the list Kusto cluster principal assignments operation response along with {@link PagedResponse} on + * successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listSinglePageAsync( @@ -1206,7 +1213,8 @@ private Mono> listSinglePageAsync * @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 cluster principal assignments operation response. + * @return the list Kusto cluster principal assignments operation response as paginated response with {@link + * PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listAsync(String resourceGroupName, String clusterName) { @@ -1222,7 +1230,8 @@ private PagedFlux listAsync(String resourceGrou * @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 cluster principal assignments operation response. + * @return the list Kusto cluster principal assignments operation response as paginated response with {@link + * PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listAsync( @@ -1238,7 +1247,8 @@ private PagedFlux listAsync( * @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 cluster principal assignments operation response. + * @return the list Kusto cluster principal assignments operation response as paginated response with {@link + * PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable list(String resourceGroupName, String clusterName) { @@ -1254,7 +1264,8 @@ public PagedIterable list(String resourceGroupN * @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 cluster principal assignments operation response. + * @return the list Kusto cluster principal assignments operation response as paginated response with {@link + * PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable list( 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 2f2806372824..89047e216e5a 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 @@ -366,7 +366,7 @@ Mono> listOutboundNetwor * @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 Kusto cluster. + * @return a Kusto cluster along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> getByResourceGroupWithResponseAsync( @@ -415,7 +415,7 @@ private Mono> getByResourceGroupWithResponseAsync( * @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 Kusto cluster. + * @return a Kusto cluster along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> getByResourceGroupWithResponseAsync( @@ -460,7 +460,7 @@ private Mono> getByResourceGroupWithResponseAsync( * @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 Kusto cluster. + * @return a Kusto cluster on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono getByResourceGroupAsync(String resourceGroupName, String clusterName) { @@ -499,7 +499,7 @@ public ClusterInner getByResourceGroup(String resourceGroupName, String clusterN * @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 Kusto cluster. + * @return a Kusto cluster along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) public Response getByResourceGroupWithResponse( @@ -520,7 +520,7 @@ public Response getByResourceGroupWithResponse( * @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 class representing a Kusto cluster. + * @return class representing a Kusto cluster along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> createOrUpdateWithResponseAsync( @@ -582,7 +582,7 @@ private Mono>> createOrUpdateWithResponseAsync( * @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 class representing a Kusto cluster. + * @return class representing a Kusto cluster along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> createOrUpdateWithResponseAsync( @@ -645,9 +645,9 @@ private Mono>> createOrUpdateWithResponseAsync( * @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 class representing a Kusto cluster. + * @return the {@link PollerFlux} for polling of class representing a Kusto cluster. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, ClusterInner> beginCreateOrUpdateAsync( String resourceGroupName, String clusterName, ClusterInner parameters, String ifMatch, String ifNoneMatch) { Mono>> mono = @@ -655,7 +655,7 @@ private PollerFlux, ClusterInner> beginCreateOrUpdateAs return this .client .getLroResult( - mono, this.client.getHttpPipeline(), ClusterInner.class, ClusterInner.class, Context.NONE); + mono, this.client.getHttpPipeline(), ClusterInner.class, ClusterInner.class, this.client.getContext()); } /** @@ -672,9 +672,9 @@ private PollerFlux, ClusterInner> beginCreateOrUpdateAs * @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 class representing a Kusto cluster. + * @return the {@link PollerFlux} for polling of class representing a Kusto cluster. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, ClusterInner> beginCreateOrUpdateAsync( String resourceGroupName, String clusterName, @@ -704,9 +704,9 @@ private PollerFlux, ClusterInner> beginCreateOrUpdateAs * @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 class representing a Kusto cluster. + * @return the {@link SyncPoller} for polling of class representing a Kusto cluster. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, ClusterInner> beginCreateOrUpdate( String resourceGroupName, String clusterName, ClusterInner parameters, String ifMatch, String ifNoneMatch) { return beginCreateOrUpdateAsync(resourceGroupName, clusterName, parameters, ifMatch, ifNoneMatch) @@ -727,9 +727,9 @@ public SyncPoller, ClusterInner> beginCreateOrUpdate( * @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 class representing a Kusto cluster. + * @return the {@link SyncPoller} for polling of class representing a Kusto cluster. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, ClusterInner> beginCreateOrUpdate( String resourceGroupName, String clusterName, @@ -754,7 +754,7 @@ public SyncPoller, ClusterInner> beginCreateOrUpdate( * @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 class representing a Kusto cluster. + * @return class representing a Kusto cluster on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono createOrUpdateAsync( @@ -773,7 +773,7 @@ private Mono createOrUpdateAsync( * @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 class representing a Kusto cluster. + * @return class representing a Kusto cluster on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono createOrUpdateAsync( @@ -799,7 +799,7 @@ private Mono createOrUpdateAsync( * @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 class representing a Kusto cluster. + * @return class representing a Kusto cluster on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono createOrUpdateAsync( @@ -891,7 +891,7 @@ public ClusterInner createOrUpdate( * @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 class representing a Kusto cluster. + * @return class representing a Kusto cluster along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> updateWithResponseAsync( @@ -950,7 +950,7 @@ private Mono>> updateWithResponseAsync( * @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 class representing a Kusto cluster. + * @return class representing a Kusto cluster along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> updateWithResponseAsync( @@ -1005,9 +1005,9 @@ private Mono>> updateWithResponseAsync( * @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 class representing a Kusto cluster. + * @return the {@link PollerFlux} for polling of class representing a Kusto cluster. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, ClusterInner> beginUpdateAsync( String resourceGroupName, String clusterName, ClusterUpdate parameters, String ifMatch) { Mono>> mono = @@ -1015,7 +1015,7 @@ private PollerFlux, ClusterInner> beginUpdateAsync( return this .client .getLroResult( - mono, this.client.getHttpPipeline(), ClusterInner.class, ClusterInner.class, Context.NONE); + mono, this.client.getHttpPipeline(), ClusterInner.class, ClusterInner.class, this.client.getContext()); } /** @@ -1030,9 +1030,9 @@ private PollerFlux, ClusterInner> beginUpdateAsync( * @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 class representing a Kusto cluster. + * @return the {@link PollerFlux} for polling of class representing a Kusto cluster. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, ClusterInner> beginUpdateAsync( String resourceGroupName, String clusterName, ClusterUpdate parameters, String ifMatch, Context context) { context = this.client.mergeContext(context); @@ -1055,9 +1055,9 @@ private PollerFlux, ClusterInner> beginUpdateAsync( * @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 class representing a Kusto cluster. + * @return the {@link SyncPoller} for polling of class representing a Kusto cluster. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, ClusterInner> beginUpdate( String resourceGroupName, String clusterName, ClusterUpdate parameters, String ifMatch) { return beginUpdateAsync(resourceGroupName, clusterName, parameters, ifMatch).getSyncPoller(); @@ -1075,9 +1075,9 @@ public SyncPoller, ClusterInner> beginUpdate( * @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 class representing a Kusto cluster. + * @return the {@link SyncPoller} for polling of class representing a Kusto cluster. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, ClusterInner> beginUpdate( String resourceGroupName, String clusterName, ClusterUpdate parameters, String ifMatch, Context context) { return beginUpdateAsync(resourceGroupName, clusterName, parameters, ifMatch, context).getSyncPoller(); @@ -1094,7 +1094,7 @@ public SyncPoller, ClusterInner> beginUpdate( * @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 class representing a Kusto cluster. + * @return class representing a Kusto cluster on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono updateAsync( @@ -1113,7 +1113,7 @@ private Mono updateAsync( * @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 class representing a Kusto cluster. + * @return class representing a Kusto cluster on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono updateAsync(String resourceGroupName, String clusterName, ClusterUpdate parameters) { @@ -1135,7 +1135,7 @@ private Mono updateAsync(String resourceGroupName, String clusterN * @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 class representing a Kusto cluster. + * @return class representing a Kusto cluster on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono updateAsync( @@ -1208,7 +1208,7 @@ public ClusterInner update( * @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 completion. + * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> deleteWithResponseAsync(String resourceGroupName, String clusterName) { @@ -1256,7 +1256,7 @@ private Mono>> deleteWithResponseAsync(String resource * @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 completion. + * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> deleteWithResponseAsync( @@ -1301,14 +1301,15 @@ private Mono>> deleteWithResponseAsync( * @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 completion. + * @return the {@link PollerFlux} for polling of long-running operation. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String clusterName) { Mono>> mono = deleteWithResponseAsync(resourceGroupName, clusterName); return this .client - .getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, Context.NONE); + .getLroResult( + mono, this.client.getHttpPipeline(), Void.class, Void.class, this.client.getContext()); } /** @@ -1320,9 +1321,9 @@ private PollerFlux, Void> beginDeleteAsync(String resourceGroup * @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 completion. + * @return the {@link PollerFlux} for polling of long-running operation. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, Void> beginDeleteAsync( String resourceGroupName, String clusterName, Context context) { context = this.client.mergeContext(context); @@ -1340,9 +1341,9 @@ private PollerFlux, Void> beginDeleteAsync( * @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 completion. + * @return the {@link SyncPoller} for polling of long-running operation. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, Void> beginDelete(String resourceGroupName, String clusterName) { return beginDeleteAsync(resourceGroupName, clusterName).getSyncPoller(); } @@ -1356,9 +1357,9 @@ public SyncPoller, Void> beginDelete(String resourceGroupName, * @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 completion. + * @return the {@link SyncPoller} for polling of long-running operation. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, Void> beginDelete( String resourceGroupName, String clusterName, Context context) { return beginDeleteAsync(resourceGroupName, clusterName, context).getSyncPoller(); @@ -1372,7 +1373,7 @@ public SyncPoller, Void> beginDelete( * @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 completion. + * @return A {@link Mono} that completes when a successful response is received. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono deleteAsync(String resourceGroupName, String clusterName) { @@ -1388,7 +1389,7 @@ private Mono deleteAsync(String resourceGroupName, String clusterName) { * @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 completion. + * @return A {@link Mono} that completes when a successful response is received. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono deleteAsync(String resourceGroupName, String clusterName, Context context) { @@ -1434,7 +1435,7 @@ public void delete(String resourceGroupName, String clusterName, Context context * @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 completion. + * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> stopWithResponseAsync(String resourceGroupName, String clusterName) { @@ -1482,7 +1483,7 @@ private Mono>> stopWithResponseAsync(String resourceGr * @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 completion. + * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> stopWithResponseAsync( @@ -1527,14 +1528,15 @@ private Mono>> stopWithResponseAsync( * @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 completion. + * @return the {@link PollerFlux} for polling of long-running operation. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, Void> beginStopAsync(String resourceGroupName, String clusterName) { Mono>> mono = stopWithResponseAsync(resourceGroupName, clusterName); return this .client - .getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, Context.NONE); + .getLroResult( + mono, this.client.getHttpPipeline(), Void.class, Void.class, this.client.getContext()); } /** @@ -1546,9 +1548,9 @@ private PollerFlux, Void> beginStopAsync(String resourceGroupNa * @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 completion. + * @return the {@link PollerFlux} for polling of long-running operation. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, Void> beginStopAsync( String resourceGroupName, String clusterName, Context context) { context = this.client.mergeContext(context); @@ -1566,9 +1568,9 @@ private PollerFlux, Void> beginStopAsync( * @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 completion. + * @return the {@link SyncPoller} for polling of long-running operation. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, Void> beginStop(String resourceGroupName, String clusterName) { return beginStopAsync(resourceGroupName, clusterName).getSyncPoller(); } @@ -1582,9 +1584,9 @@ public SyncPoller, Void> beginStop(String resourceGroupName, St * @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 completion. + * @return the {@link SyncPoller} for polling of long-running operation. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, Void> beginStop(String resourceGroupName, String clusterName, Context context) { return beginStopAsync(resourceGroupName, clusterName, context).getSyncPoller(); } @@ -1597,7 +1599,7 @@ public SyncPoller, Void> beginStop(String resourceGroupName, St * @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 completion. + * @return A {@link Mono} that completes when a successful response is received. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono stopAsync(String resourceGroupName, String clusterName) { @@ -1613,7 +1615,7 @@ private Mono stopAsync(String resourceGroupName, String clusterName) { * @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 completion. + * @return A {@link Mono} that completes when a successful response is received. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono stopAsync(String resourceGroupName, String clusterName, Context context) { @@ -1659,7 +1661,7 @@ public void stop(String resourceGroupName, String clusterName, Context context) * @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 completion. + * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> startWithResponseAsync(String resourceGroupName, String clusterName) { @@ -1707,7 +1709,7 @@ private Mono>> startWithResponseAsync(String resourceG * @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 completion. + * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> startWithResponseAsync( @@ -1752,14 +1754,15 @@ private Mono>> startWithResponseAsync( * @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 completion. + * @return the {@link PollerFlux} for polling of long-running operation. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, Void> beginStartAsync(String resourceGroupName, String clusterName) { Mono>> mono = startWithResponseAsync(resourceGroupName, clusterName); return this .client - .getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, Context.NONE); + .getLroResult( + mono, this.client.getHttpPipeline(), Void.class, Void.class, this.client.getContext()); } /** @@ -1771,9 +1774,9 @@ private PollerFlux, Void> beginStartAsync(String resourceGroupN * @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 completion. + * @return the {@link PollerFlux} for polling of long-running operation. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, Void> beginStartAsync( String resourceGroupName, String clusterName, Context context) { context = this.client.mergeContext(context); @@ -1791,9 +1794,9 @@ private PollerFlux, Void> beginStartAsync( * @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 completion. + * @return the {@link SyncPoller} for polling of long-running operation. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, Void> beginStart(String resourceGroupName, String clusterName) { return beginStartAsync(resourceGroupName, clusterName).getSyncPoller(); } @@ -1807,9 +1810,9 @@ public SyncPoller, Void> beginStart(String resourceGroupName, S * @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 completion. + * @return the {@link SyncPoller} for polling of long-running operation. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, Void> beginStart( String resourceGroupName, String clusterName, Context context) { return beginStartAsync(resourceGroupName, clusterName, context).getSyncPoller(); @@ -1823,7 +1826,7 @@ public SyncPoller, Void> beginStart( * @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 completion. + * @return A {@link Mono} that completes when a successful response is received. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono startAsync(String resourceGroupName, String clusterName) { @@ -1839,7 +1842,7 @@ private Mono startAsync(String resourceGroupName, String clusterName) { * @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 completion. + * @return A {@link Mono} that completes when a successful response is received. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono startAsync(String resourceGroupName, String clusterName, Context context) { @@ -1885,7 +1888,8 @@ public void start(String resourceGroupName, String clusterName, Context context) * @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 database principals operation response. + * @return the list Kusto database principals operation response along with {@link PagedResponse} on successful + * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listFollowerDatabasesSinglePageAsync( @@ -1938,7 +1942,8 @@ private Mono> listFollowerDatabas * @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 database principals operation response. + * @return the list Kusto database principals operation response along with {@link PagedResponse} on successful + * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listFollowerDatabasesSinglePageAsync( @@ -1987,7 +1992,7 @@ private Mono> listFollowerDatabas * @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 database principals operation response. + * @return the list Kusto database principals operation response as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listFollowerDatabasesAsync( @@ -2004,7 +2009,7 @@ private PagedFlux listFollowerDatabasesAsync( * @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 database principals operation response. + * @return the list Kusto database principals operation response as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listFollowerDatabasesAsync( @@ -2020,7 +2025,7 @@ private PagedFlux listFollowerDatabasesAsync( * @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 database principals operation response. + * @return the list Kusto database principals operation response as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable listFollowerDatabases( @@ -2037,7 +2042,7 @@ public PagedIterable listFollowerDatabases( * @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 database principals operation response. + * @return the list Kusto database principals operation response as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable listFollowerDatabases( @@ -2054,7 +2059,7 @@ public PagedIterable listFollowerDatabases( * @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 completion. + * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> detachFollowerDatabasesWithResponseAsync( @@ -2112,7 +2117,7 @@ private Mono>> detachFollowerDatabasesWithResponseAsyn * @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 completion. + * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> detachFollowerDatabasesWithResponseAsync( @@ -2169,16 +2174,17 @@ private Mono>> detachFollowerDatabasesWithResponseAsyn * @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 completion. + * @return the {@link PollerFlux} for polling of long-running operation. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, Void> beginDetachFollowerDatabasesAsync( String resourceGroupName, String clusterName, FollowerDatabaseDefinitionInner followerDatabaseToRemove) { Mono>> mono = detachFollowerDatabasesWithResponseAsync(resourceGroupName, clusterName, followerDatabaseToRemove); return this .client - .getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, Context.NONE); + .getLroResult( + mono, this.client.getHttpPipeline(), Void.class, Void.class, this.client.getContext()); } /** @@ -2191,9 +2197,9 @@ private PollerFlux, Void> beginDetachFollowerDatabasesAsync( * @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 completion. + * @return the {@link PollerFlux} for polling of long-running operation. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, Void> beginDetachFollowerDatabasesAsync( String resourceGroupName, String clusterName, @@ -2216,9 +2222,9 @@ private PollerFlux, Void> beginDetachFollowerDatabasesAsync( * @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 completion. + * @return the {@link SyncPoller} for polling of long-running operation. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, Void> beginDetachFollowerDatabases( String resourceGroupName, String clusterName, FollowerDatabaseDefinitionInner followerDatabaseToRemove) { return beginDetachFollowerDatabasesAsync(resourceGroupName, clusterName, followerDatabaseToRemove) @@ -2235,9 +2241,9 @@ public SyncPoller, Void> beginDetachFollowerDatabases( * @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 completion. + * @return the {@link SyncPoller} for polling of long-running operation. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, Void> beginDetachFollowerDatabases( String resourceGroupName, String clusterName, @@ -2256,7 +2262,7 @@ public SyncPoller, Void> beginDetachFollowerDatabases( * @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 completion. + * @return A {@link Mono} that completes when a successful response is received. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono detachFollowerDatabasesAsync( @@ -2276,7 +2282,7 @@ private Mono detachFollowerDatabasesAsync( * @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 completion. + * @return A {@link Mono} that completes when a successful response is received. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono detachFollowerDatabasesAsync( @@ -2333,7 +2339,7 @@ public void detachFollowerDatabases( * @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 response. + * @return the response body along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> diagnoseVirtualNetworkWithResponseAsync( @@ -2382,7 +2388,7 @@ private Mono>> diagnoseVirtualNetworkWithResponseAsync * @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 response. + * @return the response body along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> diagnoseVirtualNetworkWithResponseAsync( @@ -2427,9 +2433,9 @@ private Mono>> diagnoseVirtualNetworkWithResponseAsync * @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 response. + * @return the {@link PollerFlux} for polling of long-running operation. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, DiagnoseVirtualNetworkResultInner> beginDiagnoseVirtualNetworkAsync(String resourceGroupName, String clusterName) { Mono>> mono = diagnoseVirtualNetworkWithResponseAsync(resourceGroupName, clusterName); @@ -2440,7 +2446,7 @@ private Mono>> diagnoseVirtualNetworkWithResponseAsync this.client.getHttpPipeline(), DiagnoseVirtualNetworkResultInner.class, DiagnoseVirtualNetworkResultInner.class, - Context.NONE); + this.client.getContext()); } /** @@ -2452,9 +2458,9 @@ private Mono>> diagnoseVirtualNetworkWithResponseAsync * @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 response. + * @return the {@link PollerFlux} for polling of long-running operation. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, DiagnoseVirtualNetworkResultInner> beginDiagnoseVirtualNetworkAsync(String resourceGroupName, String clusterName, Context context) { context = this.client.mergeContext(context); @@ -2478,9 +2484,9 @@ private Mono>> diagnoseVirtualNetworkWithResponseAsync * @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 response. + * @return the {@link SyncPoller} for polling of long-running operation. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, DiagnoseVirtualNetworkResultInner> beginDiagnoseVirtualNetwork(String resourceGroupName, String clusterName) { return beginDiagnoseVirtualNetworkAsync(resourceGroupName, clusterName).getSyncPoller(); @@ -2495,9 +2501,9 @@ private Mono>> diagnoseVirtualNetworkWithResponseAsync * @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 response. + * @return the {@link SyncPoller} for polling of long-running operation. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, DiagnoseVirtualNetworkResultInner> beginDiagnoseVirtualNetwork(String resourceGroupName, String clusterName, Context context) { return beginDiagnoseVirtualNetworkAsync(resourceGroupName, clusterName, context).getSyncPoller(); @@ -2511,7 +2517,7 @@ private Mono>> diagnoseVirtualNetworkWithResponseAsync * @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 response. + * @return the response body on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono diagnoseVirtualNetworkAsync( @@ -2530,7 +2536,7 @@ private Mono diagnoseVirtualNetworkAsync( * @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 response. + * @return the response body on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono diagnoseVirtualNetworkAsync( @@ -2579,7 +2585,8 @@ public DiagnoseVirtualNetworkResultInner diagnoseVirtualNetwork( * @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 clusters operation response. + * @return the list Kusto clusters operation response along with {@link PagedResponse} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listByResourceGroupSinglePageAsync(String resourceGroupName) { @@ -2626,7 +2633,8 @@ private Mono> listByResourceGroupSinglePageAsync(Str * @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 clusters operation response. + * @return the list Kusto clusters operation response along with {@link PagedResponse} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listByResourceGroupSinglePageAsync( @@ -2670,7 +2678,7 @@ private Mono> listByResourceGroupSinglePageAsync( * @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 clusters operation response. + * @return the list Kusto clusters operation response as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listByResourceGroupAsync(String resourceGroupName) { @@ -2685,7 +2693,7 @@ private PagedFlux listByResourceGroupAsync(String resourceGroupNam * @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 clusters operation response. + * @return the list Kusto clusters operation response as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listByResourceGroupAsync(String resourceGroupName, Context context) { @@ -2699,7 +2707,7 @@ private PagedFlux listByResourceGroupAsync(String resourceGroupNam * @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 clusters operation response. + * @return the list Kusto clusters operation response as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable listByResourceGroup(String resourceGroupName) { @@ -2714,7 +2722,7 @@ public PagedIterable listByResourceGroup(String resourceGroupName) * @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 clusters operation response. + * @return the list Kusto clusters operation response as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable listByResourceGroup(String resourceGroupName, Context context) { @@ -2726,7 +2734,8 @@ public PagedIterable listByResourceGroup(String resourceGroupName, * * @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 clusters operation response. + * @return the list Kusto clusters operation response along with {@link PagedResponse} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listSinglePageAsync() { @@ -2767,7 +2776,8 @@ private Mono> listSinglePageAsync() { * @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 clusters operation response. + * @return the list Kusto clusters operation response along with {@link PagedResponse} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listSinglePageAsync(Context context) { @@ -2803,7 +2813,7 @@ private Mono> listSinglePageAsync(Context context) { * * @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 clusters operation response. + * @return the list Kusto clusters operation response as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listAsync() { @@ -2817,7 +2827,7 @@ private PagedFlux listAsync() { * @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 clusters operation response. + * @return the list Kusto clusters operation response as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listAsync(Context context) { @@ -2829,7 +2839,7 @@ private PagedFlux listAsync(Context context) { * * @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 clusters operation response. + * @return the list Kusto clusters operation response as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable list() { @@ -2843,7 +2853,7 @@ public PagedIterable list() { * @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 clusters operation response. + * @return the list Kusto clusters operation response as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable list(Context context) { @@ -2855,7 +2865,8 @@ public PagedIterable list(Context context) { * * @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 of the EngagementFabric SKU descriptions. + * @return the list of the EngagementFabric SKU descriptions along with {@link PagedResponse} on successful + * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listSkusSinglePageAsync() { @@ -2896,7 +2907,8 @@ private Mono> listSkusSinglePageAsync() { * @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 of the EngagementFabric SKU descriptions. + * @return the list of the EngagementFabric SKU descriptions along with {@link PagedResponse} on successful + * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listSkusSinglePageAsync(Context context) { @@ -2932,7 +2944,7 @@ private Mono> listSkusSinglePageAsync(Context * * @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 of the EngagementFabric SKU descriptions. + * @return the list of the EngagementFabric SKU descriptions as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listSkusAsync() { @@ -2946,7 +2958,7 @@ private PagedFlux listSkusAsync() { * @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 of the EngagementFabric SKU descriptions. + * @return the list of the EngagementFabric SKU descriptions as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listSkusAsync(Context context) { @@ -2958,7 +2970,7 @@ private PagedFlux listSkusAsync(Context context) { * * @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 of the EngagementFabric SKU descriptions. + * @return the list of the EngagementFabric SKU descriptions as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable listSkus() { @@ -2972,7 +2984,7 @@ public PagedIterable listSkus() { * @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 of the EngagementFabric SKU descriptions. + * @return the list of the EngagementFabric SKU descriptions as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable listSkus(Context context) { @@ -2987,7 +2999,8 @@ public PagedIterable listSkus(Context context) { * @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 check name availability request. + * @return the result returned from a check name availability request along with {@link Response} on successful + * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> checkNameAvailabilityWithResponseAsync( @@ -3037,7 +3050,8 @@ private Mono> checkNameAvailabilityWithResponseAs * @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 check name availability request. + * @return the result returned from a check name availability request along with {@link Response} on successful + * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> checkNameAvailabilityWithResponseAsync( @@ -3083,7 +3097,7 @@ private Mono> checkNameAvailabilityWithResponseAs * @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 check name availability request. + * @return the result returned from a check name availability request on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono checkNameAvailabilityAsync( @@ -3123,7 +3137,7 @@ public CheckNameResultInner checkNameAvailability(String location, ClusterCheckN * @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 check name availability request. + * @return the result returned from a check name availability request along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) public Response checkNameAvailabilityWithResponse( @@ -3139,7 +3153,8 @@ public Response checkNameAvailabilityWithResponse( * @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 list of available SKUs for a Kusto Cluster. + * @return list of available SKUs for a Kusto Cluster along with {@link PagedResponse} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listSkusByResourceSinglePageAsync( @@ -3192,7 +3207,8 @@ private Mono> listSkusByResourceSinglePageA * @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 list of available SKUs for a Kusto Cluster. + * @return list of available SKUs for a Kusto Cluster along with {@link PagedResponse} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listSkusByResourceSinglePageAsync( @@ -3241,7 +3257,7 @@ private Mono> listSkusByResourceSinglePageA * @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 list of available SKUs for a Kusto Cluster. + * @return list of available SKUs for a Kusto Cluster as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listSkusByResourceAsync(String resourceGroupName, String clusterName) { @@ -3257,7 +3273,7 @@ private PagedFlux listSkusByResourceAsync(String resource * @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 list of available SKUs for a Kusto Cluster. + * @return list of available SKUs for a Kusto Cluster as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listSkusByResourceAsync( @@ -3273,7 +3289,7 @@ private PagedFlux listSkusByResourceAsync( * @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 list of available SKUs for a Kusto Cluster. + * @return list of available SKUs for a Kusto Cluster as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable listSkusByResource(String resourceGroupName, String clusterName) { @@ -3289,7 +3305,7 @@ public PagedIterable listSkusByResource(String resourceGr * @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 list of available SKUs for a Kusto Cluster. + * @return list of available SKUs for a Kusto Cluster as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable listSkusByResource( @@ -3305,7 +3321,8 @@ public PagedIterable listSkusByResource( * @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 network endpoints of all outbound dependencies of a Kusto cluster. + * @return the network endpoints of all outbound dependencies of a Kusto cluster along with {@link PagedResponse} on + * successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> @@ -3363,7 +3380,8 @@ public PagedIterable listSkusByResource( * @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 network endpoints of all outbound dependencies of a Kusto cluster. + * @return the network endpoints of all outbound dependencies of a Kusto cluster along with {@link PagedResponse} on + * successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> @@ -3418,7 +3436,8 @@ public PagedIterable listSkusByResource( * @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 network endpoints of all outbound dependencies of a Kusto cluster. + * @return the network endpoints of all outbound dependencies of a Kusto cluster as paginated response with {@link + * PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listOutboundNetworkDependenciesEndpointsAsync( @@ -3437,7 +3456,8 @@ private PagedFlux listOutboundNetworkD * @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 network endpoints of all outbound dependencies of a Kusto cluster. + * @return the network endpoints of all outbound dependencies of a Kusto cluster as paginated response with {@link + * PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listOutboundNetworkDependenciesEndpointsAsync( @@ -3455,7 +3475,8 @@ private PagedFlux listOutboundNetworkD * @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 network endpoints of all outbound dependencies of a Kusto cluster. + * @return the network endpoints of all outbound dependencies of a Kusto cluster as paginated response with {@link + * PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable listOutboundNetworkDependenciesEndpoints( @@ -3472,7 +3493,8 @@ public PagedIterable listOutboundNetwo * @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 network endpoints of all outbound dependencies of a Kusto cluster. + * @return the network endpoints of all outbound dependencies of a Kusto cluster as paginated response with {@link + * PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable listOutboundNetworkDependenciesEndpoints( @@ -3489,7 +3511,8 @@ public PagedIterable listOutboundNetwo * @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 of language extension objects. + * @return the list of language extension objects along with {@link PagedResponse} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listLanguageExtensionsSinglePageAsync( @@ -3542,7 +3565,8 @@ private Mono> listLanguageExtensionsSingle * @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 of language extension objects. + * @return the list of language extension objects along with {@link PagedResponse} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listLanguageExtensionsSinglePageAsync( @@ -3591,7 +3615,7 @@ private Mono> listLanguageExtensionsSingle * @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 of language extension objects. + * @return the list of language extension objects as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listLanguageExtensionsAsync( @@ -3608,7 +3632,7 @@ private PagedFlux listLanguageExtensionsAsync( * @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 of language extension objects. + * @return the list of language extension objects as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listLanguageExtensionsAsync( @@ -3624,7 +3648,7 @@ private PagedFlux listLanguageExtensionsAsync( * @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 of language extension objects. + * @return the list of language extension objects as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable listLanguageExtensions(String resourceGroupName, String clusterName) { @@ -3640,7 +3664,7 @@ public PagedIterable listLanguageExtensions(String resou * @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 of language extension objects. + * @return the list of language extension objects as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable listLanguageExtensions( @@ -3657,7 +3681,7 @@ public PagedIterable listLanguageExtensions( * @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 completion. + * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> addLanguageExtensionsWithResponseAsync( @@ -3715,7 +3739,7 @@ private Mono>> addLanguageExtensionsWithResponseAsync( * @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 completion. + * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> addLanguageExtensionsWithResponseAsync( @@ -3769,16 +3793,17 @@ private Mono>> addLanguageExtensionsWithResponseAsync( * @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 completion. + * @return the {@link PollerFlux} for polling of long-running operation. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, Void> beginAddLanguageExtensionsAsync( String resourceGroupName, String clusterName, LanguageExtensionsList languageExtensionsToAdd) { Mono>> mono = addLanguageExtensionsWithResponseAsync(resourceGroupName, clusterName, languageExtensionsToAdd); return this .client - .getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, Context.NONE); + .getLroResult( + mono, this.client.getHttpPipeline(), Void.class, Void.class, this.client.getContext()); } /** @@ -3791,9 +3816,9 @@ private PollerFlux, Void> beginAddLanguageExtensionsAsync( * @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 completion. + * @return the {@link PollerFlux} for polling of long-running operation. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, Void> beginAddLanguageExtensionsAsync( String resourceGroupName, String clusterName, LanguageExtensionsList languageExtensionsToAdd, Context context) { context = this.client.mergeContext(context); @@ -3813,9 +3838,9 @@ private PollerFlux, Void> beginAddLanguageExtensionsAsync( * @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 completion. + * @return the {@link SyncPoller} for polling of long-running operation. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, Void> beginAddLanguageExtensions( String resourceGroupName, String clusterName, LanguageExtensionsList languageExtensionsToAdd) { return beginAddLanguageExtensionsAsync(resourceGroupName, clusterName, languageExtensionsToAdd).getSyncPoller(); @@ -3831,9 +3856,9 @@ public SyncPoller, Void> beginAddLanguageExtensions( * @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 completion. + * @return the {@link SyncPoller} for polling of long-running operation. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, Void> beginAddLanguageExtensions( String resourceGroupName, String clusterName, LanguageExtensionsList languageExtensionsToAdd, Context context) { return beginAddLanguageExtensionsAsync(resourceGroupName, clusterName, languageExtensionsToAdd, context) @@ -3849,7 +3874,7 @@ public SyncPoller, Void> beginAddLanguageExtensions( * @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 completion. + * @return A {@link Mono} that completes when a successful response is received. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono addLanguageExtensionsAsync( @@ -3869,7 +3894,7 @@ private Mono addLanguageExtensionsAsync( * @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 completion. + * @return A {@link Mono} that completes when a successful response is received. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono addLanguageExtensionsAsync( @@ -3921,7 +3946,7 @@ public void addLanguageExtensions( * @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 completion. + * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> removeLanguageExtensionsWithResponseAsync( @@ -3980,7 +4005,7 @@ private Mono>> removeLanguageExtensionsWithResponseAsy * @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 completion. + * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> removeLanguageExtensionsWithResponseAsync( @@ -4038,16 +4063,17 @@ private Mono>> removeLanguageExtensionsWithResponseAsy * @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 completion. + * @return the {@link PollerFlux} for polling of long-running operation. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, Void> beginRemoveLanguageExtensionsAsync( String resourceGroupName, String clusterName, LanguageExtensionsList languageExtensionsToRemove) { Mono>> mono = removeLanguageExtensionsWithResponseAsync(resourceGroupName, clusterName, languageExtensionsToRemove); return this .client - .getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, Context.NONE); + .getLroResult( + mono, this.client.getHttpPipeline(), Void.class, Void.class, this.client.getContext()); } /** @@ -4060,9 +4086,9 @@ private PollerFlux, Void> beginRemoveLanguageExtensionsAsync( * @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 completion. + * @return the {@link PollerFlux} for polling of long-running operation. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, Void> beginRemoveLanguageExtensionsAsync( String resourceGroupName, String clusterName, @@ -4086,9 +4112,9 @@ private PollerFlux, Void> beginRemoveLanguageExtensionsAsync( * @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 completion. + * @return the {@link SyncPoller} for polling of long-running operation. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, Void> beginRemoveLanguageExtensions( String resourceGroupName, String clusterName, LanguageExtensionsList languageExtensionsToRemove) { return beginRemoveLanguageExtensionsAsync(resourceGroupName, clusterName, languageExtensionsToRemove) @@ -4105,9 +4131,9 @@ public SyncPoller, Void> beginRemoveLanguageExtensions( * @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 completion. + * @return the {@link SyncPoller} for polling of long-running operation. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, Void> beginRemoveLanguageExtensions( String resourceGroupName, String clusterName, @@ -4126,7 +4152,7 @@ public SyncPoller, Void> beginRemoveLanguageExtensions( * @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 completion. + * @return A {@link Mono} that completes when a successful response is received. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono removeLanguageExtensionsAsync( @@ -4146,7 +4172,7 @@ private Mono removeLanguageExtensionsAsync( * @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 completion. + * @return A {@link Mono} that completes when a successful response is received. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono removeLanguageExtensionsAsync( @@ -4202,7 +4228,8 @@ public void removeLanguageExtensions( * @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 collection of Outbound Environment Endpoints. + * @return collection of Outbound Environment Endpoints along with {@link PagedResponse} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> @@ -4243,7 +4270,8 @@ public void removeLanguageExtensions( * @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 collection of Outbound Environment Endpoints. + * @return collection of Outbound Environment Endpoints along with {@link PagedResponse} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> 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 a75c93d33a5a..29c8fc4621e0 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 @@ -203,7 +203,8 @@ Mono>> delete( * @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 data connections operation response. + * @return the list Kusto data connections operation response along with {@link PagedResponse} on successful + * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listByDatabaseSinglePageAsync( @@ -261,7 +262,8 @@ private Mono> listByDatabaseSinglePageAsync( * @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 data connections operation response. + * @return the list Kusto data connections operation response along with {@link PagedResponse} on successful + * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listByDatabaseSinglePageAsync( @@ -315,7 +317,7 @@ private Mono> listByDatabaseSinglePageAsync( * @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 data connections operation response. + * @return the list Kusto data connections operation response as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listByDatabaseAsync( @@ -333,7 +335,7 @@ private PagedFlux listByDatabaseAsync( * @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 data connections operation response. + * @return the list Kusto data connections operation response as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listByDatabaseAsync( @@ -351,7 +353,7 @@ private PagedFlux listByDatabaseAsync( * @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 data connections operation response. + * @return the list Kusto data connections operation response as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable listByDatabase( @@ -369,7 +371,7 @@ public PagedIterable listByDatabase( * @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 data connections operation response. + * @return the list Kusto data connections operation response as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable listByDatabase( @@ -387,7 +389,8 @@ public PagedIterable listByDatabase( * @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 data connection validation result. + * @return the list Kusto data connection validation result along with {@link Response} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> dataConnectionValidationWithResponseAsync( @@ -448,7 +451,8 @@ private Mono>> dataConnectionValidationWithResponseAsy * @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 data connection validation result. + * @return the list Kusto data connection validation result along with {@link Response} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> dataConnectionValidationWithResponseAsync( @@ -509,9 +513,9 @@ private Mono>> dataConnectionValidationWithResponseAsy * @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 data connection validation result. + * @return the {@link PollerFlux} for polling of the list Kusto data connection validation result. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, DataConnectionValidationListResultInner> beginDataConnectionValidationAsync( String resourceGroupName, @@ -527,7 +531,7 @@ private Mono>> dataConnectionValidationWithResponseAsy this.client.getHttpPipeline(), DataConnectionValidationListResultInner.class, DataConnectionValidationListResultInner.class, - Context.NONE); + this.client.getContext()); } /** @@ -541,9 +545,9 @@ private Mono>> dataConnectionValidationWithResponseAsy * @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 data connection validation result. + * @return the {@link PollerFlux} for polling of the list Kusto data connection validation result. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, DataConnectionValidationListResultInner> beginDataConnectionValidationAsync( String resourceGroupName, @@ -575,9 +579,9 @@ private Mono>> dataConnectionValidationWithResponseAsy * @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 data connection validation result. + * @return the {@link SyncPoller} for polling of the list Kusto data connection validation result. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, DataConnectionValidationListResultInner> beginDataConnectionValidation( String resourceGroupName, @@ -599,9 +603,9 @@ private Mono>> dataConnectionValidationWithResponseAsy * @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 data connection validation result. + * @return the {@link SyncPoller} for polling of the list Kusto data connection validation result. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, DataConnectionValidationListResultInner> beginDataConnectionValidation( String resourceGroupName, @@ -623,7 +627,7 @@ private Mono>> dataConnectionValidationWithResponseAsy * @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 data connection validation result. + * @return the list Kusto data connection validation result on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono dataConnectionValidationAsync( @@ -644,7 +648,7 @@ private Mono dataConnectionValidationAs * @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 data connection validation result. + * @return the list Kusto data connection validation result on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono dataConnectionValidationAsync( @@ -709,7 +713,8 @@ public DataConnectionValidationListResultInner dataConnectionValidation( * @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 check name availability request. + * @return the result returned from a check name availability request along with {@link Response} on successful + * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> checkNameAvailabilityWithResponseAsync( @@ -774,7 +779,8 @@ private Mono> checkNameAvailabilityWithResponseAs * @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 check name availability request. + * @return the result returned from a check name availability request along with {@link Response} on successful + * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> checkNameAvailabilityWithResponseAsync( @@ -836,7 +842,7 @@ private Mono> checkNameAvailabilityWithResponseAs * @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 check name availability request. + * @return the result returned from a check name availability request on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono checkNameAvailabilityAsync( @@ -887,7 +893,7 @@ public CheckNameResultInner checkNameAvailability( * @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 check name availability request. + * @return the result returned from a check name availability request along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) public Response checkNameAvailabilityWithResponse( @@ -911,7 +917,8 @@ public Response checkNameAvailabilityWithResponse( * @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 class representing an data connection. + * @return class representing an data connection along with {@link Response} on successful completion of {@link + * Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> getWithResponseAsync( @@ -971,7 +978,8 @@ private Mono> getWithResponseAsync( * @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 class representing an data connection. + * @return class representing an data connection along with {@link Response} on successful completion of {@link + * Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> getWithResponseAsync( @@ -1027,7 +1035,7 @@ private Mono> getWithResponseAsync( * @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 class representing an data connection. + * @return class representing an data connection on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono getAsync( @@ -1072,7 +1080,7 @@ public DataConnectionInner get( * @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 class representing an data connection. + * @return class representing an data connection along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) public Response getWithResponse( @@ -1091,7 +1099,8 @@ public Response getWithResponse( * @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 class representing an data connection. + * @return class representing an data connection along with {@link Response} on successful completion of {@link + * Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> createOrUpdateWithResponseAsync( @@ -1162,7 +1171,8 @@ private Mono>> createOrUpdateWithResponseAsync( * @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 class representing an data connection. + * @return class representing an data connection along with {@link Response} on successful completion of {@link + * Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> createOrUpdateWithResponseAsync( @@ -1230,9 +1240,9 @@ private Mono>> createOrUpdateWithResponseAsync( * @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 class representing an data connection. + * @return the {@link PollerFlux} for polling of class representing an data connection. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, DataConnectionInner> beginCreateOrUpdateAsync( String resourceGroupName, String clusterName, @@ -1249,7 +1259,7 @@ private PollerFlux, DataConnectionInner> beginCr this.client.getHttpPipeline(), DataConnectionInner.class, DataConnectionInner.class, - Context.NONE); + this.client.getContext()); } /** @@ -1264,9 +1274,9 @@ private PollerFlux, DataConnectionInner> beginCr * @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 class representing an data connection. + * @return the {@link PollerFlux} for polling of class representing an data connection. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, DataConnectionInner> beginCreateOrUpdateAsync( String resourceGroupName, String clusterName, @@ -1295,9 +1305,9 @@ private PollerFlux, DataConnectionInner> beginCr * @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 class representing an data connection. + * @return the {@link SyncPoller} for polling of class representing an data connection. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, DataConnectionInner> beginCreateOrUpdate( String resourceGroupName, String clusterName, @@ -1320,9 +1330,9 @@ public SyncPoller, DataConnectionInner> beginCre * @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 class representing an data connection. + * @return the {@link SyncPoller} for polling of class representing an data connection. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, DataConnectionInner> beginCreateOrUpdate( String resourceGroupName, String clusterName, @@ -1346,7 +1356,7 @@ public SyncPoller, DataConnectionInner> beginCre * @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 class representing an data connection. + * @return class representing an data connection on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono createOrUpdateAsync( @@ -1372,7 +1382,7 @@ private Mono createOrUpdateAsync( * @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 class representing an data connection. + * @return class representing an data connection on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono createOrUpdateAsync( @@ -1450,7 +1460,8 @@ public DataConnectionInner createOrUpdate( * @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 class representing an data connection. + * @return class representing an data connection along with {@link Response} on successful completion of {@link + * Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> updateWithResponseAsync( @@ -1521,7 +1532,8 @@ private Mono>> updateWithResponseAsync( * @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 class representing an data connection. + * @return class representing an data connection along with {@link Response} on successful completion of {@link + * Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> updateWithResponseAsync( @@ -1589,9 +1601,9 @@ private Mono>> updateWithResponseAsync( * @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 class representing an data connection. + * @return the {@link PollerFlux} for polling of class representing an data connection. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, DataConnectionInner> beginUpdateAsync( String resourceGroupName, String clusterName, @@ -1607,7 +1619,7 @@ private PollerFlux, DataConnectionInner> beginUp this.client.getHttpPipeline(), DataConnectionInner.class, DataConnectionInner.class, - Context.NONE); + this.client.getContext()); } /** @@ -1622,9 +1634,9 @@ private PollerFlux, DataConnectionInner> beginUp * @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 class representing an data connection. + * @return the {@link PollerFlux} for polling of class representing an data connection. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, DataConnectionInner> beginUpdateAsync( String resourceGroupName, String clusterName, @@ -1653,9 +1665,9 @@ private PollerFlux, DataConnectionInner> beginUp * @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 class representing an data connection. + * @return the {@link SyncPoller} for polling of class representing an data connection. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, DataConnectionInner> beginUpdate( String resourceGroupName, String clusterName, @@ -1678,9 +1690,9 @@ public SyncPoller, DataConnectionInner> beginUpd * @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 class representing an data connection. + * @return the {@link SyncPoller} for polling of class representing an data connection. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, DataConnectionInner> beginUpdate( String resourceGroupName, String clusterName, @@ -1703,7 +1715,7 @@ public SyncPoller, DataConnectionInner> beginUpd * @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 class representing an data connection. + * @return class representing an data connection on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono updateAsync( @@ -1729,7 +1741,7 @@ private Mono updateAsync( * @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 class representing an data connection. + * @return class representing an data connection on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono updateAsync( @@ -1803,7 +1815,7 @@ public DataConnectionInner update( * @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 completion. + * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> deleteWithResponseAsync( @@ -1863,7 +1875,7 @@ private Mono>> deleteWithResponseAsync( * @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 completion. + * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> deleteWithResponseAsync( @@ -1919,16 +1931,17 @@ private Mono>> deleteWithResponseAsync( * @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 completion. + * @return the {@link PollerFlux} for polling of long-running operation. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, Void> beginDeleteAsync( String resourceGroupName, String clusterName, String databaseName, String dataConnectionName) { Mono>> mono = deleteWithResponseAsync(resourceGroupName, clusterName, databaseName, dataConnectionName); return this .client - .getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, Context.NONE); + .getLroResult( + mono, this.client.getHttpPipeline(), Void.class, Void.class, this.client.getContext()); } /** @@ -1942,9 +1955,9 @@ private PollerFlux, Void> beginDeleteAsync( * @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 completion. + * @return the {@link PollerFlux} for polling of long-running operation. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, Void> beginDeleteAsync( String resourceGroupName, String clusterName, String databaseName, String dataConnectionName, Context context) { context = this.client.mergeContext(context); @@ -1965,9 +1978,9 @@ private PollerFlux, Void> beginDeleteAsync( * @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 completion. + * @return the {@link SyncPoller} for polling of long-running operation. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, Void> beginDelete( String resourceGroupName, String clusterName, String databaseName, String dataConnectionName) { return beginDeleteAsync(resourceGroupName, clusterName, databaseName, dataConnectionName).getSyncPoller(); @@ -1984,9 +1997,9 @@ public SyncPoller, Void> beginDelete( * @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 completion. + * @return the {@link SyncPoller} for polling of long-running operation. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, Void> beginDelete( String resourceGroupName, String clusterName, String databaseName, String dataConnectionName, Context context) { return beginDeleteAsync(resourceGroupName, clusterName, databaseName, dataConnectionName, context) @@ -2003,7 +2016,7 @@ public SyncPoller, Void> beginDelete( * @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 completion. + * @return A {@link Mono} that completes when a successful response is received. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono deleteAsync( @@ -2024,7 +2037,7 @@ private Mono deleteAsync( * @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 completion. + * @return A {@link Mono} that completes when a successful response is received. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono deleteAsync( diff --git a/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/implementation/DatabasePrincipalAssignmentImpl.java b/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/implementation/DatabasePrincipalAssignmentImpl.java index aceaa300d0c7..48e8a5ec6431 100644 --- a/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/implementation/DatabasePrincipalAssignmentImpl.java +++ b/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/implementation/DatabasePrincipalAssignmentImpl.java @@ -57,6 +57,10 @@ public ProvisioningState provisioningState() { return this.innerModel().provisioningState(); } + public String aadObjectId() { + return this.innerModel().aadObjectId(); + } + public DatabasePrincipalAssignmentInner innerModel() { return this.innerObject; } 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 5c947acc4666..7a36e4097e99 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 @@ -168,7 +168,8 @@ Mono> list( * @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 check name availability request. + * @return the result returned from a check name availability request along with {@link Response} on successful + * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> checkNameAvailabilityWithResponseAsync( @@ -234,7 +235,8 @@ private Mono> checkNameAvailabilityWithResponseAs * @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 check name availability request. + * @return the result returned from a check name availability request along with {@link Response} on successful + * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> checkNameAvailabilityWithResponseAsync( @@ -297,7 +299,7 @@ private Mono> checkNameAvailabilityWithResponseAs * @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 check name availability request. + * @return the result returned from a check name availability request on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono checkNameAvailabilityAsync( @@ -350,7 +352,7 @@ public CheckNameResultInner checkNameAvailability( * @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 check name availability request. + * @return the result returned from a check name availability request along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) public Response checkNameAvailabilityWithResponse( @@ -374,7 +376,8 @@ public Response checkNameAvailabilityWithResponse( * @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 Kusto cluster database principalAssignment. + * @return a Kusto cluster database principalAssignment along with {@link Response} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> getWithResponseAsync( @@ -435,7 +438,8 @@ private Mono> getWithResponseAsync( * @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 Kusto cluster database principalAssignment. + * @return a Kusto cluster database principalAssignment along with {@link Response} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> getWithResponseAsync( @@ -496,7 +500,7 @@ private Mono> getWithResponseAsync( * @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 Kusto cluster database principalAssignment. + * @return a Kusto cluster database principalAssignment on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono getAsync( @@ -541,7 +545,7 @@ public DatabasePrincipalAssignmentInner get( * @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 Kusto cluster database principalAssignment. + * @return a Kusto cluster database principalAssignment along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) public Response getWithResponse( @@ -565,7 +569,8 @@ public Response getWithResponse( * @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 class representing a database principal assignment. + * @return class representing a database principal assignment along with {@link Response} on successful completion + * of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> createOrUpdateWithResponseAsync( @@ -637,7 +642,8 @@ private Mono>> createOrUpdateWithResponseAsync( * @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 class representing a database principal assignment. + * @return class representing a database principal assignment along with {@link Response} on successful completion + * of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> createOrUpdateWithResponseAsync( @@ -706,9 +712,9 @@ private Mono>> createOrUpdateWithResponseAsync( * @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 class representing a database principal assignment. + * @return the {@link PollerFlux} for polling of class representing a database principal assignment. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, DatabasePrincipalAssignmentInner> beginCreateOrUpdateAsync( String resourceGroupName, @@ -726,7 +732,7 @@ private Mono>> createOrUpdateWithResponseAsync( this.client.getHttpPipeline(), DatabasePrincipalAssignmentInner.class, DatabasePrincipalAssignmentInner.class, - Context.NONE); + this.client.getContext()); } /** @@ -741,9 +747,9 @@ private Mono>> createOrUpdateWithResponseAsync( * @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 class representing a database principal assignment. + * @return the {@link PollerFlux} for polling of class representing a database principal assignment. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, DatabasePrincipalAssignmentInner> beginCreateOrUpdateAsync( String resourceGroupName, @@ -777,9 +783,9 @@ private Mono>> createOrUpdateWithResponseAsync( * @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 class representing a database principal assignment. + * @return the {@link SyncPoller} for polling of class representing a database principal assignment. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, DatabasePrincipalAssignmentInner> beginCreateOrUpdate( String resourceGroupName, @@ -804,9 +810,9 @@ private Mono>> createOrUpdateWithResponseAsync( * @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 class representing a database principal assignment. + * @return the {@link SyncPoller} for polling of class representing a database principal assignment. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, DatabasePrincipalAssignmentInner> beginCreateOrUpdate( String resourceGroupName, @@ -831,7 +837,7 @@ private Mono>> createOrUpdateWithResponseAsync( * @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 class representing a database principal assignment. + * @return class representing a database principal assignment on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono createOrUpdateAsync( @@ -858,7 +864,7 @@ private Mono createOrUpdateAsync( * @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 class representing a database principal assignment. + * @return class representing a database principal assignment on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono createOrUpdateAsync( @@ -935,7 +941,7 @@ public DatabasePrincipalAssignmentInner createOrUpdate( * @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 completion. + * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> deleteWithResponseAsync( @@ -996,7 +1002,7 @@ private Mono>> deleteWithResponseAsync( * @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 completion. + * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> deleteWithResponseAsync( @@ -1057,16 +1063,17 @@ private Mono>> deleteWithResponseAsync( * @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 completion. + * @return the {@link PollerFlux} for polling of long-running operation. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, Void> beginDeleteAsync( String resourceGroupName, String clusterName, String databaseName, String principalAssignmentName) { Mono>> mono = deleteWithResponseAsync(resourceGroupName, clusterName, databaseName, principalAssignmentName); return this .client - .getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, Context.NONE); + .getLroResult( + mono, this.client.getHttpPipeline(), Void.class, Void.class, this.client.getContext()); } /** @@ -1080,9 +1087,9 @@ private PollerFlux, Void> beginDeleteAsync( * @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 completion. + * @return the {@link PollerFlux} for polling of long-running operation. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, Void> beginDeleteAsync( String resourceGroupName, String clusterName, @@ -1107,9 +1114,9 @@ private PollerFlux, Void> beginDeleteAsync( * @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 completion. + * @return the {@link SyncPoller} for polling of long-running operation. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, Void> beginDelete( String resourceGroupName, String clusterName, String databaseName, String principalAssignmentName) { return beginDeleteAsync(resourceGroupName, clusterName, databaseName, principalAssignmentName).getSyncPoller(); @@ -1126,9 +1133,9 @@ public SyncPoller, Void> beginDelete( * @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 completion. + * @return the {@link SyncPoller} for polling of long-running operation. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, Void> beginDelete( String resourceGroupName, String clusterName, @@ -1149,7 +1156,7 @@ public SyncPoller, Void> beginDelete( * @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 completion. + * @return A {@link Mono} that completes when a successful response is received. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono deleteAsync( @@ -1170,7 +1177,7 @@ private Mono deleteAsync( * @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 completion. + * @return A {@link Mono} that completes when a successful response is received. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono deleteAsync( @@ -1232,7 +1239,8 @@ public void delete( * @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 database principal assignments operation response. + * @return the list Kusto database principal assignments operation response along with {@link PagedResponse} on + * successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listSinglePageAsync( @@ -1290,7 +1298,8 @@ private Mono> listSinglePageAsyn * @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 database principal assignments operation response. + * @return the list Kusto database principal assignments operation response along with {@link PagedResponse} on + * successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listSinglePageAsync( @@ -1344,7 +1353,8 @@ private Mono> listSinglePageAsyn * @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 database principal assignments operation response. + * @return the list Kusto database principal assignments operation response as paginated response with {@link + * PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listAsync( @@ -1362,7 +1372,8 @@ private PagedFlux listAsync( * @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 database principal assignments operation response. + * @return the list Kusto database principal assignments operation response as paginated response with {@link + * PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listAsync( @@ -1379,7 +1390,8 @@ private PagedFlux listAsync( * @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 database principal assignments operation response. + * @return the list Kusto database principal assignments operation response as paginated response with {@link + * PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable list( @@ -1397,7 +1409,8 @@ public PagedIterable list( * @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 database principal assignments operation response. + * @return the list Kusto database principal assignments operation response as paginated response with {@link + * PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable list( 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 ec3af72ed51e..4e750b8f6adc 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 @@ -231,7 +231,8 @@ Mono> removePrincipals( * @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 check name availability request. + * @return the result returned from a check name availability request along with {@link Response} on successful + * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> checkNameAvailabilityWithResponseAsync( @@ -287,7 +288,8 @@ private Mono> checkNameAvailabilityWithResponseAs * @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 check name availability request. + * @return the result returned from a check name availability request along with {@link Response} on successful + * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> checkNameAvailabilityWithResponseAsync( @@ -339,7 +341,7 @@ private Mono> checkNameAvailabilityWithResponseAs * @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 check name availability request. + * @return the result returned from a check name availability request on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono checkNameAvailabilityAsync( @@ -382,7 +384,7 @@ public CheckNameResultInner checkNameAvailability( * @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 check name availability request. + * @return the result returned from a check name availability request along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) public Response checkNameAvailabilityWithResponse( @@ -398,7 +400,8 @@ public Response checkNameAvailabilityWithResponse( * @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. + * @return the list Kusto databases operation response along with {@link PagedResponse} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listByClusterSinglePageAsync( @@ -451,7 +454,8 @@ private Mono> listByClusterSinglePageAsync( * @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. + * @return the list Kusto databases operation response along with {@link PagedResponse} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listByClusterSinglePageAsync( @@ -500,7 +504,7 @@ private Mono> listByClusterSinglePageAsync( * @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. + * @return the list Kusto databases operation response as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listByClusterAsync(String resourceGroupName, String clusterName) { @@ -516,7 +520,7 @@ private PagedFlux listByClusterAsync(String resourceGroupName, St * @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. + * @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) { @@ -531,7 +535,7 @@ private PagedFlux listByClusterAsync(String resourceGroupName, St * @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. + * @return the list Kusto databases operation response as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable listByCluster(String resourceGroupName, String clusterName) { @@ -547,7 +551,7 @@ public PagedIterable listByCluster(String resourceGroupName, Stri * @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. + * @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) { @@ -563,7 +567,7 @@ public PagedIterable listByCluster(String resourceGroupName, Stri * @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 class representing a Kusto database. + * @return class representing a Kusto database along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> getWithResponseAsync( @@ -617,7 +621,7 @@ private Mono> getWithResponseAsync( * @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 class representing a Kusto database. + * @return class representing a Kusto database along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> getWithResponseAsync( @@ -667,7 +671,7 @@ private Mono> getWithResponseAsync( * @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 class representing a Kusto database. + * @return class representing a Kusto database on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono getAsync(String resourceGroupName, String clusterName, String databaseName) { @@ -708,7 +712,7 @@ public DatabaseInner get(String resourceGroupName, String clusterName, String da * @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 class representing a Kusto database. + * @return class representing a Kusto database along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) public Response getWithResponse( @@ -726,7 +730,7 @@ public Response getWithResponse( * @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 class representing a Kusto database. + * @return class representing a Kusto database along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> createOrUpdateWithResponseAsync( @@ -787,7 +791,7 @@ private Mono>> createOrUpdateWithResponseAsync( * @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 class representing a Kusto database. + * @return class representing a Kusto database along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> createOrUpdateWithResponseAsync( @@ -844,9 +848,9 @@ private Mono>> createOrUpdateWithResponseAsync( * @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 class representing a Kusto database. + * @return the {@link PollerFlux} for polling of class representing a Kusto database. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, DatabaseInner> beginCreateOrUpdateAsync( String resourceGroupName, String clusterName, String databaseName, DatabaseInner parameters) { Mono>> mono = @@ -854,7 +858,11 @@ private PollerFlux, DatabaseInner> beginCreateOrUpdate return this .client .getLroResult( - mono, this.client.getHttpPipeline(), DatabaseInner.class, DatabaseInner.class, Context.NONE); + mono, + this.client.getHttpPipeline(), + DatabaseInner.class, + DatabaseInner.class, + this.client.getContext()); } /** @@ -868,9 +876,9 @@ private PollerFlux, DatabaseInner> beginCreateOrUpdate * @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 class representing a Kusto database. + * @return the {@link PollerFlux} for polling of class representing a Kusto database. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, DatabaseInner> beginCreateOrUpdateAsync( String resourceGroupName, String clusterName, String databaseName, DatabaseInner parameters, Context context) { context = this.client.mergeContext(context); @@ -892,9 +900,9 @@ private PollerFlux, DatabaseInner> beginCreateOrUpdate * @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 class representing a Kusto database. + * @return the {@link SyncPoller} for polling of class representing a Kusto database. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, DatabaseInner> beginCreateOrUpdate( String resourceGroupName, String clusterName, String databaseName, DatabaseInner parameters) { return beginCreateOrUpdateAsync(resourceGroupName, clusterName, databaseName, parameters).getSyncPoller(); @@ -911,9 +919,9 @@ public SyncPoller, DatabaseInner> beginCreateOrUpdate( * @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 class representing a Kusto database. + * @return the {@link SyncPoller} for polling of class representing a Kusto database. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, DatabaseInner> beginCreateOrUpdate( String resourceGroupName, String clusterName, String databaseName, DatabaseInner parameters, Context context) { return beginCreateOrUpdateAsync(resourceGroupName, clusterName, databaseName, parameters, context) @@ -930,7 +938,7 @@ public SyncPoller, DatabaseInner> beginCreateOrUpdate( * @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 class representing a Kusto database. + * @return class representing a Kusto database on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono createOrUpdateAsync( @@ -951,7 +959,7 @@ private Mono createOrUpdateAsync( * @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 class representing a Kusto database. + * @return class representing a Kusto database on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono createOrUpdateAsync( @@ -1008,7 +1016,7 @@ public DatabaseInner createOrUpdate( * @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 class representing a Kusto database. + * @return class representing a Kusto database along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> updateWithResponseAsync( @@ -1069,7 +1077,7 @@ private Mono>> updateWithResponseAsync( * @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 class representing a Kusto database. + * @return class representing a Kusto database along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> updateWithResponseAsync( @@ -1126,9 +1134,9 @@ private Mono>> updateWithResponseAsync( * @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 class representing a Kusto database. + * @return the {@link PollerFlux} for polling of class representing a Kusto database. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, DatabaseInner> beginUpdateAsync( String resourceGroupName, String clusterName, String databaseName, DatabaseInner parameters) { Mono>> mono = @@ -1136,7 +1144,11 @@ private PollerFlux, DatabaseInner> beginUpdateAsync( return this .client .getLroResult( - mono, this.client.getHttpPipeline(), DatabaseInner.class, DatabaseInner.class, Context.NONE); + mono, + this.client.getHttpPipeline(), + DatabaseInner.class, + DatabaseInner.class, + this.client.getContext()); } /** @@ -1150,9 +1162,9 @@ private PollerFlux, DatabaseInner> beginUpdateAsync( * @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 class representing a Kusto database. + * @return the {@link PollerFlux} for polling of class representing a Kusto database. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, DatabaseInner> beginUpdateAsync( String resourceGroupName, String clusterName, String databaseName, DatabaseInner parameters, Context context) { context = this.client.mergeContext(context); @@ -1174,9 +1186,9 @@ private PollerFlux, DatabaseInner> beginUpdateAsync( * @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 class representing a Kusto database. + * @return the {@link SyncPoller} for polling of class representing a Kusto database. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, DatabaseInner> beginUpdate( String resourceGroupName, String clusterName, String databaseName, DatabaseInner parameters) { return beginUpdateAsync(resourceGroupName, clusterName, databaseName, parameters).getSyncPoller(); @@ -1193,9 +1205,9 @@ public SyncPoller, DatabaseInner> beginUpdate( * @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 class representing a Kusto database. + * @return the {@link SyncPoller} for polling of class representing a Kusto database. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, DatabaseInner> beginUpdate( String resourceGroupName, String clusterName, String databaseName, DatabaseInner parameters, Context context) { return beginUpdateAsync(resourceGroupName, clusterName, databaseName, parameters, context).getSyncPoller(); @@ -1211,7 +1223,7 @@ public SyncPoller, DatabaseInner> beginUpdate( * @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 class representing a Kusto database. + * @return class representing a Kusto database on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono updateAsync( @@ -1232,7 +1244,7 @@ private Mono updateAsync( * @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 class representing a Kusto database. + * @return class representing a Kusto database on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono updateAsync( @@ -1288,7 +1300,7 @@ public DatabaseInner update( * @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 completion. + * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> deleteWithResponseAsync( @@ -1342,7 +1354,7 @@ private Mono>> deleteWithResponseAsync( * @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 completion. + * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> deleteWithResponseAsync( @@ -1392,15 +1404,16 @@ private Mono>> deleteWithResponseAsync( * @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 completion. + * @return the {@link PollerFlux} for polling of long-running operation. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, Void> beginDeleteAsync( String resourceGroupName, String clusterName, String databaseName) { Mono>> mono = deleteWithResponseAsync(resourceGroupName, clusterName, databaseName); return this .client - .getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, Context.NONE); + .getLroResult( + mono, this.client.getHttpPipeline(), Void.class, Void.class, this.client.getContext()); } /** @@ -1413,9 +1426,9 @@ private PollerFlux, Void> beginDeleteAsync( * @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 completion. + * @return the {@link PollerFlux} for polling of long-running operation. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, Void> beginDeleteAsync( String resourceGroupName, String clusterName, String databaseName, Context context) { context = this.client.mergeContext(context); @@ -1435,9 +1448,9 @@ private PollerFlux, Void> beginDeleteAsync( * @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 completion. + * @return the {@link SyncPoller} for polling of long-running operation. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, Void> beginDelete( String resourceGroupName, String clusterName, String databaseName) { return beginDeleteAsync(resourceGroupName, clusterName, databaseName).getSyncPoller(); @@ -1453,9 +1466,9 @@ public SyncPoller, Void> beginDelete( * @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 completion. + * @return the {@link SyncPoller} for polling of long-running operation. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, Void> beginDelete( String resourceGroupName, String clusterName, String databaseName, Context context) { return beginDeleteAsync(resourceGroupName, clusterName, databaseName, context).getSyncPoller(); @@ -1470,7 +1483,7 @@ public SyncPoller, Void> beginDelete( * @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 completion. + * @return A {@link Mono} that completes when a successful response is received. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono deleteAsync(String resourceGroupName, String clusterName, String databaseName) { @@ -1489,7 +1502,7 @@ private Mono deleteAsync(String resourceGroupName, String clusterName, Str * @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 completion. + * @return A {@link Mono} that completes when a successful response is received. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono deleteAsync(String resourceGroupName, String clusterName, String databaseName, Context context) { @@ -1538,7 +1551,8 @@ public void delete(String resourceGroupName, String clusterName, String database * @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 database principals operation response. + * @return the list Kusto database principals operation response along with {@link PagedResponse} on successful + * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listPrincipalsSinglePageAsync( @@ -1596,7 +1610,8 @@ private Mono> listPrincipalsSinglePageAsyn * @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 database principals operation response. + * @return the list Kusto database principals operation response along with {@link PagedResponse} on successful + * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listPrincipalsSinglePageAsync( @@ -1650,7 +1665,7 @@ private Mono> listPrincipalsSinglePageAsyn * @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 database principals operation response. + * @return the list Kusto database principals operation response as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listPrincipalsAsync( @@ -1668,7 +1683,7 @@ private PagedFlux listPrincipalsAsync( * @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 database principals operation response. + * @return the list Kusto database principals operation response as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listPrincipalsAsync( @@ -1686,7 +1701,7 @@ private PagedFlux listPrincipalsAsync( * @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 database principals operation response. + * @return the list Kusto database principals operation response as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable listPrincipals( @@ -1704,7 +1719,7 @@ public PagedIterable listPrincipals( * @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 database principals operation response. + * @return the list Kusto database principals operation response as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable listPrincipals( @@ -1722,7 +1737,8 @@ public PagedIterable listPrincipals( * @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 database principals operation response. + * @return the list Kusto database principals operation response along with {@link Response} on successful + * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> addPrincipalsWithResponseAsync( @@ -1788,7 +1804,8 @@ private Mono> addPrincipalsWithRespon * @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 database principals operation response. + * @return the list Kusto database principals operation response along with {@link Response} on successful + * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> addPrincipalsWithResponseAsync( @@ -1851,7 +1868,7 @@ private Mono> addPrincipalsWithRespon * @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 database principals operation response. + * @return the list Kusto database principals operation response on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono addPrincipalsAsync( @@ -1902,7 +1919,7 @@ public DatabasePrincipalListResultInner addPrincipals( * @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 database principals operation response. + * @return the list Kusto database principals operation response along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) public Response addPrincipalsWithResponse( @@ -1926,7 +1943,8 @@ public Response addPrincipalsWithResponse( * @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 database principals operation response. + * @return the list Kusto database principals operation response along with {@link Response} on successful + * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> removePrincipalsWithResponseAsync( @@ -1993,7 +2011,8 @@ private Mono> removePrincipalsWithRes * @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 database principals operation response. + * @return the list Kusto database principals operation response along with {@link Response} on successful + * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> removePrincipalsWithResponseAsync( @@ -2057,7 +2076,7 @@ private Mono> removePrincipalsWithRes * @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 database principals operation response. + * @return the list Kusto database principals operation response on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono removePrincipalsAsync( @@ -2109,7 +2128,7 @@ public DatabasePrincipalListResultInner removePrincipals( * @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 database principals operation response. + * @return the list Kusto database principals operation response along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) public Response removePrincipalsWithResponse( 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 b3c03de2eb52..7765f6e1434b 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 @@ -31,6 +31,7 @@ import com.azure.resourcemanager.kusto.fluent.ManagedPrivateEndpointsClient; import com.azure.resourcemanager.kusto.fluent.OperationsClient; import com.azure.resourcemanager.kusto.fluent.OperationsResultsClient; +import com.azure.resourcemanager.kusto.fluent.OperationsResultsLocationsClient; import com.azure.resourcemanager.kusto.fluent.PrivateEndpointConnectionsClient; import com.azure.resourcemanager.kusto.fluent.PrivateLinkResourcesClient; import com.azure.resourcemanager.kusto.fluent.ScriptsClient; @@ -269,6 +270,18 @@ public OperationsResultsClient getOperationsResults() { return this.operationsResults; } + /** The OperationsResultsLocationsClient object to access its operations. */ + private final OperationsResultsLocationsClient operationsResultsLocations; + + /** + * Gets the OperationsResultsLocationsClient object to access its operations. + * + * @return the OperationsResultsLocationsClient object. + */ + public OperationsResultsLocationsClient getOperationsResultsLocations() { + return this.operationsResultsLocations; + } + /** * Initializes an instance of KustoManagementClient client. * @@ -292,7 +305,7 @@ public OperationsResultsClient getOperationsResults() { this.defaultPollInterval = defaultPollInterval; this.subscriptionId = subscriptionId; this.endpoint = endpoint; - this.apiVersion = "2021-08-27"; + this.apiVersion = "2022-02-01"; this.clusters = new ClustersClientImpl(this); this.clusterPrincipalAssignments = new ClusterPrincipalAssignmentsClientImpl(this); this.databases = new DatabasesClientImpl(this); @@ -305,6 +318,7 @@ public OperationsResultsClient getOperationsResults() { this.dataConnections = new DataConnectionsClientImpl(this); this.operations = new OperationsClientImpl(this); this.operationsResults = new OperationsResultsClientImpl(this); + this.operationsResultsLocations = new OperationsResultsLocationsClientImpl(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 a68ee57a0a81..5dfa213be01d 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 @@ -179,7 +179,8 @@ Mono>> delete( * @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 check name availability request. + * @return the result returned from a check name availability request along with {@link Response} on successful + * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> checkNameAvailabilityWithResponseAsync( @@ -235,7 +236,8 @@ private Mono> checkNameAvailabilityWithResponseAs * @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 check name availability request. + * @return the result returned from a check name availability request along with {@link Response} on successful + * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> checkNameAvailabilityWithResponseAsync( @@ -290,7 +292,7 @@ private Mono> checkNameAvailabilityWithResponseAs * @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 check name availability request. + * @return the result returned from a check name availability request on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono checkNameAvailabilityAsync( @@ -333,7 +335,7 @@ public CheckNameResultInner checkNameAvailability( * @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 check name availability request. + * @return the result returned from a check name availability request along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) public Response checkNameAvailabilityWithResponse( @@ -352,7 +354,8 @@ public Response checkNameAvailabilityWithResponse( * @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 managed private endpoints operation response. + * @return the list managed private endpoints operation response along with {@link PagedResponse} on successful + * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listSinglePageAsync( @@ -405,7 +408,8 @@ private Mono> listSinglePageAsync( * @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 managed private endpoints operation response. + * @return the list managed private endpoints operation response along with {@link PagedResponse} on successful + * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listSinglePageAsync( @@ -454,7 +458,7 @@ private Mono> listSinglePageAsync( * @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 managed private endpoints operation response. + * @return the list managed private endpoints operation response as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listAsync(String resourceGroupName, String clusterName) { @@ -470,7 +474,7 @@ private PagedFlux listAsync(String resourceGroupNam * @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 managed private endpoints operation response. + * @return the list managed private endpoints operation response as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listAsync( @@ -486,7 +490,7 @@ private PagedFlux listAsync( * @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 managed private endpoints operation response. + * @return the list managed private endpoints operation response as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable list(String resourceGroupName, String clusterName) { @@ -502,7 +506,7 @@ public PagedIterable list(String resourceGroupName, * @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 managed private endpoints operation response. + * @return the list managed private endpoints operation response as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable list( @@ -519,7 +523,7 @@ public PagedIterable list( * @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 managed private endpoint. + * @return a managed private endpoint along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> getWithResponseAsync( @@ -576,7 +580,7 @@ private Mono> getWithResponseAsync( * @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 managed private endpoint. + * @return a managed private endpoint along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> getWithResponseAsync( @@ -629,7 +633,7 @@ private Mono> getWithResponseAsync( * @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 managed private endpoint. + * @return a managed private endpoint on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono getAsync( @@ -672,7 +676,7 @@ public ManagedPrivateEndpointInner get( * @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 managed private endpoint. + * @return a managed private endpoint along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) public Response getWithResponse( @@ -690,7 +694,8 @@ public Response getWithResponse( * @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 class representing a managed private endpoint. + * @return class representing a managed private endpoint along with {@link Response} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> createOrUpdateWithResponseAsync( @@ -757,7 +762,8 @@ private Mono>> createOrUpdateWithResponseAsync( * @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 class representing a managed private endpoint. + * @return class representing a managed private endpoint along with {@link Response} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> createOrUpdateWithResponseAsync( @@ -821,9 +827,9 @@ private Mono>> createOrUpdateWithResponseAsync( * @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 class representing a managed private endpoint. + * @return the {@link PollerFlux} for polling of class representing a managed private endpoint. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, ManagedPrivateEndpointInner> beginCreateOrUpdateAsync( String resourceGroupName, String clusterName, @@ -838,7 +844,7 @@ private PollerFlux, ManagedPrivateEndpoi this.client.getHttpPipeline(), ManagedPrivateEndpointInner.class, ManagedPrivateEndpointInner.class, - Context.NONE); + this.client.getContext()); } /** @@ -852,9 +858,9 @@ private PollerFlux, ManagedPrivateEndpoi * @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 class representing a managed private endpoint. + * @return the {@link PollerFlux} for polling of class representing a managed private endpoint. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, ManagedPrivateEndpointInner> beginCreateOrUpdateAsync( String resourceGroupName, String clusterName, @@ -885,9 +891,9 @@ private PollerFlux, ManagedPrivateEndpoi * @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 class representing a managed private endpoint. + * @return the {@link SyncPoller} for polling of class representing a managed private endpoint. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, ManagedPrivateEndpointInner> beginCreateOrUpdate( String resourceGroupName, String clusterName, @@ -908,9 +914,9 @@ public SyncPoller, ManagedPrivateEndpoin * @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 class representing a managed private endpoint. + * @return the {@link SyncPoller} for polling of class representing a managed private endpoint. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, ManagedPrivateEndpointInner> beginCreateOrUpdate( String resourceGroupName, String clusterName, @@ -931,7 +937,7 @@ public SyncPoller, ManagedPrivateEndpoin * @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 class representing a managed private endpoint. + * @return class representing a managed private endpoint on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono createOrUpdateAsync( @@ -955,7 +961,7 @@ private Mono createOrUpdateAsync( * @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 class representing a managed private endpoint. + * @return class representing a managed private endpoint on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono createOrUpdateAsync( @@ -1024,7 +1030,8 @@ public ManagedPrivateEndpointInner createOrUpdate( * @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 class representing a managed private endpoint. + * @return class representing a managed private endpoint along with {@link Response} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> updateWithResponseAsync( @@ -1091,7 +1098,8 @@ private Mono>> updateWithResponseAsync( * @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 class representing a managed private endpoint. + * @return class representing a managed private endpoint along with {@link Response} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> updateWithResponseAsync( @@ -1155,9 +1163,9 @@ private Mono>> updateWithResponseAsync( * @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 class representing a managed private endpoint. + * @return the {@link PollerFlux} for polling of class representing a managed private endpoint. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, ManagedPrivateEndpointInner> beginUpdateAsync( String resourceGroupName, String clusterName, @@ -1172,7 +1180,7 @@ private PollerFlux, ManagedPrivateEndpoi this.client.getHttpPipeline(), ManagedPrivateEndpointInner.class, ManagedPrivateEndpointInner.class, - Context.NONE); + this.client.getContext()); } /** @@ -1186,9 +1194,9 @@ private PollerFlux, ManagedPrivateEndpoi * @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 class representing a managed private endpoint. + * @return the {@link PollerFlux} for polling of class representing a managed private endpoint. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, ManagedPrivateEndpointInner> beginUpdateAsync( String resourceGroupName, String clusterName, @@ -1218,9 +1226,9 @@ private PollerFlux, ManagedPrivateEndpoi * @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 class representing a managed private endpoint. + * @return the {@link SyncPoller} for polling of class representing a managed private endpoint. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, ManagedPrivateEndpointInner> beginUpdate( String resourceGroupName, String clusterName, @@ -1240,9 +1248,9 @@ public SyncPoller, ManagedPrivateEndpoin * @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 class representing a managed private endpoint. + * @return the {@link SyncPoller} for polling of class representing a managed private endpoint. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, ManagedPrivateEndpointInner> beginUpdate( String resourceGroupName, String clusterName, @@ -1263,7 +1271,7 @@ public SyncPoller, ManagedPrivateEndpoin * @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 class representing a managed private endpoint. + * @return class representing a managed private endpoint on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono updateAsync( @@ -1287,7 +1295,7 @@ private Mono updateAsync( * @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 class representing a managed private endpoint. + * @return class representing a managed private endpoint on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono updateAsync( @@ -1354,7 +1362,7 @@ public ManagedPrivateEndpointInner update( * @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 completion. + * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> deleteWithResponseAsync( @@ -1411,7 +1419,7 @@ private Mono>> deleteWithResponseAsync( * @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 completion. + * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> deleteWithResponseAsync( @@ -1464,16 +1472,17 @@ private Mono>> deleteWithResponseAsync( * @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 completion. + * @return the {@link PollerFlux} for polling of long-running operation. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, Void> beginDeleteAsync( String resourceGroupName, String clusterName, String managedPrivateEndpointName) { Mono>> mono = deleteWithResponseAsync(resourceGroupName, clusterName, managedPrivateEndpointName); return this .client - .getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, Context.NONE); + .getLroResult( + mono, this.client.getHttpPipeline(), Void.class, Void.class, this.client.getContext()); } /** @@ -1486,9 +1495,9 @@ private PollerFlux, Void> beginDeleteAsync( * @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 completion. + * @return the {@link PollerFlux} for polling of long-running operation. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, Void> beginDeleteAsync( String resourceGroupName, String clusterName, String managedPrivateEndpointName, Context context) { context = this.client.mergeContext(context); @@ -1508,9 +1517,9 @@ private PollerFlux, Void> beginDeleteAsync( * @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 completion. + * @return the {@link SyncPoller} for polling of long-running operation. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, Void> beginDelete( String resourceGroupName, String clusterName, String managedPrivateEndpointName) { return beginDeleteAsync(resourceGroupName, clusterName, managedPrivateEndpointName).getSyncPoller(); @@ -1526,9 +1535,9 @@ public SyncPoller, Void> beginDelete( * @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 completion. + * @return the {@link SyncPoller} for polling of long-running operation. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, Void> beginDelete( String resourceGroupName, String clusterName, String managedPrivateEndpointName, Context context) { return beginDeleteAsync(resourceGroupName, clusterName, managedPrivateEndpointName, context).getSyncPoller(); @@ -1543,7 +1552,7 @@ public SyncPoller, Void> beginDelete( * @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 completion. + * @return A {@link Mono} that completes when a successful response is received. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono deleteAsync(String resourceGroupName, String clusterName, String managedPrivateEndpointName) { @@ -1562,7 +1571,7 @@ private Mono deleteAsync(String resourceGroupName, String clusterName, Str * @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 completion. + * @return A {@link Mono} that completes when a successful response is received. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono deleteAsync( diff --git a/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/implementation/OperationResultImpl.java b/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/implementation/OperationResultImpl.java index f83bf611470e..76ac431ec689 100644 --- a/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/implementation/OperationResultImpl.java +++ b/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/implementation/OperationResultImpl.java @@ -6,6 +6,7 @@ import com.azure.resourcemanager.kusto.fluent.models.OperationResultInner; import com.azure.resourcemanager.kusto.models.OperationResult; +import com.azure.resourcemanager.kusto.models.ProvisioningState; import com.azure.resourcemanager.kusto.models.Status; import java.time.OffsetDateTime; @@ -47,6 +48,10 @@ public String operationKind() { return this.innerModel().operationKind(); } + public ProvisioningState provisioningState() { + return this.innerModel().provisioningState(); + } + public String operationState() { return this.innerModel().operationState(); } diff --git a/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/implementation/OperationsClientImpl.java b/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/implementation/OperationsClientImpl.java index a4612efa9e9f..f8b07cdddf7b 100644 --- a/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/implementation/OperationsClientImpl.java +++ b/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/implementation/OperationsClientImpl.java @@ -85,7 +85,8 @@ Mono> listNext( * * @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 result of the request to list REST API operations. + * @return result of the request to list REST API operations along with {@link PagedResponse} on successful + * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listSinglePageAsync() { @@ -118,7 +119,8 @@ private Mono> listSinglePageAsync() { * @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 result of the request to list REST API operations. + * @return result of the request to list REST API operations along with {@link PagedResponse} on successful + * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listSinglePageAsync(Context context) { @@ -148,7 +150,7 @@ private Mono> listSinglePageAsync(Context context) * * @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 result of the request to list REST API operations. + * @return result of the request to list REST API operations as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listAsync() { @@ -162,7 +164,7 @@ private PagedFlux listAsync() { * @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 result of the request to list REST API operations. + * @return result of the request to list REST API operations as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listAsync(Context context) { @@ -175,7 +177,7 @@ private PagedFlux listAsync(Context context) { * * @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 result of the request to list REST API operations. + * @return result of the request to list REST API operations as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable list() { @@ -189,7 +191,7 @@ public PagedIterable list() { * @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 result of the request to list REST API operations. + * @return result of the request to list REST API operations as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable list(Context context) { @@ -203,7 +205,8 @@ public PagedIterable list(Context context) { * @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 result of the request to list REST API operations. + * @return result of the request to list REST API operations along with {@link PagedResponse} on successful + * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listNextSinglePageAsync(String nextLink) { @@ -239,7 +242,8 @@ private Mono> listNextSinglePageAsync(String nextL * @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 result of the request to list REST API operations. + * @return result of the request to list REST API operations along with {@link PagedResponse} on successful + * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listNextSinglePageAsync(String nextLink, Context context) { 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 289be070dd07..3303d5a3a998 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 @@ -56,7 +56,7 @@ public final class OperationsResultsClientImpl implements OperationsResultsClien private interface OperationsResultsService { @Headers({"Content-Type: application/json"}) @Get( - "/subscriptions/{subscriptionId}/providers/Microsoft.Kusto/locations/{location}/operationresults" + "/subscriptions/{subscriptionId}/providers/Microsoft.Kusto/locations/{location}/operationResults" + "/{operationId}") @ExpectedResponses({200}) @UnexpectedResponseExceptionType(ManagementException.class) @@ -78,7 +78,7 @@ Mono> get( * @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 operation Result Entity. + * @return operation Result Entity along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> getWithResponseAsync(String location, String operationId) { @@ -125,7 +125,7 @@ private Mono> getWithResponseAsync(String locatio * @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 operation Result Entity. + * @return operation Result Entity along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> getWithResponseAsync( @@ -169,7 +169,7 @@ private Mono> getWithResponseAsync( * @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 operation Result Entity. + * @return operation Result Entity on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono getAsync(String location, String operationId) { @@ -208,7 +208,7 @@ public OperationResultInner get(String location, String operationId) { * @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 operation Result Entity. + * @return operation Result Entity along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) public Response getWithResponse(String location, String operationId, Context context) { 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 new file mode 100644 index 000000000000..1217985b1a95 --- /dev/null +++ b/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/implementation/OperationsResultsLocationsClientImpl.java @@ -0,0 +1,202 @@ +// 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.ExpectedResponses; +import com.azure.core.annotation.Get; +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.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.core.util.logging.ClientLogger; +import com.azure.resourcemanager.kusto.fluent.OperationsResultsLocationsClient; +import reactor.core.publisher.Mono; + +/** An instance of this class provides access to all the operations defined in OperationsResultsLocationsClient. */ +public final class OperationsResultsLocationsClientImpl implements OperationsResultsLocationsClient { + private final ClientLogger logger = new ClientLogger(OperationsResultsLocationsClientImpl.class); + + /** The proxy service used to perform REST calls. */ + private final OperationsResultsLocationsService service; + + /** The service client containing this operation class. */ + private final KustoManagementClientImpl client; + + /** + * Initializes an instance of OperationsResultsLocationsClientImpl. + * + * @param client the instance of the service client containing this operation class. + */ + OperationsResultsLocationsClientImpl(KustoManagementClientImpl client) { + this.service = + RestProxy + .create( + OperationsResultsLocationsService.class, client.getHttpPipeline(), client.getSerializerAdapter()); + this.client = client; + } + + /** + * The interface defining all the services for KustoManagementClientOperationsResultsLocations to be used by the + * proxy service to perform REST calls. + */ + @Host("{$host}") + @ServiceInterface(name = "KustoManagementClien") + private interface OperationsResultsLocationsService { + @Headers({"Accept: application/json;q=0.9", "Content-Type: application/json"}) + @Get( + "/subscriptions/{subscriptionId}/providers/Microsoft.Kusto/locations/{location}/operationResults" + + "/{operationId}") + @ExpectedResponses({200, 202}) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> get( + @HostParam("$host") String endpoint, + @PathParam("subscriptionId") String subscriptionId, + @PathParam("location") String location, + @PathParam("operationId") String operationId, + @QueryParam("api-version") String apiVersion, + Context context); + } + + /** + * Returns operation results. + * + * @param location Azure location (region) name. + * @param operationId The Guid of the operation ID. + * @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> getWithResponseAsync(String location, String operationId) { + 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 (location == null) { + return Mono.error(new IllegalArgumentException("Parameter location is required and cannot be null.")); + } + if (operationId == null) { + return Mono.error(new IllegalArgumentException("Parameter operationId is required and cannot be null.")); + } + return FluxUtil + .withContext( + context -> + service + .get( + this.client.getEndpoint(), + this.client.getSubscriptionId(), + location, + operationId, + this.client.getApiVersion(), + context)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Returns operation results. + * + * @param location Azure location (region) name. + * @param operationId The Guid of the operation ID. + * @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> getWithResponseAsync(String location, String operationId, 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 (location == null) { + return Mono.error(new IllegalArgumentException("Parameter location is required and cannot be null.")); + } + if (operationId == null) { + return Mono.error(new IllegalArgumentException("Parameter operationId is required and cannot be null.")); + } + context = this.client.mergeContext(context); + return service + .get( + this.client.getEndpoint(), + this.client.getSubscriptionId(), + location, + operationId, + this.client.getApiVersion(), + context); + } + + /** + * Returns operation results. + * + * @param location Azure location (region) name. + * @param operationId The Guid of the operation ID. + * @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 getAsync(String location, String operationId) { + return getWithResponseAsync(location, operationId).flatMap((Response res) -> Mono.empty()); + } + + /** + * Returns operation results. + * + * @param location Azure location (region) name. + * @param operationId The Guid of the operation ID. + * @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 get(String location, String operationId) { + getAsync(location, operationId).block(); + } + + /** + * Returns operation results. + * + * @param location Azure location (region) name. + * @param operationId The Guid of the operation ID. + * @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}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Response getWithResponse(String location, String operationId, Context context) { + return getWithResponseAsync(location, operationId, context).block(); + } +} 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 new file mode 100644 index 000000000000..09cff38f4734 --- /dev/null +++ b/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/implementation/OperationsResultsLocationsImpl.java @@ -0,0 +1,42 @@ +// 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.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.fasterxml.jackson.annotation.JsonIgnore; + +public final class OperationsResultsLocationsImpl implements OperationsResultsLocations { + @JsonIgnore private final ClientLogger logger = new ClientLogger(OperationsResultsLocationsImpl.class); + + private final OperationsResultsLocationsClient innerClient; + + private final com.azure.resourcemanager.kusto.KustoManager serviceManager; + + public OperationsResultsLocationsImpl( + OperationsResultsLocationsClient innerClient, com.azure.resourcemanager.kusto.KustoManager serviceManager) { + this.innerClient = innerClient; + this.serviceManager = serviceManager; + } + + public void get(String location, String operationId) { + this.serviceClient().get(location, operationId); + } + + public Response getWithResponse(String location, String operationId, Context context) { + return this.serviceClient().getWithResponse(location, operationId, context); + } + + private OperationsResultsLocationsClient 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/PrivateEndpointConnectionsClientImpl.java b/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/implementation/PrivateEndpointConnectionsClientImpl.java index 2e0757f77cd5..d67b6c71f4c8 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 @@ -142,7 +142,8 @@ Mono>> delete( * @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 list of private endpoint connections. + * @return a list of private endpoint connections along with {@link PagedResponse} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listSinglePageAsync( @@ -195,7 +196,8 @@ private Mono> listSinglePageAsync( * @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 list of private endpoint connections. + * @return a list of private endpoint connections along with {@link PagedResponse} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listSinglePageAsync( @@ -244,7 +246,7 @@ private Mono> listSinglePageAsync( * @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 list of private endpoint connections. + * @return a list of private endpoint connections as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listAsync(String resourceGroupName, String clusterName) { @@ -260,7 +262,7 @@ private PagedFlux listAsync(String resourceGroup * @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 list of private endpoint connections. + * @return a list of private endpoint connections as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listAsync( @@ -276,7 +278,7 @@ private PagedFlux listAsync( * @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 list of private endpoint connections. + * @return a list of private endpoint connections as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable list(String resourceGroupName, String clusterName) { @@ -292,7 +294,7 @@ public PagedIterable list(String resourceGroupNa * @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 list of private endpoint connections. + * @return a list of private endpoint connections as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable list( @@ -309,7 +311,7 @@ public PagedIterable list( * @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 private endpoint connection. + * @return a private endpoint connection along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> getWithResponseAsync( @@ -366,7 +368,7 @@ private Mono> getWithResponseAsync( * @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 private endpoint connection. + * @return a private endpoint connection along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> getWithResponseAsync( @@ -419,7 +421,7 @@ private Mono> getWithResponseAsync( * @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 private endpoint connection. + * @return a private endpoint connection on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono getAsync( @@ -462,7 +464,7 @@ public PrivateEndpointConnectionInner get( * @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 private endpoint connection. + * @return a private endpoint connection along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) public Response getWithResponse( @@ -480,7 +482,7 @@ public Response getWithResponse( * @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 private endpoint connection. + * @return a private endpoint connection along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> createOrUpdateWithResponseAsync( @@ -547,7 +549,7 @@ private Mono>> createOrUpdateWithResponseAsync( * @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 private endpoint connection. + * @return a private endpoint connection along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> createOrUpdateWithResponseAsync( @@ -611,9 +613,9 @@ private Mono>> createOrUpdateWithResponseAsync( * @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 private endpoint connection. + * @return the {@link PollerFlux} for polling of a private endpoint connection. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, PrivateEndpointConnectionInner> beginCreateOrUpdateAsync( String resourceGroupName, @@ -629,7 +631,7 @@ private Mono>> createOrUpdateWithResponseAsync( this.client.getHttpPipeline(), PrivateEndpointConnectionInner.class, PrivateEndpointConnectionInner.class, - Context.NONE); + this.client.getContext()); } /** @@ -643,9 +645,9 @@ private Mono>> createOrUpdateWithResponseAsync( * @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 private endpoint connection. + * @return the {@link PollerFlux} for polling of a private endpoint connection. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, PrivateEndpointConnectionInner> beginCreateOrUpdateAsync( String resourceGroupName, @@ -677,9 +679,9 @@ private Mono>> createOrUpdateWithResponseAsync( * @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 private endpoint connection. + * @return the {@link SyncPoller} for polling of a private endpoint connection. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, PrivateEndpointConnectionInner> beginCreateOrUpdate( String resourceGroupName, String clusterName, @@ -700,9 +702,9 @@ public SyncPoller, PrivateEndpointCon * @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 private endpoint connection. + * @return the {@link SyncPoller} for polling of a private endpoint connection. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, PrivateEndpointConnectionInner> beginCreateOrUpdate( String resourceGroupName, String clusterName, @@ -724,7 +726,7 @@ public SyncPoller, PrivateEndpointCon * @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 private endpoint connection. + * @return a private endpoint connection on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono createOrUpdateAsync( @@ -748,7 +750,7 @@ private Mono createOrUpdateAsync( * @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 private endpoint connection. + * @return a private endpoint connection on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono createOrUpdateAsync( @@ -817,7 +819,7 @@ public PrivateEndpointConnectionInner createOrUpdate( * @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 completion. + * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> deleteWithResponseAsync( @@ -874,7 +876,7 @@ private Mono>> deleteWithResponseAsync( * @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 completion. + * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> deleteWithResponseAsync( @@ -927,16 +929,17 @@ private Mono>> deleteWithResponseAsync( * @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 completion. + * @return the {@link PollerFlux} for polling of long-running operation. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, Void> beginDeleteAsync( String resourceGroupName, String clusterName, String privateEndpointConnectionName) { Mono>> mono = deleteWithResponseAsync(resourceGroupName, clusterName, privateEndpointConnectionName); return this .client - .getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, Context.NONE); + .getLroResult( + mono, this.client.getHttpPipeline(), Void.class, Void.class, this.client.getContext()); } /** @@ -949,9 +952,9 @@ private PollerFlux, Void> beginDeleteAsync( * @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 completion. + * @return the {@link PollerFlux} for polling of long-running operation. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, Void> beginDeleteAsync( String resourceGroupName, String clusterName, String privateEndpointConnectionName, Context context) { context = this.client.mergeContext(context); @@ -971,9 +974,9 @@ private PollerFlux, Void> beginDeleteAsync( * @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 completion. + * @return the {@link SyncPoller} for polling of long-running operation. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, Void> beginDelete( String resourceGroupName, String clusterName, String privateEndpointConnectionName) { return beginDeleteAsync(resourceGroupName, clusterName, privateEndpointConnectionName).getSyncPoller(); @@ -989,9 +992,9 @@ public SyncPoller, Void> beginDelete( * @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 completion. + * @return the {@link SyncPoller} for polling of long-running operation. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, Void> beginDelete( String resourceGroupName, String clusterName, String privateEndpointConnectionName, Context context) { return beginDeleteAsync(resourceGroupName, clusterName, privateEndpointConnectionName, context).getSyncPoller(); @@ -1006,7 +1009,7 @@ public SyncPoller, Void> beginDelete( * @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 completion. + * @return A {@link Mono} that completes when a successful response is received. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono deleteAsync(String resourceGroupName, String clusterName, String privateEndpointConnectionName) { @@ -1025,7 +1028,7 @@ private Mono deleteAsync(String resourceGroupName, String clusterName, Str * @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 completion. + * @return A {@link Mono} that completes when a successful response is received. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono deleteAsync( 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 e7acbf4d39ca..f55c22e4e288 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 @@ -100,7 +100,8 @@ Mono> get( * @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 list of private link resources. + * @return a list of private link resources along with {@link PagedResponse} on successful completion of {@link + * Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listSinglePageAsync( @@ -153,7 +154,8 @@ private Mono> listSinglePageAsync( * @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 list of private link resources. + * @return a list of private link resources along with {@link PagedResponse} on successful completion of {@link + * Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listSinglePageAsync( @@ -202,7 +204,7 @@ private Mono> listSinglePageAsync( * @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 list of private link resources. + * @return a list of private link resources as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listAsync(String resourceGroupName, String clusterName) { @@ -218,7 +220,7 @@ private PagedFlux listAsync(String resourceGroupName, * @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 list of private link resources. + * @return a list of private link resources as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listAsync( @@ -234,7 +236,7 @@ private PagedFlux listAsync( * @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 list of private link resources. + * @return a list of private link resources as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable list(String resourceGroupName, String clusterName) { @@ -250,7 +252,7 @@ public PagedIterable list(String resourceGroupName, St * @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 list of private link resources. + * @return a list of private link resources as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable list(String resourceGroupName, String clusterName, Context context) { @@ -266,7 +268,7 @@ public PagedIterable list(String resourceGroupName, St * @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 private link resource. + * @return a private link resource along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> getWithResponseAsync( @@ -322,7 +324,7 @@ private Mono> getWithResponseAsync( * @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 private link resource. + * @return a private link resource along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> getWithResponseAsync( @@ -374,7 +376,7 @@ private Mono> getWithResponseAsync( * @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 private link resource. + * @return a private link resource on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono getAsync( @@ -416,7 +418,7 @@ public PrivateLinkResourceInner get(String resourceGroupName, String clusterName * @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 private link resource. + * @return a private link resource along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) public Response getWithResponse( diff --git a/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/implementation/ScriptImpl.java b/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/implementation/ScriptImpl.java index a99bc764887a..4612f114362d 100644 --- a/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/implementation/ScriptImpl.java +++ b/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/implementation/ScriptImpl.java @@ -39,6 +39,10 @@ public String scriptUrlSasToken() { return this.innerModel().scriptUrlSasToken(); } + public String scriptContent() { + return this.innerModel().scriptContent(); + } + public String forceUpdateTag() { return this.innerModel().forceUpdateTag(); } @@ -160,6 +164,11 @@ public ScriptImpl withScriptUrlSasToken(String scriptUrlSasToken) { return this; } + public ScriptImpl withScriptContent(String scriptContent) { + this.innerModel().withScriptContent(scriptContent); + return this; + } + public ScriptImpl withForceUpdateTag(String forceUpdateTag) { this.innerModel().withForceUpdateTag(forceUpdateTag); return this; 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 9887fde4305f..100a7b08709d 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 @@ -183,7 +183,8 @@ Mono> checkNameAvailability( * @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 database script operation response. + * @return the list Kusto database script operation response along with {@link PagedResponse} on successful + * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listByDatabaseSinglePageAsync( @@ -241,7 +242,8 @@ private Mono> listByDatabaseSinglePageAsync( * @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 database script operation response. + * @return the list Kusto database script operation response along with {@link PagedResponse} on successful + * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listByDatabaseSinglePageAsync( @@ -295,7 +297,7 @@ private Mono> listByDatabaseSinglePageAsync( * @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 database script operation response. + * @return the list Kusto database script operation response as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listByDatabaseAsync( @@ -313,7 +315,7 @@ private PagedFlux listByDatabaseAsync( * @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 database script operation response. + * @return the list Kusto database script operation response as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listByDatabaseAsync( @@ -331,7 +333,7 @@ private PagedFlux listByDatabaseAsync( * @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 database script operation response. + * @return the list Kusto database script operation response as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable listByDatabase( @@ -349,7 +351,7 @@ public PagedIterable listByDatabase( * @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 database script operation response. + * @return the list Kusto database script operation response as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable listByDatabase( @@ -367,7 +369,7 @@ public PagedIterable listByDatabase( * @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 Kusto cluster database script. + * @return a Kusto cluster database script along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> getWithResponseAsync( @@ -426,7 +428,7 @@ private Mono> getWithResponseAsync( * @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 Kusto cluster database script. + * @return a Kusto cluster database script along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> getWithResponseAsync( @@ -481,7 +483,7 @@ private Mono> getWithResponseAsync( * @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 Kusto cluster database script. + * @return a Kusto cluster database script on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono getAsync( @@ -525,7 +527,7 @@ public ScriptInner get(String resourceGroupName, String clusterName, String data * @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 Kusto cluster database script. + * @return a Kusto cluster database script along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) public Response getWithResponse( @@ -544,7 +546,8 @@ public Response getWithResponse( * @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 class representing a database script. + * @return class representing a database script along with {@link Response} on successful completion of {@link + * Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> createOrUpdateWithResponseAsync( @@ -610,7 +613,8 @@ private Mono>> createOrUpdateWithResponseAsync( * @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 class representing a database script. + * @return class representing a database script along with {@link Response} on successful completion of {@link + * Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> createOrUpdateWithResponseAsync( @@ -677,9 +681,9 @@ private Mono>> createOrUpdateWithResponseAsync( * @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 class representing a database script. + * @return the {@link PollerFlux} for polling of class representing a database script. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, ScriptInner> beginCreateOrUpdateAsync( String resourceGroupName, String clusterName, String databaseName, String scriptName, ScriptInner parameters) { Mono>> mono = @@ -687,7 +691,7 @@ private PollerFlux, ScriptInner> beginCreateOrUpdateAsyn return this .client .getLroResult( - mono, this.client.getHttpPipeline(), ScriptInner.class, ScriptInner.class, Context.NONE); + mono, this.client.getHttpPipeline(), ScriptInner.class, ScriptInner.class, this.client.getContext()); } /** @@ -702,9 +706,9 @@ private PollerFlux, ScriptInner> beginCreateOrUpdateAsyn * @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 class representing a database script. + * @return the {@link PollerFlux} for polling of class representing a database script. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, ScriptInner> beginCreateOrUpdateAsync( String resourceGroupName, String clusterName, @@ -733,9 +737,9 @@ private PollerFlux, ScriptInner> beginCreateOrUpdateAsyn * @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 class representing a database script. + * @return the {@link SyncPoller} for polling of class representing a database script. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, ScriptInner> beginCreateOrUpdate( String resourceGroupName, String clusterName, String databaseName, String scriptName, ScriptInner parameters) { return beginCreateOrUpdateAsync(resourceGroupName, clusterName, databaseName, scriptName, parameters) @@ -754,9 +758,9 @@ public SyncPoller, ScriptInner> beginCreateOrUpdate( * @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 class representing a database script. + * @return the {@link SyncPoller} for polling of class representing a database script. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, ScriptInner> beginCreateOrUpdate( String resourceGroupName, String clusterName, @@ -779,7 +783,7 @@ public SyncPoller, ScriptInner> beginCreateOrUpdate( * @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 class representing a database script. + * @return class representing a database script on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono createOrUpdateAsync( @@ -801,7 +805,7 @@ private Mono createOrUpdateAsync( * @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 class representing a database script. + * @return class representing a database script on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono createOrUpdateAsync( @@ -872,7 +876,8 @@ public ScriptInner createOrUpdate( * @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 class representing a database script. + * @return class representing a database script along with {@link Response} on successful completion of {@link + * Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> updateWithResponseAsync( @@ -938,7 +943,8 @@ private Mono>> updateWithResponseAsync( * @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 class representing a database script. + * @return class representing a database script along with {@link Response} on successful completion of {@link + * Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> updateWithResponseAsync( @@ -1005,9 +1011,9 @@ private Mono>> updateWithResponseAsync( * @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 class representing a database script. + * @return the {@link PollerFlux} for polling of class representing a database script. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, ScriptInner> beginUpdateAsync( String resourceGroupName, String clusterName, String databaseName, String scriptName, ScriptInner parameters) { Mono>> mono = @@ -1015,7 +1021,7 @@ private PollerFlux, ScriptInner> beginUpdateAsync( return this .client .getLroResult( - mono, this.client.getHttpPipeline(), ScriptInner.class, ScriptInner.class, Context.NONE); + mono, this.client.getHttpPipeline(), ScriptInner.class, ScriptInner.class, this.client.getContext()); } /** @@ -1030,9 +1036,9 @@ private PollerFlux, ScriptInner> beginUpdateAsync( * @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 class representing a database script. + * @return the {@link PollerFlux} for polling of class representing a database script. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, ScriptInner> beginUpdateAsync( String resourceGroupName, String clusterName, @@ -1060,9 +1066,9 @@ private PollerFlux, ScriptInner> beginUpdateAsync( * @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 class representing a database script. + * @return the {@link SyncPoller} for polling of class representing a database script. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, ScriptInner> beginUpdate( String resourceGroupName, String clusterName, String databaseName, String scriptName, ScriptInner parameters) { return beginUpdateAsync(resourceGroupName, clusterName, databaseName, scriptName, parameters).getSyncPoller(); @@ -1080,9 +1086,9 @@ public SyncPoller, ScriptInner> beginUpdate( * @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 class representing a database script. + * @return the {@link SyncPoller} for polling of class representing a database script. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, ScriptInner> beginUpdate( String resourceGroupName, String clusterName, @@ -1105,7 +1111,7 @@ public SyncPoller, ScriptInner> beginUpdate( * @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 class representing a database script. + * @return class representing a database script on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono updateAsync( @@ -1127,7 +1133,7 @@ private Mono updateAsync( * @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 class representing a database script. + * @return class representing a database script on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono updateAsync( @@ -1196,7 +1202,7 @@ public ScriptInner update( * @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 completion. + * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> deleteWithResponseAsync( @@ -1255,7 +1261,7 @@ private Mono>> deleteWithResponseAsync( * @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 completion. + * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> deleteWithResponseAsync( @@ -1310,16 +1316,17 @@ private Mono>> deleteWithResponseAsync( * @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 completion. + * @return the {@link PollerFlux} for polling of long-running operation. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, Void> beginDeleteAsync( String resourceGroupName, String clusterName, String databaseName, String scriptName) { Mono>> mono = deleteWithResponseAsync(resourceGroupName, clusterName, databaseName, scriptName); return this .client - .getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, Context.NONE); + .getLroResult( + mono, this.client.getHttpPipeline(), Void.class, Void.class, this.client.getContext()); } /** @@ -1333,9 +1340,9 @@ private PollerFlux, Void> beginDeleteAsync( * @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 completion. + * @return the {@link PollerFlux} for polling of long-running operation. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, Void> beginDeleteAsync( String resourceGroupName, String clusterName, String databaseName, String scriptName, Context context) { context = this.client.mergeContext(context); @@ -1356,9 +1363,9 @@ private PollerFlux, Void> beginDeleteAsync( * @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 completion. + * @return the {@link SyncPoller} for polling of long-running operation. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, Void> beginDelete( String resourceGroupName, String clusterName, String databaseName, String scriptName) { return beginDeleteAsync(resourceGroupName, clusterName, databaseName, scriptName).getSyncPoller(); @@ -1375,9 +1382,9 @@ public SyncPoller, Void> beginDelete( * @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 completion. + * @return the {@link SyncPoller} for polling of long-running operation. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, Void> beginDelete( String resourceGroupName, String clusterName, String databaseName, String scriptName, Context context) { return beginDeleteAsync(resourceGroupName, clusterName, databaseName, scriptName, context).getSyncPoller(); @@ -1393,7 +1400,7 @@ public SyncPoller, Void> beginDelete( * @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 completion. + * @return A {@link Mono} that completes when a successful response is received. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono deleteAsync( @@ -1414,7 +1421,7 @@ private Mono deleteAsync( * @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 completion. + * @return A {@link Mono} that completes when a successful response is received. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono deleteAsync( @@ -1468,7 +1475,8 @@ public void delete( * @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 check name availability request. + * @return the result returned from a check name availability request along with {@link Response} on successful + * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> checkNameAvailabilityWithResponseAsync( @@ -1529,7 +1537,8 @@ private Mono> checkNameAvailabilityWithResponseAs * @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 check name availability request. + * @return the result returned from a check name availability request along with {@link Response} on successful + * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> checkNameAvailabilityWithResponseAsync( @@ -1590,7 +1599,7 @@ private Mono> checkNameAvailabilityWithResponseAs * @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 check name availability request. + * @return the result returned from a check name availability request on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono checkNameAvailabilityAsync( @@ -1635,7 +1644,7 @@ public CheckNameResultInner checkNameAvailability( * @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 check name availability request. + * @return the result returned from a check name availability request along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) public Response checkNameAvailabilityWithResponse( 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 1685cda3865a..70d89c4b6559 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 @@ -34,7 +34,7 @@ CheckNameResult checkNameAvailability( * @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 check name availability request. + * @return the result returned from a check name availability request along with {@link Response}. */ Response checkNameAvailabilityWithResponse( String resourceGroupName, @@ -50,7 +50,8 @@ Response checkNameAvailabilityWithResponse( * @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 attached database configurations operation response. + * @return the list attached database configurations operation response as paginated response with {@link + * PagedIterable}. */ PagedIterable listByCluster(String resourceGroupName, String clusterName); @@ -63,7 +64,8 @@ Response checkNameAvailabilityWithResponse( * @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 attached database configurations operation response. + * @return the list attached database configurations operation response as paginated response with {@link + * PagedIterable}. */ PagedIterable listByCluster( String resourceGroupName, String clusterName, Context context); @@ -92,7 +94,7 @@ AttachedDatabaseConfiguration get( * @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 class representing an attached database configuration. + * @return class representing an attached database configuration along with {@link Response}. */ Response getWithResponse( String resourceGroupName, String clusterName, String attachedDatabaseConfigurationName, Context context); @@ -130,7 +132,7 @@ void delete( * @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 class representing an attached database configuration. + * @return class representing an attached database configuration along with {@link Response}. */ AttachedDatabaseConfiguration getById(String id); @@ -142,7 +144,7 @@ void delete( * @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 class representing an attached database configuration. + * @return class representing an attached database configuration along with {@link Response}. */ Response getByIdWithResponse(String id, Context context); diff --git a/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/models/AttachedDatabaseConfigurationsCheckNameRequest.java b/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/models/AttachedDatabaseConfigurationsCheckNameRequest.java index 35495f219fb8..6b6d24607ec0 100644 --- a/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/models/AttachedDatabaseConfigurationsCheckNameRequest.java +++ b/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/models/AttachedDatabaseConfigurationsCheckNameRequest.java @@ -26,7 +26,7 @@ public final class AttachedDatabaseConfigurationsCheckNameRequest { * Microsoft.Kusto/clusters/attachedDatabaseConfigurations. */ @JsonProperty(value = "type", required = true) - private String type; + private String type = "Microsoft.Kusto/clusters/attachedDatabaseConfigurations"; /** Creates an instance of AttachedDatabaseConfigurationsCheckNameRequest class. */ public AttachedDatabaseConfigurationsCheckNameRequest() { diff --git a/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/models/AzureSkuName.java b/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/models/AzureSkuName.java index 3ca4104b5ca6..eb0f5ce2aed7 100644 --- a/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/models/AzureSkuName.java +++ b/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/models/AzureSkuName.java @@ -10,6 +10,33 @@ /** Defines values for AzureSkuName. */ public final class AzureSkuName extends ExpandableStringEnum { + /** Static value Dev(No SLA)_Standard_D11_v2 for AzureSkuName. */ + public static final AzureSkuName DEV_NO_SLA_STANDARD_D11_V2 = fromString("Dev(No SLA)_Standard_D11_v2"); + + /** Static value Dev(No SLA)_Standard_E2a_v4 for AzureSkuName. */ + public static final AzureSkuName DEV_NO_SLA_STANDARD_E2A_V4 = fromString("Dev(No SLA)_Standard_E2a_v4"); + + /** Static value Standard_D11_v2 for AzureSkuName. */ + public static final AzureSkuName STANDARD_D11_V2 = fromString("Standard_D11_v2"); + + /** Static value Standard_D12_v2 for AzureSkuName. */ + public static final AzureSkuName STANDARD_D12_V2 = fromString("Standard_D12_v2"); + + /** Static value Standard_D13_v2 for AzureSkuName. */ + public static final AzureSkuName STANDARD_D13_V2 = fromString("Standard_D13_v2"); + + /** Static value Standard_D14_v2 for AzureSkuName. */ + public static final AzureSkuName STANDARD_D14_V2 = fromString("Standard_D14_v2"); + + /** Static value Standard_D32d_v4 for AzureSkuName. */ + public static final AzureSkuName STANDARD_D32D_V4 = fromString("Standard_D32d_v4"); + + /** Static value Standard_D16d_v5 for AzureSkuName. */ + public static final AzureSkuName STANDARD_D16D_V5 = fromString("Standard_D16d_v5"); + + /** Static value Standard_D32d_v5 for AzureSkuName. */ + public static final AzureSkuName STANDARD_D32D_V5 = fromString("Standard_D32d_v5"); + /** Static value Standard_DS13_v2+1TB_PS for AzureSkuName. */ public static final AzureSkuName STANDARD_DS13_V2_1TB_PS = fromString("Standard_DS13_v2+1TB_PS"); @@ -22,11 +49,8 @@ public final class AzureSkuName extends ExpandableStringEnum { /** Static value Standard_DS14_v2+4TB_PS for AzureSkuName. */ public static final AzureSkuName STANDARD_DS14_V2_4TB_PS = fromString("Standard_DS14_v2+4TB_PS"); - /** Static value Standard_D13_v2 for AzureSkuName. */ - public static final AzureSkuName STANDARD_D13_V2 = fromString("Standard_D13_v2"); - - /** Static value Standard_D14_v2 for AzureSkuName. */ - public static final AzureSkuName STANDARD_D14_V2 = fromString("Standard_D14_v2"); + /** Static value Standard_L4s for AzureSkuName. */ + public static final AzureSkuName STANDARD_L4S = fromString("Standard_L4s"); /** Static value Standard_L8s for AzureSkuName. */ public static final AzureSkuName STANDARD_L8S = fromString("Standard_L8s"); @@ -40,18 +64,6 @@ public final class AzureSkuName extends ExpandableStringEnum { /** Static value Standard_L16s_v2 for AzureSkuName. */ public static final AzureSkuName STANDARD_L16S_V2 = fromString("Standard_L16s_v2"); - /** Static value Standard_D11_v2 for AzureSkuName. */ - public static final AzureSkuName STANDARD_D11_V2 = fromString("Standard_D11_v2"); - - /** Static value Standard_D12_v2 for AzureSkuName. */ - public static final AzureSkuName STANDARD_D12_V2 = fromString("Standard_D12_v2"); - - /** Static value Standard_L4s for AzureSkuName. */ - public static final AzureSkuName STANDARD_L4S = fromString("Standard_L4s"); - - /** Static value Dev(No SLA)_Standard_D11_v2 for AzureSkuName. */ - public static final AzureSkuName DEV_NO_SLA_STANDARD_D11_V2 = fromString("Dev(No SLA)_Standard_D11_v2"); - /** Static value Standard_E64i_v3 for AzureSkuName. */ public static final AzureSkuName STANDARD_E64I_V3 = fromString("Standard_E64i_v3"); @@ -82,8 +94,53 @@ public final class AzureSkuName extends ExpandableStringEnum { /** Static value Standard_E16as_v4+4TB_PS for AzureSkuName. */ public static final AzureSkuName STANDARD_E16AS_V4_4TB_PS = fromString("Standard_E16as_v4+4TB_PS"); - /** Static value Dev(No SLA)_Standard_E2a_v4 for AzureSkuName. */ - public static final AzureSkuName DEV_NO_SLA_STANDARD_E2A_V4 = fromString("Dev(No SLA)_Standard_E2a_v4"); + /** Static value Standard_E8as_v5+1TB_PS for AzureSkuName. */ + public static final AzureSkuName STANDARD_E8AS_V5_1TB_PS = fromString("Standard_E8as_v5+1TB_PS"); + + /** Static value Standard_E8as_v5+2TB_PS for AzureSkuName. */ + public static final AzureSkuName STANDARD_E8AS_V5_2TB_PS = fromString("Standard_E8as_v5+2TB_PS"); + + /** Static value Standard_E16as_v5+3TB_PS for AzureSkuName. */ + public static final AzureSkuName STANDARD_E16AS_V5_3TB_PS = fromString("Standard_E16as_v5+3TB_PS"); + + /** Static value Standard_E16as_v5+4TB_PS for AzureSkuName. */ + public static final AzureSkuName STANDARD_E16AS_V5_4TB_PS = fromString("Standard_E16as_v5+4TB_PS"); + + /** Static value Standard_E2ads_v5 for AzureSkuName. */ + public static final AzureSkuName STANDARD_E2ADS_V5 = fromString("Standard_E2ads_v5"); + + /** Static value Standard_E4ads_v5 for AzureSkuName. */ + public static final AzureSkuName STANDARD_E4ADS_V5 = fromString("Standard_E4ads_v5"); + + /** Static value Standard_E8ads_v5 for AzureSkuName. */ + public static final AzureSkuName STANDARD_E8ADS_V5 = fromString("Standard_E8ads_v5"); + + /** Static value Standard_E16ads_v5 for AzureSkuName. */ + public static final AzureSkuName STANDARD_E16ADS_V5 = fromString("Standard_E16ads_v5"); + + /** Static value Standard_E8s_v4+1TB_PS for AzureSkuName. */ + public static final AzureSkuName STANDARD_E8S_V4_1TB_PS = fromString("Standard_E8s_v4+1TB_PS"); + + /** Static value Standard_E8s_v4+2TB_PS for AzureSkuName. */ + public static final AzureSkuName STANDARD_E8S_V4_2TB_PS = fromString("Standard_E8s_v4+2TB_PS"); + + /** Static value Standard_E16s_v4+3TB_PS for AzureSkuName. */ + public static final AzureSkuName STANDARD_E16S_V4_3TB_PS = fromString("Standard_E16s_v4+3TB_PS"); + + /** Static value Standard_E16s_v4+4TB_PS for AzureSkuName. */ + public static final AzureSkuName STANDARD_E16S_V4_4TB_PS = fromString("Standard_E16s_v4+4TB_PS"); + + /** Static value Standard_E8s_v5+1TB_PS for AzureSkuName. */ + public static final AzureSkuName STANDARD_E8S_V5_1TB_PS = fromString("Standard_E8s_v5+1TB_PS"); + + /** Static value Standard_E8s_v5+2TB_PS for AzureSkuName. */ + public static final AzureSkuName STANDARD_E8S_V5_2TB_PS = fromString("Standard_E8s_v5+2TB_PS"); + + /** Static value Standard_E16s_v5+3TB_PS for AzureSkuName. */ + public static final AzureSkuName STANDARD_E16S_V5_3TB_PS = fromString("Standard_E16s_v5+3TB_PS"); + + /** Static value Standard_E16s_v5+4TB_PS for AzureSkuName. */ + public static final AzureSkuName STANDARD_E16S_V5_4TB_PS = fromString("Standard_E16s_v5+4TB_PS"); /** * Creates or finds a AzureSkuName from its string representation. 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 0e205adb7680..54aff8e2ceaf 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 @@ -235,6 +235,28 @@ public interface Cluster { */ List allowedFqdnList(); + /** + * Gets the publicIpType property: Indicates what public IP type to create - IPv4 (default), or DualStack (both IPv4 + * and IPv6). + * + * @return the publicIpType value. + */ + PublicIpType publicIpType(); + + /** + * Gets the virtualClusterGraduationProperties property: Virtual Cluster graduation properties. + * + * @return the virtualClusterGraduationProperties value. + */ + String virtualClusterGraduationProperties(); + + /** + * Gets the privateEndpointConnections property: A list of private endpoint connections. + * + * @return the privateEndpointConnections value. + */ + List privateEndpointConnections(); + /** * Gets the region of the resource. * @@ -330,6 +352,8 @@ interface WithCreate DefinitionStages.WithEnableAutoStop, DefinitionStages.WithRestrictOutboundNetworkAccess, DefinitionStages.WithAllowedFqdnList, + DefinitionStages.WithPublicIpType, + DefinitionStages.WithVirtualClusterGraduationProperties, DefinitionStages.WithIfMatch, DefinitionStages.WithIfNoneMatch { /** @@ -538,6 +562,28 @@ interface WithAllowedFqdnList { */ WithCreate withAllowedFqdnList(List allowedFqdnList); } + /** The stage of the Cluster definition allowing to specify publicIpType. */ + interface WithPublicIpType { + /** + * Specifies the publicIpType property: Indicates what public IP type to create - IPv4 (default), or + * DualStack (both IPv4 and IPv6). + * + * @param publicIpType Indicates what public IP type to create - IPv4 (default), or DualStack (both IPv4 and + * IPv6). + * @return the next definition stage. + */ + WithCreate withPublicIpType(PublicIpType publicIpType); + } + /** The stage of the Cluster definition allowing to specify virtualClusterGraduationProperties. */ + interface WithVirtualClusterGraduationProperties { + /** + * Specifies the virtualClusterGraduationProperties property: Virtual Cluster graduation properties. + * + * @param virtualClusterGraduationProperties Virtual Cluster graduation properties. + * @return the next definition stage. + */ + WithCreate withVirtualClusterGraduationProperties(String virtualClusterGraduationProperties); + } /** The stage of the Cluster definition allowing to specify ifMatch. */ interface WithIfMatch { /** @@ -590,6 +636,7 @@ interface Update UpdateStages.WithEnableAutoStop, UpdateStages.WithRestrictOutboundNetworkAccess, UpdateStages.WithAllowedFqdnList, + UpdateStages.WithPublicIpType, UpdateStages.WithIfMatch { /** * Executes the update request. @@ -799,6 +846,18 @@ interface WithAllowedFqdnList { */ Update withAllowedFqdnList(List allowedFqdnList); } + /** The stage of the Cluster update allowing to specify publicIpType. */ + interface WithPublicIpType { + /** + * Specifies the publicIpType property: Indicates what public IP type to create - IPv4 (default), or + * DualStack (both IPv4 and IPv6). + * + * @param publicIpType Indicates what public IP type to create - IPv4 (default), or DualStack (both IPv4 and + * IPv6). + * @return the next definition stage. + */ + Update withPublicIpType(PublicIpType publicIpType); + } /** The stage of the Cluster update allowing to specify ifMatch. */ interface WithIfMatch { /** @@ -868,7 +927,7 @@ interface WithIfMatch { * * @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 database principals operation response. + * @return the list Kusto database principals operation response as paginated response with {@link PagedIterable}. */ PagedIterable listFollowerDatabases(); @@ -879,7 +938,7 @@ interface WithIfMatch { * @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 database principals operation response. + * @return the list Kusto database principals operation response as paginated response with {@link PagedIterable}. */ PagedIterable listFollowerDatabases(Context context); @@ -929,7 +988,7 @@ interface WithIfMatch { * * @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 of language extension objects. + * @return the list of language extension objects as paginated response with {@link PagedIterable}. */ PagedIterable listLanguageExtensions(); @@ -940,7 +999,7 @@ interface WithIfMatch { * @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 of language extension objects. + * @return the list of language extension objects as paginated response with {@link PagedIterable}. */ PagedIterable listLanguageExtensions(Context context); diff --git a/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/models/ClusterCheckNameRequest.java b/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/models/ClusterCheckNameRequest.java index fd0734d7cebe..8a4ed061419a 100644 --- a/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/models/ClusterCheckNameRequest.java +++ b/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/models/ClusterCheckNameRequest.java @@ -24,7 +24,7 @@ public final class ClusterCheckNameRequest { * The type of resource, Microsoft.Kusto/clusters. */ @JsonProperty(value = "type", required = true) - private String type; + private String type = "Microsoft.Kusto/clusters"; /** Creates an instance of ClusterCheckNameRequest class. */ public ClusterCheckNameRequest() { 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 d8644c459556..ce305efc5a55 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 @@ -80,6 +80,13 @@ public interface ClusterPrincipalAssignment { */ ProvisioningState provisioningState(); + /** + * Gets the aadObjectId property: The service principal object id in AAD (Azure active directory). + * + * @return the aadObjectId value. + */ + String aadObjectId(); + /** * Gets the inner com.azure.resourcemanager.kusto.fluent.models.ClusterPrincipalAssignmentInner object. * diff --git a/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/models/ClusterPrincipalAssignmentCheckNameRequest.java b/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/models/ClusterPrincipalAssignmentCheckNameRequest.java index 9b558a139561..541c434a9cd0 100644 --- a/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/models/ClusterPrincipalAssignmentCheckNameRequest.java +++ b/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/models/ClusterPrincipalAssignmentCheckNameRequest.java @@ -24,7 +24,7 @@ public final class ClusterPrincipalAssignmentCheckNameRequest { * The type of resource, Microsoft.Kusto/clusters/principalAssignments. */ @JsonProperty(value = "type", required = true) - private String type; + private String type = "Microsoft.Kusto/clusters/principalAssignments"; /** Creates an instance of ClusterPrincipalAssignmentCheckNameRequest class. */ public ClusterPrincipalAssignmentCheckNameRequest() { 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 0767f9399fee..516d60f66c00 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 @@ -36,7 +36,7 @@ CheckNameResult checkNameAvailability( * @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 check name availability request. + * @return the result returned from a check name availability request along with {@link Response}. */ Response checkNameAvailabilityWithResponse( String resourceGroupName, @@ -67,7 +67,7 @@ Response checkNameAvailabilityWithResponse( * @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 a Kusto cluster principalAssignment. + * @return a Kusto cluster principalAssignment along with {@link Response}. */ Response getWithResponse( String resourceGroupName, String clusterName, String principalAssignmentName, Context context); @@ -105,7 +105,8 @@ Response getWithResponse( * @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 cluster principal assignments operation response. + * @return the list Kusto cluster principal assignments operation response as paginated response with {@link + * PagedIterable}. */ PagedIterable list(String resourceGroupName, String clusterName); @@ -118,7 +119,8 @@ Response getWithResponse( * @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 cluster principal assignments operation response. + * @return the list Kusto cluster principal assignments operation response as paginated response with {@link + * PagedIterable}. */ PagedIterable list(String resourceGroupName, String clusterName, Context context); @@ -129,7 +131,7 @@ Response getWithResponse( * @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 a Kusto cluster principalAssignment. + * @return a Kusto cluster principalAssignment along with {@link Response}. */ ClusterPrincipalAssignment getById(String id); @@ -141,7 +143,7 @@ Response getWithResponse( * @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 a Kusto cluster principalAssignment. + * @return a Kusto cluster principalAssignment along with {@link Response}. */ Response getByIdWithResponse(String id, Context context); 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 80e2bbe39ca2..1c93726a58c3 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 @@ -8,6 +8,7 @@ import com.azure.core.management.ProxyResource; import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.kusto.fluent.models.ClusterProperties; +import com.azure.resourcemanager.kusto.fluent.models.PrivateEndpointConnectionInner; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; @@ -544,6 +545,63 @@ public ClusterUpdate withAllowedFqdnList(List allowedFqdnList) { return this; } + /** + * Get the publicIpType property: Indicates what public IP type to create - IPv4 (default), or DualStack (both IPv4 + * and IPv6). + * + * @return the publicIpType value. + */ + public PublicIpType publicIpType() { + return this.innerProperties() == null ? null : this.innerProperties().publicIpType(); + } + + /** + * Set the publicIpType property: Indicates what public IP type to create - IPv4 (default), or DualStack (both IPv4 + * and IPv6). + * + * @param publicIpType the publicIpType value to set. + * @return the ClusterUpdate object itself. + */ + public ClusterUpdate withPublicIpType(PublicIpType publicIpType) { + if (this.innerProperties() == null) { + this.innerProperties = new ClusterProperties(); + } + this.innerProperties().withPublicIpType(publicIpType); + return this; + } + + /** + * Get the virtualClusterGraduationProperties property: Virtual Cluster graduation properties. + * + * @return the virtualClusterGraduationProperties value. + */ + public String virtualClusterGraduationProperties() { + return this.innerProperties() == null ? null : this.innerProperties().virtualClusterGraduationProperties(); + } + + /** + * Set the virtualClusterGraduationProperties property: Virtual Cluster graduation properties. + * + * @param virtualClusterGraduationProperties the virtualClusterGraduationProperties value to set. + * @return the ClusterUpdate object itself. + */ + public ClusterUpdate withVirtualClusterGraduationProperties(String virtualClusterGraduationProperties) { + if (this.innerProperties() == null) { + this.innerProperties = new ClusterProperties(); + } + this.innerProperties().withVirtualClusterGraduationProperties(virtualClusterGraduationProperties); + return this; + } + + /** + * Get the privateEndpointConnections property: A list of private endpoint connections. + * + * @return the privateEndpointConnections value. + */ + public List privateEndpointConnections() { + return this.innerProperties() == null ? null : this.innerProperties().privateEndpointConnections(); + } + /** * 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 a2941b910fba..84afea23e6cb 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 @@ -32,7 +32,7 @@ public interface Clusters { * @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 a Kusto cluster. + * @return a Kusto cluster along with {@link Response}. */ Response getByResourceGroupWithResponse(String resourceGroupName, String clusterName, Context context); @@ -113,7 +113,7 @@ public interface Clusters { * @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 database principals operation response. + * @return the list Kusto database principals operation response as paginated response with {@link PagedIterable}. */ PagedIterable listFollowerDatabases(String resourceGroupName, String clusterName); @@ -126,7 +126,7 @@ public interface Clusters { * @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 database principals operation response. + * @return the list Kusto database principals operation response as paginated response with {@link PagedIterable}. */ PagedIterable listFollowerDatabases( String resourceGroupName, String clusterName, Context context); @@ -193,7 +193,7 @@ void detachFollowerDatabases( * @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 clusters operation response. + * @return the list Kusto clusters operation response as paginated response with {@link PagedIterable}. */ PagedIterable listByResourceGroup(String resourceGroupName); @@ -205,7 +205,7 @@ void detachFollowerDatabases( * @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 clusters operation response. + * @return the list Kusto clusters operation response as paginated response with {@link PagedIterable}. */ PagedIterable listByResourceGroup(String resourceGroupName, Context context); @@ -214,7 +214,7 @@ void detachFollowerDatabases( * * @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 clusters operation response. + * @return the list Kusto clusters operation response as paginated response with {@link PagedIterable}. */ PagedIterable list(); @@ -225,7 +225,7 @@ void detachFollowerDatabases( * @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 clusters operation response. + * @return the list Kusto clusters operation response as paginated response with {@link PagedIterable}. */ PagedIterable list(Context context); @@ -234,7 +234,7 @@ void detachFollowerDatabases( * * @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 of the EngagementFabric SKU descriptions. + * @return the list of the EngagementFabric SKU descriptions as paginated response with {@link PagedIterable}. */ PagedIterable listSkus(); @@ -245,7 +245,7 @@ void detachFollowerDatabases( * @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 of the EngagementFabric SKU descriptions. + * @return the list of the EngagementFabric SKU descriptions as paginated response with {@link PagedIterable}. */ PagedIterable listSkus(Context context); @@ -270,7 +270,7 @@ void detachFollowerDatabases( * @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 check name availability request. + * @return the result returned from a check name availability request along with {@link Response}. */ Response checkNameAvailabilityWithResponse( String location, ClusterCheckNameRequest clusterName, Context context); @@ -283,7 +283,7 @@ Response checkNameAvailabilityWithResponse( * @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 list of available SKUs for a Kusto Cluster. + * @return list of available SKUs for a Kusto Cluster as paginated response with {@link PagedIterable}. */ PagedIterable listSkusByResource(String resourceGroupName, String clusterName); @@ -296,7 +296,7 @@ Response checkNameAvailabilityWithResponse( * @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 list of available SKUs for a Kusto Cluster. + * @return list of available SKUs for a Kusto Cluster as paginated response with {@link PagedIterable}. */ PagedIterable listSkusByResource(String resourceGroupName, String clusterName, Context context); @@ -308,7 +308,8 @@ Response checkNameAvailabilityWithResponse( * @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 network endpoints of all outbound dependencies of a Kusto cluster. + * @return the network endpoints of all outbound dependencies of a Kusto cluster as paginated response with {@link + * PagedIterable}. */ PagedIterable listOutboundNetworkDependenciesEndpoints( String resourceGroupName, String clusterName); @@ -322,7 +323,8 @@ PagedIterable listOutboundNetworkDependenci * @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 network endpoints of all outbound dependencies of a Kusto cluster. + * @return the network endpoints of all outbound dependencies of a Kusto cluster as paginated response with {@link + * PagedIterable}. */ PagedIterable listOutboundNetworkDependenciesEndpoints( String resourceGroupName, String clusterName, Context context); @@ -335,7 +337,7 @@ PagedIterable listOutboundNetworkDependenci * @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 of language extension objects. + * @return the list of language extension objects as paginated response with {@link PagedIterable}. */ PagedIterable listLanguageExtensions(String resourceGroupName, String clusterName); @@ -348,7 +350,7 @@ PagedIterable listOutboundNetworkDependenci * @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 of language extension objects. + * @return the list of language extension objects as paginated response with {@link PagedIterable}. */ PagedIterable listLanguageExtensions( String resourceGroupName, String clusterName, Context context); @@ -417,7 +419,7 @@ void removeLanguageExtensions( * @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 a Kusto cluster. + * @return a Kusto cluster along with {@link Response}. */ Cluster getById(String id); @@ -429,7 +431,7 @@ void removeLanguageExtensions( * @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 a Kusto cluster. + * @return a Kusto cluster along with {@link Response}. */ Response getByIdWithResponse(String id, Context context); diff --git a/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/models/ClustersUpdateHeaders.java b/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/models/ClustersUpdateHeaders.java new file mode 100644 index 000000000000..8b2c6f86aa60 --- /dev/null +++ b/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/models/ClustersUpdateHeaders.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.models; + +import com.azure.core.annotation.Fluent; +import com.azure.core.util.logging.ClientLogger; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** The ClustersUpdateHeaders model. */ +@Fluent +public final class ClustersUpdateHeaders { + @JsonIgnore private final ClientLogger logger = new ClientLogger(ClustersUpdateHeaders.class); + + /* + * The Azure-AsyncOperation property. + */ + @JsonProperty(value = "Azure-AsyncOperation") + private String azureAsyncOperation; + + /** + * 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 ClustersUpdateHeaders object itself. + */ + public ClustersUpdateHeaders 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/ClustersUpdateResponse.java b/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/models/ClustersUpdateResponse.java new file mode 100644 index 000000000000..83b661bd5576 --- /dev/null +++ b/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/models/ClustersUpdateResponse.java @@ -0,0 +1,37 @@ +// 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; +import com.azure.resourcemanager.kusto.fluent.models.ClusterInner; + +/** Contains all response data for the update operation. */ +public final class ClustersUpdateResponse extends ResponseBase { + /** + * Creates an instance of ClustersUpdateResponse. + * + * @param request the request which resulted in this ClustersUpdateResponse. + * @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 ClustersUpdateResponse( + HttpRequest request, + int statusCode, + HttpHeaders rawHeaders, + ClusterInner value, + ClustersUpdateHeaders headers) { + super(request, statusCode, rawHeaders, value, headers); + } + + /** @return the deserialized response body. */ + @Override + public ClusterInner getValue() { + return super.getValue(); + } +} diff --git a/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/models/DataConnectionCheckNameRequest.java b/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/models/DataConnectionCheckNameRequest.java index fa24170e0490..5547cb269063 100644 --- a/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/models/DataConnectionCheckNameRequest.java +++ b/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/models/DataConnectionCheckNameRequest.java @@ -25,7 +25,7 @@ public final class DataConnectionCheckNameRequest { * Microsoft.Kusto/clusters/databases/dataConnections. */ @JsonProperty(value = "type", required = true) - private String type; + private String type = "Microsoft.Kusto/clusters/databases/dataConnections"; /** Creates an instance of DataConnectionCheckNameRequest class. */ public DataConnectionCheckNameRequest() { 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 41e255376f1f..b60b607ac375 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 @@ -21,7 +21,7 @@ public interface DataConnections { * @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 data connections operation response. + * @return the list Kusto data connections operation response as paginated response with {@link PagedIterable}. */ PagedIterable listByDatabase(String resourceGroupName, String clusterName, String databaseName); @@ -35,7 +35,7 @@ public interface DataConnections { * @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 data connections operation response. + * @return the list Kusto data connections operation response as paginated response with {@link PagedIterable}. */ PagedIterable listByDatabase( String resourceGroupName, String clusterName, String databaseName, Context context); @@ -104,7 +104,7 @@ CheckNameResult checkNameAvailability( * @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 check name availability request. + * @return the result returned from a check name availability request along with {@link Response}. */ Response checkNameAvailabilityWithResponse( String resourceGroupName, @@ -138,7 +138,7 @@ Response checkNameAvailabilityWithResponse( * @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 class representing an data connection. + * @return class representing an data connection along with {@link Response}. */ Response getWithResponse( String resourceGroupName, String clusterName, String databaseName, String dataConnectionName, Context context); diff --git a/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/models/DataConnectionsUpdateHeaders.java b/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/models/DataConnectionsUpdateHeaders.java new file mode 100644 index 000000000000..40e8c2dd1aa2 --- /dev/null +++ b/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/models/DataConnectionsUpdateHeaders.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.models; + +import com.azure.core.annotation.Fluent; +import com.azure.core.util.logging.ClientLogger; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** The DataConnectionsUpdateHeaders model. */ +@Fluent +public final class DataConnectionsUpdateHeaders { + @JsonIgnore private final ClientLogger logger = new ClientLogger(DataConnectionsUpdateHeaders.class); + + /* + * The Azure-AsyncOperation property. + */ + @JsonProperty(value = "Azure-AsyncOperation") + private String azureAsyncOperation; + + /** + * 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 DataConnectionsUpdateHeaders object itself. + */ + public DataConnectionsUpdateHeaders 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/DataConnectionsUpdateResponse.java b/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/models/DataConnectionsUpdateResponse.java new file mode 100644 index 000000000000..ace38b5ad10d --- /dev/null +++ b/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/models/DataConnectionsUpdateResponse.java @@ -0,0 +1,38 @@ +// 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; +import com.azure.resourcemanager.kusto.fluent.models.DataConnectionInner; + +/** Contains all response data for the update operation. */ +public final class DataConnectionsUpdateResponse + extends ResponseBase { + /** + * Creates an instance of DataConnectionsUpdateResponse. + * + * @param request the request which resulted in this DataConnectionsUpdateResponse. + * @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 DataConnectionsUpdateResponse( + HttpRequest request, + int statusCode, + HttpHeaders rawHeaders, + DataConnectionInner value, + DataConnectionsUpdateHeaders headers) { + super(request, statusCode, rawHeaders, value, headers); + } + + /** @return the deserialized response body. */ + @Override + public DataConnectionInner getValue() { + return super.getValue(); + } +} 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 1feb2533bd43..2116085165ea 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 @@ -80,6 +80,13 @@ public interface DatabasePrincipalAssignment { */ ProvisioningState provisioningState(); + /** + * Gets the aadObjectId property: The service principal object id in AAD (Azure active directory). + * + * @return the aadObjectId value. + */ + String aadObjectId(); + /** * Gets the inner com.azure.resourcemanager.kusto.fluent.models.DatabasePrincipalAssignmentInner object. * diff --git a/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/models/DatabasePrincipalAssignmentCheckNameRequest.java b/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/models/DatabasePrincipalAssignmentCheckNameRequest.java index 786a11f2d2b4..d32142c88594 100644 --- a/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/models/DatabasePrincipalAssignmentCheckNameRequest.java +++ b/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/models/DatabasePrincipalAssignmentCheckNameRequest.java @@ -25,7 +25,7 @@ public final class DatabasePrincipalAssignmentCheckNameRequest { * Microsoft.Kusto/clusters/databases/principalAssignments. */ @JsonProperty(value = "type", required = true) - private String type; + private String type = "Microsoft.Kusto/clusters/databases/principalAssignments"; /** Creates an instance of DatabasePrincipalAssignmentCheckNameRequest class. */ public DatabasePrincipalAssignmentCheckNameRequest() { 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 b9afe30f56b6..eaa626882a34 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 @@ -39,7 +39,7 @@ CheckNameResult checkNameAvailability( * @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 check name availability request. + * @return the result returned from a check name availability request along with {@link Response}. */ Response checkNameAvailabilityWithResponse( String resourceGroupName, @@ -74,7 +74,7 @@ DatabasePrincipalAssignment get( * @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 a Kusto cluster database principalAssignment. + * @return a Kusto cluster database principalAssignment along with {@link Response}. */ Response getWithResponse( String resourceGroupName, @@ -124,7 +124,8 @@ void delete( * @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 database principal assignments operation response. + * @return the list Kusto database principal assignments operation response as paginated response with {@link + * PagedIterable}. */ PagedIterable list(String resourceGroupName, String clusterName, String databaseName); @@ -138,7 +139,8 @@ void delete( * @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 database principal assignments operation response. + * @return the list Kusto database principal assignments operation response as paginated response with {@link + * PagedIterable}. */ PagedIterable list( String resourceGroupName, String clusterName, String databaseName, Context context); @@ -150,7 +152,7 @@ PagedIterable list( * @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 a Kusto cluster database principalAssignment. + * @return a Kusto cluster database principalAssignment along with {@link Response}. */ DatabasePrincipalAssignment getById(String id); @@ -162,7 +164,7 @@ PagedIterable list( * @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 a Kusto cluster database principalAssignment. + * @return a Kusto cluster database principalAssignment along with {@link Response}. */ Response getByIdWithResponse(String id, Context context); diff --git a/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/models/DatabaseRouting.java b/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/models/DatabaseRouting.java new file mode 100644 index 000000000000..17cd0d88a430 --- /dev/null +++ b/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/models/DatabaseRouting.java @@ -0,0 +1,34 @@ +// 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; + +/** Defines values for DatabaseRouting. */ +public final class DatabaseRouting extends ExpandableStringEnum { + /** Static value Single for DatabaseRouting. */ + public static final DatabaseRouting SINGLE = fromString("Single"); + + /** Static value Multi for DatabaseRouting. */ + public static final DatabaseRouting MULTI = fromString("Multi"); + + /** + * Creates or finds a DatabaseRouting from its string representation. + * + * @param name a name to look for. + * @return the corresponding DatabaseRouting. + */ + @JsonCreator + public static DatabaseRouting fromString(String name) { + return fromString(name, DatabaseRouting.class); + } + + /** @return known DatabaseRouting values. */ + public static Collection values() { + return values(DatabaseRouting.class); + } +} 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 bf4b533fff46..f0e639c80579 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 @@ -34,7 +34,7 @@ public interface Databases { * @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 check name availability request. + * @return the result returned from a check name availability request along with {@link Response}. */ Response checkNameAvailabilityWithResponse( String resourceGroupName, String clusterName, CheckNameRequest resourceName, Context context); @@ -47,7 +47,7 @@ Response checkNameAvailabilityWithResponse( * @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. + * @return the list Kusto databases operation response as paginated response with {@link PagedIterable}. */ PagedIterable listByCluster(String resourceGroupName, String clusterName); @@ -60,7 +60,7 @@ Response checkNameAvailabilityWithResponse( * @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. + * @return the list Kusto databases operation response as paginated response with {@link PagedIterable}. */ PagedIterable listByCluster(String resourceGroupName, String clusterName, Context context); @@ -87,7 +87,7 @@ Response checkNameAvailabilityWithResponse( * @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 class representing a Kusto database. + * @return class representing a Kusto database along with {@link Response}. */ Response getWithResponse( String resourceGroupName, String clusterName, String databaseName, Context context); @@ -187,7 +187,7 @@ Database update( * @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 database principals operation response. + * @return the list Kusto database principals operation response as paginated response with {@link PagedIterable}. */ PagedIterable listPrincipals(String resourceGroupName, String clusterName, String databaseName); @@ -201,7 +201,7 @@ Database update( * @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 database principals operation response. + * @return the list Kusto database principals operation response as paginated response with {@link PagedIterable}. */ PagedIterable listPrincipals( String resourceGroupName, String clusterName, String databaseName, Context context); @@ -235,7 +235,7 @@ DatabasePrincipalListResult addPrincipals( * @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 database principals operation response. + * @return the list Kusto database principals operation response along with {@link Response}. */ Response addPrincipalsWithResponse( String resourceGroupName, @@ -273,7 +273,7 @@ DatabasePrincipalListResult removePrincipals( * @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 database principals operation response. + * @return the list Kusto database principals operation response along with {@link Response}. */ Response removePrincipalsWithResponse( String resourceGroupName, diff --git a/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/models/DatabasesUpdateHeaders.java b/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/models/DatabasesUpdateHeaders.java new file mode 100644 index 000000000000..813404e6bf6d --- /dev/null +++ b/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/models/DatabasesUpdateHeaders.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.models; + +import com.azure.core.annotation.Fluent; +import com.azure.core.util.logging.ClientLogger; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** The DatabasesUpdateHeaders model. */ +@Fluent +public final class DatabasesUpdateHeaders { + @JsonIgnore private final ClientLogger logger = new ClientLogger(DatabasesUpdateHeaders.class); + + /* + * The Azure-AsyncOperation property. + */ + @JsonProperty(value = "Azure-AsyncOperation") + private String azureAsyncOperation; + + /** + * 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 DatabasesUpdateHeaders object itself. + */ + public DatabasesUpdateHeaders 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/DatabasesUpdateResponse.java b/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/models/DatabasesUpdateResponse.java new file mode 100644 index 000000000000..d906a9da4507 --- /dev/null +++ b/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/models/DatabasesUpdateResponse.java @@ -0,0 +1,37 @@ +// 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; +import com.azure.resourcemanager.kusto.fluent.models.DatabaseInner; + +/** Contains all response data for the update operation. */ +public final class DatabasesUpdateResponse extends ResponseBase { + /** + * Creates an instance of DatabasesUpdateResponse. + * + * @param request the request which resulted in this DatabasesUpdateResponse. + * @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 DatabasesUpdateResponse( + HttpRequest request, + int statusCode, + HttpHeaders rawHeaders, + DatabaseInner value, + DatabasesUpdateHeaders headers) { + super(request, statusCode, rawHeaders, value, headers); + } + + /** @return the deserialized response body. */ + @Override + public DatabaseInner getValue() { + return super.getValue(); + } +} diff --git a/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/models/EventGridDataConnection.java b/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/models/EventGridDataConnection.java index 447c84d9ca1d..659c4a5a718d 100644 --- a/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/models/EventGridDataConnection.java +++ b/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/models/EventGridDataConnection.java @@ -65,6 +65,31 @@ public EventGridDataConnection withStorageAccountResourceId(String storageAccoun return this; } + /** + * Get the eventGridResourceId property: The resource ID of the event grid that is subscribed to the storage account + * events. + * + * @return the eventGridResourceId value. + */ + public String eventGridResourceId() { + return this.innerProperties() == null ? null : this.innerProperties().eventGridResourceId(); + } + + /** + * Set the eventGridResourceId property: The resource ID of the event grid that is subscribed to the storage account + * events. + * + * @param eventGridResourceId the eventGridResourceId value to set. + * @return the EventGridDataConnection object itself. + */ + public EventGridDataConnection withEventGridResourceId(String eventGridResourceId) { + if (this.innerProperties() == null) { + this.innerProperties = new EventGridConnectionProperties(); + } + this.innerProperties().withEventGridResourceId(eventGridResourceId); + return this; + } + /** * Get the eventHubResourceId property: The resource ID where the event grid is configured to send events. * @@ -234,6 +259,65 @@ public EventGridDataConnection withBlobStorageEventType(BlobStorageEventType blo return this; } + /** + * Get the managedIdentityResourceId property: The resource ID of a managed identity (system or user assigned) to be + * used to authenticate with event hub and storage account. + * + * @return the managedIdentityResourceId value. + */ + public String managedIdentityResourceId() { + return this.innerProperties() == null ? null : this.innerProperties().managedIdentityResourceId(); + } + + /** + * Set the managedIdentityResourceId property: The resource ID of a managed identity (system or user assigned) to be + * used to authenticate with event hub and storage account. + * + * @param managedIdentityResourceId the managedIdentityResourceId value to set. + * @return the EventGridDataConnection object itself. + */ + public EventGridDataConnection withManagedIdentityResourceId(String managedIdentityResourceId) { + if (this.innerProperties() == null) { + this.innerProperties = new EventGridConnectionProperties(); + } + this.innerProperties().withManagedIdentityResourceId(managedIdentityResourceId); + return this; + } + + /** + * Get the managedIdentityObjectId property: The object ID of managedIdentityResourceId. + * + * @return the managedIdentityObjectId value. + */ + public String managedIdentityObjectId() { + return this.innerProperties() == null ? null : this.innerProperties().managedIdentityObjectId(); + } + + /** + * Get the databaseRouting property: Indication for database routing information from the data connection, by + * default only database routing information is allowed. + * + * @return the databaseRouting value. + */ + public DatabaseRouting databaseRouting() { + return this.innerProperties() == null ? null : this.innerProperties().databaseRouting(); + } + + /** + * Set the databaseRouting property: Indication for database routing information from the data connection, by + * default only database routing information is allowed. + * + * @param databaseRouting the databaseRouting value to set. + * @return the EventGridDataConnection object itself. + */ + public EventGridDataConnection withDatabaseRouting(DatabaseRouting databaseRouting) { + if (this.innerProperties() == null) { + this.innerProperties = new EventGridConnectionProperties(); + } + this.innerProperties().withDatabaseRouting(databaseRouting); + return this; + } + /** * Get the provisioningState property: The provisioned state of the resource. * diff --git a/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/models/EventHubDataConnection.java b/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/models/EventHubDataConnection.java index b7f3639e01df..4d5af0cbd222 100644 --- a/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/models/EventHubDataConnection.java +++ b/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/models/EventHubDataConnection.java @@ -244,6 +244,40 @@ public EventHubDataConnection withManagedIdentityResourceId(String managedIdenti return this; } + /** + * Get the managedIdentityObjectId property: The object ID of the managedIdentityResourceId. + * + * @return the managedIdentityObjectId value. + */ + public String managedIdentityObjectId() { + return this.innerProperties() == null ? null : this.innerProperties().managedIdentityObjectId(); + } + + /** + * Get the databaseRouting property: Indication for database routing information from the data connection, by + * default only database routing information is allowed. + * + * @return the databaseRouting value. + */ + public DatabaseRouting databaseRouting() { + return this.innerProperties() == null ? null : this.innerProperties().databaseRouting(); + } + + /** + * Set the databaseRouting property: Indication for database routing information from the data connection, by + * default only database routing information is allowed. + * + * @param databaseRouting the databaseRouting value to set. + * @return the EventHubDataConnection object itself. + */ + public EventHubDataConnection withDatabaseRouting(DatabaseRouting databaseRouting) { + if (this.innerProperties() == null) { + this.innerProperties = new EventHubConnectionProperties(); + } + this.innerProperties().withDatabaseRouting(databaseRouting); + return this; + } + /** * Validates the instance. * diff --git a/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/models/IotHubDataConnection.java b/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/models/IotHubDataConnection.java index 4b0868ddd577..4e36a7653a0f 100644 --- a/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/models/IotHubDataConnection.java +++ b/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/models/IotHubDataConnection.java @@ -210,6 +210,31 @@ public IotHubDataConnection withSharedAccessPolicyName(String sharedAccessPolicy return this; } + /** + * Get the databaseRouting property: Indication for database routing information from the data connection, by + * default only database routing information is allowed. + * + * @return the databaseRouting value. + */ + public DatabaseRouting databaseRouting() { + return this.innerProperties() == null ? null : this.innerProperties().databaseRouting(); + } + + /** + * Set the databaseRouting property: Indication for database routing information from the data connection, by + * default only database routing information is allowed. + * + * @param databaseRouting the databaseRouting value to set. + * @return the IotHubDataConnection object itself. + */ + public IotHubDataConnection withDatabaseRouting(DatabaseRouting databaseRouting) { + if (this.innerProperties() == null) { + this.innerProperties = new IotHubConnectionProperties(); + } + this.innerProperties().withDatabaseRouting(databaseRouting); + return this; + } + /** * Get the provisioningState property: The provisioned state of the resource. * diff --git a/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/models/ManagedPrivateEndpoints.java b/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/models/ManagedPrivateEndpoints.java index 978e359a401d..6f4f2d4db751 100644 --- a/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/models/ManagedPrivateEndpoints.java +++ b/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/models/ManagedPrivateEndpoints.java @@ -34,7 +34,7 @@ CheckNameResult checkNameAvailability( * @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 check name availability request. + * @return the result returned from a check name availability request along with {@link Response}. */ Response checkNameAvailabilityWithResponse( String resourceGroupName, @@ -50,7 +50,7 @@ Response checkNameAvailabilityWithResponse( * @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 managed private endpoints operation response. + * @return the list managed private endpoints operation response as paginated response with {@link PagedIterable}. */ PagedIterable list(String resourceGroupName, String clusterName); @@ -63,7 +63,7 @@ Response checkNameAvailabilityWithResponse( * @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 managed private endpoints operation response. + * @return the list managed private endpoints operation response as paginated response with {@link PagedIterable}. */ PagedIterable list(String resourceGroupName, String clusterName, Context context); @@ -90,7 +90,7 @@ Response checkNameAvailabilityWithResponse( * @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 a managed private endpoint. + * @return a managed private endpoint along with {@link Response}. */ Response getWithResponse( String resourceGroupName, String clusterName, String managedPrivateEndpointName, Context context); @@ -127,7 +127,7 @@ Response getWithResponse( * @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 a managed private endpoint. + * @return a managed private endpoint along with {@link Response}. */ ManagedPrivateEndpoint getById(String id); @@ -139,7 +139,7 @@ Response getWithResponse( * @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 a managed private endpoint. + * @return a managed private endpoint along with {@link Response}. */ Response getByIdWithResponse(String id, Context context); diff --git a/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/models/ManagedPrivateEndpointsCheckNameRequest.java b/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/models/ManagedPrivateEndpointsCheckNameRequest.java index 230bbbc00133..4acc1fe5a756 100644 --- a/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/models/ManagedPrivateEndpointsCheckNameRequest.java +++ b/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/models/ManagedPrivateEndpointsCheckNameRequest.java @@ -25,7 +25,7 @@ public final class ManagedPrivateEndpointsCheckNameRequest { * Microsoft.Kusto/clusters/managedPrivateEndpoints. */ @JsonProperty(value = "type", required = true) - private String type; + private String type = "Microsoft.Kusto/clusters/managedPrivateEndpoints"; /** Creates an instance of ManagedPrivateEndpointsCheckNameRequest class. */ public ManagedPrivateEndpointsCheckNameRequest() { diff --git a/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/models/ManagedPrivateEndpointsUpdateHeaders.java b/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/models/ManagedPrivateEndpointsUpdateHeaders.java new file mode 100644 index 000000000000..6590bc4fb028 --- /dev/null +++ b/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/models/ManagedPrivateEndpointsUpdateHeaders.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.models; + +import com.azure.core.annotation.Fluent; +import com.azure.core.util.logging.ClientLogger; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** The ManagedPrivateEndpointsUpdateHeaders model. */ +@Fluent +public final class ManagedPrivateEndpointsUpdateHeaders { + @JsonIgnore private final ClientLogger logger = new ClientLogger(ManagedPrivateEndpointsUpdateHeaders.class); + + /* + * The Azure-AsyncOperation property. + */ + @JsonProperty(value = "Azure-AsyncOperation") + private String azureAsyncOperation; + + /** + * 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 ManagedPrivateEndpointsUpdateHeaders object itself. + */ + public ManagedPrivateEndpointsUpdateHeaders 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/ManagedPrivateEndpointsUpdateResponse.java b/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/models/ManagedPrivateEndpointsUpdateResponse.java new file mode 100644 index 000000000000..4dced4b1f726 --- /dev/null +++ b/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/models/ManagedPrivateEndpointsUpdateResponse.java @@ -0,0 +1,38 @@ +// 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; +import com.azure.resourcemanager.kusto.fluent.models.ManagedPrivateEndpointInner; + +/** Contains all response data for the update operation. */ +public final class ManagedPrivateEndpointsUpdateResponse + extends ResponseBase { + /** + * Creates an instance of ManagedPrivateEndpointsUpdateResponse. + * + * @param request the request which resulted in this ManagedPrivateEndpointsUpdateResponse. + * @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 ManagedPrivateEndpointsUpdateResponse( + HttpRequest request, + int statusCode, + HttpHeaders rawHeaders, + ManagedPrivateEndpointInner value, + ManagedPrivateEndpointsUpdateHeaders headers) { + super(request, statusCode, rawHeaders, value, headers); + } + + /** @return the deserialized response body. */ + @Override + public ManagedPrivateEndpointInner getValue() { + return super.getValue(); + } +} diff --git a/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/models/OperationResult.java b/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/models/OperationResult.java index 730e8fed1031..e80b869fb391 100644 --- a/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/models/OperationResult.java +++ b/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/models/OperationResult.java @@ -58,6 +58,13 @@ public interface OperationResult { */ String operationKind(); + /** + * Gets the provisioningState property: The provisioned state of the resource. + * + * @return the provisioningState value. + */ + ProvisioningState provisioningState(); + /** * Gets the operationState property: The state of the operation. * diff --git a/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/models/Operations.java b/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/models/Operations.java index fbc205622eec..aa98b55e28ec 100644 --- a/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/models/Operations.java +++ b/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/models/Operations.java @@ -14,7 +14,7 @@ public interface Operations { * * @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 result of the request to list REST API operations. + * @return result of the request to list REST API operations as paginated response with {@link PagedIterable}. */ PagedIterable list(); @@ -25,7 +25,7 @@ public interface Operations { * @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 result of the request to list REST API operations. + * @return result of the request to list REST API operations as paginated response with {@link PagedIterable}. */ PagedIterable list(Context context); } 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 df89de785aac..fd28d8898b0d 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 @@ -30,7 +30,7 @@ public interface OperationsResults { * @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 operation Result Entity. + * @return operation Result Entity along with {@link Response}. */ Response getWithResponse(String location, String operationId, Context context); } 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 new file mode 100644 index 000000000000..e7c54fcd66fe --- /dev/null +++ b/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/models/OperationsResultsLocations.java @@ -0,0 +1,35 @@ +// 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 OperationsResultsLocations. */ +public interface OperationsResultsLocations { + /** + * Returns operation results. + * + * @param location Azure location (region) name. + * @param operationId The Guid of the operation ID. + * @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 get(String location, String operationId); + + /** + * Returns operation results. + * + * @param location Azure location (region) name. + * @param operationId The Guid of the operation ID. + * @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}. + */ + Response getWithResponse(String location, String operationId, Context context); +} 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 3f9a59f59e5b..3c65b8a15285 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 @@ -18,7 +18,7 @@ public interface PrivateEndpointConnections { * @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 a list of private endpoint connections. + * @return a list of private endpoint connections as paginated response with {@link PagedIterable}. */ PagedIterable list(String resourceGroupName, String clusterName); @@ -31,7 +31,7 @@ public interface PrivateEndpointConnections { * @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 a list of private endpoint connections. + * @return a list of private endpoint connections as paginated response with {@link PagedIterable}. */ PagedIterable list(String resourceGroupName, String clusterName, Context context); @@ -58,7 +58,7 @@ public interface PrivateEndpointConnections { * @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 a private endpoint connection. + * @return a private endpoint connection along with {@link Response}. */ Response getWithResponse( String resourceGroupName, String clusterName, String privateEndpointConnectionName, Context context); @@ -95,7 +95,7 @@ Response getWithResponse( * @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 a private endpoint connection. + * @return a private endpoint connection along with {@link Response}. */ PrivateEndpointConnection getById(String id); @@ -107,7 +107,7 @@ Response getWithResponse( * @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 a private endpoint connection. + * @return a private endpoint connection along with {@link Response}. */ Response getByIdWithResponse(String id, Context context); 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 1451c88ce807..0843242d477c 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 @@ -18,7 +18,7 @@ public interface PrivateLinkResources { * @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 a list of private link resources. + * @return a list of private link resources as paginated response with {@link PagedIterable}. */ PagedIterable list(String resourceGroupName, String clusterName); @@ -31,7 +31,7 @@ public interface PrivateLinkResources { * @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 a list of private link resources. + * @return a list of private link resources as paginated response with {@link PagedIterable}. */ PagedIterable list(String resourceGroupName, String clusterName, Context context); @@ -58,7 +58,7 @@ public interface PrivateLinkResources { * @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 a private link resource. + * @return a private link resource along with {@link Response}. */ Response getWithResponse( String resourceGroupName, String clusterName, String privateLinkResourceName, Context context); diff --git a/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/models/PublicIpType.java b/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/models/PublicIpType.java new file mode 100644 index 000000000000..dbd410ee27a1 --- /dev/null +++ b/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/models/PublicIpType.java @@ -0,0 +1,34 @@ +// 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; + +/** Defines values for PublicIpType. */ +public final class PublicIpType extends ExpandableStringEnum { + /** Static value IPv4 for PublicIpType. */ + public static final PublicIpType IPV4 = fromString("IPv4"); + + /** Static value DualStack for PublicIpType. */ + public static final PublicIpType DUAL_STACK = fromString("DualStack"); + + /** + * Creates or finds a PublicIpType from its string representation. + * + * @param name a name to look for. + * @return the corresponding PublicIpType. + */ + @JsonCreator + public static PublicIpType fromString(String name) { + return fromString(name, PublicIpType.class); + } + + /** @return known PublicIpType values. */ + public static Collection values() { + return values(PublicIpType.class); + } +} 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 73adfe1003d4..221e71bc9e5a 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 @@ -39,19 +39,29 @@ public interface Script { SystemData systemData(); /** - * Gets the scriptUrl property: The url to the KQL script blob file. + * Gets the scriptUrl property: The url to the KQL script blob file. Must not be used together with scriptContent + * property. * * @return the scriptUrl value. */ String scriptUrl(); /** - * Gets the scriptUrlSasToken property: The SaS token. + * Gets the scriptUrlSasToken property: The SaS token that provide read access to the file which contain the script. + * Must be provided when using scriptUrl property. * * @return the scriptUrlSasToken value. */ String scriptUrlSasToken(); + /** + * Gets the scriptContent property: The script content. This property should be used when the script is provide + * inline and not through file in a SA. Must not be used together with scriptUrl and scriptUrlSasToken properties. + * + * @return the scriptContent value. + */ + String scriptContent(); + /** * Gets the forceUpdateTag property: A unique string. If changed the script will be applied again. * @@ -108,6 +118,7 @@ interface WithParentResource { interface WithCreate extends DefinitionStages.WithScriptUrl, DefinitionStages.WithScriptUrlSasToken, + DefinitionStages.WithScriptContent, DefinitionStages.WithForceUpdateTag, DefinitionStages.WithContinueOnErrors { /** @@ -128,9 +139,11 @@ interface WithCreate /** The stage of the Script definition allowing to specify scriptUrl. */ interface WithScriptUrl { /** - * Specifies the scriptUrl property: The url to the KQL script blob file.. + * Specifies the scriptUrl property: The url to the KQL script blob file. Must not be used together with + * scriptContent property. * - * @param scriptUrl The url to the KQL script blob file. + * @param scriptUrl The url to the KQL script blob file. Must not be used together with scriptContent + * property. * @return the next definition stage. */ WithCreate withScriptUrl(String scriptUrl); @@ -138,13 +151,29 @@ interface WithScriptUrl { /** The stage of the Script definition allowing to specify scriptUrlSasToken. */ interface WithScriptUrlSasToken { /** - * Specifies the scriptUrlSasToken property: The SaS token.. + * Specifies the scriptUrlSasToken property: The SaS token that provide read access to the file which + * contain the script. Must be provided when using scriptUrl property.. * - * @param scriptUrlSasToken The SaS token. + * @param scriptUrlSasToken The SaS token that provide read access to the file which contain the script. + * Must be provided when using scriptUrl property. * @return the next definition stage. */ WithCreate withScriptUrlSasToken(String scriptUrlSasToken); } + /** The stage of the Script definition allowing to specify scriptContent. */ + interface WithScriptContent { + /** + * Specifies the scriptContent property: The script content. This property should be used when the script is + * provide inline and not through file in a SA. Must not be used together with scriptUrl and + * scriptUrlSasToken properties.. + * + * @param scriptContent The script content. This property should be used when the script is provide inline + * and not through file in a SA. Must not be used together with scriptUrl and scriptUrlSasToken + * properties. + * @return the next definition stage. + */ + WithCreate withScriptContent(String scriptContent); + } /** The stage of the Script definition allowing to specify forceUpdateTag. */ interface WithForceUpdateTag { /** @@ -197,9 +226,11 @@ interface UpdateStages { /** The stage of the Script update allowing to specify scriptUrl. */ interface WithScriptUrl { /** - * Specifies the scriptUrl property: The url to the KQL script blob file.. + * Specifies the scriptUrl property: The url to the KQL script blob file. Must not be used together with + * scriptContent property. * - * @param scriptUrl The url to the KQL script blob file. + * @param scriptUrl The url to the KQL script blob file. Must not be used together with scriptContent + * property. * @return the next definition stage. */ Update withScriptUrl(String scriptUrl); diff --git a/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/models/ScriptCheckNameRequest.java b/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/models/ScriptCheckNameRequest.java index d0ce5fa255af..921fe69cd26e 100644 --- a/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/models/ScriptCheckNameRequest.java +++ b/sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/models/ScriptCheckNameRequest.java @@ -24,7 +24,7 @@ public final class ScriptCheckNameRequest { * The type of resource, Microsoft.Kusto/clusters/databases/scripts. */ @JsonProperty(value = "type", required = true) - private String type; + private String type = "Microsoft.Kusto/clusters/databases/scripts"; /** Creates an instance of ScriptCheckNameRequest class. */ public ScriptCheckNameRequest() { 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 b257e13f73a3..4526ba0e2a51 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 @@ -19,7 +19,7 @@ public interface Scripts { * @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 database script operation response. + * @return the list Kusto database script operation response as paginated response with {@link PagedIterable}. */ PagedIterable