, Void> beginPurgeDeleted(
String location, String configStoreName, Context context) {
- return beginPurgeDeletedAsync(location, configStoreName, context).getSyncPoller();
+ return this.beginPurgeDeletedAsync(location, configStoreName, context).getSyncPoller();
}
/**
@@ -2551,7 +2554,8 @@ public void purgeDeleted(String location, String configStoreName, Context contex
/**
* Get the next page of items.
*
- * @param nextLink The nextLink parameter.
+ * @param nextLink The URL to get the next list of items
+ * The nextLink parameter.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
@@ -2587,7 +2591,8 @@ private Mono> listNextSinglePageAsync(Str
/**
* Get the next page of items.
*
- * @param nextLink The nextLink parameter.
+ * @param nextLink The URL to get the next list of items
+ * The nextLink parameter.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
@@ -2624,7 +2629,8 @@ private Mono> listNextSinglePageAsync(Str
/**
* Get the next page of items.
*
- * @param nextLink The nextLink parameter.
+ * @param nextLink The URL to get the next list of items
+ * The nextLink parameter.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
@@ -2661,7 +2667,8 @@ private Mono> listByResourceGroupNextSing
/**
* Get the next page of items.
*
- * @param nextLink The nextLink parameter.
+ * @param nextLink The URL to get the next list of items
+ * The nextLink parameter.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
@@ -2699,7 +2706,8 @@ private Mono> listByResourceGroupNextSing
/**
* Get the next page of items.
*
- * @param nextLink The nextLink parameter.
+ * @param nextLink The URL to get the next list of items
+ * The nextLink parameter.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
@@ -2735,7 +2743,8 @@ private Mono> listKeysNextSinglePageAsync(String next
/**
* Get the next page of items.
*
- * @param nextLink The nextLink parameter.
+ * @param nextLink The URL to get the next list of items
+ * The nextLink parameter.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
@@ -2772,7 +2781,8 @@ private Mono> listKeysNextSinglePageAsync(String next
/**
* Get the next page of items.
*
- * @param nextLink The nextLink parameter.
+ * @param nextLink The URL to get the next list of items
+ * The nextLink parameter.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
@@ -2808,7 +2818,8 @@ private Mono> listDeletedNextSingl
/**
* Get the next page of items.
*
- * @param nextLink The nextLink parameter.
+ * @param nextLink The URL to get the next list of items
+ * The nextLink parameter.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
diff --git a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/implementation/ConfigurationStoresImpl.java b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/implementation/ConfigurationStoresImpl.java
index f284e5e84a75d..ce41fa377799b 100644
--- a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/implementation/ConfigurationStoresImpl.java
+++ b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/implementation/ConfigurationStoresImpl.java
@@ -55,15 +55,6 @@ public PagedIterable listByResourceGroup(
return Utils.mapPage(inner, inner1 -> new ConfigurationStoreImpl(inner1, this.manager()));
}
- public ConfigurationStore getByResourceGroup(String resourceGroupName, String configStoreName) {
- ConfigurationStoreInner inner = this.serviceClient().getByResourceGroup(resourceGroupName, configStoreName);
- if (inner != null) {
- return new ConfigurationStoreImpl(inner, this.manager());
- } else {
- return null;
- }
- }
-
public Response getByResourceGroupWithResponse(
String resourceGroupName, String configStoreName, Context context) {
Response inner =
@@ -79,6 +70,15 @@ public Response getByResourceGroupWithResponse(
}
}
+ public ConfigurationStore getByResourceGroup(String resourceGroupName, String configStoreName) {
+ ConfigurationStoreInner inner = this.serviceClient().getByResourceGroup(resourceGroupName, configStoreName);
+ if (inner != null) {
+ return new ConfigurationStoreImpl(inner, this.manager());
+ } else {
+ return null;
+ }
+ }
+
public void deleteByResourceGroup(String resourceGroupName, String configStoreName) {
this.serviceClient().delete(resourceGroupName, configStoreName);
}
@@ -99,17 +99,6 @@ public PagedIterable listKeys(
return Utils.mapPage(inner, inner1 -> new ApiKeyImpl(inner1, this.manager()));
}
- public ApiKey regenerateKey(
- String resourceGroupName, String configStoreName, RegenerateKeyParameters regenerateKeyParameters) {
- ApiKeyInner inner =
- this.serviceClient().regenerateKey(resourceGroupName, configStoreName, regenerateKeyParameters);
- if (inner != null) {
- return new ApiKeyImpl(inner, this.manager());
- } else {
- return null;
- }
- }
-
public Response regenerateKeyWithResponse(
String resourceGroupName,
String configStoreName,
@@ -130,6 +119,17 @@ public Response regenerateKeyWithResponse(
}
}
+ public ApiKey regenerateKey(
+ String resourceGroupName, String configStoreName, RegenerateKeyParameters regenerateKeyParameters) {
+ ApiKeyInner inner =
+ this.serviceClient().regenerateKey(resourceGroupName, configStoreName, regenerateKeyParameters);
+ if (inner != null) {
+ return new ApiKeyImpl(inner, this.manager());
+ } else {
+ return null;
+ }
+ }
+
public PagedIterable listDeleted() {
PagedIterable inner = this.serviceClient().listDeleted();
return Utils.mapPage(inner, inner1 -> new DeletedConfigurationStoreImpl(inner1, this.manager()));
@@ -140,15 +140,6 @@ public PagedIterable listDeleted(Context context) {
return Utils.mapPage(inner, inner1 -> new DeletedConfigurationStoreImpl(inner1, this.manager()));
}
- public DeletedConfigurationStore getDeleted(String location, String configStoreName) {
- DeletedConfigurationStoreInner inner = this.serviceClient().getDeleted(location, configStoreName);
- if (inner != null) {
- return new DeletedConfigurationStoreImpl(inner, this.manager());
- } else {
- return null;
- }
- }
-
public Response getDeletedWithResponse(
String location, String configStoreName, Context context) {
Response inner =
@@ -164,6 +155,15 @@ public Response getDeletedWithResponse(
}
}
+ public DeletedConfigurationStore getDeleted(String location, String configStoreName) {
+ DeletedConfigurationStoreInner inner = this.serviceClient().getDeleted(location, configStoreName);
+ if (inner != null) {
+ return new DeletedConfigurationStoreImpl(inner, this.manager());
+ } else {
+ return null;
+ }
+ }
+
public void purgeDeleted(String location, String configStoreName) {
this.serviceClient().purgeDeleted(location, configStoreName);
}
diff --git a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/implementation/KeyValuesClientImpl.java b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/implementation/KeyValuesClientImpl.java
index 3d1438d30a15e..20b77f76b5925 100644
--- a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/implementation/KeyValuesClientImpl.java
+++ b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/implementation/KeyValuesClientImpl.java
@@ -19,10 +19,6 @@
import com.azure.core.annotation.ServiceInterface;
import com.azure.core.annotation.ServiceMethod;
import com.azure.core.annotation.UnexpectedResponseExceptionType;
-import com.azure.core.http.rest.PagedFlux;
-import com.azure.core.http.rest.PagedIterable;
-import com.azure.core.http.rest.PagedResponse;
-import com.azure.core.http.rest.PagedResponseBase;
import com.azure.core.http.rest.Response;
import com.azure.core.http.rest.RestProxy;
import com.azure.core.management.exception.ManagementException;
@@ -33,7 +29,6 @@
import com.azure.core.util.polling.SyncPoller;
import com.azure.resourcemanager.appconfiguration.fluent.KeyValuesClient;
import com.azure.resourcemanager.appconfiguration.fluent.models.KeyValueInner;
-import com.azure.resourcemanager.appconfiguration.models.KeyValueListResult;
import java.nio.ByteBuffer;
import reactor.core.publisher.Flux;
import reactor.core.publisher.Mono;
@@ -63,23 +58,7 @@ public final class KeyValuesClientImpl implements KeyValuesClient {
*/
@Host("{$host}")
@ServiceInterface(name = "AppConfigurationMana")
- private interface KeyValuesService {
- @Headers({"Content-Type: application/json"})
- @Get(
- "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppConfiguration"
- + "/configurationStores/{configStoreName}/keyValues")
- @ExpectedResponses({200})
- @UnexpectedResponseExceptionType(ManagementException.class)
- Mono> listByConfigurationStore(
- @HostParam("$host") String endpoint,
- @PathParam("subscriptionId") String subscriptionId,
- @PathParam("resourceGroupName") String resourceGroupName,
- @PathParam("configStoreName") String configStoreName,
- @QueryParam("api-version") String apiVersion,
- @QueryParam("$skipToken") String skipToken,
- @HeaderParam("Accept") String accept,
- Context context);
-
+ public interface KeyValuesService {
@Headers({"Content-Type: application/json"})
@Get(
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppConfiguration"
@@ -128,238 +107,6 @@ Mono>> delete(
@PathParam("keyValueName") String keyValueName,
@HeaderParam("Accept") String accept,
Context context);
-
- @Headers({"Content-Type: application/json"})
- @Get("{nextLink}")
- @ExpectedResponses({200})
- @UnexpectedResponseExceptionType(ManagementException.class)
- Mono> listByConfigurationStoreNext(
- @PathParam(value = "nextLink", encoded = true) String nextLink,
- @HostParam("$host") String endpoint,
- @HeaderParam("Accept") String accept,
- Context context);
- }
-
- /**
- * 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.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws 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 along with {@link PagedResponse} on successful completion of
- * {@link Mono}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- private Mono> listByConfigurationStoreSinglePageAsync(
- String resourceGroupName, String configStoreName, String skipToken) {
- if (this.client.getEndpoint() == null) {
- return Mono
- .error(
- new IllegalArgumentException(
- "Parameter this.client.getEndpoint() is required and cannot be null."));
- }
- if (this.client.getSubscriptionId() == null) {
- return Mono
- .error(
- new IllegalArgumentException(
- "Parameter this.client.getSubscriptionId() is required and cannot be null."));
- }
- if (resourceGroupName == null) {
- return Mono
- .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
- }
- if (configStoreName == null) {
- return Mono
- .error(new IllegalArgumentException("Parameter configStoreName is required and cannot be null."));
- }
- final String accept = "application/json";
- return FluxUtil
- .withContext(
- context ->
- service
- .listByConfigurationStore(
- this.client.getEndpoint(),
- this.client.getSubscriptionId(),
- resourceGroupName,
- configStoreName,
- this.client.getApiVersion(),
- skipToken,
- accept,
- context))
- .>map(
- res ->
- new PagedResponseBase<>(
- res.getRequest(),
- res.getStatusCode(),
- res.getHeaders(),
- res.getValue().value(),
- res.getValue().nextLink(),
- null))
- .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
- }
-
- /**
- * 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 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 along with {@link PagedResponse} on successful completion of
- * {@link Mono}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- private Mono> listByConfigurationStoreSinglePageAsync(
- String resourceGroupName, String configStoreName, String skipToken, Context context) {
- if (this.client.getEndpoint() == null) {
- return Mono
- .error(
- new IllegalArgumentException(
- "Parameter this.client.getEndpoint() is required and cannot be null."));
- }
- if (this.client.getSubscriptionId() == null) {
- return Mono
- .error(
- new IllegalArgumentException(
- "Parameter this.client.getSubscriptionId() is required and cannot be null."));
- }
- if (resourceGroupName == null) {
- return Mono
- .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
- }
- if (configStoreName == null) {
- return Mono
- .error(new IllegalArgumentException("Parameter configStoreName is required and cannot be null."));
- }
- final String accept = "application/json";
- context = this.client.mergeContext(context);
- return service
- .listByConfigurationStore(
- this.client.getEndpoint(),
- this.client.getSubscriptionId(),
- resourceGroupName,
- configStoreName,
- this.client.getApiVersion(),
- skipToken,
- accept,
- context)
- .map(
- res ->
- new PagedResponseBase<>(
- res.getRequest(),
- res.getStatusCode(),
- res.getHeaders(),
- res.getValue().value(),
- res.getValue().nextLink(),
- null));
- }
-
- /**
- * 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.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws 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 PagedFlux}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- private PagedFlux listByConfigurationStoreAsync(
- String resourceGroupName, String configStoreName, String skipToken) {
- return new PagedFlux<>(
- () -> listByConfigurationStoreSinglePageAsync(resourceGroupName, configStoreName, skipToken),
- nextLink -> listByConfigurationStoreNextSinglePageAsync(nextLink));
- }
-
- /**
- * 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 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 PagedFlux}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- private PagedFlux listByConfigurationStoreAsync(String resourceGroupName, String configStoreName) {
- final String skipToken = null;
- return new PagedFlux<>(
- () -> listByConfigurationStoreSinglePageAsync(resourceGroupName, configStoreName, skipToken),
- nextLink -> listByConfigurationStoreNextSinglePageAsync(nextLink));
- }
-
- /**
- * 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 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 PagedFlux}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- private PagedFlux listByConfigurationStoreAsync(
- String resourceGroupName, String configStoreName, String skipToken, Context context) {
- return new PagedFlux<>(
- () -> listByConfigurationStoreSinglePageAsync(resourceGroupName, configStoreName, skipToken, context),
- nextLink -> listByConfigurationStoreNextSinglePageAsync(nextLink, context));
- }
-
- /**
- * 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 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)
- public PagedIterable listByConfigurationStore(String resourceGroupName, String configStoreName) {
- final String skipToken = null;
- return new PagedIterable<>(listByConfigurationStoreAsync(resourceGroupName, configStoreName, skipToken));
- }
-
- /**
- * 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 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)
- public PagedIterable listByConfigurationStore(
- String resourceGroupName, String configStoreName, String skipToken, Context context) {
- return new PagedIterable<>(
- listByConfigurationStoreAsync(resourceGroupName, configStoreName, skipToken, context));
}
/**
@@ -497,14 +244,16 @@ private Mono getAsync(String resourceGroupName, String configStor
* @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 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.
+ * @return the properties of the specified key-value along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- public KeyValueInner get(String resourceGroupName, String configStoreName, String keyValueName) {
- return getAsync(resourceGroupName, configStoreName, keyValueName).block();
+ public Response getWithResponse(
+ String resourceGroupName, String configStoreName, String keyValueName, Context context) {
+ return getWithResponseAsync(resourceGroupName, configStoreName, keyValueName, context).block();
}
/**
@@ -514,16 +263,14 @@ public KeyValueInner get(String resourceGroupName, String configStoreName, Strin
* @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 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 along with {@link Response}.
+ * @return the properties of the specified key-value.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- public Response getWithResponse(
- String resourceGroupName, String configStoreName, String keyValueName, Context context) {
- return getWithResponseAsync(resourceGroupName, configStoreName, keyValueName, context).block();
+ public KeyValueInner get(String resourceGroupName, String configStoreName, String keyValueName) {
+ return getWithResponse(resourceGroupName, configStoreName, keyValueName, Context.NONE).getValue();
}
/**
@@ -657,7 +404,6 @@ private Mono> createOrUpdateWithResponseAsync(
* @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.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
@@ -665,7 +411,8 @@ private Mono> createOrUpdateWithResponseAsync(
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono createOrUpdateAsync(
- String resourceGroupName, String configStoreName, String keyValueName, KeyValueInner keyValueParameters) {
+ String resourceGroupName, String configStoreName, String keyValueName) {
+ final KeyValueInner keyValueParameters = null;
return createOrUpdateWithResponseAsync(resourceGroupName, configStoreName, keyValueName, keyValueParameters)
.flatMap(res -> Mono.justOrEmpty(res.getValue()));
}
@@ -677,17 +424,23 @@ private Mono createOrUpdateAsync(
* @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 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 on successful completion of {@link Mono}.
+ * @return the key-value resource along with all resource properties along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- private Mono createOrUpdateAsync(
- String resourceGroupName, String configStoreName, String keyValueName) {
- final KeyValueInner keyValueParameters = null;
- return createOrUpdateWithResponseAsync(resourceGroupName, configStoreName, keyValueName, keyValueParameters)
- .flatMap(res -> Mono.justOrEmpty(res.getValue()));
+ public Response createOrUpdateWithResponse(
+ String resourceGroupName,
+ String configStoreName,
+ String keyValueName,
+ KeyValueInner keyValueParameters,
+ Context context) {
+ return createOrUpdateWithResponseAsync(
+ resourceGroupName, configStoreName, keyValueName, keyValueParameters, context)
+ .block();
}
/**
@@ -705,33 +458,9 @@ private Mono createOrUpdateAsync(
@ServiceMethod(returns = ReturnType.SINGLE)
public KeyValueInner createOrUpdate(String resourceGroupName, String configStoreName, String keyValueName) {
final KeyValueInner keyValueParameters = null;
- return createOrUpdateAsync(resourceGroupName, configStoreName, keyValueName, keyValueParameters).block();
- }
-
- /**
- * 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 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 along with {@link Response}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- public Response createOrUpdateWithResponse(
- String resourceGroupName,
- String configStoreName,
- String keyValueName,
- KeyValueInner keyValueParameters,
- Context context) {
- return createOrUpdateWithResponseAsync(
- resourceGroupName, configStoreName, keyValueName, keyValueParameters, context)
- .block();
+ return createOrUpdateWithResponse(
+ resourceGroupName, configStoreName, keyValueName, keyValueParameters, Context.NONE)
+ .getValue();
}
/**
@@ -904,7 +633,7 @@ private PollerFlux, Void> beginDeleteAsync(
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
public SyncPoller, Void> beginDelete(
String resourceGroupName, String configStoreName, String keyValueName) {
- return beginDeleteAsync(resourceGroupName, configStoreName, keyValueName).getSyncPoller();
+ return this.beginDeleteAsync(resourceGroupName, configStoreName, keyValueName).getSyncPoller();
}
/**
@@ -923,7 +652,7 @@ public SyncPoller, Void> beginDelete(
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
public SyncPoller, Void> beginDelete(
String resourceGroupName, String configStoreName, String keyValueName, Context context) {
- return beginDeleteAsync(resourceGroupName, configStoreName, keyValueName, context).getSyncPoller();
+ return this.beginDeleteAsync(resourceGroupName, configStoreName, keyValueName, context).getSyncPoller();
}
/**
@@ -998,79 +727,4 @@ public void delete(String resourceGroupName, String configStoreName, String keyV
public void delete(String resourceGroupName, String configStoreName, String keyValueName, Context context) {
deleteAsync(resourceGroupName, configStoreName, keyValueName, context).block();
}
-
- /**
- * Get the next page of items.
- *
- * @param nextLink The nextLink parameter.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws 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 along with {@link PagedResponse} on successful completion of
- * {@link Mono}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- private Mono> listByConfigurationStoreNextSinglePageAsync(String nextLink) {
- if (nextLink == null) {
- return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null."));
- }
- if (this.client.getEndpoint() == null) {
- return Mono
- .error(
- new IllegalArgumentException(
- "Parameter this.client.getEndpoint() is required and cannot be null."));
- }
- final String accept = "application/json";
- return FluxUtil
- .withContext(
- context -> service.listByConfigurationStoreNext(nextLink, this.client.getEndpoint(), accept, context))
- .>map(
- res ->
- new PagedResponseBase<>(
- res.getRequest(),
- res.getStatusCode(),
- res.getHeaders(),
- res.getValue().value(),
- res.getValue().nextLink(),
- null))
- .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
- }
-
- /**
- * Get the next page of items.
- *
- * @param nextLink The nextLink parameter.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws 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 along with {@link PagedResponse} on successful completion of
- * {@link Mono}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- private Mono> listByConfigurationStoreNextSinglePageAsync(
- String nextLink, Context context) {
- if (nextLink == null) {
- return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null."));
- }
- if (this.client.getEndpoint() == null) {
- return Mono
- .error(
- new IllegalArgumentException(
- "Parameter this.client.getEndpoint() is required and cannot be null."));
- }
- final String accept = "application/json";
- context = this.client.mergeContext(context);
- return service
- .listByConfigurationStoreNext(nextLink, this.client.getEndpoint(), accept, context)
- .map(
- res ->
- new PagedResponseBase<>(
- res.getRequest(),
- res.getStatusCode(),
- res.getHeaders(),
- res.getValue().value(),
- res.getValue().nextLink(),
- null));
- }
}
diff --git a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/implementation/KeyValuesImpl.java b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/implementation/KeyValuesImpl.java
index 021d2161b0d4f..bd01280881e95 100644
--- a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/implementation/KeyValuesImpl.java
+++ b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/implementation/KeyValuesImpl.java
@@ -4,7 +4,6 @@
package com.azure.resourcemanager.appconfiguration.implementation;
-import com.azure.core.http.rest.PagedIterable;
import com.azure.core.http.rest.Response;
import com.azure.core.http.rest.SimpleResponse;
import com.azure.core.util.Context;
@@ -28,28 +27,6 @@ public KeyValuesImpl(
this.serviceManager = serviceManager;
}
- public PagedIterable listByConfigurationStore(String resourceGroupName, String configStoreName) {
- PagedIterable inner =
- this.serviceClient().listByConfigurationStore(resourceGroupName, configStoreName);
- return Utils.mapPage(inner, inner1 -> new KeyValueImpl(inner1, this.manager()));
- }
-
- public PagedIterable listByConfigurationStore(
- String resourceGroupName, String configStoreName, String skipToken, Context context) {
- PagedIterable inner =
- this.serviceClient().listByConfigurationStore(resourceGroupName, configStoreName, skipToken, context);
- return Utils.mapPage(inner, inner1 -> new KeyValueImpl(inner1, this.manager()));
- }
-
- public KeyValue get(String resourceGroupName, String configStoreName, String keyValueName) {
- KeyValueInner inner = this.serviceClient().get(resourceGroupName, configStoreName, keyValueName);
- if (inner != null) {
- return new KeyValueImpl(inner, this.manager());
- } else {
- return null;
- }
- }
-
public Response getWithResponse(
String resourceGroupName, String configStoreName, String keyValueName, Context context) {
Response inner =
@@ -65,6 +42,15 @@ public Response getWithResponse(
}
}
+ public KeyValue get(String resourceGroupName, String configStoreName, String keyValueName) {
+ KeyValueInner inner = this.serviceClient().get(resourceGroupName, configStoreName, keyValueName);
+ if (inner != null) {
+ return new KeyValueImpl(inner, this.manager());
+ } else {
+ return null;
+ }
+ }
+
public void delete(String resourceGroupName, String configStoreName, String keyValueName) {
this.serviceClient().delete(resourceGroupName, configStoreName, keyValueName);
}
diff --git a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/implementation/OperationsClientImpl.java b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/implementation/OperationsClientImpl.java
index 0090ad809a96a..4d51b638532f8 100644
--- a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/implementation/OperationsClientImpl.java
+++ b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/implementation/OperationsClientImpl.java
@@ -59,7 +59,7 @@ public final class OperationsClientImpl implements OperationsClient {
*/
@Host("{$host}")
@ServiceInterface(name = "AppConfigurationMana")
- private interface OperationsService {
+ public interface OperationsService {
@Headers({"Content-Type: application/json"})
@Post("/subscriptions/{subscriptionId}/providers/Microsoft.AppConfiguration/checkNameAvailability")
@ExpectedResponses({200})
@@ -224,31 +224,31 @@ private Mono checkNameAvailabilityAsync(
* Checks whether the configuration store name is available for use.
*
* @param checkNameAvailabilityParameters The object containing information for the availability request.
+ * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws 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 check the availability of a resource name.
+ * @return the result of a request to check the availability of a resource name along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- public NameAvailabilityStatusInner checkNameAvailability(
- CheckNameAvailabilityParameters checkNameAvailabilityParameters) {
- return checkNameAvailabilityAsync(checkNameAvailabilityParameters).block();
+ public Response checkNameAvailabilityWithResponse(
+ CheckNameAvailabilityParameters checkNameAvailabilityParameters, Context context) {
+ return checkNameAvailabilityWithResponseAsync(checkNameAvailabilityParameters, context).block();
}
/**
* Checks whether the configuration store name is available for use.
*
* @param checkNameAvailabilityParameters The object containing information for the availability request.
- * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws 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 check the availability of a resource name along with {@link Response}.
+ * @return the result of a request to check the availability of a resource name.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- public Response checkNameAvailabilityWithResponse(
- CheckNameAvailabilityParameters checkNameAvailabilityParameters, Context context) {
- return checkNameAvailabilityWithResponseAsync(checkNameAvailabilityParameters, context).block();
+ public NameAvailabilityStatusInner checkNameAvailability(
+ CheckNameAvailabilityParameters checkNameAvailabilityParameters) {
+ return checkNameAvailabilityWithResponse(checkNameAvailabilityParameters, Context.NONE).getValue();
}
/**
@@ -533,15 +533,17 @@ private Mono regionalCheckNameAvailabilityAsync(
*
* @param location The location in which uniqueness will be verified.
* @param checkNameAvailabilityParameters The object containing information for the availability request.
+ * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws 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 check the availability of a resource name.
+ * @return the result of a request to check the availability of a resource name along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- public NameAvailabilityStatusInner regionalCheckNameAvailability(
- String location, CheckNameAvailabilityParameters checkNameAvailabilityParameters) {
- return regionalCheckNameAvailabilityAsync(location, checkNameAvailabilityParameters).block();
+ public Response regionalCheckNameAvailabilityWithResponse(
+ String location, CheckNameAvailabilityParameters checkNameAvailabilityParameters, Context context) {
+ return regionalCheckNameAvailabilityWithResponseAsync(location, checkNameAvailabilityParameters, context)
+ .block();
}
/**
@@ -549,23 +551,23 @@ public NameAvailabilityStatusInner regionalCheckNameAvailability(
*
* @param location The location in which uniqueness will be verified.
* @param checkNameAvailabilityParameters The object containing information for the availability request.
- * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws 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 check the availability of a resource name along with {@link Response}.
+ * @return the result of a request to check the availability of a resource name.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- public Response regionalCheckNameAvailabilityWithResponse(
- String location, CheckNameAvailabilityParameters checkNameAvailabilityParameters, Context context) {
- return regionalCheckNameAvailabilityWithResponseAsync(location, checkNameAvailabilityParameters, context)
- .block();
+ public NameAvailabilityStatusInner regionalCheckNameAvailability(
+ String location, CheckNameAvailabilityParameters checkNameAvailabilityParameters) {
+ return regionalCheckNameAvailabilityWithResponse(location, checkNameAvailabilityParameters, Context.NONE)
+ .getValue();
}
/**
* Get the next page of items.
*
- * @param nextLink The nextLink parameter.
+ * @param nextLink The URL to get the next list of items
+ * The nextLink parameter.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
@@ -601,7 +603,8 @@ private Mono> listNextSinglePageAsync(St
/**
* Get the next page of items.
*
- * @param nextLink The nextLink parameter.
+ * @param nextLink The URL to get the next list of items
+ * The nextLink parameter.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
diff --git a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/implementation/OperationsImpl.java b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/implementation/OperationsImpl.java
index 6019c87cead45..3515cb0b44d5a 100644
--- a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/implementation/OperationsImpl.java
+++ b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/implementation/OperationsImpl.java
@@ -31,16 +31,6 @@ public OperationsImpl(
this.serviceManager = serviceManager;
}
- public NameAvailabilityStatus checkNameAvailability(
- CheckNameAvailabilityParameters checkNameAvailabilityParameters) {
- NameAvailabilityStatusInner inner = this.serviceClient().checkNameAvailability(checkNameAvailabilityParameters);
- if (inner != null) {
- return new NameAvailabilityStatusImpl(inner, this.manager());
- } else {
- return null;
- }
- }
-
public Response checkNameAvailabilityWithResponse(
CheckNameAvailabilityParameters checkNameAvailabilityParameters, Context context) {
Response inner =
@@ -56,6 +46,16 @@ public Response checkNameAvailabilityWithResponse(
}
}
+ public NameAvailabilityStatus checkNameAvailability(
+ CheckNameAvailabilityParameters checkNameAvailabilityParameters) {
+ NameAvailabilityStatusInner inner = this.serviceClient().checkNameAvailability(checkNameAvailabilityParameters);
+ if (inner != null) {
+ return new NameAvailabilityStatusImpl(inner, this.manager());
+ } else {
+ return null;
+ }
+ }
+
public PagedIterable list() {
PagedIterable inner = this.serviceClient().list();
return Utils.mapPage(inner, inner1 -> new OperationDefinitionImpl(inner1, this.manager()));
@@ -66,17 +66,6 @@ public PagedIterable list(String skipToken, Context context
return Utils.mapPage(inner, inner1 -> new OperationDefinitionImpl(inner1, this.manager()));
}
- public NameAvailabilityStatus regionalCheckNameAvailability(
- String location, CheckNameAvailabilityParameters checkNameAvailabilityParameters) {
- NameAvailabilityStatusInner inner =
- this.serviceClient().regionalCheckNameAvailability(location, checkNameAvailabilityParameters);
- if (inner != null) {
- return new NameAvailabilityStatusImpl(inner, this.manager());
- } else {
- return null;
- }
- }
-
public Response regionalCheckNameAvailabilityWithResponse(
String location, CheckNameAvailabilityParameters checkNameAvailabilityParameters, Context context) {
Response inner =
@@ -94,6 +83,17 @@ public Response regionalCheckNameAvailabilityWithRespons
}
}
+ public NameAvailabilityStatus regionalCheckNameAvailability(
+ String location, CheckNameAvailabilityParameters checkNameAvailabilityParameters) {
+ NameAvailabilityStatusInner inner =
+ this.serviceClient().regionalCheckNameAvailability(location, checkNameAvailabilityParameters);
+ if (inner != null) {
+ return new NameAvailabilityStatusImpl(inner, this.manager());
+ } else {
+ return null;
+ }
+ }
+
private OperationsClient serviceClient() {
return this.innerClient;
}
diff --git a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/implementation/PrivateEndpointConnectionsClientImpl.java b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/implementation/PrivateEndpointConnectionsClientImpl.java
index 3c619651955ec..a0d39044cbc30 100644
--- a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/implementation/PrivateEndpointConnectionsClientImpl.java
+++ b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/implementation/PrivateEndpointConnectionsClientImpl.java
@@ -65,7 +65,7 @@ public final class PrivateEndpointConnectionsClientImpl implements PrivateEndpoi
*/
@Host("{$host}")
@ServiceInterface(name = "AppConfigurationMana")
- private interface PrivateEndpointConnectionsService {
+ public interface PrivateEndpointConnectionsService {
@Headers({"Content-Type: application/json"})
@Get(
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppConfiguration"
@@ -466,15 +466,17 @@ private Mono getAsync(
* @param resourceGroupName The name of the resource group to which the container registry belongs.
* @param configStoreName The name of the configuration store.
* @param privateEndpointConnectionName Private endpoint connection name.
+ * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws 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 specified private endpoint connection associated with the configuration store.
+ * @return the specified private endpoint connection associated with the configuration store along with {@link
+ * Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- public PrivateEndpointConnectionInner get(
- String resourceGroupName, String configStoreName, String privateEndpointConnectionName) {
- return getAsync(resourceGroupName, configStoreName, privateEndpointConnectionName).block();
+ public Response getWithResponse(
+ String resourceGroupName, String configStoreName, String privateEndpointConnectionName, Context context) {
+ return getWithResponseAsync(resourceGroupName, configStoreName, privateEndpointConnectionName, context).block();
}
/**
@@ -483,21 +485,22 @@ public PrivateEndpointConnectionInner get(
* @param resourceGroupName The name of the resource group to which the container registry belongs.
* @param configStoreName The name of the configuration store.
* @param privateEndpointConnectionName Private endpoint connection name.
- * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws 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 specified private endpoint connection associated with the configuration store along with {@link
- * Response}.
+ * @return the specified private endpoint connection associated with the configuration store.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- public Response getWithResponse(
- String resourceGroupName, String configStoreName, String privateEndpointConnectionName, Context context) {
- return getWithResponseAsync(resourceGroupName, configStoreName, privateEndpointConnectionName, context).block();
+ public PrivateEndpointConnectionInner get(
+ String resourceGroupName, String configStoreName, String privateEndpointConnectionName) {
+ return getWithResponse(resourceGroupName, configStoreName, privateEndpointConnectionName, Context.NONE)
+ .getValue();
}
/**
- * 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.
@@ -567,7 +570,9 @@ private Mono>> createOrUpdateWithResponseAsync(
}
/**
- * 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.
@@ -636,7 +641,9 @@ private Mono>> createOrUpdateWithResponseAsync(
}
/**
- * 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.
@@ -668,7 +675,9 @@ private Mono>> createOrUpdateWithResponseAsync(
}
/**
- * 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.
@@ -703,7 +712,9 @@ private Mono>> createOrUpdateWithResponseAsync(
}
/**
- * 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.
@@ -720,13 +731,16 @@ public SyncPoller, PrivateEndpointCon
String configStoreName,
String privateEndpointConnectionName,
PrivateEndpointConnectionInner privateEndpointConnection) {
- return beginCreateOrUpdateAsync(
+ return this
+ .beginCreateOrUpdateAsync(
resourceGroupName, configStoreName, privateEndpointConnectionName, privateEndpointConnection)
.getSyncPoller();
}
/**
- * 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.
@@ -745,13 +759,16 @@ public SyncPoller, PrivateEndpointCon
String privateEndpointConnectionName,
PrivateEndpointConnectionInner privateEndpointConnection,
Context context) {
- return beginCreateOrUpdateAsync(
+ return this
+ .beginCreateOrUpdateAsync(
resourceGroupName, configStoreName, privateEndpointConnectionName, privateEndpointConnection, context)
.getSyncPoller();
}
/**
- * 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.
@@ -775,7 +792,9 @@ private Mono createOrUpdateAsync(
}
/**
- * 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.
@@ -801,7 +820,9 @@ private Mono createOrUpdateAsync(
}
/**
- * 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.
@@ -824,7 +845,9 @@ public PrivateEndpointConnectionInner createOrUpdate(
}
/**
- * 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.
@@ -1019,7 +1042,7 @@ private PollerFlux, Void> beginDeleteAsync(
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
public SyncPoller, Void> beginDelete(
String resourceGroupName, String configStoreName, String privateEndpointConnectionName) {
- return beginDeleteAsync(resourceGroupName, configStoreName, privateEndpointConnectionName).getSyncPoller();
+ return this.beginDeleteAsync(resourceGroupName, configStoreName, privateEndpointConnectionName).getSyncPoller();
}
/**
@@ -1037,7 +1060,8 @@ public SyncPoller, Void> beginDelete(
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
public SyncPoller, Void> beginDelete(
String resourceGroupName, String configStoreName, String privateEndpointConnectionName, Context context) {
- return beginDeleteAsync(resourceGroupName, configStoreName, privateEndpointConnectionName, context)
+ return this
+ .beginDeleteAsync(resourceGroupName, configStoreName, privateEndpointConnectionName, context)
.getSyncPoller();
}
@@ -1115,7 +1139,8 @@ public void delete(
/**
* Get the next page of items.
*
- * @param nextLink The nextLink parameter.
+ * @param nextLink The URL to get the next list of items
+ * The nextLink parameter.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
@@ -1153,7 +1178,8 @@ private Mono> listByConfigurationS
/**
* Get the next page of items.
*
- * @param nextLink The nextLink parameter.
+ * @param nextLink The URL to get the next list of items
+ * The nextLink parameter.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
diff --git a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/implementation/PrivateEndpointConnectionsImpl.java b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/implementation/PrivateEndpointConnectionsImpl.java
index eb33acc0dd365..7b752de63afcb 100644
--- a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/implementation/PrivateEndpointConnectionsImpl.java
+++ b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/implementation/PrivateEndpointConnectionsImpl.java
@@ -42,17 +42,6 @@ public PagedIterable listByConfigurationStore(
return Utils.mapPage(inner, inner1 -> new PrivateEndpointConnectionImpl(inner1, this.manager()));
}
- public PrivateEndpointConnection get(
- String resourceGroupName, String configStoreName, String privateEndpointConnectionName) {
- PrivateEndpointConnectionInner inner =
- this.serviceClient().get(resourceGroupName, configStoreName, privateEndpointConnectionName);
- if (inner != null) {
- return new PrivateEndpointConnectionImpl(inner, this.manager());
- } else {
- return null;
- }
- }
-
public Response getWithResponse(
String resourceGroupName, String configStoreName, String privateEndpointConnectionName, Context context) {
Response inner =
@@ -70,6 +59,17 @@ public Response getWithResponse(
}
}
+ public PrivateEndpointConnection get(
+ String resourceGroupName, String configStoreName, String privateEndpointConnectionName) {
+ PrivateEndpointConnectionInner inner =
+ this.serviceClient().get(resourceGroupName, configStoreName, privateEndpointConnectionName);
+ if (inner != null) {
+ return new PrivateEndpointConnectionImpl(inner, this.manager());
+ } else {
+ return null;
+ }
+ }
+
public void delete(String resourceGroupName, String configStoreName, String privateEndpointConnectionName) {
this.serviceClient().delete(resourceGroupName, configStoreName, privateEndpointConnectionName);
}
diff --git a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/implementation/PrivateLinkResourcesClientImpl.java b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/implementation/PrivateLinkResourcesClientImpl.java
index 14640ff3a36f6..2d255cf8f6d1e 100644
--- a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/implementation/PrivateLinkResourcesClientImpl.java
+++ b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/implementation/PrivateLinkResourcesClientImpl.java
@@ -56,7 +56,7 @@ public final class PrivateLinkResourcesClientImpl implements PrivateLinkResource
*/
@Host("{$host}")
@ServiceInterface(name = "AppConfigurationMana")
- private interface PrivateLinkResourcesService {
+ public interface PrivateLinkResourcesService {
@Headers({"Content-Type: application/json"})
@Get(
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppConfiguration"
@@ -422,14 +422,16 @@ private Mono getAsync(
* @param resourceGroupName The name of the resource group to which the container registry belongs.
* @param configStoreName The name of the configuration store.
* @param groupName The name of the private link resource group.
+ * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws 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 private link resource that need to be created for a configuration store.
+ * @return a private link resource that need to be created for a configuration store along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- public PrivateLinkResourceInner get(String resourceGroupName, String configStoreName, String groupName) {
- return getAsync(resourceGroupName, configStoreName, groupName).block();
+ public Response getWithResponse(
+ String resourceGroupName, String configStoreName, String groupName, Context context) {
+ return getWithResponseAsync(resourceGroupName, configStoreName, groupName, context).block();
}
/**
@@ -438,22 +440,21 @@ public PrivateLinkResourceInner get(String resourceGroupName, String configStore
* @param resourceGroupName The name of the resource group to which the container registry belongs.
* @param configStoreName The name of the configuration store.
* @param groupName The name of the private link resource group.
- * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws 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 private link resource that need to be created for a configuration store along with {@link Response}.
+ * @return a private link resource that need to be created for a configuration store.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- public Response getWithResponse(
- String resourceGroupName, String configStoreName, String groupName, Context context) {
- return getWithResponseAsync(resourceGroupName, configStoreName, groupName, context).block();
+ public PrivateLinkResourceInner get(String resourceGroupName, String configStoreName, String groupName) {
+ return getWithResponse(resourceGroupName, configStoreName, groupName, Context.NONE).getValue();
}
/**
* Get the next page of items.
*
- * @param nextLink The nextLink parameter.
+ * @param nextLink The URL to get the next list of items
+ * The nextLink parameter.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
@@ -490,7 +491,8 @@ private Mono> listByConfigurationStoreNe
/**
* Get the next page of items.
*
- * @param nextLink The nextLink parameter.
+ * @param nextLink The URL to get the next list of items
+ * The nextLink parameter.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
diff --git a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/implementation/PrivateLinkResourcesImpl.java b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/implementation/PrivateLinkResourcesImpl.java
index 6c41a2190be8d..df0cb29750eea 100644
--- a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/implementation/PrivateLinkResourcesImpl.java
+++ b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/implementation/PrivateLinkResourcesImpl.java
@@ -42,15 +42,6 @@ public PagedIterable listByConfigurationStore(
return Utils.mapPage(inner, inner1 -> new PrivateLinkResourceImpl(inner1, this.manager()));
}
- public PrivateLinkResource get(String resourceGroupName, String configStoreName, String groupName) {
- PrivateLinkResourceInner inner = this.serviceClient().get(resourceGroupName, configStoreName, groupName);
- if (inner != null) {
- return new PrivateLinkResourceImpl(inner, this.manager());
- } else {
- return null;
- }
- }
-
public Response getWithResponse(
String resourceGroupName, String configStoreName, String groupName, Context context) {
Response inner =
@@ -66,6 +57,15 @@ public Response getWithResponse(
}
}
+ public PrivateLinkResource get(String resourceGroupName, String configStoreName, String groupName) {
+ PrivateLinkResourceInner inner = this.serviceClient().get(resourceGroupName, configStoreName, groupName);
+ if (inner != null) {
+ return new PrivateLinkResourceImpl(inner, this.manager());
+ } else {
+ return null;
+ }
+ }
+
private PrivateLinkResourcesClient serviceClient() {
return this.innerClient;
}
diff --git a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/ActionsRequired.java b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/ActionsRequired.java
index 8aa0e839a7241..d5c22ce64f3c1 100644
--- a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/ActionsRequired.java
+++ b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/ActionsRequired.java
@@ -8,7 +8,7 @@
import com.fasterxml.jackson.annotation.JsonCreator;
import java.util.Collection;
-/** Defines values for ActionsRequired. */
+/** Any action that is required beyond basic workflow (approve/ reject/ disconnect). */
public final class ActionsRequired extends ExpandableStringEnum {
/** Static value None for ActionsRequired. */
public static final ActionsRequired NONE = fromString("None");
@@ -16,6 +16,15 @@ public final class ActionsRequired extends ExpandableStringEnum
/** Static value Recreate for ActionsRequired. */
public static final ActionsRequired RECREATE = fromString("Recreate");
+ /**
+ * Creates a new instance of ActionsRequired value.
+ *
+ * @deprecated Use the {@link #fromString(String)} factory method.
+ */
+ @Deprecated
+ public ActionsRequired() {
+ }
+
/**
* Creates or finds a ActionsRequired from its string representation.
*
diff --git a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/ApiKeyListResult.java b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/ApiKeyListResult.java
index 723bff208d2ba..fd657aa841c91 100644
--- a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/ApiKeyListResult.java
+++ b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/ApiKeyListResult.java
@@ -24,6 +24,10 @@ public final class ApiKeyListResult {
@JsonProperty(value = "nextLink")
private String nextLink;
+ /** Creates an instance of ApiKeyListResult class. */
+ public ApiKeyListResult() {
+ }
+
/**
* Get the value property: The collection value.
*
diff --git a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/CheckNameAvailabilityParameters.java b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/CheckNameAvailabilityParameters.java
index 47b5f65abfbde..af002421c0698 100644
--- a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/CheckNameAvailabilityParameters.java
+++ b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/CheckNameAvailabilityParameters.java
@@ -23,6 +23,10 @@ public final class CheckNameAvailabilityParameters {
@JsonProperty(value = "type", required = true)
private ConfigurationResourceType type;
+ /** Creates an instance of CheckNameAvailabilityParameters class. */
+ public CheckNameAvailabilityParameters() {
+ }
+
/**
* Get the name property: The name to check for availability.
*
diff --git a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/ConfigurationResourceType.java b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/ConfigurationResourceType.java
index 7eb2a8f2476f1..879606df206ac 100644
--- a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/ConfigurationResourceType.java
+++ b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/ConfigurationResourceType.java
@@ -8,12 +8,21 @@
import com.fasterxml.jackson.annotation.JsonCreator;
import java.util.Collection;
-/** Defines values for ConfigurationResourceType. */
+/** The resource type to check for name availability. */
public final class ConfigurationResourceType extends ExpandableStringEnum {
/** Static value Microsoft.AppConfiguration/configurationStores for ConfigurationResourceType. */
public static final ConfigurationResourceType MICROSOFT_APP_CONFIGURATION_CONFIGURATION_STORES =
fromString("Microsoft.AppConfiguration/configurationStores");
+ /**
+ * Creates a new instance of ConfigurationResourceType value.
+ *
+ * @deprecated Use the {@link #fromString(String)} factory method.
+ */
+ @Deprecated
+ public ConfigurationResourceType() {
+ }
+
/**
* Creates or finds a ConfigurationResourceType from its string representation.
*
diff --git a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/ConfigurationStore.java b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/ConfigurationStore.java
index c82a1148eb780..e050ac4dcc306 100644
--- a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/ConfigurationStore.java
+++ b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/ConfigurationStore.java
@@ -492,22 +492,22 @@ interface WithEnablePurgeProtection {
* Regenerates an access key for the specified configuration store.
*
* @param regenerateKeyParameters The parameters for regenerating an access key.
+ * @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 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}.
*/
- ApiKey regenerateKey(RegenerateKeyParameters regenerateKeyParameters);
+ Response regenerateKeyWithResponse(RegenerateKeyParameters regenerateKeyParameters, Context context);
/**
* Regenerates an access key for the specified configuration store.
*
* @param regenerateKeyParameters The parameters for regenerating an access key.
- * @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 an API key used for authenticating with a configuration store endpoint along with {@link Response}.
+ * @return an API key used for authenticating with a configuration store endpoint.
*/
- Response regenerateKeyWithResponse(RegenerateKeyParameters regenerateKeyParameters, Context context);
+ ApiKey regenerateKey(RegenerateKeyParameters regenerateKeyParameters);
}
diff --git a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/ConfigurationStoreListResult.java b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/ConfigurationStoreListResult.java
index f382f98545c3f..5b6225407ae6e 100644
--- a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/ConfigurationStoreListResult.java
+++ b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/ConfigurationStoreListResult.java
@@ -24,6 +24,10 @@ public final class ConfigurationStoreListResult {
@JsonProperty(value = "nextLink")
private String nextLink;
+ /** Creates an instance of ConfigurationStoreListResult class. */
+ public ConfigurationStoreListResult() {
+ }
+
/**
* Get the value property: The collection value.
*
diff --git a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/ConfigurationStoreUpdateParameters.java b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/ConfigurationStoreUpdateParameters.java
index fe725fb65b679..e2a99b4350c4c 100644
--- a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/ConfigurationStoreUpdateParameters.java
+++ b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/ConfigurationStoreUpdateParameters.java
@@ -38,6 +38,10 @@ public final class ConfigurationStoreUpdateParameters {
@JsonInclude(value = JsonInclude.Include.NON_NULL, content = JsonInclude.Include.ALWAYS)
private Map tags;
+ /** Creates an instance of ConfigurationStoreUpdateParameters class. */
+ public ConfigurationStoreUpdateParameters() {
+ }
+
/**
* Get the innerProperties property: The properties for updating a configuration store.
*
diff --git a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/ConfigurationStores.java b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/ConfigurationStores.java
index fc611ba59e07a..441ce96fd92da 100644
--- a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/ConfigurationStores.java
+++ b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/ConfigurationStores.java
@@ -64,26 +64,26 @@ public interface ConfigurationStores {
*
* @param resourceGroupName The name of the resource group to which the container registry belongs.
* @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 properties of the specified configuration store.
+ * @return the properties of the specified configuration store along with {@link Response}.
*/
- ConfigurationStore getByResourceGroup(String resourceGroupName, String configStoreName);
+ Response getByResourceGroupWithResponse(
+ String resourceGroupName, String configStoreName, Context context);
/**
* Gets the properties of the specified 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 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 configuration store along with {@link Response}.
+ * @return the properties of the specified configuration store.
*/
- Response getByResourceGroupWithResponse(
- String resourceGroupName, String configStoreName, Context context);
+ ConfigurationStore getByResourceGroup(String resourceGroupName, String configStoreName);
/**
* Deletes a configuration store.
@@ -142,13 +142,17 @@ Response getByResourceGroupWithResponse(
* @param resourceGroupName The name of the resource group to which the container registry belongs.
* @param configStoreName The name of the configuration store.
* @param regenerateKeyParameters The parameters for regenerating an access key.
+ * @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 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}.
*/
- ApiKey regenerateKey(
- String resourceGroupName, String configStoreName, RegenerateKeyParameters regenerateKeyParameters);
+ Response regenerateKeyWithResponse(
+ String resourceGroupName,
+ String configStoreName,
+ RegenerateKeyParameters regenerateKeyParameters,
+ Context context);
/**
* Regenerates an access key for the specified configuration store.
@@ -156,17 +160,13 @@ ApiKey regenerateKey(
* @param resourceGroupName The name of the resource group to which the container registry belongs.
* @param configStoreName The name of the configuration store.
* @param regenerateKeyParameters The parameters for regenerating an access key.
- * @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 an API key used for authenticating with a configuration store endpoint along with {@link Response}.
+ * @return an API key used for authenticating with a configuration store endpoint.
*/
- Response regenerateKeyWithResponse(
- String resourceGroupName,
- String configStoreName,
- RegenerateKeyParameters regenerateKeyParameters,
- Context context);
+ ApiKey regenerateKey(
+ String resourceGroupName, String configStoreName, RegenerateKeyParameters regenerateKeyParameters);
/**
* Gets information about the deleted configuration stores in a subscription.
@@ -195,26 +195,26 @@ Response regenerateKeyWithResponse(
*
* @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.
+ * @return a deleted Azure app configuration store along with {@link Response}.
*/
- DeletedConfigurationStore getDeleted(String location, String configStoreName);
+ Response getDeletedWithResponse(
+ String location, String configStoreName, 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.
- * @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}.
+ * @return a deleted Azure app configuration store.
*/
- Response getDeletedWithResponse(
- String location, String configStoreName, Context context);
+ DeletedConfigurationStore getDeleted(String location, String configStoreName);
/**
* Permanently deletes the specified configuration store.
diff --git a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/ConnectionStatus.java b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/ConnectionStatus.java
index ddfac302230f0..34120f28e73dc 100644
--- a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/ConnectionStatus.java
+++ b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/ConnectionStatus.java
@@ -8,7 +8,7 @@
import com.fasterxml.jackson.annotation.JsonCreator;
import java.util.Collection;
-/** Defines values for ConnectionStatus. */
+/** The private link service connection status. */
public final class ConnectionStatus extends ExpandableStringEnum {
/** Static value Pending for ConnectionStatus. */
public static final ConnectionStatus PENDING = fromString("Pending");
@@ -22,6 +22,15 @@ public final class ConnectionStatus extends ExpandableStringEnum {
/** Static value None for IdentityType. */
public static final IdentityType NONE = fromString("None");
@@ -22,6 +25,15 @@ public final class IdentityType extends ExpandableStringEnum {
/** Static value SystemAssigned, UserAssigned for IdentityType. */
public static final IdentityType SYSTEM_ASSIGNED_USER_ASSIGNED = fromString("SystemAssigned, UserAssigned");
+ /**
+ * Creates a new instance of IdentityType value.
+ *
+ * @deprecated Use the {@link #fromString(String)} factory method.
+ */
+ @Deprecated
+ public IdentityType() {
+ }
+
/**
* Creates or finds a IdentityType from its string representation.
*
diff --git a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/KeyValueListResult.java b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/KeyValueListResult.java
deleted file mode 100644
index 8e8036197b7e5..0000000000000
--- a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/KeyValueListResult.java
+++ /dev/null
@@ -1,77 +0,0 @@
-// 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.models;
-
-import com.azure.core.annotation.Fluent;
-import com.azure.resourcemanager.appconfiguration.fluent.models.KeyValueInner;
-import com.fasterxml.jackson.annotation.JsonProperty;
-import java.util.List;
-
-/** The result of a request to list key-values. */
-@Fluent
-public final class KeyValueListResult {
- /*
- * The collection value.
- */
- @JsonProperty(value = "value")
- private List value;
-
- /*
- * The URI that can be used to request the next set of paged results.
- */
- @JsonProperty(value = "nextLink")
- private String nextLink;
-
- /**
- * Get the value property: The collection value.
- *
- * @return the value value.
- */
- public List value() {
- return this.value;
- }
-
- /**
- * Set the value property: The collection value.
- *
- * @param value the value value to set.
- * @return the KeyValueListResult object itself.
- */
- public KeyValueListResult withValue(List value) {
- this.value = value;
- return this;
- }
-
- /**
- * Get the nextLink property: The URI that can be used to request the next set of paged results.
- *
- * @return the nextLink value.
- */
- public String nextLink() {
- return this.nextLink;
- }
-
- /**
- * Set the nextLink property: The URI that can be used to request the next set of paged results.
- *
- * @param nextLink the nextLink value to set.
- * @return the KeyValueListResult object itself.
- */
- public KeyValueListResult withNextLink(String nextLink) {
- this.nextLink = nextLink;
- return this;
- }
-
- /**
- * Validates the instance.
- *
- * @throws IllegalArgumentException thrown if the instance is not valid.
- */
- public void validate() {
- if (value() != null) {
- value().forEach(e -> e.validate());
- }
- }
-}
diff --git a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/KeyValues.java b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/KeyValues.java
index 4a52c8bf7a6db..174491c40d04a 100644
--- a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/KeyValues.java
+++ b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/KeyValues.java
@@ -4,41 +4,11 @@
package com.azure.resourcemanager.appconfiguration.models;
-import com.azure.core.http.rest.PagedIterable;
import com.azure.core.http.rest.Response;
import com.azure.core.util.Context;
/** Resource collection API of KeyValues. */
public interface KeyValues {
- /**
- * 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}.
- */
- PagedIterable 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}.
- */
- PagedIterable listByConfigurationStore(
- String resourceGroupName, String configStoreName, String skipToken, Context context);
-
/**
* Gets the properties of the specified key-value.
*
@@ -46,12 +16,14 @@ PagedIterable listByConfigurationStore(
* @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.
+ * @return the properties of the specified key-value along with {@link Response}.
*/
- KeyValue get(String resourceGroupName, String configStoreName, String keyValueName);
+ Response getWithResponse(
+ String resourceGroupName, String configStoreName, String keyValueName, Context context);
/**
* Gets the properties of the specified key-value.
@@ -60,14 +32,12 @@ PagedIterable listByConfigurationStore(
* @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 along with {@link Response}.
+ * @return the properties of the specified key-value.
*/
- Response getWithResponse(
- String resourceGroupName, String configStoreName, String keyValueName, Context context);
+ KeyValue get(String resourceGroupName, String configStoreName, String keyValueName);
/**
* Deletes a key-value.
diff --git a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/KeyVaultProperties.java b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/KeyVaultProperties.java
index 13a95008f4ee5..cc359b18b6685 100644
--- a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/KeyVaultProperties.java
+++ b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/KeyVaultProperties.java
@@ -22,6 +22,10 @@ public final class KeyVaultProperties {
@JsonProperty(value = "identityClientId")
private String identityClientId;
+ /** Creates an instance of KeyVaultProperties class. */
+ public KeyVaultProperties() {
+ }
+
/**
* Get the keyIdentifier property: The URI of the key vault key used to encrypt data.
*
diff --git a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/LogSpecification.java b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/LogSpecification.java
index 99174ec98fc74..c610779ce22e0 100644
--- a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/LogSpecification.java
+++ b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/LogSpecification.java
@@ -28,6 +28,10 @@ public final class LogSpecification {
@JsonProperty(value = "blobDuration")
private String blobDuration;
+ /** Creates an instance of LogSpecification class. */
+ public LogSpecification() {
+ }
+
/**
* Get the name property: Name of the log.
*
diff --git a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/MetricDimension.java b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/MetricDimension.java
index 61b1c0e44687e..6fa515df4a3c3 100644
--- a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/MetricDimension.java
+++ b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/MetricDimension.java
@@ -28,6 +28,10 @@ public final class MetricDimension {
@JsonProperty(value = "internalName")
private String internalName;
+ /** Creates an instance of MetricDimension class. */
+ public MetricDimension() {
+ }
+
/**
* Get the name property: Name of the dimension.
*
diff --git a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/MetricSpecification.java b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/MetricSpecification.java
index 4111e70b3e072..b27167f4cb320 100644
--- a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/MetricSpecification.java
+++ b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/MetricSpecification.java
@@ -36,8 +36,7 @@ public final class MetricSpecification {
private String unit;
/*
- * Only provide one value for this field. Valid values: Average, Minimum,
- * Maximum, Total, Count.
+ * Only provide one value for this field. Valid values: Average, Minimum, Maximum, Total, Count.
*/
@JsonProperty(value = "aggregationType")
private String aggregationType;
@@ -55,12 +54,15 @@ public final class MetricSpecification {
private List dimensions;
/*
- * Optional. If set to true, then zero will be returned for time duration
- * where no metric is emitted/published.
+ * Optional. If set to true, then zero will be returned for time duration where no metric is emitted/published.
*/
@JsonProperty(value = "fillGapWithZero")
private Boolean fillGapWithZero;
+ /** Creates an instance of MetricSpecification class. */
+ public MetricSpecification() {
+ }
+
/**
* Get the name property: Name of the metric.
*
diff --git a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/OperationDefinitionDisplay.java b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/OperationDefinitionDisplay.java
index 7075f5bb7756f..5cd85d86ad3f5 100644
--- a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/OperationDefinitionDisplay.java
+++ b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/OperationDefinitionDisplay.java
@@ -34,6 +34,10 @@ public final class OperationDefinitionDisplay {
@JsonProperty(value = "description")
private String description;
+ /** Creates an instance of OperationDefinitionDisplay class. */
+ public OperationDefinitionDisplay() {
+ }
+
/**
* Get the provider property: The resource provider name: Microsoft App Configuration.".
*
diff --git a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/OperationDefinitionListResult.java b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/OperationDefinitionListResult.java
index b9b8405dfddc9..c055051163fe1 100644
--- a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/OperationDefinitionListResult.java
+++ b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/OperationDefinitionListResult.java
@@ -24,6 +24,10 @@ public final class OperationDefinitionListResult {
@JsonProperty(value = "nextLink")
private String nextLink;
+ /** Creates an instance of OperationDefinitionListResult class. */
+ public OperationDefinitionListResult() {
+ }
+
/**
* Get the value property: The collection value.
*
diff --git a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/OperationProperties.java b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/OperationProperties.java
index 1fd82f6de31d6..4e7673de43e71 100644
--- a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/OperationProperties.java
+++ b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/OperationProperties.java
@@ -16,6 +16,10 @@ public final class OperationProperties {
@JsonProperty(value = "serviceSpecification")
private ServiceSpecification serviceSpecification;
+ /** Creates an instance of OperationProperties class. */
+ public OperationProperties() {
+ }
+
/**
* Get the serviceSpecification property: Service specifications of the operation.
*
diff --git a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/Operations.java b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/Operations.java
index 602132fe1a4d2..30b53f49bf497 100644
--- a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/Operations.java
+++ b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/Operations.java
@@ -14,25 +14,25 @@ public interface Operations {
* Checks whether the configuration store name is available for use.
*
* @param checkNameAvailabilityParameters The object containing information for the availability request.
+ * @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 check the availability of a resource name.
+ * @return the result of a request to check the availability of a resource name along with {@link Response}.
*/
- NameAvailabilityStatus checkNameAvailability(CheckNameAvailabilityParameters checkNameAvailabilityParameters);
+ Response checkNameAvailabilityWithResponse(
+ CheckNameAvailabilityParameters checkNameAvailabilityParameters, Context context);
/**
* Checks whether the configuration store name is available for use.
*
* @param checkNameAvailabilityParameters The object containing information for the availability request.
- * @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 check the availability of a resource name along with {@link Response}.
+ * @return the result of a request to check the availability of a resource name.
*/
- Response checkNameAvailabilityWithResponse(
- CheckNameAvailabilityParameters checkNameAvailabilityParameters, Context context);
+ NameAvailabilityStatus checkNameAvailability(CheckNameAvailabilityParameters checkNameAvailabilityParameters);
/**
* Lists the operations available from this provider.
@@ -64,25 +64,25 @@ Response checkNameAvailabilityWithResponse(
*
* @param location The location in which uniqueness will be verified.
* @param checkNameAvailabilityParameters The object containing information for the availability request.
+ * @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 check the availability of a resource name.
+ * @return the result of a request to check the availability of a resource name along with {@link Response}.
*/
- NameAvailabilityStatus regionalCheckNameAvailability(
- String location, CheckNameAvailabilityParameters checkNameAvailabilityParameters);
+ Response regionalCheckNameAvailabilityWithResponse(
+ String location, CheckNameAvailabilityParameters checkNameAvailabilityParameters, Context context);
/**
* Checks whether the configuration store name is available for use.
*
* @param location The location in which uniqueness will be verified.
* @param checkNameAvailabilityParameters The object containing information for the availability request.
- * @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 check the availability of a resource name along with {@link Response}.
+ * @return the result of a request to check the availability of a resource name.
*/
- Response regionalCheckNameAvailabilityWithResponse(
- String location, CheckNameAvailabilityParameters checkNameAvailabilityParameters, Context context);
+ NameAvailabilityStatus regionalCheckNameAvailability(
+ String location, CheckNameAvailabilityParameters checkNameAvailabilityParameters);
}
diff --git a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/PrivateEndpoint.java b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/PrivateEndpoint.java
index b84684d0aa4dc..7a62f227e538d 100644
--- a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/PrivateEndpoint.java
+++ b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/PrivateEndpoint.java
@@ -16,6 +16,10 @@ public final class PrivateEndpoint {
@JsonProperty(value = "id")
private String id;
+ /** Creates an instance of PrivateEndpoint class. */
+ public PrivateEndpoint() {
+ }
+
/**
* Get the id property: The resource Id for private endpoint.
*
diff --git a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/PrivateEndpointConnectionListResult.java b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/PrivateEndpointConnectionListResult.java
index caa1a8c07f34b..7f78bca1336b0 100644
--- a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/PrivateEndpointConnectionListResult.java
+++ b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/PrivateEndpointConnectionListResult.java
@@ -24,6 +24,10 @@ public final class PrivateEndpointConnectionListResult {
@JsonProperty(value = "nextLink")
private String nextLink;
+ /** Creates an instance of PrivateEndpointConnectionListResult class. */
+ public PrivateEndpointConnectionListResult() {
+ }
+
/**
* Get the value property: The collection value.
*
diff --git a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/PrivateEndpointConnectionReference.java b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/PrivateEndpointConnectionReference.java
index 9d174bda8e0ee..078faebad9ef5 100644
--- a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/PrivateEndpointConnectionReference.java
+++ b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/PrivateEndpointConnectionReference.java
@@ -35,6 +35,10 @@ public final class PrivateEndpointConnectionReference {
@JsonProperty(value = "properties")
private PrivateEndpointConnectionProperties innerProperties;
+ /** Creates an instance of PrivateEndpointConnectionReference class. */
+ public PrivateEndpointConnectionReference() {
+ }
+
/**
* Get the id property: The resource ID.
*
diff --git a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/PrivateEndpointConnections.java b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/PrivateEndpointConnections.java
index 35b5a5538aaf4..78083e32b47c3 100644
--- a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/PrivateEndpointConnections.java
+++ b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/PrivateEndpointConnections.java
@@ -42,13 +42,15 @@ PagedIterable listByConfigurationStore(
* @param resourceGroupName The name of the resource group to which the container registry belongs.
* @param configStoreName The name of the configuration store.
* @param privateEndpointConnectionName Private endpoint connection name.
+ * @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 specified private endpoint connection associated with the configuration store.
+ * @return the specified private endpoint connection associated with the configuration store along with {@link
+ * Response}.
*/
- PrivateEndpointConnection get(
- String resourceGroupName, String configStoreName, String privateEndpointConnectionName);
+ Response getWithResponse(
+ String resourceGroupName, String configStoreName, String privateEndpointConnectionName, Context context);
/**
* Gets the specified private endpoint connection associated with the configuration store.
@@ -56,15 +58,13 @@ PrivateEndpointConnection get(
* @param resourceGroupName The name of the resource group to which the container registry belongs.
* @param configStoreName The name of the configuration store.
* @param privateEndpointConnectionName Private endpoint connection name.
- * @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 specified private endpoint connection associated with the configuration store along with {@link
- * Response}.
+ * @return the specified private endpoint connection associated with the configuration store.
*/
- Response getWithResponse(
- String resourceGroupName, String configStoreName, String privateEndpointConnectionName, Context context);
+ PrivateEndpointConnection get(
+ String resourceGroupName, String configStoreName, String privateEndpointConnectionName);
/**
* Deletes a private endpoint connection.
diff --git a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/PrivateLinkResourceListResult.java b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/PrivateLinkResourceListResult.java
index 209486459b9f6..8780076621e70 100644
--- a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/PrivateLinkResourceListResult.java
+++ b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/PrivateLinkResourceListResult.java
@@ -24,6 +24,10 @@ public final class PrivateLinkResourceListResult {
@JsonProperty(value = "nextLink")
private String nextLink;
+ /** Creates an instance of PrivateLinkResourceListResult class. */
+ public PrivateLinkResourceListResult() {
+ }
+
/**
* Get the value property: The collection value.
*
diff --git a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/PrivateLinkResources.java b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/PrivateLinkResources.java
index e3a8463334526..f348493d3587c 100644
--- a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/PrivateLinkResources.java
+++ b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/PrivateLinkResources.java
@@ -44,12 +44,14 @@ PagedIterable listByConfigurationStore(
* @param resourceGroupName The name of the resource group to which the container registry belongs.
* @param configStoreName The name of the configuration store.
* @param groupName The name of the private link resource group.
+ * @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 private link resource that need to be created for a configuration store.
+ * @return a private link resource that need to be created for a configuration store along with {@link Response}.
*/
- PrivateLinkResource get(String resourceGroupName, String configStoreName, String groupName);
+ Response getWithResponse(
+ String resourceGroupName, String configStoreName, String groupName, Context context);
/**
* Gets a private link resource that need to be created for a configuration store.
@@ -57,12 +59,10 @@ PagedIterable listByConfigurationStore(
* @param resourceGroupName The name of the resource group to which the container registry belongs.
* @param configStoreName The name of the configuration store.
* @param groupName The name of the private link resource group.
- * @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 private link resource that need to be created for a configuration store along with {@link Response}.
+ * @return a private link resource that need to be created for a configuration store.
*/
- Response getWithResponse(
- String resourceGroupName, String configStoreName, String groupName, Context context);
+ PrivateLinkResource get(String resourceGroupName, String configStoreName, String groupName);
}
diff --git a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/PrivateLinkServiceConnectionState.java b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/PrivateLinkServiceConnectionState.java
index 52e0fe1e207be..95a645e6ab25a 100644
--- a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/PrivateLinkServiceConnectionState.java
+++ b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/PrivateLinkServiceConnectionState.java
@@ -23,12 +23,15 @@ public final class PrivateLinkServiceConnectionState {
private String description;
/*
- * Any action that is required beyond basic workflow (approve/ reject/
- * disconnect)
+ * Any action that is required beyond basic workflow (approve/ reject/ disconnect)
*/
@JsonProperty(value = "actionsRequired", access = JsonProperty.Access.WRITE_ONLY)
private ActionsRequired actionsRequired;
+ /** Creates an instance of PrivateLinkServiceConnectionState class. */
+ public PrivateLinkServiceConnectionState() {
+ }
+
/**
* Get the status property: The private link service connection status.
*
diff --git a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/ProvisioningState.java b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/ProvisioningState.java
index ea590e17a0333..9006ba2c82329 100644
--- a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/ProvisioningState.java
+++ b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/ProvisioningState.java
@@ -8,7 +8,7 @@
import com.fasterxml.jackson.annotation.JsonCreator;
import java.util.Collection;
-/** Defines values for ProvisioningState. */
+/** The provisioning state of the configuration store. */
public final class ProvisioningState extends ExpandableStringEnum {
/** Static value Creating for ProvisioningState. */
public static final ProvisioningState CREATING = fromString("Creating");
@@ -28,6 +28,15 @@ public final class ProvisioningState extends ExpandableStringEnum {
/** Static value Enabled for PublicNetworkAccess. */
public static final PublicNetworkAccess ENABLED = fromString("Enabled");
@@ -16,6 +16,15 @@ public final class PublicNetworkAccess extends ExpandableStringEnum userAssignedIdentities;
/*
- * The principal id of the identity. This property will only be provided
- * for a system-assigned identity.
+ * The principal id of the identity. This property will only be provided for a system-assigned identity.
*/
@JsonProperty(value = "principalId", access = JsonProperty.Access.WRITE_ONLY)
private String principalId;
/*
- * The tenant id associated with the resource's identity. This property
- * will only be provided for a system-assigned identity.
+ * The tenant id associated with the resource's identity. This property will only be provided for a system-assigned
+ * identity.
*/
@JsonProperty(value = "tenantId", access = JsonProperty.Access.WRITE_ONLY)
private String tenantId;
+ /** Creates an instance of ResourceIdentity class. */
+ public ResourceIdentity() {
+ }
+
/**
* Get the type property: The type of managed identity used. The type 'SystemAssigned, UserAssigned' includes both
* an implicitly created identity and a set of user-assigned identities. The type 'None' will remove any identities.
diff --git a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/ServiceSpecification.java b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/ServiceSpecification.java
index 3990e716a5d0a..ddf7c1f1edab7 100644
--- a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/ServiceSpecification.java
+++ b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/ServiceSpecification.java
@@ -23,6 +23,10 @@ public final class ServiceSpecification {
@JsonProperty(value = "metricSpecifications")
private List metricSpecifications;
+ /** Creates an instance of ServiceSpecification class. */
+ public ServiceSpecification() {
+ }
+
/**
* Get the logSpecifications property: Specifications of the Log for Azure Monitoring.
*
diff --git a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/Sku.java b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/Sku.java
index cd8dbd8c5c778..22920fc8122fb 100644
--- a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/Sku.java
+++ b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/Sku.java
@@ -17,6 +17,10 @@ public final class Sku {
@JsonProperty(value = "name", required = true)
private String name;
+ /** Creates an instance of Sku class. */
+ public Sku() {
+ }
+
/**
* Get the name property: The SKU name of the configuration store.
*
diff --git a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/UserIdentity.java b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/UserIdentity.java
index 2ec45c2b5354f..6dc6c2b494a2d 100644
--- a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/UserIdentity.java
+++ b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/UserIdentity.java
@@ -22,6 +22,10 @@ public class UserIdentity {
@JsonProperty(value = "clientId", access = JsonProperty.Access.WRITE_ONLY)
private String clientId;
+ /** Creates an instance of UserIdentity class. */
+ public UserIdentity() {
+ }
+
/**
* Get the principalId property: The principal ID of the user-assigned identity.
*
diff --git a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/samples/java/com/azure/resourcemanager/appconfiguration/generated/ConfigurationStoresDeleteSamples.java b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/samples/java/com/azure/resourcemanager/appconfiguration/generated/ConfigurationStoresDeleteSamples.java
index 028a88f0af82e..c45b0abbdf81e 100644
--- a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/samples/java/com/azure/resourcemanager/appconfiguration/generated/ConfigurationStoresDeleteSamples.java
+++ b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/samples/java/com/azure/resourcemanager/appconfiguration/generated/ConfigurationStoresDeleteSamples.java
@@ -4,8 +4,6 @@
package com.azure.resourcemanager.appconfiguration.generated;
-import com.azure.core.util.Context;
-
/** Samples for ConfigurationStores Delete. */
public final class ConfigurationStoresDeleteSamples {
/*
@@ -18,6 +16,6 @@ public final class ConfigurationStoresDeleteSamples {
*/
public static void configurationStoresDelete(
com.azure.resourcemanager.appconfiguration.AppConfigurationManager manager) {
- manager.configurationStores().delete("myResourceGroup", "contoso", Context.NONE);
+ manager.configurationStores().delete("myResourceGroup", "contoso", com.azure.core.util.Context.NONE);
}
}
diff --git a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/samples/java/com/azure/resourcemanager/appconfiguration/generated/ConfigurationStoresGetByResourceGroupSamples.java b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/samples/java/com/azure/resourcemanager/appconfiguration/generated/ConfigurationStoresGetByResourceGroupSamples.java
index a3a5e4ab80a3b..92a2ad7856951 100644
--- a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/samples/java/com/azure/resourcemanager/appconfiguration/generated/ConfigurationStoresGetByResourceGroupSamples.java
+++ b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/samples/java/com/azure/resourcemanager/appconfiguration/generated/ConfigurationStoresGetByResourceGroupSamples.java
@@ -4,8 +4,6 @@
package com.azure.resourcemanager.appconfiguration.generated;
-import com.azure.core.util.Context;
-
/** Samples for ConfigurationStores GetByResourceGroup. */
public final class ConfigurationStoresGetByResourceGroupSamples {
/*
@@ -18,6 +16,8 @@ public final class ConfigurationStoresGetByResourceGroupSamples {
*/
public static void configurationStoresGet(
com.azure.resourcemanager.appconfiguration.AppConfigurationManager manager) {
- manager.configurationStores().getByResourceGroupWithResponse("myResourceGroup", "contoso", Context.NONE);
+ manager
+ .configurationStores()
+ .getByResourceGroupWithResponse("myResourceGroup", "contoso", com.azure.core.util.Context.NONE);
}
}
diff --git a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/samples/java/com/azure/resourcemanager/appconfiguration/generated/ConfigurationStoresGetDeletedSamples.java b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/samples/java/com/azure/resourcemanager/appconfiguration/generated/ConfigurationStoresGetDeletedSamples.java
index f0e0d6f1a012b..39663fec70161 100644
--- a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/samples/java/com/azure/resourcemanager/appconfiguration/generated/ConfigurationStoresGetDeletedSamples.java
+++ b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/samples/java/com/azure/resourcemanager/appconfiguration/generated/ConfigurationStoresGetDeletedSamples.java
@@ -4,8 +4,6 @@
package com.azure.resourcemanager.appconfiguration.generated;
-import com.azure.core.util.Context;
-
/** Samples for ConfigurationStores GetDeleted. */
public final class ConfigurationStoresGetDeletedSamples {
/*
@@ -18,6 +16,6 @@ public final class ConfigurationStoresGetDeletedSamples {
*/
public static void deletedConfigurationStoresGet(
com.azure.resourcemanager.appconfiguration.AppConfigurationManager manager) {
- manager.configurationStores().getDeletedWithResponse("westus", "contoso", Context.NONE);
+ manager.configurationStores().getDeletedWithResponse("westus", "contoso", com.azure.core.util.Context.NONE);
}
}
diff --git a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/samples/java/com/azure/resourcemanager/appconfiguration/generated/ConfigurationStoresListByResourceGroupSamples.java b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/samples/java/com/azure/resourcemanager/appconfiguration/generated/ConfigurationStoresListByResourceGroupSamples.java
index 615ef9fe0d105..1ad6844c6148c 100644
--- a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/samples/java/com/azure/resourcemanager/appconfiguration/generated/ConfigurationStoresListByResourceGroupSamples.java
+++ b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/samples/java/com/azure/resourcemanager/appconfiguration/generated/ConfigurationStoresListByResourceGroupSamples.java
@@ -4,8 +4,6 @@
package com.azure.resourcemanager.appconfiguration.generated;
-import com.azure.core.util.Context;
-
/** Samples for ConfigurationStores ListByResourceGroup. */
public final class ConfigurationStoresListByResourceGroupSamples {
/*
@@ -18,6 +16,6 @@ public final class ConfigurationStoresListByResourceGroupSamples {
*/
public static void configurationStoresListByResourceGroup(
com.azure.resourcemanager.appconfiguration.AppConfigurationManager manager) {
- manager.configurationStores().listByResourceGroup("myResourceGroup", null, Context.NONE);
+ manager.configurationStores().listByResourceGroup("myResourceGroup", null, com.azure.core.util.Context.NONE);
}
}
diff --git a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/samples/java/com/azure/resourcemanager/appconfiguration/generated/ConfigurationStoresListDeletedSamples.java b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/samples/java/com/azure/resourcemanager/appconfiguration/generated/ConfigurationStoresListDeletedSamples.java
index 2dfefc4126d33..d81a747f75bdc 100644
--- a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/samples/java/com/azure/resourcemanager/appconfiguration/generated/ConfigurationStoresListDeletedSamples.java
+++ b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/samples/java/com/azure/resourcemanager/appconfiguration/generated/ConfigurationStoresListDeletedSamples.java
@@ -4,8 +4,6 @@
package com.azure.resourcemanager.appconfiguration.generated;
-import com.azure.core.util.Context;
-
/** Samples for ConfigurationStores ListDeleted. */
public final class ConfigurationStoresListDeletedSamples {
/*
@@ -18,6 +16,6 @@ public final class ConfigurationStoresListDeletedSamples {
*/
public static void deletedConfigurationStoresList(
com.azure.resourcemanager.appconfiguration.AppConfigurationManager manager) {
- manager.configurationStores().listDeleted(Context.NONE);
+ manager.configurationStores().listDeleted(com.azure.core.util.Context.NONE);
}
}
diff --git a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/samples/java/com/azure/resourcemanager/appconfiguration/generated/ConfigurationStoresListKeysSamples.java b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/samples/java/com/azure/resourcemanager/appconfiguration/generated/ConfigurationStoresListKeysSamples.java
index a6464c19c4e0b..d71b5d6694563 100644
--- a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/samples/java/com/azure/resourcemanager/appconfiguration/generated/ConfigurationStoresListKeysSamples.java
+++ b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/samples/java/com/azure/resourcemanager/appconfiguration/generated/ConfigurationStoresListKeysSamples.java
@@ -4,8 +4,6 @@
package com.azure.resourcemanager.appconfiguration.generated;
-import com.azure.core.util.Context;
-
/** Samples for ConfigurationStores ListKeys. */
public final class ConfigurationStoresListKeysSamples {
/*
@@ -18,6 +16,6 @@ public final class ConfigurationStoresListKeysSamples {
*/
public static void configurationStoresListKeys(
com.azure.resourcemanager.appconfiguration.AppConfigurationManager manager) {
- manager.configurationStores().listKeys("myResourceGroup", "contoso", null, Context.NONE);
+ manager.configurationStores().listKeys("myResourceGroup", "contoso", null, com.azure.core.util.Context.NONE);
}
}
diff --git a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/samples/java/com/azure/resourcemanager/appconfiguration/generated/ConfigurationStoresListSamples.java b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/samples/java/com/azure/resourcemanager/appconfiguration/generated/ConfigurationStoresListSamples.java
index 2a2176a7041db..0e5cdd1551ca2 100644
--- a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/samples/java/com/azure/resourcemanager/appconfiguration/generated/ConfigurationStoresListSamples.java
+++ b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/samples/java/com/azure/resourcemanager/appconfiguration/generated/ConfigurationStoresListSamples.java
@@ -4,8 +4,6 @@
package com.azure.resourcemanager.appconfiguration.generated;
-import com.azure.core.util.Context;
-
/** Samples for ConfigurationStores List. */
public final class ConfigurationStoresListSamples {
/*
@@ -18,6 +16,6 @@ public final class ConfigurationStoresListSamples {
*/
public static void configurationStoresList(
com.azure.resourcemanager.appconfiguration.AppConfigurationManager manager) {
- manager.configurationStores().list(null, Context.NONE);
+ manager.configurationStores().list(null, com.azure.core.util.Context.NONE);
}
}
diff --git a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/samples/java/com/azure/resourcemanager/appconfiguration/generated/ConfigurationStoresPurgeDeletedSamples.java b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/samples/java/com/azure/resourcemanager/appconfiguration/generated/ConfigurationStoresPurgeDeletedSamples.java
index efedb3a1c53fa..e76e774b03d15 100644
--- a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/samples/java/com/azure/resourcemanager/appconfiguration/generated/ConfigurationStoresPurgeDeletedSamples.java
+++ b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/samples/java/com/azure/resourcemanager/appconfiguration/generated/ConfigurationStoresPurgeDeletedSamples.java
@@ -4,8 +4,6 @@
package com.azure.resourcemanager.appconfiguration.generated;
-import com.azure.core.util.Context;
-
/** Samples for ConfigurationStores PurgeDeleted. */
public final class ConfigurationStoresPurgeDeletedSamples {
/*
@@ -18,6 +16,6 @@ public final class ConfigurationStoresPurgeDeletedSamples {
*/
public static void purgeADeletedConfigurationStore(
com.azure.resourcemanager.appconfiguration.AppConfigurationManager manager) {
- manager.configurationStores().purgeDeleted("westus", "contoso", Context.NONE);
+ manager.configurationStores().purgeDeleted("westus", "contoso", com.azure.core.util.Context.NONE);
}
}
diff --git a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/samples/java/com/azure/resourcemanager/appconfiguration/generated/ConfigurationStoresRegenerateKeySamples.java b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/samples/java/com/azure/resourcemanager/appconfiguration/generated/ConfigurationStoresRegenerateKeySamples.java
index 36f5c18c11263..5f811792a7d04 100644
--- a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/samples/java/com/azure/resourcemanager/appconfiguration/generated/ConfigurationStoresRegenerateKeySamples.java
+++ b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/samples/java/com/azure/resourcemanager/appconfiguration/generated/ConfigurationStoresRegenerateKeySamples.java
@@ -4,7 +4,6 @@
package com.azure.resourcemanager.appconfiguration.generated;
-import com.azure.core.util.Context;
import com.azure.resourcemanager.appconfiguration.models.RegenerateKeyParameters;
/** Samples for ConfigurationStores RegenerateKey. */
@@ -22,6 +21,9 @@ public static void configurationStoresRegenerateKey(
manager
.configurationStores()
.regenerateKeyWithResponse(
- "myResourceGroup", "contoso", new RegenerateKeyParameters().withId("439AD01B4BE67DB1"), Context.NONE);
+ "myResourceGroup",
+ "contoso",
+ new RegenerateKeyParameters().withId("439AD01B4BE67DB1"),
+ com.azure.core.util.Context.NONE);
}
}
diff --git a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/samples/java/com/azure/resourcemanager/appconfiguration/generated/ConfigurationStoresUpdateSamples.java b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/samples/java/com/azure/resourcemanager/appconfiguration/generated/ConfigurationStoresUpdateSamples.java
index d2e5d69b1998f..a4db24f564e42 100644
--- a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/samples/java/com/azure/resourcemanager/appconfiguration/generated/ConfigurationStoresUpdateSamples.java
+++ b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/samples/java/com/azure/resourcemanager/appconfiguration/generated/ConfigurationStoresUpdateSamples.java
@@ -4,7 +4,6 @@
package com.azure.resourcemanager.appconfiguration.generated;
-import com.azure.core.util.Context;
import com.azure.resourcemanager.appconfiguration.models.ConfigurationStore;
import com.azure.resourcemanager.appconfiguration.models.IdentityType;
import com.azure.resourcemanager.appconfiguration.models.ResourceIdentity;
@@ -28,7 +27,7 @@ public static void configurationStoresUpdateDisableLocalAuth(
ConfigurationStore resource =
manager
.configurationStores()
- .getByResourceGroupWithResponse("myResourceGroup", "contoso", Context.NONE)
+ .getByResourceGroupWithResponse("myResourceGroup", "contoso", com.azure.core.util.Context.NONE)
.getValue();
resource.update().withSku(new Sku().withName("Standard")).withDisableLocalAuth(true).apply();
}
@@ -46,7 +45,7 @@ public static void configurationStoresUpdate(
ConfigurationStore resource =
manager
.configurationStores()
- .getByResourceGroupWithResponse("myResourceGroup", "contoso", Context.NONE)
+ .getByResourceGroupWithResponse("myResourceGroup", "contoso", com.azure.core.util.Context.NONE)
.getValue();
resource.update().withTags(mapOf("Category", "Marketing")).withSku(new Sku().withName("Standard")).apply();
}
@@ -64,7 +63,7 @@ public static void configurationStoresUpdateWithIdentity(
ConfigurationStore resource =
manager
.configurationStores()
- .getByResourceGroupWithResponse("myResourceGroup", "contoso", Context.NONE)
+ .getByResourceGroupWithResponse("myResourceGroup", "contoso", com.azure.core.util.Context.NONE)
.getValue();
resource
.update()
diff --git a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/samples/java/com/azure/resourcemanager/appconfiguration/generated/KeyValuesDeleteSamples.java b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/samples/java/com/azure/resourcemanager/appconfiguration/generated/KeyValuesDeleteSamples.java
index d28acb01abb0b..52043fc4e7c18 100644
--- a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/samples/java/com/azure/resourcemanager/appconfiguration/generated/KeyValuesDeleteSamples.java
+++ b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/samples/java/com/azure/resourcemanager/appconfiguration/generated/KeyValuesDeleteSamples.java
@@ -4,8 +4,6 @@
package com.azure.resourcemanager.appconfiguration.generated;
-import com.azure.core.util.Context;
-
/** Samples for KeyValues Delete. */
public final class KeyValuesDeleteSamples {
/*
@@ -17,6 +15,6 @@ public final class KeyValuesDeleteSamples {
* @param manager Entry point to AppConfigurationManager.
*/
public static void keyValuesDelete(com.azure.resourcemanager.appconfiguration.AppConfigurationManager manager) {
- manager.keyValues().delete("myResourceGroup", "contoso", "myKey$myLabel", Context.NONE);
+ manager.keyValues().delete("myResourceGroup", "contoso", "myKey$myLabel", com.azure.core.util.Context.NONE);
}
}
diff --git a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/samples/java/com/azure/resourcemanager/appconfiguration/generated/KeyValuesGetSamples.java b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/samples/java/com/azure/resourcemanager/appconfiguration/generated/KeyValuesGetSamples.java
index 1e6a4e041ec84..4387b4f3efcee 100644
--- a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/samples/java/com/azure/resourcemanager/appconfiguration/generated/KeyValuesGetSamples.java
+++ b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/samples/java/com/azure/resourcemanager/appconfiguration/generated/KeyValuesGetSamples.java
@@ -4,8 +4,6 @@
package com.azure.resourcemanager.appconfiguration.generated;
-import com.azure.core.util.Context;
-
/** Samples for KeyValues Get. */
public final class KeyValuesGetSamples {
/*
@@ -17,6 +15,8 @@ public final class KeyValuesGetSamples {
* @param manager Entry point to AppConfigurationManager.
*/
public static void keyValuesGet(com.azure.resourcemanager.appconfiguration.AppConfigurationManager manager) {
- manager.keyValues().getWithResponse("myResourceGroup", "contoso", "myKey$myLabel", Context.NONE);
+ manager
+ .keyValues()
+ .getWithResponse("myResourceGroup", "contoso", "myKey$myLabel", com.azure.core.util.Context.NONE);
}
}
diff --git a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/samples/java/com/azure/resourcemanager/appconfiguration/generated/KeyValuesListByConfigurationStoreSamples.java b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/samples/java/com/azure/resourcemanager/appconfiguration/generated/KeyValuesListByConfigurationStoreSamples.java
deleted file mode 100644
index b836b7c93c2c2..0000000000000
--- a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/samples/java/com/azure/resourcemanager/appconfiguration/generated/KeyValuesListByConfigurationStoreSamples.java
+++ /dev/null
@@ -1,23 +0,0 @@
-// 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.generated;
-
-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);
- }
-}
diff --git a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/samples/java/com/azure/resourcemanager/appconfiguration/generated/OperationsCheckNameAvailabilitySamples.java b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/samples/java/com/azure/resourcemanager/appconfiguration/generated/OperationsCheckNameAvailabilitySamples.java
index 5bcdb3cd31624..b77a3d6de09a1 100644
--- a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/samples/java/com/azure/resourcemanager/appconfiguration/generated/OperationsCheckNameAvailabilitySamples.java
+++ b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/samples/java/com/azure/resourcemanager/appconfiguration/generated/OperationsCheckNameAvailabilitySamples.java
@@ -4,7 +4,6 @@
package com.azure.resourcemanager.appconfiguration.generated;
-import com.azure.core.util.Context;
import com.azure.resourcemanager.appconfiguration.models.CheckNameAvailabilityParameters;
import com.azure.resourcemanager.appconfiguration.models.ConfigurationResourceType;
@@ -26,7 +25,7 @@ public static void configurationStoresCheckNameAvailable(
new CheckNameAvailabilityParameters()
.withName("contoso")
.withType(ConfigurationResourceType.MICROSOFT_APP_CONFIGURATION_CONFIGURATION_STORES),
- Context.NONE);
+ com.azure.core.util.Context.NONE);
}
/*
@@ -45,6 +44,6 @@ public static void configurationStoresCheckNameNotAvailable(
new CheckNameAvailabilityParameters()
.withName("contoso")
.withType(ConfigurationResourceType.MICROSOFT_APP_CONFIGURATION_CONFIGURATION_STORES),
- Context.NONE);
+ com.azure.core.util.Context.NONE);
}
}
diff --git a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/samples/java/com/azure/resourcemanager/appconfiguration/generated/OperationsListSamples.java b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/samples/java/com/azure/resourcemanager/appconfiguration/generated/OperationsListSamples.java
new file mode 100644
index 0000000000000..892f2f3c24cbe
--- /dev/null
+++ b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/samples/java/com/azure/resourcemanager/appconfiguration/generated/OperationsListSamples.java
@@ -0,0 +1,20 @@
+// 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.generated;
+
+/** 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, com.azure.core.util.Context.NONE);
+ }
+}
diff --git a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/samples/java/com/azure/resourcemanager/appconfiguration/generated/OperationsRegionalCheckNameAvailabilitySamples.java b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/samples/java/com/azure/resourcemanager/appconfiguration/generated/OperationsRegionalCheckNameAvailabilitySamples.java
index eff06ea1f5ed9..6da8280b7394e 100644
--- a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/samples/java/com/azure/resourcemanager/appconfiguration/generated/OperationsRegionalCheckNameAvailabilitySamples.java
+++ b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/samples/java/com/azure/resourcemanager/appconfiguration/generated/OperationsRegionalCheckNameAvailabilitySamples.java
@@ -4,7 +4,6 @@
package com.azure.resourcemanager.appconfiguration.generated;
-import com.azure.core.util.Context;
import com.azure.resourcemanager.appconfiguration.models.CheckNameAvailabilityParameters;
import com.azure.resourcemanager.appconfiguration.models.ConfigurationResourceType;
@@ -27,7 +26,7 @@ public static void configurationStoresCheckNameAvailable(
new CheckNameAvailabilityParameters()
.withName("contoso")
.withType(ConfigurationResourceType.MICROSOFT_APP_CONFIGURATION_CONFIGURATION_STORES),
- Context.NONE);
+ com.azure.core.util.Context.NONE);
}
/*
@@ -47,6 +46,6 @@ public static void configurationStoresCheckNameNotAvailable(
new CheckNameAvailabilityParameters()
.withName("contoso")
.withType(ConfigurationResourceType.MICROSOFT_APP_CONFIGURATION_CONFIGURATION_STORES),
- Context.NONE);
+ com.azure.core.util.Context.NONE);
}
}
diff --git a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/samples/java/com/azure/resourcemanager/appconfiguration/generated/PrivateEndpointConnectionsCreateOrUpdateSamples.java b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/samples/java/com/azure/resourcemanager/appconfiguration/generated/PrivateEndpointConnectionsCreateOrUpdateSamples.java
index 625980d28dbe7..bab001dc33ca1 100644
--- a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/samples/java/com/azure/resourcemanager/appconfiguration/generated/PrivateEndpointConnectionsCreateOrUpdateSamples.java
+++ b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/samples/java/com/azure/resourcemanager/appconfiguration/generated/PrivateEndpointConnectionsCreateOrUpdateSamples.java
@@ -5,28 +5,32 @@
package com.azure.resourcemanager.appconfiguration.generated;
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", com.azure.core.util.Context.NONE)
+ .getValue();
+ resource
+ .update()
.withPrivateLinkServiceConnectionState(
new PrivateLinkServiceConnectionState()
.withStatus(ConnectionStatus.APPROVED)
.withDescription("Auto-Approved"))
- .create();
+ .apply();
}
}
diff --git a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/samples/java/com/azure/resourcemanager/appconfiguration/generated/PrivateEndpointConnectionsDeleteSamples.java b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/samples/java/com/azure/resourcemanager/appconfiguration/generated/PrivateEndpointConnectionsDeleteSamples.java
index ae30efa1e6adc..fe953ad6782c0 100644
--- a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/samples/java/com/azure/resourcemanager/appconfiguration/generated/PrivateEndpointConnectionsDeleteSamples.java
+++ b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/samples/java/com/azure/resourcemanager/appconfiguration/generated/PrivateEndpointConnectionsDeleteSamples.java
@@ -4,8 +4,6 @@
package com.azure.resourcemanager.appconfiguration.generated;
-import com.azure.core.util.Context;
-
/** Samples for PrivateEndpointConnections Delete. */
public final class PrivateEndpointConnectionsDeleteSamples {
/*
@@ -18,6 +16,8 @@ public final class PrivateEndpointConnectionsDeleteSamples {
*/
public static void privateEndpointConnectionsDelete(
com.azure.resourcemanager.appconfiguration.AppConfigurationManager manager) {
- manager.privateEndpointConnections().delete("myResourceGroup", "contoso", "myConnection", Context.NONE);
+ manager
+ .privateEndpointConnections()
+ .delete("myResourceGroup", "contoso", "myConnection", com.azure.core.util.Context.NONE);
}
}
diff --git a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/samples/java/com/azure/resourcemanager/appconfiguration/generated/PrivateEndpointConnectionsGetSamples.java b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/samples/java/com/azure/resourcemanager/appconfiguration/generated/PrivateEndpointConnectionsGetSamples.java
index 6e39a5e9ebee8..44bbae3e504a0 100644
--- a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/samples/java/com/azure/resourcemanager/appconfiguration/generated/PrivateEndpointConnectionsGetSamples.java
+++ b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/samples/java/com/azure/resourcemanager/appconfiguration/generated/PrivateEndpointConnectionsGetSamples.java
@@ -4,8 +4,6 @@
package com.azure.resourcemanager.appconfiguration.generated;
-import com.azure.core.util.Context;
-
/** Samples for PrivateEndpointConnections Get. */
public final class PrivateEndpointConnectionsGetSamples {
/*
@@ -20,6 +18,6 @@ public static void privateEndpointConnectionGetConnection(
com.azure.resourcemanager.appconfiguration.AppConfigurationManager manager) {
manager
.privateEndpointConnections()
- .getWithResponse("myResourceGroup", "contoso", "myConnection", Context.NONE);
+ .getWithResponse("myResourceGroup", "contoso", "myConnection", com.azure.core.util.Context.NONE);
}
}
diff --git a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/samples/java/com/azure/resourcemanager/appconfiguration/generated/PrivateEndpointConnectionsListByConfigurationStoreSamples.java b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/samples/java/com/azure/resourcemanager/appconfiguration/generated/PrivateEndpointConnectionsListByConfigurationStoreSamples.java
index dfba5864d0df4..560afd1851690 100644
--- a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/samples/java/com/azure/resourcemanager/appconfiguration/generated/PrivateEndpointConnectionsListByConfigurationStoreSamples.java
+++ b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/samples/java/com/azure/resourcemanager/appconfiguration/generated/PrivateEndpointConnectionsListByConfigurationStoreSamples.java
@@ -4,8 +4,6 @@
package com.azure.resourcemanager.appconfiguration.generated;
-import com.azure.core.util.Context;
-
/** Samples for PrivateEndpointConnections ListByConfigurationStore. */
public final class PrivateEndpointConnectionsListByConfigurationStoreSamples {
/*
@@ -18,6 +16,8 @@ public final class PrivateEndpointConnectionsListByConfigurationStoreSamples {
*/
public static void privateEndpointConnectionList(
com.azure.resourcemanager.appconfiguration.AppConfigurationManager manager) {
- manager.privateEndpointConnections().listByConfigurationStore("myResourceGroup", "contoso", Context.NONE);
+ manager
+ .privateEndpointConnections()
+ .listByConfigurationStore("myResourceGroup", "contoso", com.azure.core.util.Context.NONE);
}
}
diff --git a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/samples/java/com/azure/resourcemanager/appconfiguration/generated/PrivateLinkResourcesGetSamples.java b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/samples/java/com/azure/resourcemanager/appconfiguration/generated/PrivateLinkResourcesGetSamples.java
index d369a80e8bcfc..0e9fb47639b23 100644
--- a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/samples/java/com/azure/resourcemanager/appconfiguration/generated/PrivateLinkResourcesGetSamples.java
+++ b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/samples/java/com/azure/resourcemanager/appconfiguration/generated/PrivateLinkResourcesGetSamples.java
@@ -4,8 +4,6 @@
package com.azure.resourcemanager.appconfiguration.generated;
-import com.azure.core.util.Context;
-
/** Samples for PrivateLinkResources Get. */
public final class PrivateLinkResourcesGetSamples {
/*
@@ -20,6 +18,6 @@ public static void privateLinkResourcesGet(
com.azure.resourcemanager.appconfiguration.AppConfigurationManager manager) {
manager
.privateLinkResources()
- .getWithResponse("myResourceGroup", "contoso", "configurationStores", Context.NONE);
+ .getWithResponse("myResourceGroup", "contoso", "configurationStores", com.azure.core.util.Context.NONE);
}
}
diff --git a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/samples/java/com/azure/resourcemanager/appconfiguration/generated/PrivateLinkResourcesListByConfigurationStoreSamples.java b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/samples/java/com/azure/resourcemanager/appconfiguration/generated/PrivateLinkResourcesListByConfigurationStoreSamples.java
index ee7f619b33050..758dbae942760 100644
--- a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/samples/java/com/azure/resourcemanager/appconfiguration/generated/PrivateLinkResourcesListByConfigurationStoreSamples.java
+++ b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/samples/java/com/azure/resourcemanager/appconfiguration/generated/PrivateLinkResourcesListByConfigurationStoreSamples.java
@@ -4,8 +4,6 @@
package com.azure.resourcemanager.appconfiguration.generated;
-import com.azure.core.util.Context;
-
/** Samples for PrivateLinkResources ListByConfigurationStore. */
public final class PrivateLinkResourcesListByConfigurationStoreSamples {
/*
@@ -18,6 +16,8 @@ public final class PrivateLinkResourcesListByConfigurationStoreSamples {
*/
public static void privateLinkResourcesListGroupIds(
com.azure.resourcemanager.appconfiguration.AppConfigurationManager manager) {
- manager.privateLinkResources().listByConfigurationStore("myResourceGroup", "contoso", Context.NONE);
+ manager
+ .privateLinkResources()
+ .listByConfigurationStore("myResourceGroup", "contoso", com.azure.core.util.Context.NONE);
}
}