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