Skip to content

Commit

Permalink
CodeGen from PR 17444 in Azure/azure-rest-api-specs
Browse files Browse the repository at this point in the history
Merge da18efeac54424463a2cd921c7724c0fd869b786 into a4def981588f1c39ee8d795fdcf6e8594e9a01dc
  • Loading branch information
SDKAuto committed Jan 21, 2022
1 parent b1fde56 commit ecc547b
Show file tree
Hide file tree
Showing 68 changed files with 4,222 additions and 686 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
# Release History

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

- Azure Resource Manager AppConfiguration client library for Java. This package contains Microsoft Azure SDK for AppConfiguration Management SDK. Package tag package-2021-10-01-preview. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt).

## 1.0.0-beta.3 (2021-07-09)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

Azure Resource Manager AppConfiguration client library for Java.

This package contains Microsoft Azure SDK for AppConfiguration Management SDK. Package tag package-2021-03-01-preview. 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 AppConfiguration Management SDK. Package tag package-2021-10-01-preview. 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

Expand Down Expand Up @@ -32,7 +32,7 @@ Various documentation is available to help you get started
<dependency>
<groupId>com.azure.resourcemanager</groupId>
<artifactId>azure-resourcemanager-appconfiguration</artifactId>
<version>1.0.0-beta.3</version>
<version>1.0.0-beta.4</version>
</dependency>
```
[//]: # ({x-version-update-end})
Expand Down
787 changes: 763 additions & 24 deletions sdk/appconfiguration/azure-resourcemanager-appconfiguration/SAMPLE.md

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<packaging>jar</packaging>

<name>Microsoft Azure SDK for AppConfiguration Management</name>
<description>This package contains Microsoft Azure SDK for AppConfiguration Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. Package tag package-2021-03-01-preview.</description>
<description>This package contains Microsoft Azure SDK for AppConfiguration Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. Package tag package-2021-10-01-preview.</description>
<url>https://github.com/Azure/azure-sdk-for-java</url>

<licenses>
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 @@ -37,6 +38,7 @@
import java.util.ArrayList;
import java.util.List;
import java.util.Objects;
import java.util.stream.Collectors;

/** Entry point to AppConfigurationManager. */
public final class AppConfigurationManager {
Expand Down Expand Up @@ -186,7 +188,7 @@ public AppConfigurationManager authenticate(TokenCredential credential, AzurePro
.append("-")
.append("com.azure.resourcemanager.appconfiguration")
.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 @@ -209,11 +211,24 @@ public AppConfigurationManager authenticate(TokenCredential credential, AzurePro
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 @@ -13,8 +13,10 @@
import com.azure.core.util.polling.SyncPoller;
import com.azure.resourcemanager.appconfiguration.fluent.models.ApiKeyInner;
import com.azure.resourcemanager.appconfiguration.fluent.models.ConfigurationStoreInner;
import com.azure.resourcemanager.appconfiguration.fluent.models.DeletedConfigurationStoreInner;
import com.azure.resourcemanager.appconfiguration.models.ConfigurationStoreUpdateParameters;
import com.azure.resourcemanager.appconfiguration.models.RegenerateKeyParameters;
import reactor.core.publisher.Mono;

/** An instance of this class provides access to all the operations defined in ConfigurationStoresClient. */
public interface ConfigurationStoresClient {
Expand Down Expand Up @@ -94,7 +96,7 @@ PagedIterable<ConfigurationStoreInner> listByResourceGroup(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the properties of the specified configuration store.
* @return the properties of the specified configuration store along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response<ConfigurationStoreInner> getByResourceGroupWithResponse(
Expand All @@ -109,9 +111,10 @@ Response<ConfigurationStoreInner> 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 the configuration store along with all resource properties.
* @return the configuration store along with all resource properties along with {@link Response} on successful
* completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller<PollResult<ConfigurationStoreInner>, ConfigurationStoreInner> beginCreate(
String resourceGroupName, String configStoreName, ConfigurationStoreInner configStoreCreationParameters);

Expand All @@ -125,9 +128,10 @@ SyncPoller<PollResult<ConfigurationStoreInner>, ConfigurationStoreInner> beginCr
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the configuration store along with all resource properties.
* @return the configuration store along with all resource properties along with {@link Response} on successful
* completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller<PollResult<ConfigurationStoreInner>, ConfigurationStoreInner> beginCreate(
String resourceGroupName,
String configStoreName,
Expand Down Expand Up @@ -176,9 +180,9 @@ ConfigurationStoreInner create(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException 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)
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller<PollResult<Void>, Void> beginDelete(String resourceGroupName, String configStoreName);

/**
Expand All @@ -190,9 +194,9 @@ ConfigurationStoreInner create(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException 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)
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller<PollResult<Void>, Void> beginDelete(String resourceGroupName, String configStoreName, Context context);

/**
Expand Down Expand Up @@ -229,9 +233,10 @@ ConfigurationStoreInner create(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the configuration store along with all resource properties.
* @return the configuration store along with all resource properties along with {@link Response} on successful
* completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller<PollResult<ConfigurationStoreInner>, ConfigurationStoreInner> beginUpdate(
String resourceGroupName,
String configStoreName,
Expand All @@ -247,9 +252,10 @@ SyncPoller<PollResult<ConfigurationStoreInner>, ConfigurationStoreInner> beginUp
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the configuration store along with all resource properties.
* @return the configuration store along with all resource properties along with {@link Response} on successful
* completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller<PollResult<ConfigurationStoreInner>, ConfigurationStoreInner> beginUpdate(
String resourceGroupName,
String configStoreName,
Expand Down Expand Up @@ -348,12 +354,114 @@ ApiKeyInner regenerateKey(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return an API key used for authenticating with a configuration store endpoint.
* @return an API key used for authenticating with a configuration store endpoint along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response<ApiKeyInner> regenerateKeyWithResponse(
String resourceGroupName,
String configStoreName,
RegenerateKeyParameters regenerateKeyParameters,
Context context);

/**
* Gets information about the deleted configuration stores in a subscription.
*
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return information about the deleted configuration stores in a subscription.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable<DeletedConfigurationStoreInner> listDeleted();

/**
* Gets information about the deleted configuration stores in a subscription.
*
* @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 information about the deleted configuration stores in a subscription.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable<DeletedConfigurationStoreInner> listDeleted(Context context);

/**
* Gets a deleted Azure app configuration store.
*
* @param location The location in which uniqueness will be verified.
* @param configStoreName The name of the configuration store.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.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 deleted Azure app configuration store.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
DeletedConfigurationStoreInner getDeleted(String location, String configStoreName);

/**
* Gets a deleted Azure app configuration store.
*
* @param location The location in which uniqueness will be verified.
* @param configStoreName The name of the configuration store.
* @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 a deleted Azure app configuration store along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response<DeletedConfigurationStoreInner> getDeletedWithResponse(
String location, String configStoreName, Context context);

/**
* Permanently deletes the specified configuration store.
*
* @param location The location in which uniqueness will be verified.
* @param configStoreName The name of the configuration store.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the {@link Response} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller<PollResult<Void>, Void> beginPurgeDeleted(String location, String configStoreName);

/**
* Permanently deletes the specified configuration store.
*
* @param location The location in which uniqueness will be verified.
* @param configStoreName The name of the configuration store.
* @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} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller<PollResult<Void>, Void> beginPurgeDeleted(String location, String configStoreName, Context context);

/**
* Permanently deletes the specified configuration store.
*
* @param location The location in which uniqueness will be verified.
* @param configStoreName The name of the configuration store.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.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 purgeDeleted(String location, String configStoreName);

/**
* Permanently deletes the specified configuration store.
*
* @param location The location in which uniqueness will be verified.
* @param configStoreName The name of the configuration store.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
void purgeDeleted(String location, String configStoreName, Context context);
}
Loading

0 comments on commit ecc547b

Please sign in to comment.