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

[AutoPR azure-resourcemanager-appconfiguration] Add "fillGapWithZero" property to Microsoft.AppConfiguration/configurationStores #8380

Closed
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,8 @@
# Release History

## 1.0.0-beta.2 (Unreleased)
## 1.0.0-beta.1 (2021-05-03)

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

## 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 @@ -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);
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,179 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.

package com.azure.resourcemanager.appconfiguration.fluent;

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;
import com.azure.core.util.polling.SyncPoller;
import com.azure.resourcemanager.appconfiguration.fluent.models.KeyValueInner;

/** 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.
*/
@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.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable<KeyValueInner> listByConfigurationStore(
String resourceGroupName, String configStoreName, String skipToken, Context context);

/**
* Gets the properties of the specified 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 keyValueName Identifier of key and label combination. Key and label are joined by $ character. Label is
* optional.
* @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 key-value.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
KeyValueInner get(String resourceGroupName, String configStoreName, String keyValueName);

/**
* Gets the properties of the specified 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 keyValueName Identifier of key and label combination. Key and label are joined by $ character. Label is
* optional.
* @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 properties of the specified key-value.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response<KeyValueInner> getWithResponse(
String resourceGroupName, String configStoreName, String keyValueName, Context context);

/**
* Creates a 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 keyValueName Identifier of key and label combination. Key and label are joined by $ character. Label is
* optional.
* @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 key-value resource along with all resource properties.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
KeyValueInner createOrUpdate(String resourceGroupName, String configStoreName, String keyValueName);

/**
* Creates a 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 keyValueName Identifier of key and label combination. Key and label are joined by $ character. Label is
* optional.
* @param keyValueParameters The parameters for creating 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 key-value resource along with all resource properties.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response<KeyValueInner> createOrUpdateWithResponse(
String resourceGroupName,
String configStoreName,
String keyValueName,
KeyValueInner keyValueParameters,
Context context);

/**
* Deletes a 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 keyValueName Identifier of key and label combination. Key and label are joined by $ character. Label is
* optional.
* @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.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
SyncPoller<PollResult<Void>, Void> beginDelete(
String resourceGroupName, String configStoreName, String keyValueName);

/**
* Deletes a 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 keyValueName Identifier of key and label combination. Key and label are joined by $ character. Label is
* optional.
* @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 completion.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
SyncPoller<PollResult<Void>, Void> beginDelete(
String resourceGroupName, String configStoreName, String keyValueName, Context context);

/**
* Deletes a 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 keyValueName Identifier of key and label combination. Key and label are joined by $ character. Label is
* optional.
* @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 delete(String resourceGroupName, String configStoreName, String keyValueName);

/**
* Deletes a 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 keyValueName Identifier of key and label combination. Key and label are joined by $ character. Label is
* optional.
* @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 delete(String resourceGroupName, String configStoreName, String keyValueName, Context context);
}
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
import com.azure.core.annotation.Fluent;
import com.azure.core.annotation.JsonFlatten;
import com.azure.core.management.Resource;
import com.azure.core.management.SystemData;
import com.azure.core.util.logging.ClientLogger;
import com.azure.resourcemanager.appconfiguration.models.EncryptionProperties;
import com.azure.resourcemanager.appconfiguration.models.PrivateEndpointConnectionReference;
Expand Down Expand Up @@ -41,6 +42,12 @@ public class ConfigurationStoreInner extends Resource {
@JsonProperty(value = "sku", required = true)
private Sku sku;

/*
* Resource system metadata.
*/
@JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY)
private SystemData systemData;

/*
* The provisioning state of the configuration store.
*/
Expand Down Expand Up @@ -79,6 +86,12 @@ public class ConfigurationStoreInner extends Resource {
@JsonProperty(value = "properties.publicNetworkAccess")
private PublicNetworkAccess publicNetworkAccess;

/*
* Disables all authentication methods other than AAD authentication.
*/
@JsonProperty(value = "properties.disableLocalAuth")
private Boolean disableLocalAuth;

/**
* Get the identity property: The managed identity information, if configured.
*
Expand Down Expand Up @@ -119,6 +132,15 @@ public ConfigurationStoreInner withSku(Sku sku) {
return this;
}

/**
* Get the systemData property: Resource system metadata.
*
* @return the systemData value.
*/
public SystemData systemData() {
return this.systemData;
}

/**
* Get the provisioningState property: The provisioning state of the configuration store.
*
Expand Down Expand Up @@ -198,6 +220,26 @@ public ConfigurationStoreInner withPublicNetworkAccess(PublicNetworkAccess publi
return this;
}

/**
* Get the disableLocalAuth property: Disables all authentication methods other than AAD authentication.
*
* @return the disableLocalAuth value.
*/
public Boolean disableLocalAuth() {
return this.disableLocalAuth;
}

/**
* Set the disableLocalAuth property: Disables all authentication methods other than AAD authentication.
*
* @param disableLocalAuth the disableLocalAuth value to set.
* @return the ConfigurationStoreInner object itself.
*/
public ConfigurationStoreInner withDisableLocalAuth(Boolean disableLocalAuth) {
this.disableLocalAuth = disableLocalAuth;
return this;
}

/** {@inheritDoc} */
@Override
public ConfigurationStoreInner withLocation(String location) {
Expand Down
Loading