Skip to content

Commit

Permalink
CodeGen from PR 16886 in Azure/azure-rest-api-specs
Browse files Browse the repository at this point in the history
Track2 modify readme.go.md 3 (Azure#16886)

* Track2 modify readme.go.md

* directive modelerfour.lenient-model-deduplication=true
  • Loading branch information
SDKAuto committed Jan 5, 2022
1 parent 09a1a88 commit 949d88d
Show file tree
Hide file tree
Showing 28 changed files with 260 additions and 221 deletions.
4 changes: 3 additions & 1 deletion sdk/kusto/azure-resourcemanager-kusto/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
# Release History

## 1.0.0-beta.4 (Unreleased)
## 1.0.0-beta.1 (2022-01-05)

- 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).

### Features Added

Expand Down
2 changes: 1 addition & 1 deletion sdk/kusto/azure-resourcemanager-kusto/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ Various documentation is available to help you get started
<dependency>
<groupId>com.azure.resourcemanager</groupId>
<artifactId>azure-resourcemanager-kusto</artifactId>
<version>1.0.0-beta.3</version>
<version>1.0.0-beta.4</version>
</dependency>
```
[//]: # ({x-version-update-end})
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -51,6 +52,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
Expand Down Expand Up @@ -218,7 +220,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(" (")
Expand All @@ -241,11 +243,24 @@ public KustoManager authenticate(TokenCredential credential, AzureProfile profil
List<HttpPipelinePolicy> 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 =
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ Response<AttachedDatabaseConfigurationInner> getWithResponse(
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return class representing an attached database configuration.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller<PollResult<AttachedDatabaseConfigurationInner>, AttachedDatabaseConfigurationInner> beginCreateOrUpdate(
String resourceGroupName,
String clusterName,
Expand All @@ -142,7 +142,7 @@ SyncPoller<PollResult<AttachedDatabaseConfigurationInner>, AttachedDatabaseConfi
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return class representing an attached database configuration.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller<PollResult<AttachedDatabaseConfigurationInner>, AttachedDatabaseConfigurationInner> beginCreateOrUpdate(
String resourceGroupName,
String clusterName,
Expand Down Expand Up @@ -201,7 +201,7 @@ AttachedDatabaseConfigurationInner createOrUpdate(
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the completion.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller<PollResult<Void>, Void> beginDelete(
String resourceGroupName, String clusterName, String attachedDatabaseConfigurationName);

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

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ Response<ClusterPrincipalAssignmentInner> getWithResponse(
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return class representing a cluster principal assignment.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller<PollResult<ClusterPrincipalAssignmentInner>, ClusterPrincipalAssignmentInner> beginCreateOrUpdate(
String resourceGroupName,
String clusterName,
Expand All @@ -115,7 +115,7 @@ SyncPoller<PollResult<ClusterPrincipalAssignmentInner>, ClusterPrincipalAssignme
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return class representing a cluster principal assignment.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller<PollResult<ClusterPrincipalAssignmentInner>, ClusterPrincipalAssignmentInner> beginCreateOrUpdate(
String resourceGroupName,
String clusterName,
Expand Down Expand Up @@ -174,7 +174,7 @@ ClusterPrincipalAssignmentInner createOrUpdate(
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the completion.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller<PollResult<Void>, Void> beginDelete(
String resourceGroupName, String clusterName, String principalAssignmentName);

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

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ Response<ClusterInner> getByResourceGroupWithResponse(
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return class representing a Kusto cluster.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller<PollResult<ClusterInner>, ClusterInner> beginCreateOrUpdate(
String resourceGroupName, String clusterName, ClusterInner parameters, String ifMatch, String ifNoneMatch);

Expand All @@ -88,7 +88,7 @@ SyncPoller<PollResult<ClusterInner>, ClusterInner> beginCreateOrUpdate(
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return class representing a Kusto cluster.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller<PollResult<ClusterInner>, ClusterInner> beginCreateOrUpdate(
String resourceGroupName,
String clusterName,
Expand Down Expand Up @@ -168,7 +168,7 @@ ClusterInner createOrUpdate(
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return class representing a Kusto cluster.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller<PollResult<ClusterInner>, ClusterInner> beginUpdate(
String resourceGroupName, String clusterName, ClusterUpdate parameters, String ifMatch);

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

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

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

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

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

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

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

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

Expand All @@ -449,7 +449,7 @@ SyncPoller<PollResult<Void>, Void> beginDetachFollowerDatabases(
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the completion.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller<PollResult<Void>, Void> beginDetachFollowerDatabases(
String resourceGroupName,
String clusterName,
Expand Down Expand Up @@ -498,7 +498,7 @@ void detachFollowerDatabases(
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the response.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller<PollResult<DiagnoseVirtualNetworkResultInner>, DiagnoseVirtualNetworkResultInner>
beginDiagnoseVirtualNetwork(String resourceGroupName, String clusterName);

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

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

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

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

Expand All @@ -814,7 +814,7 @@ SyncPoller<PollResult<Void>, Void> beginRemoveLanguageExtensions(
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the completion.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller<PollResult<Void>, Void> beginRemoveLanguageExtensions(
String resourceGroupName,
String clusterName,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ PagedIterable<DataConnectionInner> listByDatabase(
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the list Kusto data connection validation result.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller<PollResult<DataConnectionValidationListResultInner>, DataConnectionValidationListResultInner>
beginDataConnectionValidation(
String resourceGroupName,
Expand All @@ -83,7 +83,7 @@ PagedIterable<DataConnectionInner> listByDatabase(
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the list Kusto data connection validation result.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller<PollResult<DataConnectionValidationListResultInner>, DataConnectionValidationListResultInner>
beginDataConnectionValidation(
String resourceGroupName,
Expand Down Expand Up @@ -215,7 +215,7 @@ Response<DataConnectionInner> getWithResponse(
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return class representing an data connection.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller<PollResult<DataConnectionInner>, DataConnectionInner> beginCreateOrUpdate(
String resourceGroupName,
String clusterName,
Expand All @@ -237,7 +237,7 @@ SyncPoller<PollResult<DataConnectionInner>, DataConnectionInner> beginCreateOrUp
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return class representing an data connection.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller<PollResult<DataConnectionInner>, DataConnectionInner> beginCreateOrUpdate(
String resourceGroupName,
String clusterName,
Expand Down Expand Up @@ -303,7 +303,7 @@ DataConnectionInner createOrUpdate(
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return class representing an data connection.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller<PollResult<DataConnectionInner>, DataConnectionInner> beginUpdate(
String resourceGroupName,
String clusterName,
Expand All @@ -325,7 +325,7 @@ SyncPoller<PollResult<DataConnectionInner>, DataConnectionInner> beginUpdate(
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return class representing an data connection.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller<PollResult<DataConnectionInner>, DataConnectionInner> beginUpdate(
String resourceGroupName,
String clusterName,
Expand Down Expand Up @@ -390,7 +390,7 @@ DataConnectionInner update(
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the completion.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller<PollResult<Void>, Void> beginDelete(
String resourceGroupName, String clusterName, String databaseName, String dataConnectionName);

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

Expand Down
Loading

0 comments on commit 949d88d

Please sign in to comment.