Skip to content

Commit

Permalink
CodeGen from PR 19882 in Azure/azure-rest-api-specs
Browse files Browse the repository at this point in the history
Merge 3065a3f81bf11c81d860d7b84dcf670c52b4e6b1 into 9d67b48d784fb4a47ebe8819a437d5e4d388c9f2
  • Loading branch information
SDKAuto committed Jul 21, 2022
1 parent 92b7424 commit 98af9ff
Show file tree
Hide file tree
Showing 13 changed files with 101 additions and 544 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
# Release History

## 1.0.0-beta.7 (Unreleased)
## 1.0.0-beta.1 (2022-07-21)

- Azure Resource Manager AppConfiguration client library for Java. This package contains Microsoft Azure SDK for AppConfiguration Management SDK. Package tag package-2022-05-01. 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
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-appconfiguration</artifactId>
<version>1.0.0-beta.6</version>
<version>1.0.0-beta.7</version>
</dependency>
```
[//]: # ({x-version-update-end})
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,11 @@
- [CreateOrUpdate](#keyvalues_createorupdate)
- [Delete](#keyvalues_delete)
- [Get](#keyvalues_get)
- [ListByConfigurationStore](#keyvalues_listbyconfigurationstore)

## Operations

- [CheckNameAvailability](#operations_checknameavailability)
- [List](#operations_list)
- [RegionalCheckNameAvailability](#operations_regionalchecknameavailability)

## PrivateEndpointConnections
Expand Down Expand Up @@ -506,28 +506,6 @@ public final class KeyValuesGetSamples {
}
```

### KeyValues_ListByConfigurationStore

```java
import com.azure.core.util.Context;

/** Samples for KeyValues ListByConfigurationStore. */
public final class KeyValuesListByConfigurationStoreSamples {
/*
* x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2022-05-01/examples/ConfigurationStoresListKeyValues.json
*/
/**
* Sample code: KeyValues_ListByConfigurationStore.
*
* @param manager Entry point to AppConfigurationManager.
*/
public static void keyValuesListByConfigurationStore(
com.azure.resourcemanager.appconfiguration.AppConfigurationManager manager) {
manager.keyValues().listByConfigurationStore("myResourceGroup", "contoso", null, Context.NONE);
}
}
```

### Operations_CheckNameAvailability

```java
Expand Down Expand Up @@ -577,6 +555,27 @@ public final class OperationsCheckNameAvailabilitySamples {
}
```

### Operations_List

```java
import com.azure.core.util.Context;

/** Samples for Operations List. */
public final class OperationsListSamples {
/*
* x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2022-05-01/examples/OperationsList.json
*/
/**
* Sample code: Operations_List.
*
* @param manager Entry point to AppConfigurationManager.
*/
public static void operationsList(com.azure.resourcemanager.appconfiguration.AppConfigurationManager manager) {
manager.operations().list(null, Context.NONE);
}
}
```

### Operations_RegionalCheckNameAvailability

```java
Expand Down Expand Up @@ -631,30 +630,35 @@ public final class OperationsRegionalCheckNameAvailabilitySamples {
### PrivateEndpointConnections_CreateOrUpdate

```java
import com.azure.core.util.Context;
import com.azure.resourcemanager.appconfiguration.models.ConnectionStatus;
import com.azure.resourcemanager.appconfiguration.models.PrivateEndpointConnection;
import com.azure.resourcemanager.appconfiguration.models.PrivateLinkServiceConnectionState;

