Skip to content

Commit 1d48fa3

Browse files
author
SDKAuto
committed
CodeGen from PR 16886 in Azure/azure-rest-api-specs
Merge c00e5ce96ae9732e967d50cb3c6e1e73e5abf34e into 37d690709ce4639bd0aafe7f4a5f5856f2bef624
1 parent a91a2b4 commit 1d48fa3

28 files changed

+208
-191
lines changed

sdk/kusto/azure-resourcemanager-kusto/CHANGELOG.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
# Release History
22

3-
## 1.0.0-beta.4 (Unreleased)
3+
## 1.0.0-beta.1 (2021-11-26)
4+
5+
- 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).
46

57
### Features Added
68

sdk/kusto/azure-resourcemanager-kusto/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ Various documentation is available to help you get started
3232
<dependency>
3333
<groupId>com.azure.resourcemanager</groupId>
3434
<artifactId>azure-resourcemanager-kusto</artifactId>
35-
<version>1.0.0-beta.3</version>
35+
<version>1.0.0-beta.4</version>
3636
</dependency>
3737
```
3838
[//]: # ({x-version-update-end})

sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/KustoManager.java

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
import com.azure.core.http.HttpClient;
99
import com.azure.core.http.HttpPipeline;
1010
import com.azure.core.http.HttpPipelineBuilder;
11+
import com.azure.core.http.HttpPipelinePosition;
1112
import com.azure.core.http.policy.AddDatePolicy;
1213
import com.azure.core.http.policy.HttpLogOptions;
1314
import com.azure.core.http.policy.HttpLoggingPolicy;
@@ -51,6 +52,7 @@
5152
import java.util.ArrayList;
5253
import java.util.List;
5354
import java.util.Objects;
55+
import java.util.stream.Collectors;
5456

5557
/**
5658
* Entry point to KustoManager. The Azure Kusto management API provides a RESTful set of web services that interact with
@@ -218,7 +220,7 @@ public KustoManager authenticate(TokenCredential credential, AzureProfile profil
218220
.append("-")
219221
.append("com.azure.resourcemanager.kusto")
220222
.append("/")
221-
.append("1.0.0-beta.3");
223+
.append("1.0.0-beta.1");
222224
if (!Configuration.getGlobalConfiguration().get("AZURE_TELEMETRY_DISABLED", false)) {
223225
userAgentBuilder
224226
.append(" (")
@@ -241,11 +243,24 @@ public KustoManager authenticate(TokenCredential credential, AzureProfile profil
241243
List<HttpPipelinePolicy> policies = new ArrayList<>();
242244
policies.add(new UserAgentPolicy(userAgentBuilder.toString()));
243245
policies.add(new RequestIdPolicy());
246+
policies
247+
.addAll(
248+
this
249+
.policies
250+
.stream()
251+
.filter(p -> p.getPipelinePosition() == HttpPipelinePosition.PER_CALL)
252+
.collect(Collectors.toList()));
244253
HttpPolicyProviders.addBeforeRetryPolicies(policies);
245254
policies.add(retryPolicy);
246255
policies.add(new AddDatePolicy());
247256
policies.add(new ArmChallengeAuthenticationPolicy(credential, scopes.toArray(new String[0])));
248-
policies.addAll(this.policies);
257+
policies
258+
.addAll(
259+
this
260+
.policies
261+
.stream()
262+
.filter(p -> p.getPipelinePosition() == HttpPipelinePosition.PER_RETRY)
263+
.collect(Collectors.toList()));
249264
HttpPolicyProviders.addAfterRetryPolicies(policies);
250265
policies.add(new HttpLoggingPolicy(httpLogOptions));
251266
HttpPipeline httpPipeline =

sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/fluent/AttachedDatabaseConfigurationsClient.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ Response<AttachedDatabaseConfigurationInner> getWithResponse(
122122
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
123123
* @return class representing an attached database configuration.
124124
*/
125-
@ServiceMethod(returns = ReturnType.SINGLE)
125+
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
126126
SyncPoller<PollResult<AttachedDatabaseConfigurationInner>, AttachedDatabaseConfigurationInner> beginCreateOrUpdate(
127127
String resourceGroupName,
128128
String clusterName,
@@ -142,7 +142,7 @@ SyncPoller<PollResult<AttachedDatabaseConfigurationInner>, AttachedDatabaseConfi
142142
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
143143
* @return class representing an attached database configuration.
144144
*/
145-
@ServiceMethod(returns = ReturnType.SINGLE)
145+
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
146146
SyncPoller<PollResult<AttachedDatabaseConfigurationInner>, AttachedDatabaseConfigurationInner> beginCreateOrUpdate(
147147
String resourceGroupName,
148148
String clusterName,
@@ -201,7 +201,7 @@ AttachedDatabaseConfigurationInner createOrUpdate(
201201
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
202202
* @return the completion.
203203
*/
204-
@ServiceMethod(returns = ReturnType.SINGLE)
204+
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
205205
SyncPoller<PollResult<Void>, Void> beginDelete(
206206
String resourceGroupName, String clusterName, String attachedDatabaseConfigurationName);
207207

@@ -217,7 +217,7 @@ SyncPoller<PollResult<Void>, Void> beginDelete(
217217
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
218218
* @return the completion.
219219
*/
220-
@ServiceMethod(returns = ReturnType.SINGLE)
220+
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
221221
SyncPoller<PollResult<Void>, Void> beginDelete(
222222
String resourceGroupName, String clusterName, String attachedDatabaseConfigurationName, Context context);
223223

sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/fluent/ClusterPrincipalAssignmentsClient.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ Response<ClusterPrincipalAssignmentInner> getWithResponse(
9595
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
9696
* @return class representing a cluster principal assignment.
9797
*/
98-
@ServiceMethod(returns = ReturnType.SINGLE)
98+
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
9999
SyncPoller<PollResult<ClusterPrincipalAssignmentInner>, ClusterPrincipalAssignmentInner> beginCreateOrUpdate(
100100
String resourceGroupName,
101101
String clusterName,
@@ -115,7 +115,7 @@ SyncPoller<PollResult<ClusterPrincipalAssignmentInner>, ClusterPrincipalAssignme
115115
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
116116
* @return class representing a cluster principal assignment.
117117
*/
118-
@ServiceMethod(returns = ReturnType.SINGLE)
118+
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
119119
SyncPoller<PollResult<ClusterPrincipalAssignmentInner>, ClusterPrincipalAssignmentInner> beginCreateOrUpdate(
120120
String resourceGroupName,
121121
String clusterName,
@@ -174,7 +174,7 @@ ClusterPrincipalAssignmentInner createOrUpdate(
174174
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
175175
* @return the completion.
176176
*/
177-
@ServiceMethod(returns = ReturnType.SINGLE)
177+
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
178178
SyncPoller<PollResult<Void>, Void> beginDelete(
179179
String resourceGroupName, String clusterName, String principalAssignmentName);
180180

@@ -190,7 +190,7 @@ SyncPoller<PollResult<Void>, Void> beginDelete(
190190
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
191191
* @return the completion.
192192
*/
193-
@ServiceMethod(returns = ReturnType.SINGLE)
193+
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
194194
SyncPoller<PollResult<Void>, Void> beginDelete(
195195
String resourceGroupName, String clusterName, String principalAssignmentName, Context context);
196196

sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/fluent/ClustersClient.java

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ Response<ClusterInner> getByResourceGroupWithResponse(
6868
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
6969
* @return class representing a Kusto cluster.
7070
*/
71-
@ServiceMethod(returns = ReturnType.SINGLE)
71+
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
7272
SyncPoller<PollResult<ClusterInner>, ClusterInner> beginCreateOrUpdate(
7373
String resourceGroupName, String clusterName, ClusterInner parameters, String ifMatch, String ifNoneMatch);
7474

@@ -88,7 +88,7 @@ SyncPoller<PollResult<ClusterInner>, ClusterInner> beginCreateOrUpdate(
8888
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
8989
* @return class representing a Kusto cluster.
9090
*/
91-
@ServiceMethod(returns = ReturnType.SINGLE)
91+
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
9292
SyncPoller<PollResult<ClusterInner>, ClusterInner> beginCreateOrUpdate(
9393
String resourceGroupName,
9494
String clusterName,
@@ -168,7 +168,7 @@ ClusterInner createOrUpdate(
168168
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
169169
* @return class representing a Kusto cluster.
170170
*/
171-
@ServiceMethod(returns = ReturnType.SINGLE)
171+
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
172172
SyncPoller<PollResult<ClusterInner>, ClusterInner> beginUpdate(
173173
String resourceGroupName, String clusterName, ClusterUpdate parameters, String ifMatch);
174174

@@ -186,7 +186,7 @@ SyncPoller<PollResult<ClusterInner>, ClusterInner> beginUpdate(
186186
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
187187
* @return class representing a Kusto cluster.
188188
*/
189-
@ServiceMethod(returns = ReturnType.SINGLE)
189+
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
190190
SyncPoller<PollResult<ClusterInner>, ClusterInner> beginUpdate(
191191
String resourceGroupName, String clusterName, ClusterUpdate parameters, String ifMatch, Context context);
192192

@@ -248,7 +248,7 @@ ClusterInner update(
248248
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
249249
* @return the completion.
250250
*/
251-
@ServiceMethod(returns = ReturnType.SINGLE)
251+
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
252252
SyncPoller<PollResult<Void>, Void> beginDelete(String resourceGroupName, String clusterName);
253253

254254
/**
@@ -262,7 +262,7 @@ ClusterInner update(
262262
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
263263
* @return the completion.
264264
*/
265-
@ServiceMethod(returns = ReturnType.SINGLE)
265+
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
266266
SyncPoller<PollResult<Void>, Void> beginDelete(String resourceGroupName, String clusterName, Context context);
267267

268268
/**
@@ -300,7 +300,7 @@ ClusterInner update(
300300
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
301301
* @return the completion.
302302
*/
303-
@ServiceMethod(returns = ReturnType.SINGLE)
303+
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
304304
SyncPoller<PollResult<Void>, Void> beginStop(String resourceGroupName, String clusterName);
305305

306306
/**
@@ -314,7 +314,7 @@ ClusterInner update(
314314
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
315315
* @return the completion.
316316
*/
317-
@ServiceMethod(returns = ReturnType.SINGLE)
317+
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
318318
SyncPoller<PollResult<Void>, Void> beginStop(String resourceGroupName, String clusterName, Context context);
319319

320320
/**
@@ -352,7 +352,7 @@ ClusterInner update(
352352
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
353353
* @return the completion.
354354
*/
355-
@ServiceMethod(returns = ReturnType.SINGLE)
355+
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
356356
SyncPoller<PollResult<Void>, Void> beginStart(String resourceGroupName, String clusterName);
357357

358358
/**
@@ -366,7 +366,7 @@ ClusterInner update(
366366
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
367367
* @return the completion.
368368
*/
369-
@ServiceMethod(returns = ReturnType.SINGLE)
369+
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
370370
SyncPoller<PollResult<Void>, Void> beginStart(String resourceGroupName, String clusterName, Context context);
371371

372372
/**
@@ -433,7 +433,7 @@ PagedIterable<FollowerDatabaseDefinitionInner> listFollowerDatabases(
433433
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
434434
* @return the completion.
435435
*/
436-
@ServiceMethod(returns = ReturnType.SINGLE)
436+
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
437437
SyncPoller<PollResult<Void>, Void> beginDetachFollowerDatabases(
438438
String resourceGroupName, String clusterName, FollowerDatabaseDefinitionInner followerDatabaseToRemove);
439439

@@ -449,7 +449,7 @@ SyncPoller<PollResult<Void>, Void> beginDetachFollowerDatabases(
449449
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
450450
* @return the completion.
451451
*/
452-
@ServiceMethod(returns = ReturnType.SINGLE)
452+
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
453453
SyncPoller<PollResult<Void>, Void> beginDetachFollowerDatabases(
454454
String resourceGroupName,
455455
String clusterName,
@@ -498,7 +498,7 @@ void detachFollowerDatabases(
498498
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
499499
* @return the response.
500500
*/
501-
@ServiceMethod(returns = ReturnType.SINGLE)
501+
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
502502
SyncPoller<PollResult<DiagnoseVirtualNetworkResultInner>, DiagnoseVirtualNetworkResultInner>
503503
beginDiagnoseVirtualNetwork(String resourceGroupName, String clusterName);
504504

@@ -513,7 +513,7 @@ void detachFollowerDatabases(
513513
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
514514
* @return the response.
515515
*/
516-
@ServiceMethod(returns = ReturnType.SINGLE)
516+
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
517517
SyncPoller<PollResult<DiagnoseVirtualNetworkResultInner>, DiagnoseVirtualNetworkResultInner>
518518
beginDiagnoseVirtualNetwork(String resourceGroupName, String clusterName, Context context);
519519

@@ -738,7 +738,7 @@ PagedIterable<LanguageExtensionInner> listLanguageExtensions(
738738
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
739739
* @return the completion.
740740
*/
741-
@ServiceMethod(returns = ReturnType.SINGLE)
741+
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
742742
SyncPoller<PollResult<Void>, Void> beginAddLanguageExtensions(
743743
String resourceGroupName, String clusterName, LanguageExtensionsList languageExtensionsToAdd);
744744

@@ -754,7 +754,7 @@ SyncPoller<PollResult<Void>, Void> beginAddLanguageExtensions(
754754
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
755755
* @return the completion.
756756
*/
757-
@ServiceMethod(returns = ReturnType.SINGLE)
757+
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
758758
SyncPoller<PollResult<Void>, Void> beginAddLanguageExtensions(
759759
String resourceGroupName, String clusterName, LanguageExtensionsList languageExtensionsToAdd, Context context);
760760

@@ -798,7 +798,7 @@ void addLanguageExtensions(
798798
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
799799
* @return the completion.
800800
*/
801-
@ServiceMethod(returns = ReturnType.SINGLE)
801+
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
802802
SyncPoller<PollResult<Void>, Void> beginRemoveLanguageExtensions(
803803
String resourceGroupName, String clusterName, LanguageExtensionsList languageExtensionsToRemove);
804804

@@ -814,7 +814,7 @@ SyncPoller<PollResult<Void>, Void> beginRemoveLanguageExtensions(
814814
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
815815
* @return the completion.
816816
*/
817-
@ServiceMethod(returns = ReturnType.SINGLE)
817+
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
818818
SyncPoller<PollResult<Void>, Void> beginRemoveLanguageExtensions(
819819
String resourceGroupName,
820820
String clusterName,

sdk/kusto/azure-resourcemanager-kusto/src/main/java/com/azure/resourcemanager/kusto/fluent/DataConnectionsClient.java

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ PagedIterable<DataConnectionInner> listByDatabase(
6262
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
6363
* @return the list Kusto data connection validation result.
6464
*/
65-
@ServiceMethod(returns = ReturnType.SINGLE)
65+
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
6666
SyncPoller<PollResult<DataConnectionValidationListResultInner>, DataConnectionValidationListResultInner>
6767
beginDataConnectionValidation(
6868
String resourceGroupName,
@@ -83,7 +83,7 @@ PagedIterable<DataConnectionInner> listByDatabase(
8383
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
8484
* @return the list Kusto data connection validation result.
8585
*/
86-
@ServiceMethod(returns = ReturnType.SINGLE)
86+
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
8787
SyncPoller<PollResult<DataConnectionValidationListResultInner>, DataConnectionValidationListResultInner>
8888
beginDataConnectionValidation(
8989
String resourceGroupName,
@@ -215,7 +215,7 @@ Response<DataConnectionInner> getWithResponse(
215215
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
216216
* @return class representing an data connection.
217217
*/
218-
@ServiceMethod(returns = ReturnType.SINGLE)
218+
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
219219
SyncPoller<PollResult<DataConnectionInner>, DataConnectionInner> beginCreateOrUpdate(
220220
String resourceGroupName,
221221
String clusterName,
@@ -237,7 +237,7 @@ SyncPoller<PollResult<DataConnectionInner>, DataConnectionInner> beginCreateOrUp
237237
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
238238
* @return class representing an data connection.
239239
*/
240-
@ServiceMethod(returns = ReturnType.SINGLE)
240+
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
241241
SyncPoller<PollResult<DataConnectionInner>, DataConnectionInner> beginCreateOrUpdate(
242242
String resourceGroupName,
243243
String clusterName,
@@ -303,7 +303,7 @@ DataConnectionInner createOrUpdate(
303303
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
304304
* @return class representing an data connection.
305305
*/
306-
@ServiceMethod(returns = ReturnType.SINGLE)
306+
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
307307
SyncPoller<PollResult<DataConnectionInner>, DataConnectionInner> beginUpdate(
308308
String resourceGroupName,
309309
String clusterName,
@@ -325,7 +325,7 @@ SyncPoller<PollResult<DataConnectionInner>, DataConnectionInner> beginUpdate(
325325
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
326326
* @return class representing an data connection.
327327
*/
328-
@ServiceMethod(returns = ReturnType.SINGLE)
328+
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
329329
SyncPoller<PollResult<DataConnectionInner>, DataConnectionInner> beginUpdate(
330330
String resourceGroupName,
331331
String clusterName,
@@ -390,7 +390,7 @@ DataConnectionInner update(
390390
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
391391
* @return the completion.
392392
*/
393-
@ServiceMethod(returns = ReturnType.SINGLE)
393+
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
394394
SyncPoller<PollResult<Void>, Void> beginDelete(
395395
String resourceGroupName, String clusterName, String databaseName, String dataConnectionName);
396396

@@ -407,7 +407,7 @@ SyncPoller<PollResult<Void>, Void> beginDelete(
407407
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
408408
* @return the completion.
409409
*/
410-
@ServiceMethod(returns = ReturnType.SINGLE)
410+
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
411411
SyncPoller<PollResult<Void>, Void> beginDelete(
412412
String resourceGroupName, String clusterName, String databaseName, String dataConnectionName, Context context);
413413

0 commit comments

Comments
 (0)