Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Automation] Generate Fluent Lite from appconfiguration#package-2021-03-01-preview #21419

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,7 +1,92 @@
# Release History

## 1.0.0-beta.2 (Unreleased)
## 1.0.0-beta.2 (2021-05-14)

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

### Breaking Change

* `models.ListKeyValueParameters` was removed

#### `models.ConfigurationStore$Update` was modified

* `withPublicNetworkAccess(models.PublicNetworkAccess)` was removed

#### `models.ConfigurationStoreUpdateParameters` was modified

* `publicNetworkAccess()` was removed
* `withPublicNetworkAccess(models.PublicNetworkAccess)` was removed

#### `models.ConfigurationStore` was modified

* `listKeyValue(models.ListKeyValueParameters)` was removed
* `listKeyValueWithResponse(models.ListKeyValueParameters,com.azure.core.util.Context)` was removed

#### `models.ConfigurationStores` was modified

* `listKeyValue(java.lang.String,java.lang.String,models.ListKeyValueParameters)` was removed
* `listKeyValueWithResponse(java.lang.String,java.lang.String,models.ListKeyValueParameters,com.azure.core.util.Context)` was removed

### New Feature

* `models.KeyValue$Definition` was added

* `models.KeyValue$UpdateStages` was added

* `models.ServiceSpecification` was added

* `models.OperationProperties` was added

* `models.KeyValues` was added

* `models.LogSpecification` was added

* `models.MetricDimension` was added

* `models.KeyValueListResult` was added

* `models.KeyValue$Update` was added

* `models.KeyValue$DefinitionStages` was added

* `models.MetricSpecification` was added

#### `models.ConfigurationStore$Update` was modified

* `withDisableLocalAuth(java.lang.Boolean)` was added

#### `models.ConfigurationStoreUpdateParameters` was modified

* `withDisableLocalAuth(java.lang.Boolean)` was added
* `disableLocalAuth()` was added

#### `models.OperationDefinition` was modified

* `properties()` was added
* `isDataAction()` was added
* `origin()` was added

#### `models.ConfigurationStore` was modified

* `systemData()` was added
* `disableLocalAuth()` was added

#### `AppConfigurationManager` was modified

* `keyValues()` was added

#### `models.ConfigurationStore$Definition` was modified

* `withDisableLocalAuth(java.lang.Boolean)` was added

#### `models.KeyValue` was modified

* `refresh(com.azure.core.util.Context)` was added
* `type()` was added
* `refresh()` was added
* `name()` was added
* `id()` was added
* `update()` was added

## 1.0.0-beta.1 (2021-04-12)

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-2020-06-01. 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-03-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.1</version>
<version>1.0.0-beta.2</version>
</dependency>
```
[//]: # ({x-version-update-end})
Expand Down
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-2020-06-01.</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-03-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 @@ -23,10 +23,12 @@
import com.azure.resourcemanager.appconfiguration.fluent.AppConfigurationManagementClient;
import com.azure.resourcemanager.appconfiguration.implementation.AppConfigurationManagementClientBuilder;
import com.azure.resourcemanager.appconfiguration.implementation.ConfigurationStoresImpl;
import com.azure.resourcemanager.appconfiguration.implementation.KeyValuesImpl;
import com.azure.resourcemanager.appconfiguration.implementation.OperationsImpl;
import com.azure.resourcemanager.appconfiguration.implementation.PrivateEndpointConnectionsImpl;
import com.azure.resourcemanager.appconfiguration.implementation.PrivateLinkResourcesImpl;
import com.azure.resourcemanager.appconfiguration.models.ConfigurationStores;
import com.azure.resourcemanager.appconfiguration.models.KeyValues;
import com.azure.resourcemanager.appconfiguration.models.Operations;
import com.azure.resourcemanager.appconfiguration.models.PrivateEndpointConnections;
import com.azure.resourcemanager.appconfiguration.models.PrivateLinkResources;
Expand All @@ -46,6 +48,8 @@ public final class AppConfigurationManager {

private PrivateLinkResources privateLinkResources;

private KeyValues keyValues;

private final AppConfigurationManagementClient clientObject;

private AppConfigurationManager(HttpPipeline httpPipeline, AzureProfile profile, Duration defaultPollInterval) {
Expand Down Expand Up @@ -170,7 +174,7 @@ public AppConfigurationManager authenticate(TokenCredential credential, AzurePro
.append("-")
.append("com.azure.resourcemanager.appconfiguration")
.append("/")
.append("1.0.0-beta.1");
.append("1.0.0-beta.2");
if (!Configuration.getGlobalConfiguration().get("AZURE_TELEMETRY_DISABLED", false)) {
userAgentBuilder
.append(" (")
Expand Down Expand Up @@ -242,6 +246,14 @@ public PrivateLinkResources privateLinkResources() {
return privateLinkResources;
}

/** @return Resource collection API of KeyValues. */
public KeyValues keyValues() {
if (this.keyValues == null) {
this.keyValues = new KeyValuesImpl(clientObject.getKeyValues(), this);
}
return keyValues;
}

/**
* @return Wrapped service client AppConfigurationManagementClient providing direct access to the underlying
* auto-generated API implementation, based on Azure REST API.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,4 +71,11 @@ public interface AppConfigurationManagementClient {
* @return the PrivateLinkResourcesClient object.
*/
PrivateLinkResourcesClient getPrivateLinkResources();

/**
* Gets the KeyValuesClient object to access its operations.
*
* @return the KeyValuesClient object.
*/
KeyValuesClient getKeyValues();
}
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,7 @@
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.KeyValueInner;
import com.azure.resourcemanager.appconfiguration.models.ConfigurationStoreUpdateParameters;
import com.azure.resourcemanager.appconfiguration.models.ListKeyValueParameters;
import com.azure.resourcemanager.appconfiguration.models.RegenerateKeyParameters;

/** An instance of this class provides access to all the operations defined in ConfigurationStoresClient. */
Expand Down Expand Up @@ -358,38 +356,4 @@ Response<ApiKeyInner> regenerateKeyWithResponse(
String configStoreName,
RegenerateKeyParameters regenerateKeyParameters,
Context context);

/**
* Lists a configuration store key-value.
*
* @param resourceGroupName The name of the resource group to which the container registry belongs.
* @param configStoreName The name of the configuration store.
* @param listKeyValueParameters The parameters for retrieving a key-value.
* @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 retrieve a key-value from the specified configuration store.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
KeyValueInner listKeyValue(
String resourceGroupName, String configStoreName, ListKeyValueParameters listKeyValueParameters);

/**
* Lists a configuration store key-value.
*
* @param resourceGroupName The name of the resource group to which the container registry belongs.
* @param configStoreName The name of the configuration store.
* @param listKeyValueParameters The parameters for retrieving a key-value.
* @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 retrieve a key-value from the specified configuration store.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response<KeyValueInner> listKeyValueWithResponse(
String resourceGroupName,
String configStoreName,
ListKeyValueParameters listKeyValueParameters,
Context context);
}
Loading