/** Samples for PrivateEndpointConnections CreateOrUpdate. */
public final class PrivateEndpointConnectionsCreateOrUpdateSamples {
/*
* x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2022-05-01/examples/ConfigurationStoresCreatePrivateEndpointConnection.json
* x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2022-05-01/examples/ConfigurationStoresUpdatePrivateEndpointConnection.json
*/
/**
* Sample code: PrivateEndpointConnection_CreateOrUpdate.
* Sample code: PrivateEndpointConnection_Update.
*
* @param manager Entry point to AppConfigurationManager.
*/
public static void privateEndpointConnectionCreateOrUpdate(
public static void privateEndpointConnectionUpdate(
com.azure.resourcemanager.appconfiguration.AppConfigurationManager manager) {
manager
.privateEndpointConnections()
.define("myConnection")
.withExistingConfigurationStore("myResourceGroup", "contoso")
PrivateEndpointConnection resource =
manager
.privateEndpointConnections()
.getWithResponse("myResourceGroup", "contoso", "myConnection", Context.NONE)
.getValue();
resource
.update()
.withPrivateLinkServiceConnectionState(
new PrivateLinkServiceConnectionState()
.withStatus(ConnectionStatus.APPROVED)
.withDescription("Auto-Approved"))
.create();
.apply();
}
}
```
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ public AppConfigurationManager authenticate(TokenCredential credential, AzurePro
.append("-")
.append("com.azure.resourcemanager.appconfiguration")
.append("/")
.append("1.0.0-beta.6");
.append("1.0.0-beta.1");
if (!Configuration.getGlobalConfiguration().get("AZURE_TELEMETRY_DISABLED", false)) {
userAgentBuilder
.append(" (")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@

import com.azure.core.annotation.ReturnType;
import com.azure.core.annotation.ServiceMethod;
import com.azure.core.http.rest.PagedIterable;
import com.azure.core.http.rest.Response;
import com.azure.core.management.polling.PollResult;
import com.azure.core.util.Context;
Expand All @@ -15,37 +14,6 @@

/** An instance of this class provides access to all the operations defined in KeyValuesClient. */
public interface KeyValuesClient {
/**
* Lists the key-values for a given configuration store.
*
* @param resourceGroupName The name of the resource group to which the container registry belongs.
* @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 result of a request to list key-values as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable<KeyValueInner> listByConfigurationStore(String resourceGroupName, String configStoreName);

/**
* Lists the key-values for a given configuration store.
*
* @param resourceGroupName The name of the resource group to which the container registry belongs.
* @param configStoreName The name of the configuration store.
* @param skipToken A skip token is used to continue retrieving items after an operation returns a partial result.
* If a previous response contains a nextLink element, the value of the nextLink element will include a
* skipToken parameter that specifies a starting point to use for subsequent calls.
* @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 result of a request to list key-values as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable<KeyValueInner> listByConfigurationStore(
String resourceGroupName, String configStoreName, String skipToken, Context context);

/**
* Gets the properties of the specified key-value.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,9 @@ Response<PrivateEndpointConnectionInner> getWithResponse(
String resourceGroupName, String configStoreName, String privateEndpointConnectionName, Context context);

/**
* Update the state of the specified private endpoint connection associated with the configuration store.
* Update the state of the specified private endpoint connection associated with the configuration store. This
* operation cannot be used to create a private endpoint connection. Private endpoint connections must be created
* with the Network resource provider.
*
* @param resourceGroupName The name of the resource group to which the container registry belongs.
* @param configStoreName The name of the configuration store.
Expand All @@ -96,7 +98,9 @@ SyncPoller<PollResult<PrivateEndpointConnectionInner>, PrivateEndpointConnection
PrivateEndpointConnectionInner privateEndpointConnection);

/**
* Update the state of the specified private endpoint connection associated with the configuration store.
* Update the state of the specified private endpoint connection associated with the configuration store. This
* operation cannot be used to create a private endpoint connection. Private endpoint connections must be created
* with the Network resource provider.
*
* @param resourceGroupName The name of the resource group to which the container registry belongs.
* @param configStoreName The name of the configuration store.
Expand All @@ -117,7 +121,9 @@ SyncPoller<PollResult<PrivateEndpointConnectionInner>, PrivateEndpointConnection
Context context);

/**
* Update the state of the specified private endpoint connection associated with the configuration store.
* Update the state of the specified private endpoint connection associated with the configuration store. This
* operation cannot be used to create a private endpoint connection. Private endpoint connections must be created
* with the Network resource provider.
*
* @param resourceGroupName The name of the resource group to which the container registry belongs.
* @param configStoreName The name of the configuration store.
Expand All @@ -136,7 +142,9 @@ PrivateEndpointConnectionInner createOrUpdate(
PrivateEndpointConnectionInner privateEndpointConnection);

/**
* Update the state of the specified private endpoint connection associated with the configuration store.
* Update the state of the specified private endpoint connection associated with the configuration store. This
* operation cannot be used to create a private endpoint connection. Private endpoint connections must be created
* with the Network resource provider.
*
* @param resourceGroupName The name of the resource group to which the container registry belongs.
* @param configStoreName The name of the configuration store.
Expand Down
Loading

0 comments on commit 98af9ff

Please sign in to comment.