net.bytebuddy
byte-buddy
diff --git a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/AppConfigurationManager.java b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/AppConfigurationManager.java
index 016de98ae511c..cd86b490aae90 100644
--- a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/AppConfigurationManager.java
+++ b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/AppConfigurationManager.java
@@ -11,8 +11,8 @@
import com.azure.core.http.HttpPipelinePosition;
import com.azure.core.http.policy.AddDatePolicy;
import com.azure.core.http.policy.AddHeadersFromContextPolicy;
-import com.azure.core.http.policy.HttpLogOptions;
import com.azure.core.http.policy.HttpLoggingPolicy;
+import com.azure.core.http.policy.HttpLogOptions;
import com.azure.core.http.policy.HttpPipelinePolicy;
import com.azure.core.http.policy.HttpPolicyProviders;
import com.azure.core.http.policy.RequestIdPolicy;
@@ -31,12 +31,14 @@
import com.azure.resourcemanager.appconfiguration.implementation.PrivateEndpointConnectionsImpl;
import com.azure.resourcemanager.appconfiguration.implementation.PrivateLinkResourcesImpl;
import com.azure.resourcemanager.appconfiguration.implementation.ReplicasImpl;
+import com.azure.resourcemanager.appconfiguration.implementation.SnapshotsImpl;
import com.azure.resourcemanager.appconfiguration.models.ConfigurationStores;
import com.azure.resourcemanager.appconfiguration.models.KeyValues;
import com.azure.resourcemanager.appconfiguration.models.Operations;
import com.azure.resourcemanager.appconfiguration.models.PrivateEndpointConnections;
import com.azure.resourcemanager.appconfiguration.models.PrivateLinkResources;
import com.azure.resourcemanager.appconfiguration.models.Replicas;
+import com.azure.resourcemanager.appconfiguration.models.Snapshots;
import java.time.Duration;
import java.time.temporal.ChronoUnit;
import java.util.ArrayList;
@@ -44,7 +46,9 @@
import java.util.Objects;
import java.util.stream.Collectors;
-/** Entry point to AppConfigurationManager. */
+/**
+ * Entry point to AppConfigurationManager.
+ */
public final class AppConfigurationManager {
private ConfigurationStores configurationStores;
@@ -58,23 +62,23 @@ public final class AppConfigurationManager {
private Replicas replicas;
+ private Snapshots snapshots;
+
private final AppConfigurationManagementClient clientObject;
private AppConfigurationManager(HttpPipeline httpPipeline, AzureProfile profile, Duration defaultPollInterval) {
Objects.requireNonNull(httpPipeline, "'httpPipeline' cannot be null.");
Objects.requireNonNull(profile, "'profile' cannot be null.");
- this.clientObject =
- new AppConfigurationManagementClientBuilder()
- .pipeline(httpPipeline)
- .endpoint(profile.getEnvironment().getResourceManagerEndpoint())
- .subscriptionId(profile.getSubscriptionId())
- .defaultPollInterval(defaultPollInterval)
- .buildClient();
+ this.clientObject = new AppConfigurationManagementClientBuilder().pipeline(httpPipeline)
+ .endpoint(profile.getEnvironment().getResourceManagerEndpoint())
+ .subscriptionId(profile.getSubscriptionId())
+ .defaultPollInterval(defaultPollInterval)
+ .buildClient();
}
/**
* Creates an instance of AppConfiguration service API entry point.
- *
+ *
* @param credential the credential to use.
* @param profile the Azure profile for client.
* @return the AppConfiguration service API instance.
@@ -87,7 +91,7 @@ public static AppConfigurationManager authenticate(TokenCredential credential, A
/**
* Creates an instance of AppConfiguration service API entry point.
- *
+ *
* @param httpPipeline the {@link HttpPipeline} configured with Azure authentication credential.
* @param profile the Azure profile for client.
* @return the AppConfiguration service API instance.
@@ -100,14 +104,16 @@ public static AppConfigurationManager authenticate(HttpPipeline httpPipeline, Az
/**
* Gets a Configurable instance that can be used to create AppConfigurationManager with optional configuration.
- *
+ *
* @return the Configurable instance allowing configurations.
*/
public static Configurable configure() {
return new AppConfigurationManager.Configurable();
}
- /** The Configurable allowing configurations to be set. */
+ /**
+ * The Configurable allowing configurations to be set.
+ */
public static final class Configurable {
private static final ClientLogger LOGGER = new ClientLogger(Configurable.class);
@@ -179,8 +185,8 @@ public Configurable withRetryPolicy(RetryPolicy retryPolicy) {
/**
* Sets the retry options for the HTTP pipeline retry policy.
- *
- * This setting has no effect, if retry policy is set via {@link #withRetryPolicy(RetryPolicy)}.
+ *
+ * This setting has no effect, if retry policy is set via {@link #withRetryPolicy(RetryPolicy)}.
*
* @param retryOptions the retry options for the HTTP pipeline retry policy.
* @return the configurable object itself.
@@ -197,8 +203,8 @@ public Configurable withRetryOptions(RetryOptions retryOptions) {
* @return the configurable object itself.
*/
public Configurable withDefaultPollInterval(Duration defaultPollInterval) {
- this.defaultPollInterval =
- Objects.requireNonNull(defaultPollInterval, "'defaultPollInterval' cannot be null.");
+ this.defaultPollInterval
+ = Objects.requireNonNull(defaultPollInterval, "'defaultPollInterval' cannot be null.");
if (this.defaultPollInterval.isNegative()) {
throw LOGGER
.logExceptionAsError(new IllegalArgumentException("'defaultPollInterval' cannot be negative"));
@@ -218,15 +224,13 @@ public AppConfigurationManager authenticate(TokenCredential credential, AzurePro
Objects.requireNonNull(profile, "'profile' cannot be null.");
StringBuilder userAgentBuilder = new StringBuilder();
- userAgentBuilder
- .append("azsdk-java")
+ userAgentBuilder.append("azsdk-java")
.append("-")
.append("com.azure.resourcemanager.appconfiguration")
.append("/")
- .append("1.0.0-beta.7");
+ .append("1.0.0-beta.1");
if (!Configuration.getGlobalConfiguration().get("AZURE_TELEMETRY_DISABLED", false)) {
- userAgentBuilder
- .append(" (")
+ userAgentBuilder.append(" (")
.append(Configuration.getGlobalConfiguration().get("java.version"))
.append("; ")
.append(Configuration.getGlobalConfiguration().get("os.name"))
@@ -251,38 +255,28 @@ public AppConfigurationManager authenticate(TokenCredential credential, AzurePro
policies.add(new UserAgentPolicy(userAgentBuilder.toString()));
policies.add(new AddHeadersFromContextPolicy());
policies.add(new RequestIdPolicy());
- policies
- .addAll(
- this
- .policies
- .stream()
- .filter(p -> p.getPipelinePosition() == HttpPipelinePosition.PER_CALL)
- .collect(Collectors.toList()));
+ policies.addAll(this.policies.stream()
+ .filter(p -> p.getPipelinePosition() == HttpPipelinePosition.PER_CALL)
+ .collect(Collectors.toList()));
HttpPolicyProviders.addBeforeRetryPolicies(policies);
policies.add(retryPolicy);
policies.add(new AddDatePolicy());
policies.add(new ArmChallengeAuthenticationPolicy(credential, scopes.toArray(new String[0])));
- policies
- .addAll(
- this
- .policies
- .stream()
- .filter(p -> p.getPipelinePosition() == HttpPipelinePosition.PER_RETRY)
- .collect(Collectors.toList()));
+ policies.addAll(this.policies.stream()
+ .filter(p -> p.getPipelinePosition() == HttpPipelinePosition.PER_RETRY)
+ .collect(Collectors.toList()));
HttpPolicyProviders.addAfterRetryPolicies(policies);
policies.add(new HttpLoggingPolicy(httpLogOptions));
- HttpPipeline httpPipeline =
- new HttpPipelineBuilder()
- .httpClient(httpClient)
- .policies(policies.toArray(new HttpPipelinePolicy[0]))
- .build();
+ HttpPipeline httpPipeline = new HttpPipelineBuilder().httpClient(httpClient)
+ .policies(policies.toArray(new HttpPipelinePolicy[0]))
+ .build();
return new AppConfigurationManager(httpPipeline, profile, defaultPollInterval);
}
}
/**
* Gets the resource collection API of ConfigurationStores. It manages ConfigurationStore.
- *
+ *
* @return Resource collection API of ConfigurationStores.
*/
public ConfigurationStores configurationStores() {
@@ -294,7 +288,7 @@ public ConfigurationStores configurationStores() {
/**
* Gets the resource collection API of Operations.
- *
+ *
* @return Resource collection API of Operations.
*/
public Operations operations() {
@@ -306,20 +300,20 @@ public Operations operations() {
/**
* Gets the resource collection API of PrivateEndpointConnections. It manages PrivateEndpointConnection.
- *
+ *
* @return Resource collection API of PrivateEndpointConnections.
*/
public PrivateEndpointConnections privateEndpointConnections() {
if (this.privateEndpointConnections == null) {
- this.privateEndpointConnections =
- new PrivateEndpointConnectionsImpl(clientObject.getPrivateEndpointConnections(), this);
+ this.privateEndpointConnections
+ = new PrivateEndpointConnectionsImpl(clientObject.getPrivateEndpointConnections(), this);
}
return privateEndpointConnections;
}
/**
* Gets the resource collection API of PrivateLinkResources.
- *
+ *
* @return Resource collection API of PrivateLinkResources.
*/
public PrivateLinkResources privateLinkResources() {
@@ -331,7 +325,7 @@ public PrivateLinkResources privateLinkResources() {
/**
* Gets the resource collection API of KeyValues. It manages KeyValue.
- *
+ *
* @return Resource collection API of KeyValues.
*/
public KeyValues keyValues() {
@@ -343,7 +337,7 @@ public KeyValues keyValues() {
/**
* Gets the resource collection API of Replicas. It manages Replica.
- *
+ *
* @return Resource collection API of Replicas.
*/
public Replicas replicas() {
@@ -354,8 +348,22 @@ public Replicas replicas() {
}
/**
- * @return Wrapped service client AppConfigurationManagementClient providing direct access to the underlying
- * auto-generated API implementation, based on Azure REST API.
+ * Gets the resource collection API of Snapshots. It manages Snapshot.
+ *
+ * @return Resource collection API of Snapshots.
+ */
+ public Snapshots snapshots() {
+ if (this.snapshots == null) {
+ this.snapshots = new SnapshotsImpl(clientObject.getSnapshots(), this);
+ }
+ return snapshots;
+ }
+
+ /**
+ * Gets wrapped service client AppConfigurationManagementClient providing direct access to the underlying
+ * auto-generated API implementation, based on Azure REST API.
+ *
+ * @return Wrapped service client AppConfigurationManagementClient.
*/
public AppConfigurationManagementClient serviceClient() {
return this.clientObject;
diff --git a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/fluent/AppConfigurationManagementClient.java b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/fluent/AppConfigurationManagementClient.java
index 186b77e2b62cf..f982a26056145 100644
--- a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/fluent/AppConfigurationManagementClient.java
+++ b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/fluent/AppConfigurationManagementClient.java
@@ -7,82 +7,91 @@
import com.azure.core.http.HttpPipeline;
import java.time.Duration;
-/** The interface for AppConfigurationManagementClient class. */
+/**
+ * The interface for AppConfigurationManagementClient class.
+ */
public interface AppConfigurationManagementClient {
/**
* Gets The Microsoft Azure subscription ID.
- *
+ *
* @return the subscriptionId value.
*/
String getSubscriptionId();
/**
* Gets server parameter.
- *
+ *
* @return the endpoint value.
*/
String getEndpoint();
/**
* Gets Api Version.
- *
+ *
* @return the apiVersion value.
*/
String getApiVersion();
/**
* Gets The HTTP pipeline to send requests through.
- *
+ *
* @return the httpPipeline value.
*/
HttpPipeline getHttpPipeline();
/**
* Gets The default poll interval for long-running operation.
- *
+ *
* @return the defaultPollInterval value.
*/
Duration getDefaultPollInterval();
/**
* Gets the ConfigurationStoresClient object to access its operations.
- *
+ *
* @return the ConfigurationStoresClient object.
*/
ConfigurationStoresClient getConfigurationStores();
/**
* Gets the OperationsClient object to access its operations.
- *
+ *
* @return the OperationsClient object.
*/
OperationsClient getOperations();
/**
* Gets the PrivateEndpointConnectionsClient object to access its operations.
- *
+ *
* @return the PrivateEndpointConnectionsClient object.
*/
PrivateEndpointConnectionsClient getPrivateEndpointConnections();
/**
* Gets the PrivateLinkResourcesClient object to access its operations.
- *
+ *
* @return the PrivateLinkResourcesClient object.
*/
PrivateLinkResourcesClient getPrivateLinkResources();
/**
* Gets the KeyValuesClient object to access its operations.
- *
+ *
* @return the KeyValuesClient object.
*/
KeyValuesClient getKeyValues();
/**
* Gets the ReplicasClient object to access its operations.
- *
+ *
* @return the ReplicasClient object.
*/
ReplicasClient getReplicas();
+
+ /**
+ * Gets the SnapshotsClient object to access its operations.
+ *
+ * @return the SnapshotsClient object.
+ */
+ SnapshotsClient getSnapshots();
}
diff --git a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/fluent/ConfigurationStoresClient.java b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/fluent/ConfigurationStoresClient.java
index cb4972b4e297a..19b93f5bcd386 100644
--- a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/fluent/ConfigurationStoresClient.java
+++ b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/fluent/ConfigurationStoresClient.java
@@ -14,14 +14,19 @@
import com.azure.resourcemanager.appconfiguration.fluent.models.ApiKeyInner;
import com.azure.resourcemanager.appconfiguration.fluent.models.ConfigurationStoreInner;
import com.azure.resourcemanager.appconfiguration.fluent.models.DeletedConfigurationStoreInner;
+import com.azure.resourcemanager.appconfiguration.fluent.models.SasTokenGenerationResultInner;
import com.azure.resourcemanager.appconfiguration.models.ConfigurationStoreUpdateParameters;
import com.azure.resourcemanager.appconfiguration.models.RegenerateKeyParameters;
+import com.azure.resourcemanager.appconfiguration.models.ResetSasKindParameters;
+import com.azure.resourcemanager.appconfiguration.models.SasTokenGenerationParameters;
-/** An instance of this class provides access to all the operations defined in ConfigurationStoresClient. */
+/**
+ * An instance of this class provides access to all the operations defined in ConfigurationStoresClient.
+ */
public interface ConfigurationStoresClient {
/**
* Lists the configuration stores for a given subscription.
- *
+ *
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the result of a request to list configuration stores as paginated response with {@link PagedIterable}.
@@ -31,10 +36,10 @@ public interface ConfigurationStoresClient {
/**
* Lists the configuration stores for a given subscription.
- *
+ *
* @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.
+ * 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.
@@ -46,7 +51,7 @@ public interface ConfigurationStoresClient {
/**
* Lists the configuration stores for a given resource group.
- *
+ *
* @param resourceGroupName The name of the resource group to which the container registry belongs.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
@@ -58,11 +63,11 @@ public interface ConfigurationStoresClient {
/**
* Lists the configuration stores for a given resource group.
- *
+ *
* @param resourceGroupName The name of the resource group to which the container registry belongs.
* @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.
+ * 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.
@@ -70,12 +75,12 @@ public interface ConfigurationStoresClient {
* @return the result of a request to list configuration stores as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable listByResourceGroup(
- String resourceGroupName, String skipToken, Context context);
+ PagedIterable listByResourceGroup(String resourceGroupName, String skipToken,
+ 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.
@@ -85,12 +90,12 @@ PagedIterable listByResourceGroup(
* @return the properties of the specified configuration store along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response getByResourceGroupWithResponse(
- String resourceGroupName, String configStoreName, Context context);
+ 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.
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -103,7 +108,7 @@ Response getByResourceGroupWithResponse(
/**
* Creates a configuration store with the specified parameters.
- *
+ *
* @param resourceGroupName The name of the resource group to which the container registry belongs.
* @param configStoreName The name of the configuration store.
* @param configStoreCreationParameters The parameters for creating a configuration store.
@@ -113,12 +118,12 @@ Response getByResourceGroupWithResponse(
* @return the {@link SyncPoller} for polling of the configuration store along with all resource properties.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, ConfigurationStoreInner> beginCreate(
- String resourceGroupName, String configStoreName, ConfigurationStoreInner configStoreCreationParameters);
+ SyncPoller, ConfigurationStoreInner> beginCreate(String resourceGroupName,
+ String configStoreName, ConfigurationStoreInner configStoreCreationParameters);
/**
* Creates a configuration store with the specified parameters.
- *
+ *
* @param resourceGroupName The name of the resource group to which the container registry belongs.
* @param configStoreName The name of the configuration store.
* @param configStoreCreationParameters The parameters for creating a configuration store.
@@ -129,15 +134,12 @@ SyncPoller, ConfigurationStoreInner> beginCr
* @return the {@link SyncPoller} for polling of the configuration store along with all resource properties.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, ConfigurationStoreInner> beginCreate(
- String resourceGroupName,
- String configStoreName,
- ConfigurationStoreInner configStoreCreationParameters,
- Context context);
+ SyncPoller, ConfigurationStoreInner> beginCreate(String resourceGroupName,
+ String configStoreName, ConfigurationStoreInner configStoreCreationParameters, Context context);
/**
* Creates a configuration store with the specified parameters.
- *
+ *
* @param resourceGroupName The name of the resource group to which the container registry belongs.
* @param configStoreName The name of the configuration store.
* @param configStoreCreationParameters The parameters for creating a configuration store.
@@ -147,12 +149,12 @@ SyncPoller, ConfigurationStoreInner> beginCr
* @return the configuration store along with all resource properties.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- ConfigurationStoreInner create(
- String resourceGroupName, String configStoreName, ConfigurationStoreInner configStoreCreationParameters);
+ ConfigurationStoreInner create(String resourceGroupName, String configStoreName,
+ ConfigurationStoreInner configStoreCreationParameters);
/**
* Creates a configuration store with the specified parameters.
- *
+ *
* @param resourceGroupName The name of the resource group to which the container registry belongs.
* @param configStoreName The name of the configuration store.
* @param configStoreCreationParameters The parameters for creating a configuration store.
@@ -163,15 +165,12 @@ ConfigurationStoreInner create(
* @return the configuration store along with all resource properties.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- ConfigurationStoreInner create(
- String resourceGroupName,
- String configStoreName,
- ConfigurationStoreInner configStoreCreationParameters,
- Context context);
+ ConfigurationStoreInner create(String resourceGroupName, String configStoreName,
+ ConfigurationStoreInner configStoreCreationParameters, Context context);
/**
* Deletes a 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.
@@ -184,7 +183,7 @@ ConfigurationStoreInner create(
/**
* Deletes a 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.
@@ -198,7 +197,7 @@ ConfigurationStoreInner create(
/**
* Deletes a 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.
@@ -210,7 +209,7 @@ ConfigurationStoreInner create(
/**
* Deletes a 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.
@@ -223,7 +222,7 @@ ConfigurationStoreInner create(
/**
* Updates a configuration store with the specified parameters.
- *
+ *
* @param resourceGroupName The name of the resource group to which the container registry belongs.
* @param configStoreName The name of the configuration store.
* @param configStoreUpdateParameters The parameters for updating a configuration store.
@@ -233,14 +232,12 @@ ConfigurationStoreInner create(
* @return the {@link SyncPoller} for polling of the configuration store along with all resource properties.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, ConfigurationStoreInner> beginUpdate(
- String resourceGroupName,
- String configStoreName,
- ConfigurationStoreUpdateParameters configStoreUpdateParameters);
+ SyncPoller, ConfigurationStoreInner> beginUpdate(String resourceGroupName,
+ String configStoreName, ConfigurationStoreUpdateParameters configStoreUpdateParameters);
/**
* Updates a configuration store with the specified parameters.
- *
+ *
* @param resourceGroupName The name of the resource group to which the container registry belongs.
* @param configStoreName The name of the configuration store.
* @param configStoreUpdateParameters The parameters for updating a configuration store.
@@ -251,15 +248,12 @@ SyncPoller, ConfigurationStoreInner> beginUp
* @return the {@link SyncPoller} for polling of the configuration store along with all resource properties.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, ConfigurationStoreInner> beginUpdate(
- String resourceGroupName,
- String configStoreName,
- ConfigurationStoreUpdateParameters configStoreUpdateParameters,
- Context context);
+ SyncPoller, ConfigurationStoreInner> beginUpdate(String resourceGroupName,
+ String configStoreName, ConfigurationStoreUpdateParameters configStoreUpdateParameters, Context context);
/**
* Updates a configuration store with the specified parameters.
- *
+ *
* @param resourceGroupName The name of the resource group to which the container registry belongs.
* @param configStoreName The name of the configuration store.
* @param configStoreUpdateParameters The parameters for updating a configuration store.
@@ -269,14 +263,12 @@ SyncPoller, ConfigurationStoreInner> beginUp
* @return the configuration store along with all resource properties.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- ConfigurationStoreInner update(
- String resourceGroupName,
- String configStoreName,
+ ConfigurationStoreInner update(String resourceGroupName, String configStoreName,
ConfigurationStoreUpdateParameters configStoreUpdateParameters);
/**
* Updates a configuration store with the specified parameters.
- *
+ *
* @param resourceGroupName The name of the resource group to which the container registry belongs.
* @param configStoreName The name of the configuration store.
* @param configStoreUpdateParameters The parameters for updating a configuration store.
@@ -287,15 +279,12 @@ ConfigurationStoreInner update(
* @return the configuration store along with all resource properties.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- ConfigurationStoreInner update(
- String resourceGroupName,
- String configStoreName,
- ConfigurationStoreUpdateParameters configStoreUpdateParameters,
- Context context);
+ ConfigurationStoreInner update(String resourceGroupName, String configStoreName,
+ ConfigurationStoreUpdateParameters configStoreUpdateParameters, Context context);
/**
* Lists the access key for 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.
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -308,12 +297,12 @@ ConfigurationStoreInner update(
/**
* Lists the access key for 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 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.
+ * 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.
@@ -321,12 +310,12 @@ ConfigurationStoreInner update(
* @return the result of a request to list API keys as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable listKeys(
- String resourceGroupName, String configStoreName, String skipToken, Context context);
+ PagedIterable listKeys(String resourceGroupName, String configStoreName, String skipToken,
+ Context context);
/**
* Regenerates an access key for 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 regenerateKeyParameters The parameters for regenerating an access key.
@@ -337,15 +326,12 @@ PagedIterable listKeys(
* @return an API key used for authenticating with a configuration store endpoint along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response regenerateKeyWithResponse(
- String resourceGroupName,
- String configStoreName,
- RegenerateKeyParameters regenerateKeyParameters,
- Context context);
+ Response regenerateKeyWithResponse(String resourceGroupName, String configStoreName,
+ RegenerateKeyParameters regenerateKeyParameters, Context context);
/**
* Regenerates an access key for 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 regenerateKeyParameters The parameters for regenerating an access key.
@@ -355,36 +341,96 @@ Response regenerateKeyWithResponse(
* @return an API key used for authenticating with a configuration store endpoint.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- ApiKeyInner regenerateKey(
- String resourceGroupName, String configStoreName, RegenerateKeyParameters regenerateKeyParameters);
+ ApiKeyInner regenerateKey(String resourceGroupName, String configStoreName,
+ RegenerateKeyParameters regenerateKeyParameters);
+
+ /**
+ * Generates a SAS token for scoped, read-only access 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 sasTokenGenerationParameters The object containing information for the SAS token generation 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 generate a SAS token along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response generateSasTokenWithResponse(String resourceGroupName,
+ String configStoreName, SasTokenGenerationParameters sasTokenGenerationParameters, Context context);
+
+ /**
+ * Generates a SAS token for scoped, read-only access 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 sasTokenGenerationParameters The object containing information for the SAS token generation request.
+ * @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 generate a SAS token.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SasTokenGenerationResultInner generateSasToken(String resourceGroupName, String configStoreName,
+ SasTokenGenerationParameters sasTokenGenerationParameters);
+
+ /**
+ * Reset all SAS tokens of a given kind (primary/secondary).
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param configStoreName The name of the configuration store.
+ * @param resetSasKindParameters The object containing information for the SAS kind reset 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 {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response resetSasKindWithResponse(String resourceGroupName, String configStoreName,
+ ResetSasKindParameters resetSasKindParameters, Context context);
+
+ /**
+ * Reset all SAS tokens of a given kind (primary/secondary).
+ *
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param configStoreName The name of the configuration store.
+ * @param resetSasKindParameters The object containing information for the SAS kind reset request.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void resetSasKind(String resourceGroupName, String configStoreName, ResetSasKindParameters resetSasKindParameters);
/**
* Gets information about the deleted configuration stores in a subscription.
- *
+ *
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return information about the deleted configuration stores in a subscription as paginated response with {@link
- * PagedIterable}.
+ * @return information about the deleted configuration stores in a subscription as paginated response with
+ * {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listDeleted();
/**
* Gets information about the deleted configuration stores in a subscription.
- *
+ *
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return information about the deleted configuration stores in a subscription as paginated response with {@link
- * PagedIterable}.
+ * @return information about the deleted configuration stores in a subscription as paginated response with
+ * {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listDeleted(Context context);
/**
* Gets a deleted Azure app configuration store.
- *
+ *
* @param location The location in which uniqueness will be verified.
* @param configStoreName The name of the configuration store.
* @param context The context to associate with this operation.
@@ -394,12 +440,12 @@ ApiKeyInner regenerateKey(
* @return a deleted Azure app configuration store along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response getDeletedWithResponse(
- String location, String configStoreName, Context context);
+ 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.
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -412,7 +458,7 @@ Response getDeletedWithResponse(
/**
* Permanently deletes the specified configuration store.
- *
+ *
* @param location The location in which uniqueness will be verified.
* @param configStoreName The name of the configuration store.
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -425,7 +471,7 @@ Response getDeletedWithResponse(
/**
* Permanently deletes the specified configuration store.
- *
+ *
* @param location The location in which uniqueness will be verified.
* @param configStoreName The name of the configuration store.
* @param context The context to associate with this operation.
@@ -439,7 +485,7 @@ Response getDeletedWithResponse(
/**
* Permanently deletes the specified configuration store.
- *
+ *
* @param location The location in which uniqueness will be verified.
* @param configStoreName The name of the configuration store.
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -451,7 +497,7 @@ Response getDeletedWithResponse(
/**
* Permanently deletes the specified configuration store.
- *
+ *
* @param location The location in which uniqueness will be verified.
* @param configStoreName The name of the configuration store.
* @param context The context to associate with this operation.
diff --git a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/fluent/KeyValuesClient.java b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/fluent/KeyValuesClient.java
index ac185501d864c..dac813fc27b7f 100644
--- a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/fluent/KeyValuesClient.java
+++ b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/fluent/KeyValuesClient.java
@@ -12,15 +12,19 @@
import com.azure.core.util.polling.SyncPoller;
import com.azure.resourcemanager.appconfiguration.fluent.models.KeyValueInner;
-/** An instance of this class provides access to all the operations defined in KeyValuesClient. */
+/**
+ * An instance of this class provides access to all the operations defined in KeyValuesClient.
+ */
public interface KeyValuesClient {
/**
- * Gets the properties of the specified key-value.
- *
+ * Gets the properties of the specified key-value. NOTE: This operation is intended for use in ARM Template
+ * deployments. For all other scenarios involving App Configuration key-values the data plane API should be used
+ * instead.
+ *
* @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.
+ * 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.
@@ -28,16 +32,18 @@ public interface KeyValuesClient {
* @return the properties of the specified key-value along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response getWithResponse(
- String resourceGroupName, String configStoreName, String keyValueName, Context context);
+ Response getWithResponse(String resourceGroupName, String configStoreName, String keyValueName,
+ Context context);
/**
- * Gets the properties of the specified key-value.
- *
+ * Gets the properties of the specified key-value. NOTE: This operation is intended for use in ARM Template
+ * deployments. For all other scenarios involving App Configuration key-values the data plane API should be used
+ * instead.
+ *
* @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.
+ * optional.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
@@ -47,12 +53,13 @@ Response getWithResponse(
KeyValueInner get(String resourceGroupName, String configStoreName, String keyValueName);
/**
- * Creates a key-value.
- *
+ * Creates a key-value. NOTE: This operation is intended for use in ARM Template deployments. For all other
+ * scenarios involving App Configuration key-values the data plane API should be used instead.
+ *
* @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.
+ * 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.
@@ -61,20 +68,17 @@ Response getWithResponse(
* @return the key-value resource along with all resource properties along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response createOrUpdateWithResponse(
- String resourceGroupName,
- String configStoreName,
- String keyValueName,
- KeyValueInner keyValueParameters,
- Context context);
+ Response createOrUpdateWithResponse(String resourceGroupName, String configStoreName,
+ String keyValueName, KeyValueInner keyValueParameters, Context context);
/**
- * Creates a key-value.
- *
+ * Creates a key-value. NOTE: This operation is intended for use in ARM Template deployments. For all other
+ * scenarios involving App Configuration key-values the data plane API should be used instead.
+ *
* @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.
+ * optional.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
@@ -84,28 +88,30 @@ Response createOrUpdateWithResponse(
KeyValueInner createOrUpdate(String resourceGroupName, String configStoreName, String keyValueName);
/**
- * Deletes a key-value.
- *
+ * Deletes a key-value. NOTE: This operation is intended for use in ARM Template deployments. For all other
+ * scenarios involving App Configuration key-values the data plane API should be used instead.
+ *
* @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.
+ * optional.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the {@link SyncPoller} for polling of long-running operation.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, Void> beginDelete(
- String resourceGroupName, String configStoreName, String keyValueName);
+ SyncPoller, Void> beginDelete(String resourceGroupName, String configStoreName,
+ String keyValueName);
/**
- * Deletes a key-value.
- *
+ * Deletes a key-value. NOTE: This operation is intended for use in ARM Template deployments. For all other
+ * scenarios involving App Configuration key-values the data plane API should be used instead.
+ *
* @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.
+ * 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.
@@ -113,16 +119,17 @@ SyncPoller, Void> beginDelete(
* @return the {@link SyncPoller} for polling of long-running operation.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, Void> beginDelete(
- String resourceGroupName, String configStoreName, String keyValueName, Context context);
+ SyncPoller, Void> beginDelete(String resourceGroupName, String configStoreName,
+ String keyValueName, Context context);
/**
- * Deletes a key-value.
- *
+ * Deletes a key-value. NOTE: This operation is intended for use in ARM Template deployments. For all other
+ * scenarios involving App Configuration key-values the data plane API should be used instead.
+ *
* @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.
+ * optional.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
@@ -131,12 +138,13 @@ SyncPoller, Void> beginDelete(
void delete(String resourceGroupName, String configStoreName, String keyValueName);
/**
- * Deletes a key-value.
- *
+ * Deletes a key-value. NOTE: This operation is intended for use in ARM Template deployments. For all other
+ * scenarios involving App Configuration key-values the data plane API should be used instead.
+ *
* @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.
+ * 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.
diff --git a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/fluent/OperationsClient.java b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/fluent/OperationsClient.java
index 102a8a4ca2169..a735e42bf8596 100644
--- a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/fluent/OperationsClient.java
+++ b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/fluent/OperationsClient.java
@@ -13,11 +13,13 @@
import com.azure.resourcemanager.appconfiguration.fluent.models.OperationDefinitionInner;
import com.azure.resourcemanager.appconfiguration.models.CheckNameAvailabilityParameters;
-/** An instance of this class provides access to all the operations defined in OperationsClient. */
+/**
+ * An instance of this class provides access to all the operations defined in OperationsClient.
+ */
public interface OperationsClient {
/**
* 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.
@@ -31,7 +33,7 @@ Response checkNameAvailabilityWithResponse(
/**
* Checks whether the configuration store name is available for use.
- *
+ *
* @param checkNameAvailabilityParameters The object containing information for the availability request.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
@@ -43,34 +45,34 @@ Response checkNameAvailabilityWithResponse(
/**
* Lists the operations available from this provider.
- *
+ *
* @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 configuration store operations as paginated response with {@link
- * PagedIterable}.
+ * @return the result of a request to list configuration store operations as paginated response with
+ * {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable list();
/**
* Lists the operations available from this provider.
- *
+ *
* @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.
+ * 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 configuration store operations as paginated response with {@link
- * PagedIterable}.
+ * @return the result of a request to list configuration store operations as paginated response with
+ * {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable list(String skipToken, 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.
@@ -80,12 +82,12 @@ Response checkNameAvailabilityWithResponse(
* @return the result of a request to check the availability of a resource name along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response regionalCheckNameAvailabilityWithResponse(
- String location, CheckNameAvailabilityParameters checkNameAvailabilityParameters, Context context);
+ 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.
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -94,6 +96,6 @@ Response regionalCheckNameAvailabilityWithResponse(
* @return the result of a request to check the availability of a resource name.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- NameAvailabilityStatusInner regionalCheckNameAvailability(
- String location, CheckNameAvailabilityParameters checkNameAvailabilityParameters);
+ NameAvailabilityStatusInner regionalCheckNameAvailability(String location,
+ CheckNameAvailabilityParameters checkNameAvailabilityParameters);
}
diff --git a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/fluent/PrivateEndpointConnectionsClient.java b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/fluent/PrivateEndpointConnectionsClient.java
index 0a92340eb6035..ccd211e04d097 100644
--- a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/fluent/PrivateEndpointConnectionsClient.java
+++ b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/fluent/PrivateEndpointConnectionsClient.java
@@ -13,11 +13,13 @@
import com.azure.core.util.polling.SyncPoller;
import com.azure.resourcemanager.appconfiguration.fluent.models.PrivateEndpointConnectionInner;
-/** An instance of this class provides access to all the operations defined in PrivateEndpointConnectionsClient. */
+/**
+ * An instance of this class provides access to all the operations defined in PrivateEndpointConnectionsClient.
+ */
public interface PrivateEndpointConnectionsClient {
/**
* Lists all private endpoint connections for a 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.
@@ -26,12 +28,12 @@ public interface PrivateEndpointConnectionsClient {
* @return a list of private endpoint connections as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable listByConfigurationStore(
- String resourceGroupName, String configStoreName);
+ PagedIterable listByConfigurationStore(String resourceGroupName,
+ String configStoreName);
/**
* Lists all private endpoint connections for a 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.
@@ -41,12 +43,12 @@ PagedIterable listByConfigurationStore(
* @return a list of private endpoint connections as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable listByConfigurationStore(
- String resourceGroupName, String configStoreName, Context context);
+ PagedIterable listByConfigurationStore(String resourceGroupName,
+ String configStoreName, Context context);
/**
* Gets the specified private endpoint connection associated with the 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 privateEndpointConnectionName Private endpoint connection name.
@@ -54,16 +56,16 @@ PagedIterable listByConfigurationStore(
* @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 along with
+ * {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response getWithResponse(
- String resourceGroupName, String configStoreName, String privateEndpointConnectionName, Context context);
+ Response getWithResponse(String resourceGroupName, String configStoreName,
+ String privateEndpointConnectionName, Context context);
/**
* Gets the specified private endpoint connection associated with the 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 privateEndpointConnectionName Private endpoint connection name.
@@ -73,14 +75,14 @@ Response getWithResponse(
* @return the specified private endpoint connection associated with the configuration store.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- PrivateEndpointConnectionInner get(
- String resourceGroupName, String configStoreName, String privateEndpointConnectionName);
+ PrivateEndpointConnectionInner get(String resourceGroupName, String configStoreName,
+ String privateEndpointConnectionName);
/**
* 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.
* @param privateEndpointConnectionName Private endpoint connection name.
@@ -92,16 +94,14 @@ PrivateEndpointConnectionInner get(
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, PrivateEndpointConnectionInner> beginCreateOrUpdate(
- String resourceGroupName,
- String configStoreName,
- String privateEndpointConnectionName,
+ String resourceGroupName, String configStoreName, String privateEndpointConnectionName,
PrivateEndpointConnectionInner privateEndpointConnection);
/**
* 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.
* @param privateEndpointConnectionName Private endpoint connection name.
@@ -114,17 +114,14 @@ SyncPoller, PrivateEndpointConnection
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, PrivateEndpointConnectionInner> beginCreateOrUpdate(
- String resourceGroupName,
- String configStoreName,
- String privateEndpointConnectionName,
- PrivateEndpointConnectionInner privateEndpointConnection,
- Context context);
+ String resourceGroupName, String configStoreName, String privateEndpointConnectionName,
+ PrivateEndpointConnectionInner privateEndpointConnection, Context context);
/**
* 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.
* @param privateEndpointConnectionName Private endpoint connection name.
@@ -135,17 +132,14 @@ SyncPoller, PrivateEndpointConnection
* @return a private endpoint connection.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- PrivateEndpointConnectionInner createOrUpdate(
- String resourceGroupName,
- String configStoreName,
- String privateEndpointConnectionName,
- PrivateEndpointConnectionInner privateEndpointConnection);
+ PrivateEndpointConnectionInner createOrUpdate(String resourceGroupName, String configStoreName,
+ String privateEndpointConnectionName, PrivateEndpointConnectionInner privateEndpointConnection);
/**
* 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.
* @param privateEndpointConnectionName Private endpoint connection name.
@@ -157,16 +151,13 @@ PrivateEndpointConnectionInner createOrUpdate(
* @return a private endpoint connection.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- PrivateEndpointConnectionInner createOrUpdate(
- String resourceGroupName,
- String configStoreName,
- String privateEndpointConnectionName,
- PrivateEndpointConnectionInner privateEndpointConnection,
+ PrivateEndpointConnectionInner createOrUpdate(String resourceGroupName, String configStoreName,
+ String privateEndpointConnectionName, PrivateEndpointConnectionInner privateEndpointConnection,
Context context);
/**
* Deletes a private endpoint connection.
- *
+ *
* @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.
@@ -176,12 +167,12 @@ PrivateEndpointConnectionInner createOrUpdate(
* @return the {@link SyncPoller} for polling of long-running operation.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, Void> beginDelete(
- String resourceGroupName, String configStoreName, String privateEndpointConnectionName);
+ SyncPoller, Void> beginDelete(String resourceGroupName, String configStoreName,
+ String privateEndpointConnectionName);
/**
* Deletes a private endpoint connection.
- *
+ *
* @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.
@@ -192,12 +183,12 @@ SyncPoller, Void> beginDelete(
* @return the {@link SyncPoller} for polling of long-running operation.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, Void> beginDelete(
- String resourceGroupName, String configStoreName, String privateEndpointConnectionName, Context context);
+ SyncPoller, Void> beginDelete(String resourceGroupName, String configStoreName,
+ String privateEndpointConnectionName, Context context);
/**
* Deletes a private endpoint connection.
- *
+ *
* @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.
@@ -210,7 +201,7 @@ SyncPoller, Void> beginDelete(
/**
* Deletes a private endpoint connection.
- *
+ *
* @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.
@@ -220,6 +211,6 @@ SyncPoller, Void> beginDelete(
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- void delete(
- String resourceGroupName, String configStoreName, String privateEndpointConnectionName, Context context);
+ void delete(String resourceGroupName, String configStoreName, String privateEndpointConnectionName,
+ Context context);
}
diff --git a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/fluent/PrivateLinkResourcesClient.java b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/fluent/PrivateLinkResourcesClient.java
index c11541741e8a1..3e4119b85608c 100644
--- a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/fluent/PrivateLinkResourcesClient.java
+++ b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/fluent/PrivateLinkResourcesClient.java
@@ -11,25 +11,27 @@
import com.azure.core.util.Context;
import com.azure.resourcemanager.appconfiguration.fluent.models.PrivateLinkResourceInner;
-/** An instance of this class provides access to all the operations defined in PrivateLinkResourcesClient. */
+/**
+ * An instance of this class provides access to all the operations defined in PrivateLinkResourcesClient.
+ */
public interface PrivateLinkResourcesClient {
/**
* Gets the private link resources that need to be created for a 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 private link resources that need to be created for a configuration store as paginated response with
- * {@link PagedIterable}.
+ * {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listByConfigurationStore(String resourceGroupName, String configStoreName);
/**
* Gets the private link resources that need to be created for a 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.
@@ -37,15 +39,15 @@ public interface PrivateLinkResourcesClient {
* @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 private link resources that need to be created for a configuration store as paginated response with
- * {@link PagedIterable}.
+ * {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable listByConfigurationStore(
- String resourceGroupName, String configStoreName, Context context);
+ PagedIterable listByConfigurationStore(String resourceGroupName, String configStoreName,
+ Context context);
/**
* Gets a private link resource that need to be created for a 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 groupName The name of the private link resource group.
@@ -56,12 +58,12 @@ PagedIterable listByConfigurationStore(
* @return a private link resource that need to be created for a configuration store along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response getWithResponse(
- String resourceGroupName, String configStoreName, String groupName, Context context);
+ Response getWithResponse(String resourceGroupName, String configStoreName,
+ String groupName, Context context);
/**
* Gets a private link resource that need to be created for a 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 groupName The name of the private link resource group.
diff --git a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/fluent/ReplicasClient.java b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/fluent/ReplicasClient.java
index 36f7683c7ac31..27a876a9c2d18 100644
--- a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/fluent/ReplicasClient.java
+++ b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/fluent/ReplicasClient.java
@@ -13,11 +13,13 @@
import com.azure.core.util.polling.SyncPoller;
import com.azure.resourcemanager.appconfiguration.fluent.models.ReplicaInner;
-/** An instance of this class provides access to all the operations defined in ReplicasClient. */
+/**
+ * An instance of this class provides access to all the operations defined in ReplicasClient.
+ */
public interface ReplicasClient {
/**
* Lists the replicas 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.
@@ -30,12 +32,12 @@ public interface ReplicasClient {
/**
* Lists the replicas 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.
+ * 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.
@@ -43,12 +45,12 @@ public interface ReplicasClient {
* @return the result of a request to list replicas as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable listByConfigurationStore(
- String resourceGroupName, String configStoreName, String skipToken, Context context);
+ PagedIterable listByConfigurationStore(String resourceGroupName, String configStoreName,
+ String skipToken, Context context);
/**
* Gets the properties of the specified replica.
- *
+ *
* @param resourceGroupName The name of the resource group to which the container registry belongs.
* @param configStoreName The name of the configuration store.
* @param replicaName The name of the replica.
@@ -59,12 +61,12 @@ PagedIterable listByConfigurationStore(
* @return the properties of the specified replica along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response getWithResponse(
- String resourceGroupName, String configStoreName, String replicaName, Context context);
+ Response getWithResponse(String resourceGroupName, String configStoreName, String replicaName,
+ Context context);
/**
* Gets the properties of the specified replica.
- *
+ *
* @param resourceGroupName The name of the resource group to which the container registry belongs.
* @param configStoreName The name of the configuration store.
* @param replicaName The name of the replica.
@@ -78,7 +80,7 @@ Response getWithResponse(
/**
* Creates a replica with the specified parameters.
- *
+ *
* @param resourceGroupName The name of the resource group to which the container registry belongs.
* @param configStoreName The name of the configuration store.
* @param replicaName The name of the replica.
@@ -89,12 +91,12 @@ Response getWithResponse(
* @return the {@link SyncPoller} for polling of the replica resource.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, ReplicaInner> beginCreate(
- String resourceGroupName, String configStoreName, String replicaName, ReplicaInner replicaCreationParameters);
+ SyncPoller, ReplicaInner> beginCreate(String resourceGroupName, String configStoreName,
+ String replicaName, ReplicaInner replicaCreationParameters);
/**
* Creates a replica with the specified parameters.
- *
+ *
* @param resourceGroupName The name of the resource group to which the container registry belongs.
* @param configStoreName The name of the configuration store.
* @param replicaName The name of the replica.
@@ -106,16 +108,12 @@ SyncPoller, ReplicaInner> beginCreate(
* @return the {@link SyncPoller} for polling of the replica resource.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, ReplicaInner> beginCreate(
- String resourceGroupName,
- String configStoreName,
- String replicaName,
- ReplicaInner replicaCreationParameters,
- Context context);
+ SyncPoller, ReplicaInner> beginCreate(String resourceGroupName, String configStoreName,
+ String replicaName, ReplicaInner replicaCreationParameters, Context context);
/**
* Creates a replica with the specified parameters.
- *
+ *
* @param resourceGroupName The name of the resource group to which the container registry belongs.
* @param configStoreName The name of the configuration store.
* @param replicaName The name of the replica.
@@ -126,12 +124,12 @@ SyncPoller, ReplicaInner> beginCreate(
* @return the replica resource.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- ReplicaInner create(
- String resourceGroupName, String configStoreName, String replicaName, ReplicaInner replicaCreationParameters);
+ ReplicaInner create(String resourceGroupName, String configStoreName, String replicaName,
+ ReplicaInner replicaCreationParameters);
/**
* Creates a replica with the specified parameters.
- *
+ *
* @param resourceGroupName The name of the resource group to which the container registry belongs.
* @param configStoreName The name of the configuration store.
* @param replicaName The name of the replica.
@@ -143,16 +141,12 @@ ReplicaInner create(
* @return the replica resource.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- ReplicaInner create(
- String resourceGroupName,
- String configStoreName,
- String replicaName,
- ReplicaInner replicaCreationParameters,
- Context context);
+ ReplicaInner create(String resourceGroupName, String configStoreName, String replicaName,
+ ReplicaInner replicaCreationParameters, Context context);
/**
* Deletes a replica.
- *
+ *
* @param resourceGroupName The name of the resource group to which the container registry belongs.
* @param configStoreName The name of the configuration store.
* @param replicaName The name of the replica.
@@ -162,12 +156,12 @@ ReplicaInner create(
* @return the {@link SyncPoller} for polling of long-running operation.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, Void> beginDelete(
- String resourceGroupName, String configStoreName, String replicaName);
+ SyncPoller, Void> beginDelete(String resourceGroupName, String configStoreName,
+ String replicaName);
/**
* Deletes a replica.
- *
+ *
* @param resourceGroupName The name of the resource group to which the container registry belongs.
* @param configStoreName The name of the configuration store.
* @param replicaName The name of the replica.
@@ -178,12 +172,12 @@ SyncPoller, Void> beginDelete(
* @return the {@link SyncPoller} for polling of long-running operation.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, Void> beginDelete(
- String resourceGroupName, String configStoreName, String replicaName, Context context);
+ SyncPoller, Void> beginDelete(String resourceGroupName, String configStoreName, String replicaName,
+ Context context);
/**
* Deletes a replica.
- *
+ *
* @param resourceGroupName The name of the resource group to which the container registry belongs.
* @param configStoreName The name of the configuration store.
* @param replicaName The name of the replica.
@@ -196,7 +190,7 @@ SyncPoller, Void> beginDelete(
/**
* Deletes a replica.
- *
+ *
* @param resourceGroupName The name of the resource group to which the container registry belongs.
* @param configStoreName The name of the configuration store.
* @param replicaName The name of the replica.
diff --git a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/fluent/SnapshotsClient.java b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/fluent/SnapshotsClient.java
new file mode 100644
index 0000000000000..4151df67468bb
--- /dev/null
+++ b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/fluent/SnapshotsClient.java
@@ -0,0 +1,121 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.appconfiguration.fluent;
+
+import com.azure.core.annotation.ReturnType;
+import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.http.rest.Response;
+import com.azure.core.management.polling.PollResult;
+import com.azure.core.util.Context;
+import com.azure.core.util.polling.SyncPoller;
+import com.azure.resourcemanager.appconfiguration.fluent.models.SnapshotInner;
+
+/**
+ * An instance of this class provides access to all the operations defined in SnapshotsClient.
+ */
+public interface SnapshotsClient {
+ /**
+ * Gets the properties of the specified snapshot. NOTE: This operation is intended for use in ARM Template
+ * deployments. For all other scenarios involving App Configuration snapshots the data plane API should be used
+ * instead.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param configStoreName The name of the configuration store.
+ * @param snapshotName The name of the snapshot.
+ * @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 snapshot along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getWithResponse(String resourceGroupName, String configStoreName, String snapshotName,
+ Context context);
+
+ /**
+ * Gets the properties of the specified snapshot. NOTE: This operation is intended for use in ARM Template
+ * deployments. For all other scenarios involving App Configuration snapshots the data plane API should be used
+ * instead.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param configStoreName The name of the configuration store.
+ * @param snapshotName The name of the snapshot.
+ * @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 snapshot.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SnapshotInner get(String resourceGroupName, String configStoreName, String snapshotName);
+
+ /**
+ * Creates a snapshot. NOTE: This operation is intended for use in ARM Template deployments. For all other scenarios
+ * involving App Configuration snapshots the data plane API should be used instead.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param configStoreName The name of the configuration store.
+ * @param snapshotName The name of the snapshot.
+ * @param body The parameters for creating a snapshot.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of the snapshot resource.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, SnapshotInner> beginCreate(String resourceGroupName, String configStoreName,
+ String snapshotName, SnapshotInner body);
+
+ /**
+ * Creates a snapshot. NOTE: This operation is intended for use in ARM Template deployments. For all other scenarios
+ * involving App Configuration snapshots the data plane API should be used instead.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param configStoreName The name of the configuration store.
+ * @param snapshotName The name of the snapshot.
+ * @param body The parameters for creating a snapshot.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of the snapshot resource.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, SnapshotInner> beginCreate(String resourceGroupName, String configStoreName,
+ String snapshotName, SnapshotInner body, Context context);
+
+ /**
+ * Creates a snapshot. NOTE: This operation is intended for use in ARM Template deployments. For all other scenarios
+ * involving App Configuration snapshots the data plane API should be used instead.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param configStoreName The name of the configuration store.
+ * @param snapshotName The name of the snapshot.
+ * @param body The parameters for creating a snapshot.
+ * @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 snapshot resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SnapshotInner create(String resourceGroupName, String configStoreName, String snapshotName, SnapshotInner body);
+
+ /**
+ * Creates a snapshot. NOTE: This operation is intended for use in ARM Template deployments. For all other scenarios
+ * involving App Configuration snapshots the data plane API should be used instead.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param configStoreName The name of the configuration store.
+ * @param snapshotName The name of the snapshot.
+ * @param body The parameters for creating a snapshot.
+ * @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 snapshot resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SnapshotInner create(String resourceGroupName, String configStoreName, String snapshotName, SnapshotInner body,
+ Context context);
+}
diff --git a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/fluent/models/ApiKeyInner.java b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/fluent/models/ApiKeyInner.java
index d5e7279b7b5fc..3e66b6eb0d55f 100644
--- a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/fluent/models/ApiKeyInner.java
+++ b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/fluent/models/ApiKeyInner.java
@@ -5,55 +5,58 @@
package com.azure.resourcemanager.appconfiguration.fluent.models;
import com.azure.core.annotation.Immutable;
-import com.fasterxml.jackson.annotation.JsonProperty;
+import com.azure.core.util.CoreUtils;
+import com.azure.json.JsonReader;
+import com.azure.json.JsonSerializable;
+import com.azure.json.JsonToken;
+import com.azure.json.JsonWriter;
+import java.io.IOException;
import java.time.OffsetDateTime;
-/** An API key used for authenticating with a configuration store endpoint. */
+/**
+ * An API key used for authenticating with a configuration store endpoint.
+ */
@Immutable
-public final class ApiKeyInner {
+public final class ApiKeyInner implements JsonSerializable {
/*
* The key ID.
*/
- @JsonProperty(value = "id", access = JsonProperty.Access.WRITE_ONLY)
private String id;
/*
* A name for the key describing its usage.
*/
- @JsonProperty(value = "name", access = JsonProperty.Access.WRITE_ONLY)
private String name;
/*
* The value of the key that is used for authentication purposes.
*/
- @JsonProperty(value = "value", access = JsonProperty.Access.WRITE_ONLY)
private String value;
/*
* A connection string that can be used by supporting clients for authentication.
*/
- @JsonProperty(value = "connectionString", access = JsonProperty.Access.WRITE_ONLY)
private String connectionString;
/*
* The last time any of the key's properties were modified.
*/
- @JsonProperty(value = "lastModified", access = JsonProperty.Access.WRITE_ONLY)
private OffsetDateTime lastModified;
/*
* Whether this key can only be used for read operations.
*/
- @JsonProperty(value = "readOnly", access = JsonProperty.Access.WRITE_ONLY)
private Boolean readOnly;
- /** Creates an instance of ApiKeyInner class. */
+ /**
+ * Creates an instance of ApiKeyInner class.
+ */
public ApiKeyInner() {
}
/**
* Get the id property: The key ID.
- *
+ *
* @return the id value.
*/
public String id() {
@@ -62,7 +65,7 @@ public String id() {
/**
* Get the name property: A name for the key describing its usage.
- *
+ *
* @return the name value.
*/
public String name() {
@@ -71,7 +74,7 @@ public String name() {
/**
* Get the value property: The value of the key that is used for authentication purposes.
- *
+ *
* @return the value value.
*/
public String value() {
@@ -80,7 +83,7 @@ public String value() {
/**
* Get the connectionString property: A connection string that can be used by supporting clients for authentication.
- *
+ *
* @return the connectionString value.
*/
public String connectionString() {
@@ -89,7 +92,7 @@ public String connectionString() {
/**
* Get the lastModified property: The last time any of the key's properties were modified.
- *
+ *
* @return the lastModified value.
*/
public OffsetDateTime lastModified() {
@@ -98,7 +101,7 @@ public OffsetDateTime lastModified() {
/**
* Get the readOnly property: Whether this key can only be used for read operations.
- *
+ *
* @return the readOnly value.
*/
public Boolean readOnly() {
@@ -107,9 +110,55 @@ public Boolean readOnly() {
/**
* Validates the instance.
- *
+ *
* @throws IllegalArgumentException thrown if the instance is not valid.
*/
public void validate() {
}
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of ApiKeyInner from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of ApiKeyInner if the JsonReader was pointing to an instance of it, or null if it was
+ * pointing to JSON null.
+ * @throws IOException If an error occurs while reading the ApiKeyInner.
+ */
+ public static ApiKeyInner fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ ApiKeyInner deserializedApiKeyInner = new ApiKeyInner();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("id".equals(fieldName)) {
+ deserializedApiKeyInner.id = reader.getString();
+ } else if ("name".equals(fieldName)) {
+ deserializedApiKeyInner.name = reader.getString();
+ } else if ("value".equals(fieldName)) {
+ deserializedApiKeyInner.value = reader.getString();
+ } else if ("connectionString".equals(fieldName)) {
+ deserializedApiKeyInner.connectionString = reader.getString();
+ } else if ("lastModified".equals(fieldName)) {
+ deserializedApiKeyInner.lastModified = reader
+ .getNullable(nonNullReader -> CoreUtils.parseBestOffsetDateTime(nonNullReader.getString()));
+ } else if ("readOnly".equals(fieldName)) {
+ deserializedApiKeyInner.readOnly = reader.getNullable(JsonReader::getBoolean);
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedApiKeyInner;
+ });
+ }
}
diff --git a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/fluent/models/ConfigurationStoreInner.java b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/fluent/models/ConfigurationStoreInner.java
index 2888ffc9cbb11..8b10190910455 100644
--- a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/fluent/models/ConfigurationStoreInner.java
+++ b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/fluent/models/ConfigurationStoreInner.java
@@ -8,14 +8,21 @@
import com.azure.core.management.Resource;
import com.azure.core.management.SystemData;
import com.azure.core.util.logging.ClientLogger;
+import com.azure.json.JsonReader;
+import com.azure.json.JsonToken;
+import com.azure.json.JsonWriter;
import com.azure.resourcemanager.appconfiguration.models.CreateMode;
+import com.azure.resourcemanager.appconfiguration.models.DataPlaneProxyProperties;
import com.azure.resourcemanager.appconfiguration.models.EncryptionProperties;
+import com.azure.resourcemanager.appconfiguration.models.ExperimentationProperties;
import com.azure.resourcemanager.appconfiguration.models.PrivateEndpointConnectionReference;
import com.azure.resourcemanager.appconfiguration.models.ProvisioningState;
import com.azure.resourcemanager.appconfiguration.models.PublicNetworkAccess;
import com.azure.resourcemanager.appconfiguration.models.ResourceIdentity;
+import com.azure.resourcemanager.appconfiguration.models.SasProperties;
import com.azure.resourcemanager.appconfiguration.models.Sku;
-import com.fasterxml.jackson.annotation.JsonProperty;
+import com.azure.resourcemanager.appconfiguration.models.TelemetryProperties;
+import java.io.IOException;
import java.time.OffsetDateTime;
import java.util.List;
import java.util.Map;
@@ -29,34 +36,47 @@ public final class ConfigurationStoreInner extends Resource {
/*
* The managed identity information, if configured.
*/
- @JsonProperty(value = "identity")
private ResourceIdentity identity;
/*
* The properties of a configuration store.
*/
- @JsonProperty(value = "properties")
private ConfigurationStoreProperties innerProperties;
/*
* The sku of the configuration store.
*/
- @JsonProperty(value = "sku", required = true)
private Sku sku;
/*
* Resource system metadata.
*/
- @JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY)
private SystemData systemData;
- /** Creates an instance of ConfigurationStoreInner class. */
+ /*
+ * Fully qualified resource Id for the resource.
+ */
+ private String id;
+
+ /*
+ * The name of the resource.
+ */
+ private String name;
+
+ /*
+ * The type of the resource.
+ */
+ private String type;
+
+ /**
+ * Creates an instance of ConfigurationStoreInner class.
+ */
public ConfigurationStoreInner() {
}
/**
* Get the identity property: The managed identity information, if configured.
- *
+ *
* @return the identity value.
*/
public ResourceIdentity identity() {
@@ -65,7 +85,7 @@ public ResourceIdentity identity() {
/**
* Set the identity property: The managed identity information, if configured.
- *
+ *
* @param identity the identity value to set.
* @return the ConfigurationStoreInner object itself.
*/
@@ -76,7 +96,7 @@ public ConfigurationStoreInner withIdentity(ResourceIdentity identity) {
/**
* Get the innerProperties property: The properties of a configuration store.
- *
+ *
* @return the innerProperties value.
*/
private ConfigurationStoreProperties innerProperties() {
@@ -85,7 +105,7 @@ private ConfigurationStoreProperties innerProperties() {
/**
* Get the sku property: The sku of the configuration store.
- *
+ *
* @return the sku value.
*/
public Sku sku() {
@@ -94,7 +114,7 @@ public Sku sku() {
/**
* Set the sku property: The sku of the configuration store.
- *
+ *
* @param sku the sku value to set.
* @return the ConfigurationStoreInner object itself.
*/
@@ -105,21 +125,55 @@ public ConfigurationStoreInner withSku(Sku sku) {
/**
* Get the systemData property: Resource system metadata.
- *
+ *
* @return the systemData value.
*/
public SystemData systemData() {
return this.systemData;
}
- /** {@inheritDoc} */
+ /**
+ * Get the id property: Fully qualified resource Id for the resource.
+ *
+ * @return the id value.
+ */
+ @Override
+ public String id() {
+ return this.id;
+ }
+
+ /**
+ * Get the name property: The name of the resource.
+ *
+ * @return the name value.
+ */
+ @Override
+ public String name() {
+ return this.name;
+ }
+
+ /**
+ * Get the type property: The type of the resource.
+ *
+ * @return the type value.
+ */
+ @Override
+ public String type() {
+ return this.type;
+ }
+
+ /**
+ * {@inheritDoc}
+ */
@Override
public ConfigurationStoreInner withLocation(String location) {
super.withLocation(location);
return this;
}
- /** {@inheritDoc} */
+ /**
+ * {@inheritDoc}
+ */
@Override
public ConfigurationStoreInner withTags(Map tags) {
super.withTags(tags);
@@ -128,7 +182,7 @@ public ConfigurationStoreInner withTags(Map tags) {
/**
* Get the provisioningState property: The provisioning state of the configuration store.
- *
+ *
* @return the provisioningState value.
*/
public ProvisioningState provisioningState() {
@@ -137,7 +191,7 @@ public ProvisioningState provisioningState() {
/**
* Get the creationDate property: The creation date of configuration store.
- *
+ *
* @return the creationDate value.
*/
public OffsetDateTime creationDate() {
@@ -146,7 +200,7 @@ public OffsetDateTime creationDate() {
/**
* Get the endpoint property: The DNS endpoint where the configuration store API will be available.
- *
+ *
* @return the endpoint value.
*/
public String endpoint() {
@@ -155,7 +209,7 @@ public String endpoint() {
/**
* Get the encryption property: The encryption settings of the configuration store.
- *
+ *
* @return the encryption value.
*/
public EncryptionProperties encryption() {
@@ -164,7 +218,7 @@ public EncryptionProperties encryption() {
/**
* Set the encryption property: The encryption settings of the configuration store.
- *
+ *
* @param encryption the encryption value to set.
* @return the ConfigurationStoreInner object itself.
*/
@@ -179,7 +233,7 @@ public ConfigurationStoreInner withEncryption(EncryptionProperties encryption) {
/**
* Get the privateEndpointConnections property: The list of private endpoint connections that are set up for this
* resource.
- *
+ *
* @return the privateEndpointConnections value.
*/
public List privateEndpointConnections() {
@@ -189,7 +243,7 @@ public List privateEndpointConnections() {
/**
* Get the publicNetworkAccess property: Control permission for data plane traffic coming from public networks while
* private endpoint is enabled.
- *
+ *
* @return the publicNetworkAccess value.
*/
public PublicNetworkAccess publicNetworkAccess() {
@@ -199,7 +253,7 @@ public PublicNetworkAccess publicNetworkAccess() {
/**
* Set the publicNetworkAccess property: Control permission for data plane traffic coming from public networks while
* private endpoint is enabled.
- *
+ *
* @param publicNetworkAccess the publicNetworkAccess value to set.
* @return the ConfigurationStoreInner object itself.
*/
@@ -212,8 +266,8 @@ public ConfigurationStoreInner withPublicNetworkAccess(PublicNetworkAccess publi
}
/**
- * Get the disableLocalAuth property: Disables all authentication methods other than AAD authentication.
- *
+ * Get the disableLocalAuth property: Disables access key authentication.
+ *
* @return the disableLocalAuth value.
*/
public Boolean disableLocalAuth() {
@@ -221,8 +275,8 @@ public Boolean disableLocalAuth() {
}
/**
- * Set the disableLocalAuth property: Disables all authentication methods other than AAD authentication.
- *
+ * Set the disableLocalAuth property: Disables access key authentication.
+ *
* @param disableLocalAuth the disableLocalAuth value to set.
* @return the ConfigurationStoreInner object itself.
*/
@@ -234,10 +288,33 @@ public ConfigurationStoreInner withDisableLocalAuth(Boolean disableLocalAuth) {
return this;
}
+ /**
+ * Get the sas property: The SAS authentication settings of the configuration store.
+ *
+ * @return the sas value.
+ */
+ public SasProperties sas() {
+ return this.innerProperties() == null ? null : this.innerProperties().sas();
+ }
+
+ /**
+ * Set the sas property: The SAS authentication settings of the configuration store.
+ *
+ * @param sas the sas value to set.
+ * @return the ConfigurationStoreInner object itself.
+ */
+ public ConfigurationStoreInner withSas(SasProperties sas) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new ConfigurationStoreProperties();
+ }
+ this.innerProperties().withSas(sas);
+ return this;
+ }
+
/**
* Get the softDeleteRetentionInDays property: The amount of time in days that the configuration store will be
* retained when it is soft deleted.
- *
+ *
* @return the softDeleteRetentionInDays value.
*/
public Integer softDeleteRetentionInDays() {
@@ -247,7 +324,7 @@ public Integer softDeleteRetentionInDays() {
/**
* Set the softDeleteRetentionInDays property: The amount of time in days that the configuration store will be
* retained when it is soft deleted.
- *
+ *
* @param softDeleteRetentionInDays the softDeleteRetentionInDays value to set.
* @return the ConfigurationStoreInner object itself.
*/
@@ -262,7 +339,7 @@ public ConfigurationStoreInner withSoftDeleteRetentionInDays(Integer softDeleteR
/**
* Get the enablePurgeProtection property: Property specifying whether protection against purge is enabled for this
* configuration store.
- *
+ *
* @return the enablePurgeProtection value.
*/
public Boolean enablePurgeProtection() {
@@ -272,7 +349,7 @@ public Boolean enablePurgeProtection() {
/**
* Set the enablePurgeProtection property: Property specifying whether protection against purge is enabled for this
* configuration store.
- *
+ *
* @param enablePurgeProtection the enablePurgeProtection value to set.
* @return the ConfigurationStoreInner object itself.
*/
@@ -284,9 +361,34 @@ public ConfigurationStoreInner withEnablePurgeProtection(Boolean enablePurgeProt
return this;
}
+ /**
+ * Get the dataPlaneProxy property: Property specifying the configuration of data plane proxy for Azure Resource
+ * Manager (ARM).
+ *
+ * @return the dataPlaneProxy value.
+ */
+ public DataPlaneProxyProperties dataPlaneProxy() {
+ return this.innerProperties() == null ? null : this.innerProperties().dataPlaneProxy();
+ }
+
+ /**
+ * Set the dataPlaneProxy property: Property specifying the configuration of data plane proxy for Azure Resource
+ * Manager (ARM).
+ *
+ * @param dataPlaneProxy the dataPlaneProxy value to set.
+ * @return the ConfigurationStoreInner object itself.
+ */
+ public ConfigurationStoreInner withDataPlaneProxy(DataPlaneProxyProperties dataPlaneProxy) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new ConfigurationStoreProperties();
+ }
+ this.innerProperties().withDataPlaneProxy(dataPlaneProxy);
+ return this;
+ }
+
/**
* Get the createMode property: Indicates whether the configuration store need to be recovered.
- *
+ *
* @return the createMode value.
*/
public CreateMode createMode() {
@@ -295,7 +397,7 @@ public CreateMode createMode() {
/**
* Set the createMode property: Indicates whether the configuration store need to be recovered.
- *
+ *
* @param createMode the createMode value to set.
* @return the ConfigurationStoreInner object itself.
*/
@@ -307,9 +409,57 @@ public ConfigurationStoreInner withCreateMode(CreateMode createMode) {
return this;
}
+ /**
+ * Get the telemetry property: Property specifying the configuration of telemetry for this configuration store.
+ *
+ * @return the telemetry value.
+ */
+ public TelemetryProperties telemetry() {
+ return this.innerProperties() == null ? null : this.innerProperties().telemetry();
+ }
+
+ /**
+ * Set the telemetry property: Property specifying the configuration of telemetry for this configuration store.
+ *
+ * @param telemetry the telemetry value to set.
+ * @return the ConfigurationStoreInner object itself.
+ */
+ public ConfigurationStoreInner withTelemetry(TelemetryProperties telemetry) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new ConfigurationStoreProperties();
+ }
+ this.innerProperties().withTelemetry(telemetry);
+ return this;
+ }
+
+ /**
+ * Get the experimentation property: Property specifying the configuration of experimentation for this configuration
+ * store.
+ *
+ * @return the experimentation value.
+ */
+ public ExperimentationProperties experimentation() {
+ return this.innerProperties() == null ? null : this.innerProperties().experimentation();
+ }
+
+ /**
+ * Set the experimentation property: Property specifying the configuration of experimentation for this configuration
+ * store.
+ *
+ * @param experimentation the experimentation value to set.
+ * @return the ConfigurationStoreInner object itself.
+ */
+ public ConfigurationStoreInner withExperimentation(ExperimentationProperties experimentation) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new ConfigurationStoreProperties();
+ }
+ this.innerProperties().withExperimentation(experimentation);
+ return this;
+ }
+
/**
* Validates the instance.
- *
+ *
* @throws IllegalArgumentException thrown if the instance is not valid.
*/
public void validate() {
@@ -320,13 +470,70 @@ public void validate() {
innerProperties().validate();
}
if (sku() == null) {
- throw LOGGER
- .logExceptionAsError(
- new IllegalArgumentException("Missing required property sku in model ConfigurationStoreInner"));
+ throw LOGGER.atError()
+ .log(new IllegalArgumentException("Missing required property sku in model ConfigurationStoreInner"));
} else {
sku().validate();
}
}
private static final ClientLogger LOGGER = new ClientLogger(ConfigurationStoreInner.class);
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeStringField("location", location());
+ jsonWriter.writeMapField("tags", tags(), (writer, element) -> writer.writeString(element));
+ jsonWriter.writeJsonField("sku", this.sku);
+ jsonWriter.writeJsonField("identity", this.identity);
+ jsonWriter.writeJsonField("properties", this.innerProperties);
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of ConfigurationStoreInner from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of ConfigurationStoreInner if the JsonReader was pointing to an instance of it, or null if it
+ * was pointing to JSON null.
+ * @throws IllegalStateException If the deserialized JSON object was missing any required properties.
+ * @throws IOException If an error occurs while reading the ConfigurationStoreInner.
+ */
+ public static ConfigurationStoreInner fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ ConfigurationStoreInner deserializedConfigurationStoreInner = new ConfigurationStoreInner();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("id".equals(fieldName)) {
+ deserializedConfigurationStoreInner.id = reader.getString();
+ } else if ("name".equals(fieldName)) {
+ deserializedConfigurationStoreInner.name = reader.getString();
+ } else if ("type".equals(fieldName)) {
+ deserializedConfigurationStoreInner.type = reader.getString();
+ } else if ("location".equals(fieldName)) {
+ deserializedConfigurationStoreInner.withLocation(reader.getString());
+ } else if ("tags".equals(fieldName)) {
+ Map tags = reader.readMap(reader1 -> reader1.getString());
+ deserializedConfigurationStoreInner.withTags(tags);
+ } else if ("sku".equals(fieldName)) {
+ deserializedConfigurationStoreInner.sku = Sku.fromJson(reader);
+ } else if ("identity".equals(fieldName)) {
+ deserializedConfigurationStoreInner.identity = ResourceIdentity.fromJson(reader);
+ } else if ("properties".equals(fieldName)) {
+ deserializedConfigurationStoreInner.innerProperties = ConfigurationStoreProperties.fromJson(reader);
+ } else if ("systemData".equals(fieldName)) {
+ deserializedConfigurationStoreInner.systemData = SystemData.fromJson(reader);
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedConfigurationStoreInner;
+ });
+ }
}
diff --git a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/fluent/models/ConfigurationStoreProperties.java b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/fluent/models/ConfigurationStoreProperties.java
index 1a73d53100d53..694f3e3fda7d8 100644
--- a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/fluent/models/ConfigurationStoreProperties.java
+++ b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/fluent/models/ConfigurationStoreProperties.java
@@ -5,85 +5,108 @@
package com.azure.resourcemanager.appconfiguration.fluent.models;
import com.azure.core.annotation.Fluent;
+import com.azure.core.util.CoreUtils;
+import com.azure.json.JsonReader;
+import com.azure.json.JsonSerializable;
+import com.azure.json.JsonToken;
+import com.azure.json.JsonWriter;
import com.azure.resourcemanager.appconfiguration.models.CreateMode;
+import com.azure.resourcemanager.appconfiguration.models.DataPlaneProxyProperties;
import com.azure.resourcemanager.appconfiguration.models.EncryptionProperties;
+import com.azure.resourcemanager.appconfiguration.models.ExperimentationProperties;
import com.azure.resourcemanager.appconfiguration.models.PrivateEndpointConnectionReference;
import com.azure.resourcemanager.appconfiguration.models.ProvisioningState;
import com.azure.resourcemanager.appconfiguration.models.PublicNetworkAccess;
-import com.fasterxml.jackson.annotation.JsonProperty;
+import com.azure.resourcemanager.appconfiguration.models.SasProperties;
+import com.azure.resourcemanager.appconfiguration.models.TelemetryProperties;
+import java.io.IOException;
import java.time.OffsetDateTime;
import java.util.List;
-/** The properties of a configuration store. */
+/**
+ * The properties of a configuration store.
+ */
@Fluent
-public final class ConfigurationStoreProperties {
+public final class ConfigurationStoreProperties implements JsonSerializable {
/*
* The provisioning state of the configuration store.
*/
- @JsonProperty(value = "provisioningState", access = JsonProperty.Access.WRITE_ONLY)
private ProvisioningState provisioningState;
/*
* The creation date of configuration store.
*/
- @JsonProperty(value = "creationDate", access = JsonProperty.Access.WRITE_ONLY)
private OffsetDateTime creationDate;
/*
* The DNS endpoint where the configuration store API will be available.
*/
- @JsonProperty(value = "endpoint", access = JsonProperty.Access.WRITE_ONLY)
private String endpoint;
/*
* The encryption settings of the configuration store.
*/
- @JsonProperty(value = "encryption")
private EncryptionProperties encryption;
/*
* The list of private endpoint connections that are set up for this resource.
*/
- @JsonProperty(value = "privateEndpointConnections", access = JsonProperty.Access.WRITE_ONLY)
private List privateEndpointConnections;
/*
* Control permission for data plane traffic coming from public networks while private endpoint is enabled.
*/
- @JsonProperty(value = "publicNetworkAccess")
private PublicNetworkAccess publicNetworkAccess;
/*
- * Disables all authentication methods other than AAD authentication.
+ * Disables access key authentication.
*/
- @JsonProperty(value = "disableLocalAuth")
private Boolean disableLocalAuth;
+ /*
+ * The SAS authentication settings of the configuration store.
+ */
+ private SasProperties sas;
+
/*
* The amount of time in days that the configuration store will be retained when it is soft deleted.
*/
- @JsonProperty(value = "softDeleteRetentionInDays")
private Integer softDeleteRetentionInDays;
/*
* Property specifying whether protection against purge is enabled for this configuration store.
*/
- @JsonProperty(value = "enablePurgeProtection")
private Boolean enablePurgeProtection;
+ /*
+ * Property specifying the configuration of data plane proxy for Azure Resource Manager (ARM).
+ */
+ private DataPlaneProxyProperties dataPlaneProxy;
+
/*
* Indicates whether the configuration store need to be recovered.
*/
- @JsonProperty(value = "createMode")
private CreateMode createMode;
- /** Creates an instance of ConfigurationStoreProperties class. */
+ /*
+ * Property specifying the configuration of telemetry for this configuration store
+ */
+ private TelemetryProperties telemetry;
+
+ /*
+ * Property specifying the configuration of experimentation for this configuration store
+ */
+ private ExperimentationProperties experimentation;
+
+ /**
+ * Creates an instance of ConfigurationStoreProperties class.
+ */
public ConfigurationStoreProperties() {
}
/**
* Get the provisioningState property: The provisioning state of the configuration store.
- *
+ *
* @return the provisioningState value.
*/
public ProvisioningState provisioningState() {
@@ -92,7 +115,7 @@ public ProvisioningState provisioningState() {
/**
* Get the creationDate property: The creation date of configuration store.
- *
+ *
* @return the creationDate value.
*/
public OffsetDateTime creationDate() {
@@ -101,7 +124,7 @@ public OffsetDateTime creationDate() {
/**
* Get the endpoint property: The DNS endpoint where the configuration store API will be available.
- *
+ *
* @return the endpoint value.
*/
public String endpoint() {
@@ -110,7 +133,7 @@ public String endpoint() {
/**
* Get the encryption property: The encryption settings of the configuration store.
- *
+ *
* @return the encryption value.
*/
public EncryptionProperties encryption() {
@@ -119,7 +142,7 @@ public EncryptionProperties encryption() {
/**
* Set the encryption property: The encryption settings of the configuration store.
- *
+ *
* @param encryption the encryption value to set.
* @return the ConfigurationStoreProperties object itself.
*/
@@ -131,7 +154,7 @@ public ConfigurationStoreProperties withEncryption(EncryptionProperties encrypti
/**
* Get the privateEndpointConnections property: The list of private endpoint connections that are set up for this
* resource.
- *
+ *
* @return the privateEndpointConnections value.
*/
public List privateEndpointConnections() {
@@ -141,7 +164,7 @@ public List privateEndpointConnections() {
/**
* Get the publicNetworkAccess property: Control permission for data plane traffic coming from public networks while
* private endpoint is enabled.
- *
+ *
* @return the publicNetworkAccess value.
*/
public PublicNetworkAccess publicNetworkAccess() {
@@ -151,7 +174,7 @@ public PublicNetworkAccess publicNetworkAccess() {
/**
* Set the publicNetworkAccess property: Control permission for data plane traffic coming from public networks while
* private endpoint is enabled.
- *
+ *
* @param publicNetworkAccess the publicNetworkAccess value to set.
* @return the ConfigurationStoreProperties object itself.
*/
@@ -161,8 +184,8 @@ public ConfigurationStoreProperties withPublicNetworkAccess(PublicNetworkAccess
}
/**
- * Get the disableLocalAuth property: Disables all authentication methods other than AAD authentication.
- *
+ * Get the disableLocalAuth property: Disables access key authentication.
+ *
* @return the disableLocalAuth value.
*/
public Boolean disableLocalAuth() {
@@ -170,8 +193,8 @@ public Boolean disableLocalAuth() {
}
/**
- * Set the disableLocalAuth property: Disables all authentication methods other than AAD authentication.
- *
+ * Set the disableLocalAuth property: Disables access key authentication.
+ *
* @param disableLocalAuth the disableLocalAuth value to set.
* @return the ConfigurationStoreProperties object itself.
*/
@@ -180,10 +203,30 @@ public ConfigurationStoreProperties withDisableLocalAuth(Boolean disableLocalAut
return this;
}
+ /**
+ * Get the sas property: The SAS authentication settings of the configuration store.
+ *
+ * @return the sas value.
+ */
+ public SasProperties sas() {
+ return this.sas;
+ }
+
+ /**
+ * Set the sas property: The SAS authentication settings of the configuration store.
+ *
+ * @param sas the sas value to set.
+ * @return the ConfigurationStoreProperties object itself.
+ */
+ public ConfigurationStoreProperties withSas(SasProperties sas) {
+ this.sas = sas;
+ return this;
+ }
+
/**
* Get the softDeleteRetentionInDays property: The amount of time in days that the configuration store will be
* retained when it is soft deleted.
- *
+ *
* @return the softDeleteRetentionInDays value.
*/
public Integer softDeleteRetentionInDays() {
@@ -193,7 +236,7 @@ public Integer softDeleteRetentionInDays() {
/**
* Set the softDeleteRetentionInDays property: The amount of time in days that the configuration store will be
* retained when it is soft deleted.
- *
+ *
* @param softDeleteRetentionInDays the softDeleteRetentionInDays value to set.
* @return the ConfigurationStoreProperties object itself.
*/
@@ -205,7 +248,7 @@ public ConfigurationStoreProperties withSoftDeleteRetentionInDays(Integer softDe
/**
* Get the enablePurgeProtection property: Property specifying whether protection against purge is enabled for this
* configuration store.
- *
+ *
* @return the enablePurgeProtection value.
*/
public Boolean enablePurgeProtection() {
@@ -215,7 +258,7 @@ public Boolean enablePurgeProtection() {
/**
* Set the enablePurgeProtection property: Property specifying whether protection against purge is enabled for this
* configuration store.
- *
+ *
* @param enablePurgeProtection the enablePurgeProtection value to set.
* @return the ConfigurationStoreProperties object itself.
*/
@@ -224,9 +267,31 @@ public ConfigurationStoreProperties withEnablePurgeProtection(Boolean enablePurg
return this;
}
+ /**
+ * Get the dataPlaneProxy property: Property specifying the configuration of data plane proxy for Azure Resource
+ * Manager (ARM).
+ *
+ * @return the dataPlaneProxy value.
+ */
+ public DataPlaneProxyProperties dataPlaneProxy() {
+ return this.dataPlaneProxy;
+ }
+
+ /**
+ * Set the dataPlaneProxy property: Property specifying the configuration of data plane proxy for Azure Resource
+ * Manager (ARM).
+ *
+ * @param dataPlaneProxy the dataPlaneProxy value to set.
+ * @return the ConfigurationStoreProperties object itself.
+ */
+ public ConfigurationStoreProperties withDataPlaneProxy(DataPlaneProxyProperties dataPlaneProxy) {
+ this.dataPlaneProxy = dataPlaneProxy;
+ return this;
+ }
+
/**
* Get the createMode property: Indicates whether the configuration store need to be recovered.
- *
+ *
* @return the createMode value.
*/
public CreateMode createMode() {
@@ -235,7 +300,7 @@ public CreateMode createMode() {
/**
* Set the createMode property: Indicates whether the configuration store need to be recovered.
- *
+ *
* @param createMode the createMode value to set.
* @return the ConfigurationStoreProperties object itself.
*/
@@ -244,9 +309,51 @@ public ConfigurationStoreProperties withCreateMode(CreateMode createMode) {
return this;
}
+ /**
+ * Get the telemetry property: Property specifying the configuration of telemetry for this configuration store.
+ *
+ * @return the telemetry value.
+ */
+ public TelemetryProperties telemetry() {
+ return this.telemetry;
+ }
+
+ /**
+ * Set the telemetry property: Property specifying the configuration of telemetry for this configuration store.
+ *
+ * @param telemetry the telemetry value to set.
+ * @return the ConfigurationStoreProperties object itself.
+ */
+ public ConfigurationStoreProperties withTelemetry(TelemetryProperties telemetry) {
+ this.telemetry = telemetry;
+ return this;
+ }
+
+ /**
+ * Get the experimentation property: Property specifying the configuration of experimentation for this configuration
+ * store.
+ *
+ * @return the experimentation value.
+ */
+ public ExperimentationProperties experimentation() {
+ return this.experimentation;
+ }
+
+ /**
+ * Set the experimentation property: Property specifying the configuration of experimentation for this configuration
+ * store.
+ *
+ * @param experimentation the experimentation value to set.
+ * @return the ConfigurationStoreProperties object itself.
+ */
+ public ConfigurationStoreProperties withExperimentation(ExperimentationProperties experimentation) {
+ this.experimentation = experimentation;
+ return this;
+ }
+
/**
* Validates the instance.
- *
+ *
* @throws IllegalArgumentException thrown if the instance is not valid.
*/
public void validate() {
@@ -256,5 +363,98 @@ public void validate() {
if (privateEndpointConnections() != null) {
privateEndpointConnections().forEach(e -> e.validate());
}
+ if (sas() != null) {
+ sas().validate();
+ }
+ if (dataPlaneProxy() != null) {
+ dataPlaneProxy().validate();
+ }
+ if (telemetry() != null) {
+ telemetry().validate();
+ }
+ if (experimentation() != null) {
+ experimentation().validate();
+ }
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeJsonField("encryption", this.encryption);
+ jsonWriter.writeStringField("publicNetworkAccess",
+ this.publicNetworkAccess == null ? null : this.publicNetworkAccess.toString());
+ jsonWriter.writeBooleanField("disableLocalAuth", this.disableLocalAuth);
+ jsonWriter.writeJsonField("sas", this.sas);
+ jsonWriter.writeNumberField("softDeleteRetentionInDays", this.softDeleteRetentionInDays);
+ jsonWriter.writeBooleanField("enablePurgeProtection", this.enablePurgeProtection);
+ jsonWriter.writeJsonField("dataPlaneProxy", this.dataPlaneProxy);
+ jsonWriter.writeStringField("createMode", this.createMode == null ? null : this.createMode.toString());
+ jsonWriter.writeJsonField("telemetry", this.telemetry);
+ jsonWriter.writeJsonField("experimentation", this.experimentation);
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of ConfigurationStoreProperties from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of ConfigurationStoreProperties if the JsonReader was pointing to an instance of it, or null
+ * if it was pointing to JSON null.
+ * @throws IOException If an error occurs while reading the ConfigurationStoreProperties.
+ */
+ public static ConfigurationStoreProperties fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ ConfigurationStoreProperties deserializedConfigurationStoreProperties = new ConfigurationStoreProperties();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("provisioningState".equals(fieldName)) {
+ deserializedConfigurationStoreProperties.provisioningState
+ = ProvisioningState.fromString(reader.getString());
+ } else if ("creationDate".equals(fieldName)) {
+ deserializedConfigurationStoreProperties.creationDate = reader
+ .getNullable(nonNullReader -> CoreUtils.parseBestOffsetDateTime(nonNullReader.getString()));
+ } else if ("endpoint".equals(fieldName)) {
+ deserializedConfigurationStoreProperties.endpoint = reader.getString();
+ } else if ("encryption".equals(fieldName)) {
+ deserializedConfigurationStoreProperties.encryption = EncryptionProperties.fromJson(reader);
+ } else if ("privateEndpointConnections".equals(fieldName)) {
+ List privateEndpointConnections
+ = reader.readArray(reader1 -> PrivateEndpointConnectionReference.fromJson(reader1));
+ deserializedConfigurationStoreProperties.privateEndpointConnections = privateEndpointConnections;
+ } else if ("publicNetworkAccess".equals(fieldName)) {
+ deserializedConfigurationStoreProperties.publicNetworkAccess
+ = PublicNetworkAccess.fromString(reader.getString());
+ } else if ("disableLocalAuth".equals(fieldName)) {
+ deserializedConfigurationStoreProperties.disableLocalAuth
+ = reader.getNullable(JsonReader::getBoolean);
+ } else if ("sas".equals(fieldName)) {
+ deserializedConfigurationStoreProperties.sas = SasProperties.fromJson(reader);
+ } else if ("softDeleteRetentionInDays".equals(fieldName)) {
+ deserializedConfigurationStoreProperties.softDeleteRetentionInDays
+ = reader.getNullable(JsonReader::getInt);
+ } else if ("enablePurgeProtection".equals(fieldName)) {
+ deserializedConfigurationStoreProperties.enablePurgeProtection
+ = reader.getNullable(JsonReader::getBoolean);
+ } else if ("dataPlaneProxy".equals(fieldName)) {
+ deserializedConfigurationStoreProperties.dataPlaneProxy = DataPlaneProxyProperties.fromJson(reader);
+ } else if ("createMode".equals(fieldName)) {
+ deserializedConfigurationStoreProperties.createMode = CreateMode.fromString(reader.getString());
+ } else if ("telemetry".equals(fieldName)) {
+ deserializedConfigurationStoreProperties.telemetry = TelemetryProperties.fromJson(reader);
+ } else if ("experimentation".equals(fieldName)) {
+ deserializedConfigurationStoreProperties.experimentation
+ = ExperimentationProperties.fromJson(reader);
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedConfigurationStoreProperties;
+ });
}
}
diff --git a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/fluent/models/ConfigurationStorePropertiesUpdateParameters.java b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/fluent/models/ConfigurationStorePropertiesUpdateParameters.java
index 2c9a7fe23dbf3..a9ea8f353630f 100644
--- a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/fluent/models/ConfigurationStorePropertiesUpdateParameters.java
+++ b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/fluent/models/ConfigurationStorePropertiesUpdateParameters.java
@@ -5,44 +5,73 @@
package com.azure.resourcemanager.appconfiguration.fluent.models;
import com.azure.core.annotation.Fluent;
+import com.azure.json.JsonReader;
+import com.azure.json.JsonSerializable;
+import com.azure.json.JsonToken;
+import com.azure.json.JsonWriter;
+import com.azure.resourcemanager.appconfiguration.models.DataPlaneProxyProperties;
import com.azure.resourcemanager.appconfiguration.models.EncryptionProperties;
+import com.azure.resourcemanager.appconfiguration.models.ExperimentationProperties;
import com.azure.resourcemanager.appconfiguration.models.PublicNetworkAccess;
-import com.fasterxml.jackson.annotation.JsonProperty;
+import com.azure.resourcemanager.appconfiguration.models.SasProperties;
+import com.azure.resourcemanager.appconfiguration.models.TelemetryProperties;
+import java.io.IOException;
-/** The properties for updating a configuration store. */
+/**
+ * The properties for updating a configuration store.
+ */
@Fluent
-public final class ConfigurationStorePropertiesUpdateParameters {
+public final class ConfigurationStorePropertiesUpdateParameters
+ implements JsonSerializable {
/*
* The encryption settings of the configuration store.
*/
- @JsonProperty(value = "encryption")
private EncryptionProperties encryption;
/*
- * Disables all authentication methods other than AAD authentication.
+ * Disables access key authentication.
*/
- @JsonProperty(value = "disableLocalAuth")
private Boolean disableLocalAuth;
+ /*
+ * The SAS authentication settings of the configuration store.
+ */
+ private SasProperties sas;
+
/*
* Control permission for data plane traffic coming from public networks while private endpoint is enabled.
*/
- @JsonProperty(value = "publicNetworkAccess")
private PublicNetworkAccess publicNetworkAccess;
/*
* Property specifying whether protection against purge is enabled for this configuration store.
*/
- @JsonProperty(value = "enablePurgeProtection")
private Boolean enablePurgeProtection;
- /** Creates an instance of ConfigurationStorePropertiesUpdateParameters class. */
+ /*
+ * Property specifying the configuration of data plane proxy for Azure Resource Manager (ARM).
+ */
+ private DataPlaneProxyProperties dataPlaneProxy;
+
+ /*
+ * Property specifying the configuration of telemetry to update for this configuration store
+ */
+ private TelemetryProperties telemetry;
+
+ /*
+ * Property specifying the configuration of experimentation to update for this configuration store
+ */
+ private ExperimentationProperties experimentation;
+
+ /**
+ * Creates an instance of ConfigurationStorePropertiesUpdateParameters class.
+ */
public ConfigurationStorePropertiesUpdateParameters() {
}
/**
* Get the encryption property: The encryption settings of the configuration store.
- *
+ *
* @return the encryption value.
*/
public EncryptionProperties encryption() {
@@ -51,7 +80,7 @@ public EncryptionProperties encryption() {
/**
* Set the encryption property: The encryption settings of the configuration store.
- *
+ *
* @param encryption the encryption value to set.
* @return the ConfigurationStorePropertiesUpdateParameters object itself.
*/
@@ -61,8 +90,8 @@ public ConfigurationStorePropertiesUpdateParameters withEncryption(EncryptionPro
}
/**
- * Get the disableLocalAuth property: Disables all authentication methods other than AAD authentication.
- *
+ * Get the disableLocalAuth property: Disables access key authentication.
+ *
* @return the disableLocalAuth value.
*/
public Boolean disableLocalAuth() {
@@ -70,8 +99,8 @@ public Boolean disableLocalAuth() {
}
/**
- * Set the disableLocalAuth property: Disables all authentication methods other than AAD authentication.
- *
+ * Set the disableLocalAuth property: Disables access key authentication.
+ *
* @param disableLocalAuth the disableLocalAuth value to set.
* @return the ConfigurationStorePropertiesUpdateParameters object itself.
*/
@@ -80,10 +109,30 @@ public ConfigurationStorePropertiesUpdateParameters withDisableLocalAuth(Boolean
return this;
}
+ /**
+ * Get the sas property: The SAS authentication settings of the configuration store.
+ *
+ * @return the sas value.
+ */
+ public SasProperties sas() {
+ return this.sas;
+ }
+
+ /**
+ * Set the sas property: The SAS authentication settings of the configuration store.
+ *
+ * @param sas the sas value to set.
+ * @return the ConfigurationStorePropertiesUpdateParameters object itself.
+ */
+ public ConfigurationStorePropertiesUpdateParameters withSas(SasProperties sas) {
+ this.sas = sas;
+ return this;
+ }
+
/**
* Get the publicNetworkAccess property: Control permission for data plane traffic coming from public networks while
* private endpoint is enabled.
- *
+ *
* @return the publicNetworkAccess value.
*/
public PublicNetworkAccess publicNetworkAccess() {
@@ -93,12 +142,12 @@ public PublicNetworkAccess publicNetworkAccess() {
/**
* Set the publicNetworkAccess property: Control permission for data plane traffic coming from public networks while
* private endpoint is enabled.
- *
+ *
* @param publicNetworkAccess the publicNetworkAccess value to set.
* @return the ConfigurationStorePropertiesUpdateParameters object itself.
*/
- public ConfigurationStorePropertiesUpdateParameters withPublicNetworkAccess(
- PublicNetworkAccess publicNetworkAccess) {
+ public ConfigurationStorePropertiesUpdateParameters
+ withPublicNetworkAccess(PublicNetworkAccess publicNetworkAccess) {
this.publicNetworkAccess = publicNetworkAccess;
return this;
}
@@ -106,7 +155,7 @@ public ConfigurationStorePropertiesUpdateParameters withPublicNetworkAccess(
/**
* Get the enablePurgeProtection property: Property specifying whether protection against purge is enabled for this
* configuration store.
- *
+ *
* @return the enablePurgeProtection value.
*/
public Boolean enablePurgeProtection() {
@@ -116,7 +165,7 @@ public Boolean enablePurgeProtection() {
/**
* Set the enablePurgeProtection property: Property specifying whether protection against purge is enabled for this
* configuration store.
- *
+ *
* @param enablePurgeProtection the enablePurgeProtection value to set.
* @return the ConfigurationStorePropertiesUpdateParameters object itself.
*/
@@ -125,14 +174,158 @@ public ConfigurationStorePropertiesUpdateParameters withEnablePurgeProtection(Bo
return this;
}
+ /**
+ * Get the dataPlaneProxy property: Property specifying the configuration of data plane proxy for Azure Resource
+ * Manager (ARM).
+ *
+ * @return the dataPlaneProxy value.
+ */
+ public DataPlaneProxyProperties dataPlaneProxy() {
+ return this.dataPlaneProxy;
+ }
+
+ /**
+ * Set the dataPlaneProxy property: Property specifying the configuration of data plane proxy for Azure Resource
+ * Manager (ARM).
+ *
+ * @param dataPlaneProxy the dataPlaneProxy value to set.
+ * @return the ConfigurationStorePropertiesUpdateParameters object itself.
+ */
+ public ConfigurationStorePropertiesUpdateParameters withDataPlaneProxy(DataPlaneProxyProperties dataPlaneProxy) {
+ this.dataPlaneProxy = dataPlaneProxy;
+ return this;
+ }
+
+ /**
+ * Get the telemetry property: Property specifying the configuration of telemetry to update for this configuration
+ * store.
+ *
+ * @return the telemetry value.
+ */
+ public TelemetryProperties telemetry() {
+ return this.telemetry;
+ }
+
+ /**
+ * Set the telemetry property: Property specifying the configuration of telemetry to update for this configuration
+ * store.
+ *
+ * @param telemetry the telemetry value to set.
+ * @return the ConfigurationStorePropertiesUpdateParameters object itself.
+ */
+ public ConfigurationStorePropertiesUpdateParameters withTelemetry(TelemetryProperties telemetry) {
+ this.telemetry = telemetry;
+ return this;
+ }
+
+ /**
+ * Get the experimentation property: Property specifying the configuration of experimentation to update for this
+ * configuration store.
+ *
+ * @return the experimentation value.
+ */
+ public ExperimentationProperties experimentation() {
+ return this.experimentation;
+ }
+
+ /**
+ * Set the experimentation property: Property specifying the configuration of experimentation to update for this
+ * configuration store.
+ *
+ * @param experimentation the experimentation value to set.
+ * @return the ConfigurationStorePropertiesUpdateParameters object itself.
+ */
+ public ConfigurationStorePropertiesUpdateParameters withExperimentation(ExperimentationProperties experimentation) {
+ this.experimentation = experimentation;
+ return this;
+ }
+
/**
* Validates the instance.
- *
+ *
* @throws IllegalArgumentException thrown if the instance is not valid.
*/
public void validate() {
if (encryption() != null) {
encryption().validate();
}
+ if (sas() != null) {
+ sas().validate();
+ }
+ if (dataPlaneProxy() != null) {
+ dataPlaneProxy().validate();
+ }
+ if (telemetry() != null) {
+ telemetry().validate();
+ }
+ if (experimentation() != null) {
+ experimentation().validate();
+ }
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeJsonField("encryption", this.encryption);
+ jsonWriter.writeBooleanField("disableLocalAuth", this.disableLocalAuth);
+ jsonWriter.writeJsonField("sas", this.sas);
+ jsonWriter.writeStringField("publicNetworkAccess",
+ this.publicNetworkAccess == null ? null : this.publicNetworkAccess.toString());
+ jsonWriter.writeBooleanField("enablePurgeProtection", this.enablePurgeProtection);
+ jsonWriter.writeJsonField("dataPlaneProxy", this.dataPlaneProxy);
+ jsonWriter.writeJsonField("telemetry", this.telemetry);
+ jsonWriter.writeJsonField("experimentation", this.experimentation);
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of ConfigurationStorePropertiesUpdateParameters from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of ConfigurationStorePropertiesUpdateParameters if the JsonReader was pointing to an instance
+ * of it, or null if it was pointing to JSON null.
+ * @throws IOException If an error occurs while reading the ConfigurationStorePropertiesUpdateParameters.
+ */
+ public static ConfigurationStorePropertiesUpdateParameters fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ ConfigurationStorePropertiesUpdateParameters deserializedConfigurationStorePropertiesUpdateParameters
+ = new ConfigurationStorePropertiesUpdateParameters();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("encryption".equals(fieldName)) {
+ deserializedConfigurationStorePropertiesUpdateParameters.encryption
+ = EncryptionProperties.fromJson(reader);
+ } else if ("disableLocalAuth".equals(fieldName)) {
+ deserializedConfigurationStorePropertiesUpdateParameters.disableLocalAuth
+ = reader.getNullable(JsonReader::getBoolean);
+ } else if ("sas".equals(fieldName)) {
+ deserializedConfigurationStorePropertiesUpdateParameters.sas = SasProperties.fromJson(reader);
+ } else if ("publicNetworkAccess".equals(fieldName)) {
+ deserializedConfigurationStorePropertiesUpdateParameters.publicNetworkAccess
+ = PublicNetworkAccess.fromString(reader.getString());
+ } else if ("enablePurgeProtection".equals(fieldName)) {
+ deserializedConfigurationStorePropertiesUpdateParameters.enablePurgeProtection
+ = reader.getNullable(JsonReader::getBoolean);
+ } else if ("dataPlaneProxy".equals(fieldName)) {
+ deserializedConfigurationStorePropertiesUpdateParameters.dataPlaneProxy
+ = DataPlaneProxyProperties.fromJson(reader);
+ } else if ("telemetry".equals(fieldName)) {
+ deserializedConfigurationStorePropertiesUpdateParameters.telemetry
+ = TelemetryProperties.fromJson(reader);
+ } else if ("experimentation".equals(fieldName)) {
+ deserializedConfigurationStorePropertiesUpdateParameters.experimentation
+ = ExperimentationProperties.fromJson(reader);
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedConfigurationStorePropertiesUpdateParameters;
+ });
}
}
diff --git a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/fluent/models/DeletedConfigurationStoreInner.java b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/fluent/models/DeletedConfigurationStoreInner.java
index a5b6218c397cf..b65fd96cb23b6 100644
--- a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/fluent/models/DeletedConfigurationStoreInner.java
+++ b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/fluent/models/DeletedConfigurationStoreInner.java
@@ -5,44 +5,48 @@
package com.azure.resourcemanager.appconfiguration.fluent.models;
import com.azure.core.annotation.Immutable;
-import com.fasterxml.jackson.annotation.JsonProperty;
+import com.azure.json.JsonReader;
+import com.azure.json.JsonSerializable;
+import com.azure.json.JsonToken;
+import com.azure.json.JsonWriter;
+import java.io.IOException;
import java.time.OffsetDateTime;
import java.util.Map;
-/** Deleted configuration store information with extended details. */
+/**
+ * Deleted configuration store information with extended details.
+ */
@Immutable
-public final class DeletedConfigurationStoreInner {
+public final class DeletedConfigurationStoreInner implements JsonSerializable {
/*
* The resource ID for the deleted configuration store.
*/
- @JsonProperty(value = "id", access = JsonProperty.Access.WRITE_ONLY)
private String id;
/*
* The name of the configuration store.
*/
- @JsonProperty(value = "name", access = JsonProperty.Access.WRITE_ONLY)
private String name;
/*
* The resource type of the configuration store.
*/
- @JsonProperty(value = "type", access = JsonProperty.Access.WRITE_ONLY)
private String type;
/*
* Properties of the deleted configuration store
*/
- @JsonProperty(value = "properties")
private DeletedConfigurationStoreProperties innerProperties;
- /** Creates an instance of DeletedConfigurationStoreInner class. */
+ /**
+ * Creates an instance of DeletedConfigurationStoreInner class.
+ */
public DeletedConfigurationStoreInner() {
}
/**
* Get the id property: The resource ID for the deleted configuration store.
- *
+ *
* @return the id value.
*/
public String id() {
@@ -51,7 +55,7 @@ public String id() {
/**
* Get the name property: The name of the configuration store.
- *
+ *
* @return the name value.
*/
public String name() {
@@ -60,7 +64,7 @@ public String name() {
/**
* Get the type property: The resource type of the configuration store.
- *
+ *
* @return the type value.
*/
public String type() {
@@ -69,7 +73,7 @@ public String type() {
/**
* Get the innerProperties property: Properties of the deleted configuration store.
- *
+ *
* @return the innerProperties value.
*/
private DeletedConfigurationStoreProperties innerProperties() {
@@ -78,7 +82,7 @@ private DeletedConfigurationStoreProperties innerProperties() {
/**
* Get the configurationStoreId property: The resource id of the original configuration store.
- *
+ *
* @return the configurationStoreId value.
*/
public String configurationStoreId() {
@@ -87,7 +91,7 @@ public String configurationStoreId() {
/**
* Get the location property: The location of the original configuration store.
- *
+ *
* @return the location value.
*/
public String location() {
@@ -96,7 +100,7 @@ public String location() {
/**
* Get the deletionDate property: The deleted date.
- *
+ *
* @return the deletionDate value.
*/
public OffsetDateTime deletionDate() {
@@ -105,7 +109,7 @@ public OffsetDateTime deletionDate() {
/**
* Get the scheduledPurgeDate property: The scheduled purged date.
- *
+ *
* @return the scheduledPurgeDate value.
*/
public OffsetDateTime scheduledPurgeDate() {
@@ -114,7 +118,7 @@ public OffsetDateTime scheduledPurgeDate() {
/**
* Get the tags property: Tags of the original configuration store.
- *
+ *
* @return the tags value.
*/
public Map tags() {
@@ -123,7 +127,7 @@ public Map tags() {
/**
* Get the purgeProtectionEnabled property: Purge protection status of the original configuration store.
- *
+ *
* @return the purgeProtectionEnabled value.
*/
public Boolean purgeProtectionEnabled() {
@@ -132,7 +136,7 @@ public Boolean purgeProtectionEnabled() {
/**
* Validates the instance.
- *
+ *
* @throws IllegalArgumentException thrown if the instance is not valid.
*/
public void validate() {
@@ -140,4 +144,48 @@ public void validate() {
innerProperties().validate();
}
}
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeJsonField("properties", this.innerProperties);
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of DeletedConfigurationStoreInner from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of DeletedConfigurationStoreInner if the JsonReader was pointing to an instance of it, or
+ * null if it was pointing to JSON null.
+ * @throws IOException If an error occurs while reading the DeletedConfigurationStoreInner.
+ */
+ public static DeletedConfigurationStoreInner fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ DeletedConfigurationStoreInner deserializedDeletedConfigurationStoreInner
+ = new DeletedConfigurationStoreInner();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("id".equals(fieldName)) {
+ deserializedDeletedConfigurationStoreInner.id = reader.getString();
+ } else if ("name".equals(fieldName)) {
+ deserializedDeletedConfigurationStoreInner.name = reader.getString();
+ } else if ("type".equals(fieldName)) {
+ deserializedDeletedConfigurationStoreInner.type = reader.getString();
+ } else if ("properties".equals(fieldName)) {
+ deserializedDeletedConfigurationStoreInner.innerProperties
+ = DeletedConfigurationStoreProperties.fromJson(reader);
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedDeletedConfigurationStoreInner;
+ });
+ }
}
diff --git a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/fluent/models/DeletedConfigurationStoreProperties.java b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/fluent/models/DeletedConfigurationStoreProperties.java
index 7bad42461fbdb..43ea594eacd5e 100644
--- a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/fluent/models/DeletedConfigurationStoreProperties.java
+++ b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/fluent/models/DeletedConfigurationStoreProperties.java
@@ -5,58 +5,60 @@
package com.azure.resourcemanager.appconfiguration.fluent.models;
import com.azure.core.annotation.Immutable;
-import com.fasterxml.jackson.annotation.JsonInclude;
-import com.fasterxml.jackson.annotation.JsonProperty;
+import com.azure.core.util.CoreUtils;
+import com.azure.json.JsonReader;
+import com.azure.json.JsonSerializable;
+import com.azure.json.JsonToken;
+import com.azure.json.JsonWriter;
+import java.io.IOException;
import java.time.OffsetDateTime;
import java.util.Map;
-/** Properties of the deleted configuration store. */
+/**
+ * Properties of the deleted configuration store.
+ */
@Immutable
-public final class DeletedConfigurationStoreProperties {
+public final class DeletedConfigurationStoreProperties
+ implements JsonSerializable {
/*
* The resource id of the original configuration store.
*/
- @JsonProperty(value = "configurationStoreId", access = JsonProperty.Access.WRITE_ONLY)
private String configurationStoreId;
/*
* The location of the original configuration store.
*/
- @JsonProperty(value = "location", access = JsonProperty.Access.WRITE_ONLY)
private String location;
/*
* The deleted date.
*/
- @JsonProperty(value = "deletionDate", access = JsonProperty.Access.WRITE_ONLY)
private OffsetDateTime deletionDate;
/*
* The scheduled purged date.
*/
- @JsonProperty(value = "scheduledPurgeDate", access = JsonProperty.Access.WRITE_ONLY)
private OffsetDateTime scheduledPurgeDate;
/*
* Tags of the original configuration store.
*/
- @JsonProperty(value = "tags", access = JsonProperty.Access.WRITE_ONLY)
- @JsonInclude(value = JsonInclude.Include.NON_NULL, content = JsonInclude.Include.ALWAYS)
private Map tags;
/*
* Purge protection status of the original configuration store.
*/
- @JsonProperty(value = "purgeProtectionEnabled", access = JsonProperty.Access.WRITE_ONLY)
private Boolean purgeProtectionEnabled;
- /** Creates an instance of DeletedConfigurationStoreProperties class. */
+ /**
+ * Creates an instance of DeletedConfigurationStoreProperties class.
+ */
public DeletedConfigurationStoreProperties() {
}
/**
* Get the configurationStoreId property: The resource id of the original configuration store.
- *
+ *
* @return the configurationStoreId value.
*/
public String configurationStoreId() {
@@ -65,7 +67,7 @@ public String configurationStoreId() {
/**
* Get the location property: The location of the original configuration store.
- *
+ *
* @return the location value.
*/
public String location() {
@@ -74,7 +76,7 @@ public String location() {
/**
* Get the deletionDate property: The deleted date.
- *
+ *
* @return the deletionDate value.
*/
public OffsetDateTime deletionDate() {
@@ -83,7 +85,7 @@ public OffsetDateTime deletionDate() {
/**
* Get the scheduledPurgeDate property: The scheduled purged date.
- *
+ *
* @return the scheduledPurgeDate value.
*/
public OffsetDateTime scheduledPurgeDate() {
@@ -92,7 +94,7 @@ public OffsetDateTime scheduledPurgeDate() {
/**
* Get the tags property: Tags of the original configuration store.
- *
+ *
* @return the tags value.
*/
public Map tags() {
@@ -101,7 +103,7 @@ public Map tags() {
/**
* Get the purgeProtectionEnabled property: Purge protection status of the original configuration store.
- *
+ *
* @return the purgeProtectionEnabled value.
*/
public Boolean purgeProtectionEnabled() {
@@ -110,9 +112,59 @@ public Boolean purgeProtectionEnabled() {
/**
* Validates the instance.
- *
+ *
* @throws IllegalArgumentException thrown if the instance is not valid.
*/
public void validate() {
}
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of DeletedConfigurationStoreProperties from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of DeletedConfigurationStoreProperties if the JsonReader was pointing to an instance of it,
+ * or null if it was pointing to JSON null.
+ * @throws IOException If an error occurs while reading the DeletedConfigurationStoreProperties.
+ */
+ public static DeletedConfigurationStoreProperties fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ DeletedConfigurationStoreProperties deserializedDeletedConfigurationStoreProperties
+ = new DeletedConfigurationStoreProperties();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("configurationStoreId".equals(fieldName)) {
+ deserializedDeletedConfigurationStoreProperties.configurationStoreId = reader.getString();
+ } else if ("location".equals(fieldName)) {
+ deserializedDeletedConfigurationStoreProperties.location = reader.getString();
+ } else if ("deletionDate".equals(fieldName)) {
+ deserializedDeletedConfigurationStoreProperties.deletionDate = reader
+ .getNullable(nonNullReader -> CoreUtils.parseBestOffsetDateTime(nonNullReader.getString()));
+ } else if ("scheduledPurgeDate".equals(fieldName)) {
+ deserializedDeletedConfigurationStoreProperties.scheduledPurgeDate = reader
+ .getNullable(nonNullReader -> CoreUtils.parseBestOffsetDateTime(nonNullReader.getString()));
+ } else if ("tags".equals(fieldName)) {
+ Map tags = reader.readMap(reader1 -> reader1.getString());
+ deserializedDeletedConfigurationStoreProperties.tags = tags;
+ } else if ("purgeProtectionEnabled".equals(fieldName)) {
+ deserializedDeletedConfigurationStoreProperties.purgeProtectionEnabled
+ = reader.getNullable(JsonReader::getBoolean);
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedDeletedConfigurationStoreProperties;
+ });
+ }
}
diff --git a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/fluent/models/KeyValueInner.java b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/fluent/models/KeyValueInner.java
index ed9138c2b7e19..71eb555201eeb 100644
--- a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/fluent/models/KeyValueInner.java
+++ b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/fluent/models/KeyValueInner.java
@@ -6,26 +6,47 @@
import com.azure.core.annotation.Fluent;
import com.azure.core.management.ProxyResource;
-import com.fasterxml.jackson.annotation.JsonProperty;
+import com.azure.json.JsonReader;
+import com.azure.json.JsonToken;
+import com.azure.json.JsonWriter;
+import java.io.IOException;
import java.time.OffsetDateTime;
import java.util.Map;
-/** The key-value resource along with all resource properties. */
+/**
+ * The key-value resource along with all resource properties.
+ */
@Fluent
public final class KeyValueInner extends ProxyResource {
/*
* All key-value properties.
*/
- @JsonProperty(value = "properties")
private KeyValueProperties innerProperties;
- /** Creates an instance of KeyValueInner class. */
+ /*
+ * Fully qualified resource Id for the resource.
+ */
+ private String id;
+
+ /*
+ * The name of the resource.
+ */
+ private String name;
+
+ /*
+ * The type of the resource.
+ */
+ private String type;
+
+ /**
+ * Creates an instance of KeyValueInner class.
+ */
public KeyValueInner() {
}
/**
* Get the innerProperties property: All key-value properties.
- *
+ *
* @return the innerProperties value.
*/
private KeyValueProperties innerProperties() {
@@ -33,9 +54,39 @@ private KeyValueProperties innerProperties() {
}
/**
- * Get the key property: The primary identifier of a key-value. The key is used in unison with the label to uniquely
- * identify a key-value.
- *
+ * Get the id property: Fully qualified resource Id for the resource.
+ *
+ * @return the id value.
+ */
+ @Override
+ public String id() {
+ return this.id;
+ }
+
+ /**
+ * Get the name property: The name of the resource.
+ *
+ * @return the name value.
+ */
+ @Override
+ public String name() {
+ return this.name;
+ }
+
+ /**
+ * Get the type property: The type of the resource.
+ *
+ * @return the type value.
+ */
+ @Override
+ public String type() {
+ return this.type;
+ }
+
+ /**
+ * Get the key property: The primary identifier of a key-value.
+ * The key is used in unison with the label to uniquely identify a key-value.
+ *
* @return the key value.
*/
public String key() {
@@ -43,9 +94,9 @@ public String key() {
}
/**
- * Get the label property: A value used to group key-values. The label is used in unison with the key to uniquely
- * identify a key-value.
- *
+ * Get the label property: A value used to group key-values.
+ * The label is used in unison with the key to uniquely identify a key-value.
+ *
* @return the label value.
*/
public String label() {
@@ -54,7 +105,7 @@ public String label() {
/**
* Get the value property: The value of the key-value.
- *
+ *
* @return the value value.
*/
public String value() {
@@ -63,7 +114,7 @@ public String value() {
/**
* Set the value property: The value of the key-value.
- *
+ *
* @param value the value value to set.
* @return the KeyValueInner object itself.
*/
@@ -76,9 +127,9 @@ public KeyValueInner withValue(String value) {
}
/**
- * Get the contentType property: The content type of the key-value's value. Providing a proper content-type can
- * enable transformations of values when they are retrieved by applications.
- *
+ * Get the contentType property: The content type of the key-value's value.
+ * Providing a proper content-type can enable transformations of values when they are retrieved by applications.
+ *
* @return the contentType value.
*/
public String contentType() {
@@ -86,9 +137,9 @@ public String contentType() {
}
/**
- * Set the contentType property: The content type of the key-value's value. Providing a proper content-type can
- * enable transformations of values when they are retrieved by applications.
- *
+ * Set the contentType property: The content type of the key-value's value.
+ * Providing a proper content-type can enable transformations of values when they are retrieved by applications.
+ *
* @param contentType the contentType value to set.
* @return the KeyValueInner object itself.
*/
@@ -102,7 +153,7 @@ public KeyValueInner withContentType(String contentType) {
/**
* Get the etag property: An ETag indicating the state of a key-value within a configuration store.
- *
+ *
* @return the etag value.
*/
public String etag() {
@@ -111,7 +162,7 @@ public String etag() {
/**
* Get the lastModified property: The last time a modifying operation was performed on the given key-value.
- *
+ *
* @return the lastModified value.
*/
public OffsetDateTime lastModified() {
@@ -119,9 +170,9 @@ public OffsetDateTime lastModified() {
}
/**
- * Get the locked property: A value indicating whether the key-value is locked. A locked key-value may not be
- * modified until it is unlocked.
- *
+ * Get the locked property: A value indicating whether the key-value is locked.
+ * A locked key-value may not be modified until it is unlocked.
+ *
* @return the locked value.
*/
public Boolean locked() {
@@ -130,7 +181,7 @@ public Boolean locked() {
/**
* Get the tags property: A dictionary of tags that can help identify what a key-value may be applicable for.
- *
+ *
* @return the tags value.
*/
public Map tags() {
@@ -139,7 +190,7 @@ public Map tags() {
/**
* Set the tags property: A dictionary of tags that can help identify what a key-value may be applicable for.
- *
+ *
* @param tags the tags value to set.
* @return the KeyValueInner object itself.
*/
@@ -153,7 +204,7 @@ public KeyValueInner withTags(Map tags) {
/**
* Validates the instance.
- *
+ *
* @throws IllegalArgumentException thrown if the instance is not valid.
*/
public void validate() {
@@ -161,4 +212,47 @@ public void validate() {
innerProperties().validate();
}
}
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeJsonField("properties", this.innerProperties);
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of KeyValueInner from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of KeyValueInner if the JsonReader was pointing to an instance of it, or null if it was
+ * pointing to JSON null.
+ * @throws IllegalStateException If the deserialized JSON object was missing any required properties.
+ * @throws IOException If an error occurs while reading the KeyValueInner.
+ */
+ public static KeyValueInner fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ KeyValueInner deserializedKeyValueInner = new KeyValueInner();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("id".equals(fieldName)) {
+ deserializedKeyValueInner.id = reader.getString();
+ } else if ("name".equals(fieldName)) {
+ deserializedKeyValueInner.name = reader.getString();
+ } else if ("type".equals(fieldName)) {
+ deserializedKeyValueInner.type = reader.getString();
+ } else if ("properties".equals(fieldName)) {
+ deserializedKeyValueInner.innerProperties = KeyValueProperties.fromJson(reader);
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedKeyValueInner;
+ });
+ }
}
diff --git a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/fluent/models/KeyValueProperties.java b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/fluent/models/KeyValueProperties.java
index 3bce903610fdb..ea65e864f75f4 100644
--- a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/fluent/models/KeyValueProperties.java
+++ b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/fluent/models/KeyValueProperties.java
@@ -5,75 +5,74 @@
package com.azure.resourcemanager.appconfiguration.fluent.models;
import com.azure.core.annotation.Fluent;
-import com.fasterxml.jackson.annotation.JsonInclude;
-import com.fasterxml.jackson.annotation.JsonProperty;
+import com.azure.core.util.CoreUtils;
+import com.azure.json.JsonReader;
+import com.azure.json.JsonSerializable;
+import com.azure.json.JsonToken;
+import com.azure.json.JsonWriter;
+import java.io.IOException;
import java.time.OffsetDateTime;
import java.util.Map;
-/** All key-value properties. */
+/**
+ * All key-value properties.
+ */
@Fluent
-public final class KeyValueProperties {
+public final class KeyValueProperties implements JsonSerializable {
/*
* The primary identifier of a key-value.
* The key is used in unison with the label to uniquely identify a key-value.
*/
- @JsonProperty(value = "key", access = JsonProperty.Access.WRITE_ONLY)
private String key;
/*
* A value used to group key-values.
* The label is used in unison with the key to uniquely identify a key-value.
*/
- @JsonProperty(value = "label", access = JsonProperty.Access.WRITE_ONLY)
private String label;
/*
* The value of the key-value.
*/
- @JsonProperty(value = "value")
private String value;
/*
* The content type of the key-value's value.
* Providing a proper content-type can enable transformations of values when they are retrieved by applications.
*/
- @JsonProperty(value = "contentType")
private String contentType;
/*
* An ETag indicating the state of a key-value within a configuration store.
*/
- @JsonProperty(value = "eTag", access = JsonProperty.Access.WRITE_ONLY)
private String etag;
/*
* The last time a modifying operation was performed on the given key-value.
*/
- @JsonProperty(value = "lastModified", access = JsonProperty.Access.WRITE_ONLY)
private OffsetDateTime lastModified;
/*
* A value indicating whether the key-value is locked.
* A locked key-value may not be modified until it is unlocked.
*/
- @JsonProperty(value = "locked", access = JsonProperty.Access.WRITE_ONLY)
private Boolean locked;
/*
* A dictionary of tags that can help identify what a key-value may be applicable for.
*/
- @JsonProperty(value = "tags")
- @JsonInclude(value = JsonInclude.Include.NON_NULL, content = JsonInclude.Include.ALWAYS)
private Map tags;
- /** Creates an instance of KeyValueProperties class. */
+ /**
+ * Creates an instance of KeyValueProperties class.
+ */
public KeyValueProperties() {
}
/**
- * Get the key property: The primary identifier of a key-value. The key is used in unison with the label to uniquely
- * identify a key-value.
- *
+ * Get the key property: The primary identifier of a key-value.
+ * The key is used in unison with the label to uniquely identify a key-value.
+ *
* @return the key value.
*/
public String key() {
@@ -81,9 +80,9 @@ public String key() {
}
/**
- * Get the label property: A value used to group key-values. The label is used in unison with the key to uniquely
- * identify a key-value.
- *
+ * Get the label property: A value used to group key-values.
+ * The label is used in unison with the key to uniquely identify a key-value.
+ *
* @return the label value.
*/
public String label() {
@@ -92,7 +91,7 @@ public String label() {
/**
* Get the value property: The value of the key-value.
- *
+ *
* @return the value value.
*/
public String value() {
@@ -101,7 +100,7 @@ public String value() {
/**
* Set the value property: The value of the key-value.
- *
+ *
* @param value the value value to set.
* @return the KeyValueProperties object itself.
*/
@@ -111,9 +110,9 @@ public KeyValueProperties withValue(String value) {
}
/**
- * Get the contentType property: The content type of the key-value's value. Providing a proper content-type can
- * enable transformations of values when they are retrieved by applications.
- *
+ * Get the contentType property: The content type of the key-value's value.
+ * Providing a proper content-type can enable transformations of values when they are retrieved by applications.
+ *
* @return the contentType value.
*/
public String contentType() {
@@ -121,9 +120,9 @@ public String contentType() {
}
/**
- * Set the contentType property: The content type of the key-value's value. Providing a proper content-type can
- * enable transformations of values when they are retrieved by applications.
- *
+ * Set the contentType property: The content type of the key-value's value.
+ * Providing a proper content-type can enable transformations of values when they are retrieved by applications.
+ *
* @param contentType the contentType value to set.
* @return the KeyValueProperties object itself.
*/
@@ -134,7 +133,7 @@ public KeyValueProperties withContentType(String contentType) {
/**
* Get the etag property: An ETag indicating the state of a key-value within a configuration store.
- *
+ *
* @return the etag value.
*/
public String etag() {
@@ -143,7 +142,7 @@ public String etag() {
/**
* Get the lastModified property: The last time a modifying operation was performed on the given key-value.
- *
+ *
* @return the lastModified value.
*/
public OffsetDateTime lastModified() {
@@ -151,9 +150,9 @@ public OffsetDateTime lastModified() {
}
/**
- * Get the locked property: A value indicating whether the key-value is locked. A locked key-value may not be
- * modified until it is unlocked.
- *
+ * Get the locked property: A value indicating whether the key-value is locked.
+ * A locked key-value may not be modified until it is unlocked.
+ *
* @return the locked value.
*/
public Boolean locked() {
@@ -162,7 +161,7 @@ public Boolean locked() {
/**
* Get the tags property: A dictionary of tags that can help identify what a key-value may be applicable for.
- *
+ *
* @return the tags value.
*/
public Map tags() {
@@ -171,7 +170,7 @@ public Map tags() {
/**
* Set the tags property: A dictionary of tags that can help identify what a key-value may be applicable for.
- *
+ *
* @param tags the tags value to set.
* @return the KeyValueProperties object itself.
*/
@@ -182,9 +181,63 @@ public KeyValueProperties withTags(Map tags) {
/**
* Validates the instance.
- *
+ *
* @throws IllegalArgumentException thrown if the instance is not valid.
*/
public void validate() {
}
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeStringField("value", this.value);
+ jsonWriter.writeStringField("contentType", this.contentType);
+ jsonWriter.writeMapField("tags", this.tags, (writer, element) -> writer.writeString(element));
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of KeyValueProperties from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of KeyValueProperties if the JsonReader was pointing to an instance of it, or null if it was
+ * pointing to JSON null.
+ * @throws IOException If an error occurs while reading the KeyValueProperties.
+ */
+ public static KeyValueProperties fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ KeyValueProperties deserializedKeyValueProperties = new KeyValueProperties();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("key".equals(fieldName)) {
+ deserializedKeyValueProperties.key = reader.getString();
+ } else if ("label".equals(fieldName)) {
+ deserializedKeyValueProperties.label = reader.getString();
+ } else if ("value".equals(fieldName)) {
+ deserializedKeyValueProperties.value = reader.getString();
+ } else if ("contentType".equals(fieldName)) {
+ deserializedKeyValueProperties.contentType = reader.getString();
+ } else if ("eTag".equals(fieldName)) {
+ deserializedKeyValueProperties.etag = reader.getString();
+ } else if ("lastModified".equals(fieldName)) {
+ deserializedKeyValueProperties.lastModified = reader
+ .getNullable(nonNullReader -> CoreUtils.parseBestOffsetDateTime(nonNullReader.getString()));
+ } else if ("locked".equals(fieldName)) {
+ deserializedKeyValueProperties.locked = reader.getNullable(JsonReader::getBoolean);
+ } else if ("tags".equals(fieldName)) {
+ Map tags = reader.readMap(reader1 -> reader1.getString());
+ deserializedKeyValueProperties.tags = tags;
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedKeyValueProperties;
+ });
+ }
}
diff --git a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/fluent/models/NameAvailabilityStatusInner.java b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/fluent/models/NameAvailabilityStatusInner.java
index f2e029e3cc067..3495025c5ebe4 100644
--- a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/fluent/models/NameAvailabilityStatusInner.java
+++ b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/fluent/models/NameAvailabilityStatusInner.java
@@ -5,36 +5,41 @@
package com.azure.resourcemanager.appconfiguration.fluent.models;
import com.azure.core.annotation.Immutable;
-import com.fasterxml.jackson.annotation.JsonProperty;
+import com.azure.json.JsonReader;
+import com.azure.json.JsonSerializable;
+import com.azure.json.JsonToken;
+import com.azure.json.JsonWriter;
+import java.io.IOException;
-/** The result of a request to check the availability of a resource name. */
+/**
+ * The result of a request to check the availability of a resource name.
+ */
@Immutable
-public final class NameAvailabilityStatusInner {
+public final class NameAvailabilityStatusInner implements JsonSerializable {
/*
* The value indicating whether the resource name is available.
*/
- @JsonProperty(value = "nameAvailable", access = JsonProperty.Access.WRITE_ONLY)
private Boolean nameAvailable;
/*
* If any, the error message that provides more detail for the reason that the name is not available.
*/
- @JsonProperty(value = "message", access = JsonProperty.Access.WRITE_ONLY)
private String message;
/*
* If any, the reason that the name is not available.
*/
- @JsonProperty(value = "reason", access = JsonProperty.Access.WRITE_ONLY)
private String reason;
- /** Creates an instance of NameAvailabilityStatusInner class. */
+ /**
+ * Creates an instance of NameAvailabilityStatusInner class.
+ */
public NameAvailabilityStatusInner() {
}
/**
* Get the nameAvailable property: The value indicating whether the resource name is available.
- *
+ *
* @return the nameAvailable value.
*/
public Boolean nameAvailable() {
@@ -44,7 +49,7 @@ public Boolean nameAvailable() {
/**
* Get the message property: If any, the error message that provides more detail for the reason that the name is not
* available.
- *
+ *
* @return the message value.
*/
public String message() {
@@ -53,7 +58,7 @@ public String message() {
/**
* Get the reason property: If any, the reason that the name is not available.
- *
+ *
* @return the reason value.
*/
public String reason() {
@@ -62,9 +67,48 @@ public String reason() {
/**
* Validates the instance.
- *
+ *
* @throws IllegalArgumentException thrown if the instance is not valid.
*/
public void validate() {
}
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of NameAvailabilityStatusInner from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of NameAvailabilityStatusInner if the JsonReader was pointing to an instance of it, or null
+ * if it was pointing to JSON null.
+ * @throws IOException If an error occurs while reading the NameAvailabilityStatusInner.
+ */
+ public static NameAvailabilityStatusInner fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ NameAvailabilityStatusInner deserializedNameAvailabilityStatusInner = new NameAvailabilityStatusInner();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("nameAvailable".equals(fieldName)) {
+ deserializedNameAvailabilityStatusInner.nameAvailable = reader.getNullable(JsonReader::getBoolean);
+ } else if ("message".equals(fieldName)) {
+ deserializedNameAvailabilityStatusInner.message = reader.getString();
+ } else if ("reason".equals(fieldName)) {
+ deserializedNameAvailabilityStatusInner.reason = reader.getString();
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedNameAvailabilityStatusInner;
+ });
+ }
}
diff --git a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/fluent/models/OperationDefinitionInner.java b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/fluent/models/OperationDefinitionInner.java
index 13a1b553b42e0..1fe9878ed6ab1 100644
--- a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/fluent/models/OperationDefinitionInner.java
+++ b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/fluent/models/OperationDefinitionInner.java
@@ -5,50 +5,53 @@
package com.azure.resourcemanager.appconfiguration.fluent.models;
import com.azure.core.annotation.Fluent;
+import com.azure.json.JsonReader;
+import com.azure.json.JsonSerializable;
+import com.azure.json.JsonToken;
+import com.azure.json.JsonWriter;
import com.azure.resourcemanager.appconfiguration.models.OperationDefinitionDisplay;
import com.azure.resourcemanager.appconfiguration.models.OperationProperties;
-import com.fasterxml.jackson.annotation.JsonProperty;
+import java.io.IOException;
-/** The definition of a configuration store operation. */
+/**
+ * The definition of a configuration store operation.
+ */
@Fluent
-public final class OperationDefinitionInner {
+public final class OperationDefinitionInner implements JsonSerializable {
/*
* Operation name: {provider}/{resource}/{operation}.
*/
- @JsonProperty(value = "name")
private String name;
/*
* Indicates whether the operation is a data action
*/
- @JsonProperty(value = "isDataAction")
private Boolean isDataAction;
/*
* The display information for the configuration store operation.
*/
- @JsonProperty(value = "display")
private OperationDefinitionDisplay display;
/*
* Origin of the operation
*/
- @JsonProperty(value = "origin")
private String origin;
/*
* Properties of the operation
*/
- @JsonProperty(value = "properties")
private OperationProperties properties;
- /** Creates an instance of OperationDefinitionInner class. */
+ /**
+ * Creates an instance of OperationDefinitionInner class.
+ */
public OperationDefinitionInner() {
}
/**
* Get the name property: Operation name: {provider}/{resource}/{operation}.
- *
+ *
* @return the name value.
*/
public String name() {
@@ -57,7 +60,7 @@ public String name() {
/**
* Set the name property: Operation name: {provider}/{resource}/{operation}.
- *
+ *
* @param name the name value to set.
* @return the OperationDefinitionInner object itself.
*/
@@ -68,7 +71,7 @@ public OperationDefinitionInner withName(String name) {
/**
* Get the isDataAction property: Indicates whether the operation is a data action.
- *
+ *
* @return the isDataAction value.
*/
public Boolean isDataAction() {
@@ -77,7 +80,7 @@ public Boolean isDataAction() {
/**
* Set the isDataAction property: Indicates whether the operation is a data action.
- *
+ *
* @param isDataAction the isDataAction value to set.
* @return the OperationDefinitionInner object itself.
*/
@@ -88,7 +91,7 @@ public OperationDefinitionInner withIsDataAction(Boolean isDataAction) {
/**
* Get the display property: The display information for the configuration store operation.
- *
+ *
* @return the display value.
*/
public OperationDefinitionDisplay display() {
@@ -97,7 +100,7 @@ public OperationDefinitionDisplay display() {
/**
* Set the display property: The display information for the configuration store operation.
- *
+ *
* @param display the display value to set.
* @return the OperationDefinitionInner object itself.
*/
@@ -108,7 +111,7 @@ public OperationDefinitionInner withDisplay(OperationDefinitionDisplay display)
/**
* Get the origin property: Origin of the operation.
- *
+ *
* @return the origin value.
*/
public String origin() {
@@ -117,7 +120,7 @@ public String origin() {
/**
* Set the origin property: Origin of the operation.
- *
+ *
* @param origin the origin value to set.
* @return the OperationDefinitionInner object itself.
*/
@@ -128,7 +131,7 @@ public OperationDefinitionInner withOrigin(String origin) {
/**
* Get the properties property: Properties of the operation.
- *
+ *
* @return the properties value.
*/
public OperationProperties properties() {
@@ -137,7 +140,7 @@ public OperationProperties properties() {
/**
* Set the properties property: Properties of the operation.
- *
+ *
* @param properties the properties value to set.
* @return the OperationDefinitionInner object itself.
*/
@@ -148,7 +151,7 @@ public OperationDefinitionInner withProperties(OperationProperties properties) {
/**
* Validates the instance.
- *
+ *
* @throws IllegalArgumentException thrown if the instance is not valid.
*/
public void validate() {
@@ -159,4 +162,52 @@ public void validate() {
properties().validate();
}
}
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeStringField("name", this.name);
+ jsonWriter.writeBooleanField("isDataAction", this.isDataAction);
+ jsonWriter.writeJsonField("display", this.display);
+ jsonWriter.writeStringField("origin", this.origin);
+ jsonWriter.writeJsonField("properties", this.properties);
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of OperationDefinitionInner from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of OperationDefinitionInner if the JsonReader was pointing to an instance of it, or null if
+ * it was pointing to JSON null.
+ * @throws IOException If an error occurs while reading the OperationDefinitionInner.
+ */
+ public static OperationDefinitionInner fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ OperationDefinitionInner deserializedOperationDefinitionInner = new OperationDefinitionInner();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("name".equals(fieldName)) {
+ deserializedOperationDefinitionInner.name = reader.getString();
+ } else if ("isDataAction".equals(fieldName)) {
+ deserializedOperationDefinitionInner.isDataAction = reader.getNullable(JsonReader::getBoolean);
+ } else if ("display".equals(fieldName)) {
+ deserializedOperationDefinitionInner.display = OperationDefinitionDisplay.fromJson(reader);
+ } else if ("origin".equals(fieldName)) {
+ deserializedOperationDefinitionInner.origin = reader.getString();
+ } else if ("properties".equals(fieldName)) {
+ deserializedOperationDefinitionInner.properties = OperationProperties.fromJson(reader);
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedOperationDefinitionInner;
+ });
+ }
}
diff --git a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/fluent/models/PrivateEndpointConnectionInner.java b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/fluent/models/PrivateEndpointConnectionInner.java
index 479d27655917f..8c06886eabcc7 100644
--- a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/fluent/models/PrivateEndpointConnectionInner.java
+++ b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/fluent/models/PrivateEndpointConnectionInner.java
@@ -6,36 +6,87 @@
import com.azure.core.annotation.Fluent;
import com.azure.core.management.ProxyResource;
+import com.azure.json.JsonReader;
+import com.azure.json.JsonToken;
+import com.azure.json.JsonWriter;
import com.azure.resourcemanager.appconfiguration.models.PrivateEndpoint;
import com.azure.resourcemanager.appconfiguration.models.PrivateLinkServiceConnectionState;
import com.azure.resourcemanager.appconfiguration.models.ProvisioningState;
-import com.fasterxml.jackson.annotation.JsonProperty;
+import java.io.IOException;
-/** A private endpoint connection. */
+/**
+ * A private endpoint connection.
+ */
@Fluent
public final class PrivateEndpointConnectionInner extends ProxyResource {
/*
* The properties of a private endpoint.
*/
- @JsonProperty(value = "properties")
private PrivateEndpointConnectionProperties innerProperties;
- /** Creates an instance of PrivateEndpointConnectionInner class. */
+ /*
+ * Fully qualified resource Id for the resource.
+ */
+ private String id;
+
+ /*
+ * The name of the resource.
+ */
+ private String name;
+
+ /*
+ * The type of the resource.
+ */
+ private String type;
+
+ /**
+ * Creates an instance of PrivateEndpointConnectionInner class.
+ */
public PrivateEndpointConnectionInner() {
}
/**
* Get the innerProperties property: The properties of a private endpoint.
- *
+ *
* @return the innerProperties value.
*/
private PrivateEndpointConnectionProperties innerProperties() {
return this.innerProperties;
}
+ /**
+ * Get the id property: Fully qualified resource Id for the resource.
+ *
+ * @return the id value.
+ */
+ @Override
+ public String id() {
+ return this.id;
+ }
+
+ /**
+ * Get the name property: The name of the resource.
+ *
+ * @return the name value.
+ */
+ @Override
+ public String name() {
+ return this.name;
+ }
+
+ /**
+ * Get the type property: The type of the resource.
+ *
+ * @return the type value.
+ */
+ @Override
+ public String type() {
+ return this.type;
+ }
+
/**
* Get the provisioningState property: The provisioning status of the private endpoint connection.
- *
+ *
* @return the provisioningState value.
*/
public ProvisioningState provisioningState() {
@@ -44,7 +95,7 @@ public ProvisioningState provisioningState() {
/**
* Get the privateEndpoint property: The resource of private endpoint.
- *
+ *
* @return the privateEndpoint value.
*/
public PrivateEndpoint privateEndpoint() {
@@ -53,7 +104,7 @@ public PrivateEndpoint privateEndpoint() {
/**
* Set the privateEndpoint property: The resource of private endpoint.
- *
+ *
* @param privateEndpoint the privateEndpoint value to set.
* @return the PrivateEndpointConnectionInner object itself.
*/
@@ -68,7 +119,7 @@ public PrivateEndpointConnectionInner withPrivateEndpoint(PrivateEndpoint privat
/**
* Get the privateLinkServiceConnectionState property: A collection of information about the state of the connection
* between service consumer and provider.
- *
+ *
* @return the privateLinkServiceConnectionState value.
*/
public PrivateLinkServiceConnectionState privateLinkServiceConnectionState() {
@@ -78,12 +129,12 @@ public PrivateLinkServiceConnectionState privateLinkServiceConnectionState() {
/**
* Set the privateLinkServiceConnectionState property: A collection of information about the state of the connection
* between service consumer and provider.
- *
+ *
* @param privateLinkServiceConnectionState the privateLinkServiceConnectionState value to set.
* @return the PrivateEndpointConnectionInner object itself.
*/
- public PrivateEndpointConnectionInner withPrivateLinkServiceConnectionState(
- PrivateLinkServiceConnectionState privateLinkServiceConnectionState) {
+ public PrivateEndpointConnectionInner
+ withPrivateLinkServiceConnectionState(PrivateLinkServiceConnectionState privateLinkServiceConnectionState) {
if (this.innerProperties() == null) {
this.innerProperties = new PrivateEndpointConnectionProperties();
}
@@ -93,7 +144,7 @@ public PrivateEndpointConnectionInner withPrivateLinkServiceConnectionState(
/**
* Validates the instance.
- *
+ *
* @throws IllegalArgumentException thrown if the instance is not valid.
*/
public void validate() {
@@ -101,4 +152,49 @@ public void validate() {
innerProperties().validate();
}
}
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeJsonField("properties", this.innerProperties);
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of PrivateEndpointConnectionInner from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of PrivateEndpointConnectionInner if the JsonReader was pointing to an instance of it, or
+ * null if it was pointing to JSON null.
+ * @throws IllegalStateException If the deserialized JSON object was missing any required properties.
+ * @throws IOException If an error occurs while reading the PrivateEndpointConnectionInner.
+ */
+ public static PrivateEndpointConnectionInner fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ PrivateEndpointConnectionInner deserializedPrivateEndpointConnectionInner
+ = new PrivateEndpointConnectionInner();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("id".equals(fieldName)) {
+ deserializedPrivateEndpointConnectionInner.id = reader.getString();
+ } else if ("name".equals(fieldName)) {
+ deserializedPrivateEndpointConnectionInner.name = reader.getString();
+ } else if ("type".equals(fieldName)) {
+ deserializedPrivateEndpointConnectionInner.type = reader.getString();
+ } else if ("properties".equals(fieldName)) {
+ deserializedPrivateEndpointConnectionInner.innerProperties
+ = PrivateEndpointConnectionProperties.fromJson(reader);
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedPrivateEndpointConnectionInner;
+ });
+ }
}
diff --git a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/fluent/models/PrivateEndpointConnectionProperties.java b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/fluent/models/PrivateEndpointConnectionProperties.java
index b2bd87f6b18ac..bc045818a5a8e 100644
--- a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/fluent/models/PrivateEndpointConnectionProperties.java
+++ b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/fluent/models/PrivateEndpointConnectionProperties.java
@@ -6,39 +6,45 @@
import com.azure.core.annotation.Fluent;
import com.azure.core.util.logging.ClientLogger;
+import com.azure.json.JsonReader;
+import com.azure.json.JsonSerializable;
+import com.azure.json.JsonToken;
+import com.azure.json.JsonWriter;
import com.azure.resourcemanager.appconfiguration.models.PrivateEndpoint;
import com.azure.resourcemanager.appconfiguration.models.PrivateLinkServiceConnectionState;
import com.azure.resourcemanager.appconfiguration.models.ProvisioningState;
-import com.fasterxml.jackson.annotation.JsonProperty;
+import java.io.IOException;
-/** Properties of a private endpoint connection. */
+/**
+ * Properties of a private endpoint connection.
+ */
@Fluent
-public final class PrivateEndpointConnectionProperties {
+public final class PrivateEndpointConnectionProperties
+ implements JsonSerializable {
/*
* The provisioning status of the private endpoint connection.
*/
- @JsonProperty(value = "provisioningState", access = JsonProperty.Access.WRITE_ONLY)
private ProvisioningState provisioningState;
/*
* The resource of private endpoint.
*/
- @JsonProperty(value = "privateEndpoint")
private PrivateEndpoint privateEndpoint;
/*
* A collection of information about the state of the connection between service consumer and provider.
*/
- @JsonProperty(value = "privateLinkServiceConnectionState", required = true)
private PrivateLinkServiceConnectionState privateLinkServiceConnectionState;
- /** Creates an instance of PrivateEndpointConnectionProperties class. */
+ /**
+ * Creates an instance of PrivateEndpointConnectionProperties class.
+ */
public PrivateEndpointConnectionProperties() {
}
/**
* Get the provisioningState property: The provisioning status of the private endpoint connection.
- *
+ *
* @return the provisioningState value.
*/
public ProvisioningState provisioningState() {
@@ -47,7 +53,7 @@ public ProvisioningState provisioningState() {
/**
* Get the privateEndpoint property: The resource of private endpoint.
- *
+ *
* @return the privateEndpoint value.
*/
public PrivateEndpoint privateEndpoint() {
@@ -56,7 +62,7 @@ public PrivateEndpoint privateEndpoint() {
/**
* Set the privateEndpoint property: The resource of private endpoint.
- *
+ *
* @param privateEndpoint the privateEndpoint value to set.
* @return the PrivateEndpointConnectionProperties object itself.
*/
@@ -68,7 +74,7 @@ public PrivateEndpointConnectionProperties withPrivateEndpoint(PrivateEndpoint p
/**
* Get the privateLinkServiceConnectionState property: A collection of information about the state of the connection
* between service consumer and provider.
- *
+ *
* @return the privateLinkServiceConnectionState value.
*/
public PrivateLinkServiceConnectionState privateLinkServiceConnectionState() {
@@ -78,19 +84,19 @@ public PrivateLinkServiceConnectionState privateLinkServiceConnectionState() {
/**
* Set the privateLinkServiceConnectionState property: A collection of information about the state of the connection
* between service consumer and provider.
- *
+ *
* @param privateLinkServiceConnectionState the privateLinkServiceConnectionState value to set.
* @return the PrivateEndpointConnectionProperties object itself.
*/
- public PrivateEndpointConnectionProperties withPrivateLinkServiceConnectionState(
- PrivateLinkServiceConnectionState privateLinkServiceConnectionState) {
+ public PrivateEndpointConnectionProperties
+ withPrivateLinkServiceConnectionState(PrivateLinkServiceConnectionState privateLinkServiceConnectionState) {
this.privateLinkServiceConnectionState = privateLinkServiceConnectionState;
return this;
}
/**
* Validates the instance.
- *
+ *
* @throws IllegalArgumentException thrown if the instance is not valid.
*/
public void validate() {
@@ -98,15 +104,58 @@ public void validate() {
privateEndpoint().validate();
}
if (privateLinkServiceConnectionState() == null) {
- throw LOGGER
- .logExceptionAsError(
- new IllegalArgumentException(
- "Missing required property privateLinkServiceConnectionState in model"
- + " PrivateEndpointConnectionProperties"));
+ throw LOGGER.atError()
+ .log(new IllegalArgumentException(
+ "Missing required property privateLinkServiceConnectionState in model PrivateEndpointConnectionProperties"));
} else {
privateLinkServiceConnectionState().validate();
}
}
private static final ClientLogger LOGGER = new ClientLogger(PrivateEndpointConnectionProperties.class);
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeJsonField("privateLinkServiceConnectionState", this.privateLinkServiceConnectionState);
+ jsonWriter.writeJsonField("privateEndpoint", this.privateEndpoint);
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of PrivateEndpointConnectionProperties from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of PrivateEndpointConnectionProperties if the JsonReader was pointing to an instance of it,
+ * or null if it was pointing to JSON null.
+ * @throws IllegalStateException If the deserialized JSON object was missing any required properties.
+ * @throws IOException If an error occurs while reading the PrivateEndpointConnectionProperties.
+ */
+ public static PrivateEndpointConnectionProperties fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ PrivateEndpointConnectionProperties deserializedPrivateEndpointConnectionProperties
+ = new PrivateEndpointConnectionProperties();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("privateLinkServiceConnectionState".equals(fieldName)) {
+ deserializedPrivateEndpointConnectionProperties.privateLinkServiceConnectionState
+ = PrivateLinkServiceConnectionState.fromJson(reader);
+ } else if ("provisioningState".equals(fieldName)) {
+ deserializedPrivateEndpointConnectionProperties.provisioningState
+ = ProvisioningState.fromString(reader.getString());
+ } else if ("privateEndpoint".equals(fieldName)) {
+ deserializedPrivateEndpointConnectionProperties.privateEndpoint = PrivateEndpoint.fromJson(reader);
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedPrivateEndpointConnectionProperties;
+ });
+ }
}
diff --git a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/fluent/models/PrivateLinkResourceInner.java b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/fluent/models/PrivateLinkResourceInner.java
index 7df32c9421853..ae4b2bca4c017 100644
--- a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/fluent/models/PrivateLinkResourceInner.java
+++ b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/fluent/models/PrivateLinkResourceInner.java
@@ -5,43 +5,47 @@
package com.azure.resourcemanager.appconfiguration.fluent.models;
import com.azure.core.annotation.Immutable;
-import com.fasterxml.jackson.annotation.JsonProperty;
+import com.azure.json.JsonReader;
+import com.azure.json.JsonSerializable;
+import com.azure.json.JsonToken;
+import com.azure.json.JsonWriter;
+import java.io.IOException;
import java.util.List;
-/** A resource that supports private link capabilities. */
+/**
+ * A resource that supports private link capabilities.
+ */
@Immutable
-public final class PrivateLinkResourceInner {
+public final class PrivateLinkResourceInner implements JsonSerializable {
/*
* The resource ID.
*/
- @JsonProperty(value = "id", access = JsonProperty.Access.WRITE_ONLY)
private String id;
/*
* The name of the resource.
*/
- @JsonProperty(value = "name", access = JsonProperty.Access.WRITE_ONLY)
private String name;
/*
* The type of the resource.
*/
- @JsonProperty(value = "type", access = JsonProperty.Access.WRITE_ONLY)
private String type;
/*
* Private link resource properties.
*/
- @JsonProperty(value = "properties")
private PrivateLinkResourceProperties innerProperties;
- /** Creates an instance of PrivateLinkResourceInner class. */
+ /**
+ * Creates an instance of PrivateLinkResourceInner class.
+ */
public PrivateLinkResourceInner() {
}
/**
* Get the id property: The resource ID.
- *
+ *
* @return the id value.
*/
public String id() {
@@ -50,7 +54,7 @@ public String id() {
/**
* Get the name property: The name of the resource.
- *
+ *
* @return the name value.
*/
public String name() {
@@ -59,7 +63,7 @@ public String name() {
/**
* Get the type property: The type of the resource.
- *
+ *
* @return the type value.
*/
public String type() {
@@ -68,7 +72,7 @@ public String type() {
/**
* Get the innerProperties property: Private link resource properties.
- *
+ *
* @return the innerProperties value.
*/
private PrivateLinkResourceProperties innerProperties() {
@@ -77,7 +81,7 @@ private PrivateLinkResourceProperties innerProperties() {
/**
* Get the groupId property: The private link resource group id.
- *
+ *
* @return the groupId value.
*/
public String groupId() {
@@ -86,7 +90,7 @@ public String groupId() {
/**
* Get the requiredMembers property: The private link resource required member names.
- *
+ *
* @return the requiredMembers value.
*/
public List requiredMembers() {
@@ -95,7 +99,7 @@ public List requiredMembers() {
/**
* Get the requiredZoneNames property: The list of required DNS zone names of the private link resource.
- *
+ *
* @return the requiredZoneNames value.
*/
public List requiredZoneNames() {
@@ -104,7 +108,7 @@ public List requiredZoneNames() {
/**
* Validates the instance.
- *
+ *
* @throws IllegalArgumentException thrown if the instance is not valid.
*/
public void validate() {
@@ -112,4 +116,47 @@ public void validate() {
innerProperties().validate();
}
}
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeJsonField("properties", this.innerProperties);
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of PrivateLinkResourceInner from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of PrivateLinkResourceInner if the JsonReader was pointing to an instance of it, or null if
+ * it was pointing to JSON null.
+ * @throws IOException If an error occurs while reading the PrivateLinkResourceInner.
+ */
+ public static PrivateLinkResourceInner fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ PrivateLinkResourceInner deserializedPrivateLinkResourceInner = new PrivateLinkResourceInner();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("id".equals(fieldName)) {
+ deserializedPrivateLinkResourceInner.id = reader.getString();
+ } else if ("name".equals(fieldName)) {
+ deserializedPrivateLinkResourceInner.name = reader.getString();
+ } else if ("type".equals(fieldName)) {
+ deserializedPrivateLinkResourceInner.type = reader.getString();
+ } else if ("properties".equals(fieldName)) {
+ deserializedPrivateLinkResourceInner.innerProperties
+ = PrivateLinkResourceProperties.fromJson(reader);
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedPrivateLinkResourceInner;
+ });
+ }
}
diff --git a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/fluent/models/PrivateLinkResourceProperties.java b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/fluent/models/PrivateLinkResourceProperties.java
index b51547cb4ab33..57b1a77b06427 100644
--- a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/fluent/models/PrivateLinkResourceProperties.java
+++ b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/fluent/models/PrivateLinkResourceProperties.java
@@ -5,37 +5,42 @@
package com.azure.resourcemanager.appconfiguration.fluent.models;
import com.azure.core.annotation.Immutable;
-import com.fasterxml.jackson.annotation.JsonProperty;
+import com.azure.json.JsonReader;
+import com.azure.json.JsonSerializable;
+import com.azure.json.JsonToken;
+import com.azure.json.JsonWriter;
+import java.io.IOException;
import java.util.List;
-/** Properties of a private link resource. */
+/**
+ * Properties of a private link resource.
+ */
@Immutable
-public final class PrivateLinkResourceProperties {
+public final class PrivateLinkResourceProperties implements JsonSerializable {
/*
* The private link resource group id.
*/
- @JsonProperty(value = "groupId", access = JsonProperty.Access.WRITE_ONLY)
private String groupId;
/*
* The private link resource required member names.
*/
- @JsonProperty(value = "requiredMembers", access = JsonProperty.Access.WRITE_ONLY)
private List requiredMembers;
/*
* The list of required DNS zone names of the private link resource.
*/
- @JsonProperty(value = "requiredZoneNames", access = JsonProperty.Access.WRITE_ONLY)
private List requiredZoneNames;
- /** Creates an instance of PrivateLinkResourceProperties class. */
+ /**
+ * Creates an instance of PrivateLinkResourceProperties class.
+ */
public PrivateLinkResourceProperties() {
}
/**
* Get the groupId property: The private link resource group id.
- *
+ *
* @return the groupId value.
*/
public String groupId() {
@@ -44,7 +49,7 @@ public String groupId() {
/**
* Get the requiredMembers property: The private link resource required member names.
- *
+ *
* @return the requiredMembers value.
*/
public List requiredMembers() {
@@ -53,7 +58,7 @@ public List requiredMembers() {
/**
* Get the requiredZoneNames property: The list of required DNS zone names of the private link resource.
- *
+ *
* @return the requiredZoneNames value.
*/
public List requiredZoneNames() {
@@ -62,9 +67,51 @@ public List requiredZoneNames() {
/**
* Validates the instance.
- *
+ *
* @throws IllegalArgumentException thrown if the instance is not valid.
*/
public void validate() {
}
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of PrivateLinkResourceProperties from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of PrivateLinkResourceProperties if the JsonReader was pointing to an instance of it, or null
+ * if it was pointing to JSON null.
+ * @throws IOException If an error occurs while reading the PrivateLinkResourceProperties.
+ */
+ public static PrivateLinkResourceProperties fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ PrivateLinkResourceProperties deserializedPrivateLinkResourceProperties
+ = new PrivateLinkResourceProperties();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("groupId".equals(fieldName)) {
+ deserializedPrivateLinkResourceProperties.groupId = reader.getString();
+ } else if ("requiredMembers".equals(fieldName)) {
+ List requiredMembers = reader.readArray(reader1 -> reader1.getString());
+ deserializedPrivateLinkResourceProperties.requiredMembers = requiredMembers;
+ } else if ("requiredZoneNames".equals(fieldName)) {
+ List requiredZoneNames = reader.readArray(reader1 -> reader1.getString());
+ deserializedPrivateLinkResourceProperties.requiredZoneNames = requiredZoneNames;
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedPrivateLinkResourceProperties;
+ });
+ }
}
diff --git a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/fluent/models/ReplicaInner.java b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/fluent/models/ReplicaInner.java
index 6efee8955650e..f7d2753a7264d 100644
--- a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/fluent/models/ReplicaInner.java
+++ b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/fluent/models/ReplicaInner.java
@@ -7,37 +7,56 @@
import com.azure.core.annotation.Fluent;
import com.azure.core.management.ProxyResource;
import com.azure.core.management.SystemData;
+import com.azure.json.JsonReader;
+import com.azure.json.JsonToken;
+import com.azure.json.JsonWriter;
import com.azure.resourcemanager.appconfiguration.models.ReplicaProvisioningState;
-import com.fasterxml.jackson.annotation.JsonProperty;
+import java.io.IOException;
-/** The replica resource. */
+/**
+ * The replica resource.
+ */
@Fluent
public final class ReplicaInner extends ProxyResource {
/*
* The location of the replica.
*/
- @JsonProperty(value = "location")
private String location;
/*
* Resource system metadata.
*/
- @JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY)
private SystemData systemData;
/*
* All replica properties.
*/
- @JsonProperty(value = "properties", access = JsonProperty.Access.WRITE_ONLY)
private ReplicaProperties innerProperties;
- /** Creates an instance of ReplicaInner class. */
+ /*
+ * Fully qualified resource Id for the resource.
+ */
+ private String id;
+
+ /*
+ * The name of the resource.
+ */
+ private String name;
+
+ /*
+ * The type of the resource.
+ */
+ private String type;
+
+ /**
+ * Creates an instance of ReplicaInner class.
+ */
public ReplicaInner() {
}
/**
* Get the location property: The location of the replica.
- *
+ *
* @return the location value.
*/
public String location() {
@@ -46,7 +65,7 @@ public String location() {
/**
* Set the location property: The location of the replica.
- *
+ *
* @param location the location value to set.
* @return the ReplicaInner object itself.
*/
@@ -57,7 +76,7 @@ public ReplicaInner withLocation(String location) {
/**
* Get the systemData property: Resource system metadata.
- *
+ *
* @return the systemData value.
*/
public SystemData systemData() {
@@ -66,16 +85,46 @@ public SystemData systemData() {
/**
* Get the innerProperties property: All replica properties.
- *
+ *
* @return the innerProperties value.
*/
private ReplicaProperties innerProperties() {
return this.innerProperties;
}
+ /**
+ * Get the id property: Fully qualified resource Id for the resource.
+ *
+ * @return the id value.
+ */
+ @Override
+ public String id() {
+ return this.id;
+ }
+
+ /**
+ * Get the name property: The name of the resource.
+ *
+ * @return the name value.
+ */
+ @Override
+ public String name() {
+ return this.name;
+ }
+
+ /**
+ * Get the type property: The type of the resource.
+ *
+ * @return the type value.
+ */
+ @Override
+ public String type() {
+ return this.type;
+ }
+
/**
* Get the endpoint property: The URI of the replica where the replica API will be available.
- *
+ *
* @return the endpoint value.
*/
public String endpoint() {
@@ -84,7 +133,7 @@ public String endpoint() {
/**
* Get the provisioningState property: The provisioning state of the replica.
- *
+ *
* @return the provisioningState value.
*/
public ReplicaProvisioningState provisioningState() {
@@ -93,7 +142,7 @@ public ReplicaProvisioningState provisioningState() {
/**
* Validates the instance.
- *
+ *
* @throws IllegalArgumentException thrown if the instance is not valid.
*/
public void validate() {
@@ -101,4 +150,51 @@ public void validate() {
innerProperties().validate();
}
}
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeStringField("location", this.location);
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of ReplicaInner from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of ReplicaInner if the JsonReader was pointing to an instance of it, or null if it was
+ * pointing to JSON null.
+ * @throws IllegalStateException If the deserialized JSON object was missing any required properties.
+ * @throws IOException If an error occurs while reading the ReplicaInner.
+ */
+ public static ReplicaInner fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ ReplicaInner deserializedReplicaInner = new ReplicaInner();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("id".equals(fieldName)) {
+ deserializedReplicaInner.id = reader.getString();
+ } else if ("name".equals(fieldName)) {
+ deserializedReplicaInner.name = reader.getString();
+ } else if ("type".equals(fieldName)) {
+ deserializedReplicaInner.type = reader.getString();
+ } else if ("location".equals(fieldName)) {
+ deserializedReplicaInner.location = reader.getString();
+ } else if ("systemData".equals(fieldName)) {
+ deserializedReplicaInner.systemData = SystemData.fromJson(reader);
+ } else if ("properties".equals(fieldName)) {
+ deserializedReplicaInner.innerProperties = ReplicaProperties.fromJson(reader);
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedReplicaInner;
+ });
+ }
}
diff --git a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/fluent/models/ReplicaProperties.java b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/fluent/models/ReplicaProperties.java
index bff2cfb3674ec..03540dc8f814d 100644
--- a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/fluent/models/ReplicaProperties.java
+++ b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/fluent/models/ReplicaProperties.java
@@ -5,31 +5,37 @@
package com.azure.resourcemanager.appconfiguration.fluent.models;
import com.azure.core.annotation.Immutable;
+import com.azure.json.JsonReader;
+import com.azure.json.JsonSerializable;
+import com.azure.json.JsonToken;
+import com.azure.json.JsonWriter;
import com.azure.resourcemanager.appconfiguration.models.ReplicaProvisioningState;
-import com.fasterxml.jackson.annotation.JsonProperty;
+import java.io.IOException;
-/** All replica properties. */
+/**
+ * All replica properties.
+ */
@Immutable
-public final class ReplicaProperties {
+public final class ReplicaProperties implements JsonSerializable {
/*
* The URI of the replica where the replica API will be available.
*/
- @JsonProperty(value = "endpoint", access = JsonProperty.Access.WRITE_ONLY)
private String endpoint;
/*
* The provisioning state of the replica.
*/
- @JsonProperty(value = "provisioningState", access = JsonProperty.Access.WRITE_ONLY)
private ReplicaProvisioningState provisioningState;
- /** Creates an instance of ReplicaProperties class. */
+ /**
+ * Creates an instance of ReplicaProperties class.
+ */
public ReplicaProperties() {
}
/**
* Get the endpoint property: The URI of the replica where the replica API will be available.
- *
+ *
* @return the endpoint value.
*/
public String endpoint() {
@@ -38,7 +44,7 @@ public String endpoint() {
/**
* Get the provisioningState property: The provisioning state of the replica.
- *
+ *
* @return the provisioningState value.
*/
public ReplicaProvisioningState provisioningState() {
@@ -47,9 +53,47 @@ public ReplicaProvisioningState provisioningState() {
/**
* Validates the instance.
- *
+ *
* @throws IllegalArgumentException thrown if the instance is not valid.
*/
public void validate() {
}
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of ReplicaProperties from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of ReplicaProperties if the JsonReader was pointing to an instance of it, or null if it was
+ * pointing to JSON null.
+ * @throws IOException If an error occurs while reading the ReplicaProperties.
+ */
+ public static ReplicaProperties fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ ReplicaProperties deserializedReplicaProperties = new ReplicaProperties();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("endpoint".equals(fieldName)) {
+ deserializedReplicaProperties.endpoint = reader.getString();
+ } else if ("provisioningState".equals(fieldName)) {
+ deserializedReplicaProperties.provisioningState
+ = ReplicaProvisioningState.fromString(reader.getString());
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedReplicaProperties;
+ });
+ }
}
diff --git a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/fluent/models/SasTokenGenerationResultInner.java b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/fluent/models/SasTokenGenerationResultInner.java
new file mode 100644
index 0000000000000..2abeab99cbf91
--- /dev/null
+++ b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/fluent/models/SasTokenGenerationResultInner.java
@@ -0,0 +1,161 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.appconfiguration.fluent.models;
+
+import com.azure.core.annotation.Immutable;
+import com.azure.core.util.CoreUtils;
+import com.azure.json.JsonReader;
+import com.azure.json.JsonSerializable;
+import com.azure.json.JsonToken;
+import com.azure.json.JsonWriter;
+import com.azure.resourcemanager.appconfiguration.models.SasKind;
+import com.azure.resourcemanager.appconfiguration.models.SasTokenScope;
+import java.io.IOException;
+import java.time.OffsetDateTime;
+
+/**
+ * The result of a request to generate a SAS token.
+ */
+@Immutable
+public final class SasTokenGenerationResultInner implements JsonSerializable {
+ /*
+ * The data plane resource scope that the SAS token is authorized to access.
+ */
+ private SasTokenScope sasTokenScope;
+
+ /*
+ * The time that the SAS token expires in the Universal ISO 8601 DateTime format. Max allowed expiration is 1 year
+ * from the time of token creation.
+ */
+ private OffsetDateTime expires;
+
+ /*
+ * Time (in seconds) for which the data plane response may be cached by clients. App Configuration sets the
+ * Cache-Control response header `max-age` to the value that's specified on the SAS token. See
+ * [rfc9111](https://www.rfc-editor.org/rfc/rfc9111#name-max-age-2) for more details.
+ */
+ private Float cacheControlMaxAge;
+
+ /*
+ * The kind of the SAS token.
+ */
+ private SasKind kind;
+
+ /*
+ * The value of the SAS token.
+ */
+ private String value;
+
+ /**
+ * Creates an instance of SasTokenGenerationResultInner class.
+ */
+ public SasTokenGenerationResultInner() {
+ }
+
+ /**
+ * Get the sasTokenScope property: The data plane resource scope that the SAS token is authorized to access.
+ *
+ * @return the sasTokenScope value.
+ */
+ public SasTokenScope sasTokenScope() {
+ return this.sasTokenScope;
+ }
+
+ /**
+ * Get the expires property: The time that the SAS token expires in the Universal ISO 8601 DateTime format. Max
+ * allowed expiration is 1 year from the time of token creation.
+ *
+ * @return the expires value.
+ */
+ public OffsetDateTime expires() {
+ return this.expires;
+ }
+
+ /**
+ * Get the cacheControlMaxAge property: Time (in seconds) for which the data plane response may be cached by
+ * clients. App Configuration sets the Cache-Control response header `max-age` to the value that's specified on the
+ * SAS token. See [rfc9111](https://www.rfc-editor.org/rfc/rfc9111#name-max-age-2) for more details.
+ *
+ * @return the cacheControlMaxAge value.
+ */
+ public Float cacheControlMaxAge() {
+ return this.cacheControlMaxAge;
+ }
+
+ /**
+ * Get the kind property: The kind of the SAS token.
+ *
+ * @return the kind value.
+ */
+ public SasKind kind() {
+ return this.kind;
+ }
+
+ /**
+ * Get the value property: The value of the SAS token.
+ *
+ * @return the value value.
+ */
+ public String value() {
+ return this.value;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (sasTokenScope() != null) {
+ sasTokenScope().validate();
+ }
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of SasTokenGenerationResultInner from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of SasTokenGenerationResultInner if the JsonReader was pointing to an instance of it, or null
+ * if it was pointing to JSON null.
+ * @throws IOException If an error occurs while reading the SasTokenGenerationResultInner.
+ */
+ public static SasTokenGenerationResultInner fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ SasTokenGenerationResultInner deserializedSasTokenGenerationResultInner
+ = new SasTokenGenerationResultInner();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("sasTokenScope".equals(fieldName)) {
+ deserializedSasTokenGenerationResultInner.sasTokenScope = SasTokenScope.fromJson(reader);
+ } else if ("expires".equals(fieldName)) {
+ deserializedSasTokenGenerationResultInner.expires = reader
+ .getNullable(nonNullReader -> CoreUtils.parseBestOffsetDateTime(nonNullReader.getString()));
+ } else if ("cacheControlMaxAge".equals(fieldName)) {
+ deserializedSasTokenGenerationResultInner.cacheControlMaxAge
+ = reader.getNullable(JsonReader::getFloat);
+ } else if ("kind".equals(fieldName)) {
+ deserializedSasTokenGenerationResultInner.kind = SasKind.fromString(reader.getString());
+ } else if ("value".equals(fieldName)) {
+ deserializedSasTokenGenerationResultInner.value = reader.getString();
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedSasTokenGenerationResultInner;
+ });
+ }
+}
diff --git a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/fluent/models/SnapshotInner.java b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/fluent/models/SnapshotInner.java
new file mode 100644
index 0000000000000..a901e99b983e5
--- /dev/null
+++ b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/fluent/models/SnapshotInner.java
@@ -0,0 +1,307 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.appconfiguration.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.management.ProxyResource;
+import com.azure.json.JsonReader;
+import com.azure.json.JsonToken;
+import com.azure.json.JsonWriter;
+import com.azure.resourcemanager.appconfiguration.models.CompositionType;
+import com.azure.resourcemanager.appconfiguration.models.KeyValueFilter;
+import com.azure.resourcemanager.appconfiguration.models.ProvisioningState;
+import com.azure.resourcemanager.appconfiguration.models.SnapshotStatus;
+import java.io.IOException;
+import java.time.OffsetDateTime;
+import java.util.List;
+import java.util.Map;
+
+/**
+ * The snapshot resource.
+ */
+@Fluent
+public final class SnapshotInner extends ProxyResource {
+ /*
+ * All snapshot properties.
+ */
+ private SnapshotProperties innerProperties;
+
+ /*
+ * Fully qualified resource Id for the resource.
+ */
+ private String id;
+
+ /*
+ * The name of the resource.
+ */
+ private String name;
+
+ /*
+ * The type of the resource.
+ */
+ private String type;
+
+ /**
+ * Creates an instance of SnapshotInner class.
+ */
+ public SnapshotInner() {
+ }
+
+ /**
+ * Get the innerProperties property: All snapshot properties.
+ *
+ * @return the innerProperties value.
+ */
+ private SnapshotProperties innerProperties() {
+ return this.innerProperties;
+ }
+
+ /**
+ * Get the id property: Fully qualified resource Id for the resource.
+ *
+ * @return the id value.
+ */
+ @Override
+ public String id() {
+ return this.id;
+ }
+
+ /**
+ * Get the name property: The name of the resource.
+ *
+ * @return the name value.
+ */
+ @Override
+ public String name() {
+ return this.name;
+ }
+
+ /**
+ * Get the type property: The type of the resource.
+ *
+ * @return the type value.
+ */
+ @Override
+ public String type() {
+ return this.type;
+ }
+
+ /**
+ * Get the provisioningState property: The provisioning state of the snapshot.
+ *
+ * @return the provisioningState value.
+ */
+ public ProvisioningState provisioningState() {
+ return this.innerProperties() == null ? null : this.innerProperties().provisioningState();
+ }
+
+ /**
+ * Get the status property: The current status of the snapshot.
+ *
+ * @return the status value.
+ */
+ public SnapshotStatus status() {
+ return this.innerProperties() == null ? null : this.innerProperties().status();
+ }
+
+ /**
+ * Get the filters property: A list of filters used to filter the key-values included in the snapshot.
+ *
+ * @return the filters value.
+ */
+ public List filters() {
+ return this.innerProperties() == null ? null : this.innerProperties().filters();
+ }
+
+ /**
+ * Set the filters property: A list of filters used to filter the key-values included in the snapshot.
+ *
+ * @param filters the filters value to set.
+ * @return the SnapshotInner object itself.
+ */
+ public SnapshotInner withFilters(List filters) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new SnapshotProperties();
+ }
+ this.innerProperties().withFilters(filters);
+ return this;
+ }
+
+ /**
+ * Get the compositionType property: The composition type describes how the key-values within the snapshot are
+ * composed. The 'key' composition type ensures there are no two key-values containing the same key. The 'key_label'
+ * composition type ensures there are no two key-values containing the same key and label.
+ *
+ * @return the compositionType value.
+ */
+ public CompositionType compositionType() {
+ return this.innerProperties() == null ? null : this.innerProperties().compositionType();
+ }
+
+ /**
+ * Set the compositionType property: The composition type describes how the key-values within the snapshot are
+ * composed. The 'key' composition type ensures there are no two key-values containing the same key. The 'key_label'
+ * composition type ensures there are no two key-values containing the same key and label.
+ *
+ * @param compositionType the compositionType value to set.
+ * @return the SnapshotInner object itself.
+ */
+ public SnapshotInner withCompositionType(CompositionType compositionType) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new SnapshotProperties();
+ }
+ this.innerProperties().withCompositionType(compositionType);
+ return this;
+ }
+
+ /**
+ * Get the created property: The time that the snapshot was created.
+ *
+ * @return the created value.
+ */
+ public OffsetDateTime created() {
+ return this.innerProperties() == null ? null : this.innerProperties().created();
+ }
+
+ /**
+ * Get the expires property: The time that the snapshot will expire.
+ *
+ * @return the expires value.
+ */
+ public OffsetDateTime expires() {
+ return this.innerProperties() == null ? null : this.innerProperties().expires();
+ }
+
+ /**
+ * Get the retentionPeriod property: The amount of time, in seconds, that a snapshot will remain in the archived
+ * state before expiring. This property is only writable during the creation of a snapshot. If not specified, the
+ * default lifetime of key-value revisions will be used.
+ *
+ * @return the retentionPeriod value.
+ */
+ public Long retentionPeriod() {
+ return this.innerProperties() == null ? null : this.innerProperties().retentionPeriod();
+ }
+
+ /**
+ * Set the retentionPeriod property: The amount of time, in seconds, that a snapshot will remain in the archived
+ * state before expiring. This property is only writable during the creation of a snapshot. If not specified, the
+ * default lifetime of key-value revisions will be used.
+ *
+ * @param retentionPeriod the retentionPeriod value to set.
+ * @return the SnapshotInner object itself.
+ */
+ public SnapshotInner withRetentionPeriod(Long retentionPeriod) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new SnapshotProperties();
+ }
+ this.innerProperties().withRetentionPeriod(retentionPeriod);
+ return this;
+ }
+
+ /**
+ * Get the size property: The size in bytes of the snapshot.
+ *
+ * @return the size value.
+ */
+ public Long size() {
+ return this.innerProperties() == null ? null : this.innerProperties().size();
+ }
+
+ /**
+ * Get the itemsCount property: The amount of key-values in the snapshot.
+ *
+ * @return the itemsCount value.
+ */
+ public Long itemsCount() {
+ return this.innerProperties() == null ? null : this.innerProperties().itemsCount();
+ }
+
+ /**
+ * Get the tags property: The tags of the snapshot. NOTE: These are data plane tags, not ARM tags.
+ *
+ * @return the tags value.
+ */
+ public Map tags() {
+ return this.innerProperties() == null ? null : this.innerProperties().tags();
+ }
+
+ /**
+ * Set the tags property: The tags of the snapshot. NOTE: These are data plane tags, not ARM tags.
+ *
+ * @param tags the tags value to set.
+ * @return the SnapshotInner object itself.
+ */
+ public SnapshotInner withTags(Map tags) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new SnapshotProperties();
+ }
+ this.innerProperties().withTags(tags);
+ return this;
+ }
+
+ /**
+ * Get the etag property: A value representing the current state of the snapshot.
+ *
+ * @return the etag value.
+ */
+ public String etag() {
+ return this.innerProperties() == null ? null : this.innerProperties().etag();
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (innerProperties() != null) {
+ innerProperties().validate();
+ }
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeJsonField("properties", this.innerProperties);
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of SnapshotInner from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of SnapshotInner if the JsonReader was pointing to an instance of it, or null if it was
+ * pointing to JSON null.
+ * @throws IllegalStateException If the deserialized JSON object was missing any required properties.
+ * @throws IOException If an error occurs while reading the SnapshotInner.
+ */
+ public static SnapshotInner fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ SnapshotInner deserializedSnapshotInner = new SnapshotInner();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("id".equals(fieldName)) {
+ deserializedSnapshotInner.id = reader.getString();
+ } else if ("name".equals(fieldName)) {
+ deserializedSnapshotInner.name = reader.getString();
+ } else if ("type".equals(fieldName)) {
+ deserializedSnapshotInner.type = reader.getString();
+ } else if ("properties".equals(fieldName)) {
+ deserializedSnapshotInner.innerProperties = SnapshotProperties.fromJson(reader);
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedSnapshotInner;
+ });
+ }
+}
diff --git a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/fluent/models/SnapshotProperties.java b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/fluent/models/SnapshotProperties.java
new file mode 100644
index 0000000000000..97182488f02d3
--- /dev/null
+++ b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/fluent/models/SnapshotProperties.java
@@ -0,0 +1,324 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.appconfiguration.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.util.CoreUtils;
+import com.azure.core.util.logging.ClientLogger;
+import com.azure.json.JsonReader;
+import com.azure.json.JsonSerializable;
+import com.azure.json.JsonToken;
+import com.azure.json.JsonWriter;
+import com.azure.resourcemanager.appconfiguration.models.CompositionType;
+import com.azure.resourcemanager.appconfiguration.models.KeyValueFilter;
+import com.azure.resourcemanager.appconfiguration.models.ProvisioningState;
+import com.azure.resourcemanager.appconfiguration.models.SnapshotStatus;
+import java.io.IOException;
+import java.time.OffsetDateTime;
+import java.util.List;
+import java.util.Map;
+
+/**
+ * All snapshot properties.
+ */
+@Fluent
+public final class SnapshotProperties implements JsonSerializable {
+ /*
+ * The provisioning state of the snapshot.
+ */
+ private ProvisioningState provisioningState;
+
+ /*
+ * The current status of the snapshot.
+ */
+ private SnapshotStatus status;
+
+ /*
+ * A list of filters used to filter the key-values included in the snapshot.
+ */
+ private List filters;
+
+ /*
+ * The composition type describes how the key-values within the snapshot are composed. The 'key' composition type
+ * ensures there are no two key-values containing the same key. The 'key_label' composition type ensures there are
+ * no two key-values containing the same key and label.
+ */
+ private CompositionType compositionType;
+
+ /*
+ * The time that the snapshot was created.
+ */
+ private OffsetDateTime created;
+
+ /*
+ * The time that the snapshot will expire.
+ */
+ private OffsetDateTime expires;
+
+ /*
+ * The amount of time, in seconds, that a snapshot will remain in the archived state before expiring. This property
+ * is only writable during the creation of a snapshot. If not specified, the default lifetime of key-value revisions
+ * will be used.
+ */
+ private Long retentionPeriod;
+
+ /*
+ * The size in bytes of the snapshot.
+ */
+ private Long size;
+
+ /*
+ * The amount of key-values in the snapshot.
+ */
+ private Long itemsCount;
+
+ /*
+ * The tags of the snapshot. NOTE: These are data plane tags, not ARM tags.
+ */
+ private Map tags;
+
+ /*
+ * A value representing the current state of the snapshot.
+ */
+ private String etag;
+
+ /**
+ * Creates an instance of SnapshotProperties class.
+ */
+ public SnapshotProperties() {
+ }
+
+ /**
+ * Get the provisioningState property: The provisioning state of the snapshot.
+ *
+ * @return the provisioningState value.
+ */
+ public ProvisioningState provisioningState() {
+ return this.provisioningState;
+ }
+
+ /**
+ * Get the status property: The current status of the snapshot.
+ *
+ * @return the status value.
+ */
+ public SnapshotStatus status() {
+ return this.status;
+ }
+
+ /**
+ * Get the filters property: A list of filters used to filter the key-values included in the snapshot.
+ *
+ * @return the filters value.
+ */
+ public List filters() {
+ return this.filters;
+ }
+
+ /**
+ * Set the filters property: A list of filters used to filter the key-values included in the snapshot.
+ *
+ * @param filters the filters value to set.
+ * @return the SnapshotProperties object itself.
+ */
+ public SnapshotProperties withFilters(List filters) {
+ this.filters = filters;
+ return this;
+ }
+
+ /**
+ * Get the compositionType property: The composition type describes how the key-values within the snapshot are
+ * composed. The 'key' composition type ensures there are no two key-values containing the same key. The 'key_label'
+ * composition type ensures there are no two key-values containing the same key and label.
+ *
+ * @return the compositionType value.
+ */
+ public CompositionType compositionType() {
+ return this.compositionType;
+ }
+
+ /**
+ * Set the compositionType property: The composition type describes how the key-values within the snapshot are
+ * composed. The 'key' composition type ensures there are no two key-values containing the same key. The 'key_label'
+ * composition type ensures there are no two key-values containing the same key and label.
+ *
+ * @param compositionType the compositionType value to set.
+ * @return the SnapshotProperties object itself.
+ */
+ public SnapshotProperties withCompositionType(CompositionType compositionType) {
+ this.compositionType = compositionType;
+ return this;
+ }
+
+ /**
+ * Get the created property: The time that the snapshot was created.
+ *
+ * @return the created value.
+ */
+ public OffsetDateTime created() {
+ return this.created;
+ }
+
+ /**
+ * Get the expires property: The time that the snapshot will expire.
+ *
+ * @return the expires value.
+ */
+ public OffsetDateTime expires() {
+ return this.expires;
+ }
+
+ /**
+ * Get the retentionPeriod property: The amount of time, in seconds, that a snapshot will remain in the archived
+ * state before expiring. This property is only writable during the creation of a snapshot. If not specified, the
+ * default lifetime of key-value revisions will be used.
+ *
+ * @return the retentionPeriod value.
+ */
+ public Long retentionPeriod() {
+ return this.retentionPeriod;
+ }
+
+ /**
+ * Set the retentionPeriod property: The amount of time, in seconds, that a snapshot will remain in the archived
+ * state before expiring. This property is only writable during the creation of a snapshot. If not specified, the
+ * default lifetime of key-value revisions will be used.
+ *
+ * @param retentionPeriod the retentionPeriod value to set.
+ * @return the SnapshotProperties object itself.
+ */
+ public SnapshotProperties withRetentionPeriod(Long retentionPeriod) {
+ this.retentionPeriod = retentionPeriod;
+ return this;
+ }
+
+ /**
+ * Get the size property: The size in bytes of the snapshot.
+ *
+ * @return the size value.
+ */
+ public Long size() {
+ return this.size;
+ }
+
+ /**
+ * Get the itemsCount property: The amount of key-values in the snapshot.
+ *
+ * @return the itemsCount value.
+ */
+ public Long itemsCount() {
+ return this.itemsCount;
+ }
+
+ /**
+ * Get the tags property: The tags of the snapshot. NOTE: These are data plane tags, not ARM tags.
+ *
+ * @return the tags value.
+ */
+ public Map tags() {
+ return this.tags;
+ }
+
+ /**
+ * Set the tags property: The tags of the snapshot. NOTE: These are data plane tags, not ARM tags.
+ *
+ * @param tags the tags value to set.
+ * @return the SnapshotProperties object itself.
+ */
+ public SnapshotProperties withTags(Map tags) {
+ this.tags = tags;
+ return this;
+ }
+
+ /**
+ * Get the etag property: A value representing the current state of the snapshot.
+ *
+ * @return the etag value.
+ */
+ public String etag() {
+ return this.etag;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (filters() == null) {
+ throw LOGGER.atError()
+ .log(new IllegalArgumentException("Missing required property filters in model SnapshotProperties"));
+ } else {
+ filters().forEach(e -> e.validate());
+ }
+ }
+
+ private static final ClientLogger LOGGER = new ClientLogger(SnapshotProperties.class);
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeArrayField("filters", this.filters, (writer, element) -> writer.writeJson(element));
+ jsonWriter.writeStringField("compositionType",
+ this.compositionType == null ? null : this.compositionType.toString());
+ jsonWriter.writeNumberField("retentionPeriod", this.retentionPeriod);
+ jsonWriter.writeMapField("tags", this.tags, (writer, element) -> writer.writeString(element));
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of SnapshotProperties from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of SnapshotProperties if the JsonReader was pointing to an instance of it, or null if it was
+ * pointing to JSON null.
+ * @throws IllegalStateException If the deserialized JSON object was missing any required properties.
+ * @throws IOException If an error occurs while reading the SnapshotProperties.
+ */
+ public static SnapshotProperties fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ SnapshotProperties deserializedSnapshotProperties = new SnapshotProperties();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("filters".equals(fieldName)) {
+ List filters = reader.readArray(reader1 -> KeyValueFilter.fromJson(reader1));
+ deserializedSnapshotProperties.filters = filters;
+ } else if ("provisioningState".equals(fieldName)) {
+ deserializedSnapshotProperties.provisioningState = ProvisioningState.fromString(reader.getString());
+ } else if ("status".equals(fieldName)) {
+ deserializedSnapshotProperties.status = SnapshotStatus.fromString(reader.getString());
+ } else if ("compositionType".equals(fieldName)) {
+ deserializedSnapshotProperties.compositionType = CompositionType.fromString(reader.getString());
+ } else if ("created".equals(fieldName)) {
+ deserializedSnapshotProperties.created = reader
+ .getNullable(nonNullReader -> CoreUtils.parseBestOffsetDateTime(nonNullReader.getString()));
+ } else if ("expires".equals(fieldName)) {
+ deserializedSnapshotProperties.expires = reader
+ .getNullable(nonNullReader -> CoreUtils.parseBestOffsetDateTime(nonNullReader.getString()));
+ } else if ("retentionPeriod".equals(fieldName)) {
+ deserializedSnapshotProperties.retentionPeriod = reader.getNullable(JsonReader::getLong);
+ } else if ("size".equals(fieldName)) {
+ deserializedSnapshotProperties.size = reader.getNullable(JsonReader::getLong);
+ } else if ("itemsCount".equals(fieldName)) {
+ deserializedSnapshotProperties.itemsCount = reader.getNullable(JsonReader::getLong);
+ } else if ("tags".equals(fieldName)) {
+ Map tags = reader.readMap(reader1 -> reader1.getString());
+ deserializedSnapshotProperties.tags = tags;
+ } else if ("etag".equals(fieldName)) {
+ deserializedSnapshotProperties.etag = reader.getString();
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedSnapshotProperties;
+ });
+ }
+}
diff --git a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/fluent/models/package-info.java b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/fluent/models/package-info.java
index 0a03fa178fa24..e24a7869d77eb 100644
--- a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/fluent/models/package-info.java
+++ b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/fluent/models/package-info.java
@@ -2,5 +2,8 @@
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.
-/** Package containing the inner data models for AppConfigurationManagementClient. null. */
+/**
+ * Package containing the inner data models for AppConfigurationManagementClient.
+ * null.
+ */
package com.azure.resourcemanager.appconfiguration.fluent.models;
diff --git a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/fluent/package-info.java b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/fluent/package-info.java
index 6f2e40677ff07..27f4d1f4ae436 100644
--- a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/fluent/package-info.java
+++ b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/fluent/package-info.java
@@ -2,5 +2,8 @@
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.
-/** Package containing the service clients for AppConfigurationManagementClient. null. */
+/**
+ * Package containing the service clients for AppConfigurationManagementClient.
+ * null.
+ */
package com.azure.resourcemanager.appconfiguration.fluent;
diff --git a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/implementation/ApiKeyImpl.java b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/implementation/ApiKeyImpl.java
index b4a4e7e071dd1..e1bf978c5a1e8 100644
--- a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/implementation/ApiKeyImpl.java
+++ b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/implementation/ApiKeyImpl.java
@@ -13,8 +13,8 @@ public final class ApiKeyImpl implements ApiKey {
private final com.azure.resourcemanager.appconfiguration.AppConfigurationManager serviceManager;
- ApiKeyImpl(
- ApiKeyInner innerObject, com.azure.resourcemanager.appconfiguration.AppConfigurationManager serviceManager) {
+ ApiKeyImpl(ApiKeyInner innerObject,
+ com.azure.resourcemanager.appconfiguration.AppConfigurationManager serviceManager) {
this.innerObject = innerObject;
this.serviceManager = serviceManager;
}
diff --git a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/implementation/AppConfigurationManagementClientBuilder.java b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/implementation/AppConfigurationManagementClientBuilder.java
index 2feef4e71cc6d..b58f725625edc 100644
--- a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/implementation/AppConfigurationManagementClientBuilder.java
+++ b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/implementation/AppConfigurationManagementClientBuilder.java
@@ -14,8 +14,10 @@
import com.azure.core.util.serializer.SerializerAdapter;
import java.time.Duration;
-/** A builder for creating a new instance of the AppConfigurationManagementClientImpl type. */
-@ServiceClientBuilder(serviceClients = {AppConfigurationManagementClientImpl.class})
+/**
+ * A builder for creating a new instance of the AppConfigurationManagementClientImpl type.
+ */
+@ServiceClientBuilder(serviceClients = { AppConfigurationManagementClientImpl.class })
public final class AppConfigurationManagementClientBuilder {
/*
* The Microsoft Azure subscription ID.
@@ -24,7 +26,7 @@ public final class AppConfigurationManagementClientBuilder {
/**
* Sets The Microsoft Azure subscription ID.
- *
+ *
* @param subscriptionId the subscriptionId value.
* @return the AppConfigurationManagementClientBuilder.
*/
@@ -40,7 +42,7 @@ public AppConfigurationManagementClientBuilder subscriptionId(String subscriptio
/**
* Sets server parameter.
- *
+ *
* @param endpoint the endpoint value.
* @return the AppConfigurationManagementClientBuilder.
*/
@@ -56,7 +58,7 @@ public AppConfigurationManagementClientBuilder endpoint(String endpoint) {
/**
* Sets The environment to connect to.
- *
+ *
* @param environment the environment value.
* @return the AppConfigurationManagementClientBuilder.
*/
@@ -72,7 +74,7 @@ public AppConfigurationManagementClientBuilder environment(AzureEnvironment envi
/**
* Sets The HTTP pipeline to send requests through.
- *
+ *
* @param pipeline the pipeline value.
* @return the AppConfigurationManagementClientBuilder.
*/
@@ -88,7 +90,7 @@ public AppConfigurationManagementClientBuilder pipeline(HttpPipeline pipeline) {
/**
* Sets The default poll interval for long-running operation.
- *
+ *
* @param defaultPollInterval the defaultPollInterval value.
* @return the AppConfigurationManagementClientBuilder.
*/
@@ -104,7 +106,7 @@ public AppConfigurationManagementClientBuilder defaultPollInterval(Duration defa
/**
* Sets The serializer to serialize an object into a string.
- *
+ *
* @param serializerAdapter the serializerAdapter value.
* @return the AppConfigurationManagementClientBuilder.
*/
@@ -115,30 +117,22 @@ public AppConfigurationManagementClientBuilder serializerAdapter(SerializerAdapt
/**
* Builds an instance of AppConfigurationManagementClientImpl with the provided parameters.
- *
+ *
* @return an instance of AppConfigurationManagementClientImpl.
*/
public AppConfigurationManagementClientImpl buildClient() {
String localEndpoint = (endpoint != null) ? endpoint : "https://management.azure.com";
AzureEnvironment localEnvironment = (environment != null) ? environment : AzureEnvironment.AZURE;
- HttpPipeline localPipeline =
- (pipeline != null)
- ? pipeline
- : new HttpPipelineBuilder().policies(new UserAgentPolicy(), new RetryPolicy()).build();
- Duration localDefaultPollInterval =
- (defaultPollInterval != null) ? defaultPollInterval : Duration.ofSeconds(30);
- SerializerAdapter localSerializerAdapter =
- (serializerAdapter != null)
- ? serializerAdapter
- : SerializerFactory.createDefaultManagementSerializerAdapter();
- AppConfigurationManagementClientImpl client =
- new AppConfigurationManagementClientImpl(
- localPipeline,
- localSerializerAdapter,
- localDefaultPollInterval,
- localEnvironment,
- subscriptionId,
- localEndpoint);
+ HttpPipeline localPipeline = (pipeline != null)
+ ? pipeline
+ : new HttpPipelineBuilder().policies(new UserAgentPolicy(), new RetryPolicy()).build();
+ Duration localDefaultPollInterval
+ = (defaultPollInterval != null) ? defaultPollInterval : Duration.ofSeconds(30);
+ SerializerAdapter localSerializerAdapter = (serializerAdapter != null)
+ ? serializerAdapter
+ : SerializerFactory.createDefaultManagementSerializerAdapter();
+ AppConfigurationManagementClientImpl client = new AppConfigurationManagementClientImpl(localPipeline,
+ localSerializerAdapter, localDefaultPollInterval, localEnvironment, this.subscriptionId, localEndpoint);
return client;
}
}
diff --git a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/implementation/AppConfigurationManagementClientImpl.java b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/implementation/AppConfigurationManagementClientImpl.java
index d63aac08d63d4..62e93c08b0981 100644
--- a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/implementation/AppConfigurationManagementClientImpl.java
+++ b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/implementation/AppConfigurationManagementClientImpl.java
@@ -5,6 +5,7 @@
package com.azure.resourcemanager.appconfiguration.implementation;
import com.azure.core.annotation.ServiceClient;
+import com.azure.core.http.HttpHeaderName;
import com.azure.core.http.HttpHeaders;
import com.azure.core.http.HttpPipeline;
import com.azure.core.http.HttpResponse;
@@ -12,8 +13,8 @@
import com.azure.core.management.AzureEnvironment;
import com.azure.core.management.exception.ManagementError;
import com.azure.core.management.exception.ManagementException;
-import com.azure.core.management.polling.PollResult;
import com.azure.core.management.polling.PollerFactory;
+import com.azure.core.management.polling.PollResult;
import com.azure.core.util.Context;
import com.azure.core.util.CoreUtils;
import com.azure.core.util.logging.ClientLogger;
@@ -29,6 +30,7 @@
import com.azure.resourcemanager.appconfiguration.fluent.PrivateEndpointConnectionsClient;
import com.azure.resourcemanager.appconfiguration.fluent.PrivateLinkResourcesClient;
import com.azure.resourcemanager.appconfiguration.fluent.ReplicasClient;
+import com.azure.resourcemanager.appconfiguration.fluent.SnapshotsClient;
import java.io.IOException;
import java.lang.reflect.Type;
import java.nio.ByteBuffer;
@@ -38,156 +40,196 @@
import reactor.core.publisher.Flux;
import reactor.core.publisher.Mono;
-/** Initializes a new instance of the AppConfigurationManagementClientImpl type. */
+/**
+ * Initializes a new instance of the AppConfigurationManagementClientImpl type.
+ */
@ServiceClient(builder = AppConfigurationManagementClientBuilder.class)
public final class AppConfigurationManagementClientImpl implements AppConfigurationManagementClient {
- /** The Microsoft Azure subscription ID. */
+ /**
+ * The Microsoft Azure subscription ID.
+ */
private final String subscriptionId;
/**
* Gets The Microsoft Azure subscription ID.
- *
+ *
* @return the subscriptionId value.
*/
public String getSubscriptionId() {
return this.subscriptionId;
}
- /** server parameter. */
+ /**
+ * server parameter.
+ */
private final String endpoint;
/**
* Gets server parameter.
- *
+ *
* @return the endpoint value.
*/
public String getEndpoint() {
return this.endpoint;
}
- /** Api Version. */
+ /**
+ * Api Version.
+ */
private final String apiVersion;
/**
* Gets Api Version.
- *
+ *
* @return the apiVersion value.
*/
public String getApiVersion() {
return this.apiVersion;
}
- /** The HTTP pipeline to send requests through. */
+ /**
+ * The HTTP pipeline to send requests through.
+ */
private final HttpPipeline httpPipeline;
/**
* Gets The HTTP pipeline to send requests through.
- *
+ *
* @return the httpPipeline value.
*/
public HttpPipeline getHttpPipeline() {
return this.httpPipeline;
}
- /** The serializer to serialize an object into a string. */
+ /**
+ * The serializer to serialize an object into a string.
+ */
private final SerializerAdapter serializerAdapter;
/**
* Gets The serializer to serialize an object into a string.
- *
+ *
* @return the serializerAdapter value.
*/
SerializerAdapter getSerializerAdapter() {
return this.serializerAdapter;
}
- /** The default poll interval for long-running operation. */
+ /**
+ * The default poll interval for long-running operation.
+ */
private final Duration defaultPollInterval;
/**
* Gets The default poll interval for long-running operation.
- *
+ *
* @return the defaultPollInterval value.
*/
public Duration getDefaultPollInterval() {
return this.defaultPollInterval;
}
- /** The ConfigurationStoresClient object to access its operations. */
+ /**
+ * The ConfigurationStoresClient object to access its operations.
+ */
private final ConfigurationStoresClient configurationStores;
/**
* Gets the ConfigurationStoresClient object to access its operations.
- *
+ *
* @return the ConfigurationStoresClient object.
*/
public ConfigurationStoresClient getConfigurationStores() {
return this.configurationStores;
}
- /** The OperationsClient object to access its operations. */
+ /**
+ * The OperationsClient object to access its operations.
+ */
private final OperationsClient operations;
/**
* Gets the OperationsClient object to access its operations.
- *
+ *
* @return the OperationsClient object.
*/
public OperationsClient getOperations() {
return this.operations;
}
- /** The PrivateEndpointConnectionsClient object to access its operations. */
+ /**
+ * The PrivateEndpointConnectionsClient object to access its operations.
+ */
private final PrivateEndpointConnectionsClient privateEndpointConnections;
/**
* Gets the PrivateEndpointConnectionsClient object to access its operations.
- *
+ *
* @return the PrivateEndpointConnectionsClient object.
*/
public PrivateEndpointConnectionsClient getPrivateEndpointConnections() {
return this.privateEndpointConnections;
}
- /** The PrivateLinkResourcesClient object to access its operations. */
+ /**
+ * The PrivateLinkResourcesClient object to access its operations.
+ */
private final PrivateLinkResourcesClient privateLinkResources;
/**
* Gets the PrivateLinkResourcesClient object to access its operations.
- *
+ *
* @return the PrivateLinkResourcesClient object.
*/
public PrivateLinkResourcesClient getPrivateLinkResources() {
return this.privateLinkResources;
}
- /** The KeyValuesClient object to access its operations. */
+ /**
+ * The KeyValuesClient object to access its operations.
+ */
private final KeyValuesClient keyValues;
/**
* Gets the KeyValuesClient object to access its operations.
- *
+ *
* @return the KeyValuesClient object.
*/
public KeyValuesClient getKeyValues() {
return this.keyValues;
}
- /** The ReplicasClient object to access its operations. */
+ /**
+ * The ReplicasClient object to access its operations.
+ */
private final ReplicasClient replicas;
/**
* Gets the ReplicasClient object to access its operations.
- *
+ *
* @return the ReplicasClient object.
*/
public ReplicasClient getReplicas() {
return this.replicas;
}
+ /**
+ * The SnapshotsClient object to access its operations.
+ */
+ private final SnapshotsClient snapshots;
+
+ /**
+ * Gets the SnapshotsClient object to access its operations.
+ *
+ * @return the SnapshotsClient object.
+ */
+ public SnapshotsClient getSnapshots() {
+ return this.snapshots;
+ }
+
/**
* Initializes an instance of AppConfigurationManagementClient client.
- *
+ *
* @param httpPipeline The HTTP pipeline to send requests through.
* @param serializerAdapter The serializer to serialize an object into a string.
* @param defaultPollInterval The default poll interval for long-running operation.
@@ -195,30 +237,26 @@ public ReplicasClient getReplicas() {
* @param subscriptionId The Microsoft Azure subscription ID.
* @param endpoint server parameter.
*/
- AppConfigurationManagementClientImpl(
- HttpPipeline httpPipeline,
- SerializerAdapter serializerAdapter,
- Duration defaultPollInterval,
- AzureEnvironment environment,
- String subscriptionId,
- String endpoint) {
+ AppConfigurationManagementClientImpl(HttpPipeline httpPipeline, SerializerAdapter serializerAdapter,
+ Duration defaultPollInterval, AzureEnvironment environment, String subscriptionId, String endpoint) {
this.httpPipeline = httpPipeline;
this.serializerAdapter = serializerAdapter;
this.defaultPollInterval = defaultPollInterval;
this.subscriptionId = subscriptionId;
this.endpoint = endpoint;
- this.apiVersion = "2023-03-01";
+ this.apiVersion = "2024-09-01-preview";
this.configurationStores = new ConfigurationStoresClientImpl(this);
this.operations = new OperationsClientImpl(this);
this.privateEndpointConnections = new PrivateEndpointConnectionsClientImpl(this);
this.privateLinkResources = new PrivateLinkResourcesClientImpl(this);
this.keyValues = new KeyValuesClientImpl(this);
this.replicas = new ReplicasClientImpl(this);
+ this.snapshots = new SnapshotsClientImpl(this);
}
/**
* Gets default client context.
- *
+ *
* @return the default client context.
*/
public Context getContext() {
@@ -227,7 +265,7 @@ public Context getContext() {
/**
* Merges default client context with provided context.
- *
+ *
* @param context the context to be merged with default client context.
* @return the merged context.
*/
@@ -237,7 +275,7 @@ public Context mergeContext(Context context) {
/**
* Gets long running operation result.
- *
+ *
* @param activationResponse the response of activation operation.
* @param httpPipeline the http pipeline.
* @param pollResultType type of poll result.
@@ -247,26 +285,15 @@ public Context mergeContext(Context context) {
* @param type of final result.
* @return poller flux for poll result and final result.
*/
- public PollerFlux, U> getLroResult(
- Mono>> activationResponse,
- HttpPipeline httpPipeline,
- Type pollResultType,
- Type finalResultType,
- Context context) {
- return PollerFactory
- .create(
- serializerAdapter,
- httpPipeline,
- pollResultType,
- finalResultType,
- defaultPollInterval,
- activationResponse,
- context);
+ public PollerFlux, U> getLroResult(Mono>> activationResponse,
+ HttpPipeline httpPipeline, Type pollResultType, Type finalResultType, Context context) {
+ return PollerFactory.create(serializerAdapter, httpPipeline, pollResultType, finalResultType,
+ defaultPollInterval, activationResponse, context);
}
/**
* Gets the final result, or an error, based on last async poll response.
- *
+ *
* @param response the last async poll response.
* @param type of poll result.
* @param type of final result.
@@ -279,19 +306,16 @@ public Mono getLroFinalResultOrError(AsyncPollResponse,
HttpResponse errorResponse = null;
PollResult.Error lroError = response.getValue().getError();
if (lroError != null) {
- errorResponse =
- new HttpResponseImpl(
- lroError.getResponseStatusCode(), lroError.getResponseHeaders(), lroError.getResponseBody());
+ errorResponse = new HttpResponseImpl(lroError.getResponseStatusCode(), lroError.getResponseHeaders(),
+ lroError.getResponseBody());
errorMessage = response.getValue().getError().getMessage();
String errorBody = response.getValue().getError().getResponseBody();
if (errorBody != null) {
// try to deserialize error body to ManagementError
try {
- managementError =
- this
- .getSerializerAdapter()
- .deserialize(errorBody, ManagementError.class, SerializerEncoding.JSON);
+ managementError = this.getSerializerAdapter()
+ .deserialize(errorBody, ManagementError.class, SerializerEncoding.JSON);
if (managementError.getCode() == null || managementError.getMessage() == null) {
managementError = null;
}
@@ -332,7 +356,7 @@ public int getStatusCode() {
}
public String getHeaderValue(String s) {
- return httpHeaders.getValue(s);
+ return httpHeaders.getValue(HttpHeaderName.fromString(s));
}
public HttpHeaders getHeaders() {
diff --git a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/implementation/ConfigurationStoreImpl.java b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/implementation/ConfigurationStoreImpl.java
index b13ff769dabd8..61e51fceed64f 100644
--- a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/implementation/ConfigurationStoreImpl.java
+++ b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/implementation/ConfigurationStoreImpl.java
@@ -14,13 +14,20 @@
import com.azure.resourcemanager.appconfiguration.models.ConfigurationStore;
import com.azure.resourcemanager.appconfiguration.models.ConfigurationStoreUpdateParameters;
import com.azure.resourcemanager.appconfiguration.models.CreateMode;
+import com.azure.resourcemanager.appconfiguration.models.DataPlaneProxyProperties;
import com.azure.resourcemanager.appconfiguration.models.EncryptionProperties;
+import com.azure.resourcemanager.appconfiguration.models.ExperimentationProperties;
import com.azure.resourcemanager.appconfiguration.models.PrivateEndpointConnectionReference;
import com.azure.resourcemanager.appconfiguration.models.ProvisioningState;
import com.azure.resourcemanager.appconfiguration.models.PublicNetworkAccess;
import com.azure.resourcemanager.appconfiguration.models.RegenerateKeyParameters;
+import com.azure.resourcemanager.appconfiguration.models.ResetSasKindParameters;
import com.azure.resourcemanager.appconfiguration.models.ResourceIdentity;
+import com.azure.resourcemanager.appconfiguration.models.SasProperties;
+import com.azure.resourcemanager.appconfiguration.models.SasTokenGenerationParameters;
+import com.azure.resourcemanager.appconfiguration.models.SasTokenGenerationResult;
import com.azure.resourcemanager.appconfiguration.models.Sku;
+import com.azure.resourcemanager.appconfiguration.models.TelemetryProperties;
import java.time.OffsetDateTime;
import java.util.Collections;
import java.util.List;
@@ -102,6 +109,10 @@ public Boolean disableLocalAuth() {
return this.innerModel().disableLocalAuth();
}
+ public SasProperties sas() {
+ return this.innerModel().sas();
+ }
+
public Integer softDeleteRetentionInDays() {
return this.innerModel().softDeleteRetentionInDays();
}
@@ -110,10 +121,22 @@ public Boolean enablePurgeProtection() {
return this.innerModel().enablePurgeProtection();
}
+ public DataPlaneProxyProperties dataPlaneProxy() {
+ return this.innerModel().dataPlaneProxy();
+ }
+
public CreateMode createMode() {
return this.innerModel().createMode();
}
+ public TelemetryProperties telemetry() {
+ return this.innerModel().telemetry();
+ }
+
+ public ExperimentationProperties experimentation() {
+ return this.innerModel().experimentation();
+ }
+
public Region region() {
return Region.fromName(this.regionName());
}
@@ -146,25 +169,21 @@ public ConfigurationStoreImpl withExistingResourceGroup(String resourceGroupName
}
public ConfigurationStore create() {
- this.innerObject =
- serviceManager
- .serviceClient()
- .getConfigurationStores()
- .create(resourceGroupName, configStoreName, this.innerModel(), Context.NONE);
+ this.innerObject = serviceManager.serviceClient()
+ .getConfigurationStores()
+ .create(resourceGroupName, configStoreName, this.innerModel(), Context.NONE);
return this;
}
public ConfigurationStore create(Context context) {
- this.innerObject =
- serviceManager
- .serviceClient()
- .getConfigurationStores()
- .create(resourceGroupName, configStoreName, this.innerModel(), context);
+ this.innerObject = serviceManager.serviceClient()
+ .getConfigurationStores()
+ .create(resourceGroupName, configStoreName, this.innerModel(), context);
return this;
}
- ConfigurationStoreImpl(
- String name, com.azure.resourcemanager.appconfiguration.AppConfigurationManager serviceManager) {
+ ConfigurationStoreImpl(String name,
+ com.azure.resourcemanager.appconfiguration.AppConfigurationManager serviceManager) {
this.innerObject = new ConfigurationStoreInner();
this.serviceManager = serviceManager;
this.configStoreName = name;
@@ -176,49 +195,40 @@ public ConfigurationStoreImpl update() {
}
public ConfigurationStore apply() {
- this.innerObject =
- serviceManager
- .serviceClient()
- .getConfigurationStores()
- .update(resourceGroupName, configStoreName, updateConfigStoreUpdateParameters, Context.NONE);
+ this.innerObject = serviceManager.serviceClient()
+ .getConfigurationStores()
+ .update(resourceGroupName, configStoreName, updateConfigStoreUpdateParameters, Context.NONE);
return this;
}
public ConfigurationStore apply(Context context) {
- this.innerObject =
- serviceManager
- .serviceClient()
- .getConfigurationStores()
- .update(resourceGroupName, configStoreName, updateConfigStoreUpdateParameters, context);
+ this.innerObject = serviceManager.serviceClient()
+ .getConfigurationStores()
+ .update(resourceGroupName, configStoreName, updateConfigStoreUpdateParameters, context);
return this;
}
- ConfigurationStoreImpl(
- ConfigurationStoreInner innerObject,
+ ConfigurationStoreImpl(ConfigurationStoreInner innerObject,
com.azure.resourcemanager.appconfiguration.AppConfigurationManager serviceManager) {
this.innerObject = innerObject;
this.serviceManager = serviceManager;
- this.resourceGroupName = Utils.getValueFromIdByName(innerObject.id(), "resourceGroups");
- this.configStoreName = Utils.getValueFromIdByName(innerObject.id(), "configurationStores");
+ this.resourceGroupName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "resourceGroups");
+ this.configStoreName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "configurationStores");
}
public ConfigurationStore refresh() {
- this.innerObject =
- serviceManager
- .serviceClient()
- .getConfigurationStores()
- .getByResourceGroupWithResponse(resourceGroupName, configStoreName, Context.NONE)
- .getValue();
+ this.innerObject = serviceManager.serviceClient()
+ .getConfigurationStores()
+ .getByResourceGroupWithResponse(resourceGroupName, configStoreName, Context.NONE)
+ .getValue();
return this;
}
public ConfigurationStore refresh(Context context) {
- this.innerObject =
- serviceManager
- .serviceClient()
- .getConfigurationStores()
- .getByResourceGroupWithResponse(resourceGroupName, configStoreName, context)
- .getValue();
+ this.innerObject = serviceManager.serviceClient()
+ .getConfigurationStores()
+ .getByResourceGroupWithResponse(resourceGroupName, configStoreName, context)
+ .getValue();
return this;
}
@@ -230,19 +240,37 @@ public PagedIterable listKeys(String skipToken, Context context) {
return serviceManager.configurationStores().listKeys(resourceGroupName, configStoreName, skipToken, context);
}
- public Response regenerateKeyWithResponse(
- RegenerateKeyParameters regenerateKeyParameters, Context context) {
- return serviceManager
- .configurationStores()
+ public Response regenerateKeyWithResponse(RegenerateKeyParameters regenerateKeyParameters,
+ Context context) {
+ return serviceManager.configurationStores()
.regenerateKeyWithResponse(resourceGroupName, configStoreName, regenerateKeyParameters, context);
}
public ApiKey regenerateKey(RegenerateKeyParameters regenerateKeyParameters) {
- return serviceManager
- .configurationStores()
+ return serviceManager.configurationStores()
.regenerateKey(resourceGroupName, configStoreName, regenerateKeyParameters);
}
+ public Response
+ generateSasTokenWithResponse(SasTokenGenerationParameters sasTokenGenerationParameters, Context context) {
+ return serviceManager.configurationStores()
+ .generateSasTokenWithResponse(resourceGroupName, configStoreName, sasTokenGenerationParameters, context);
+ }
+
+ public SasTokenGenerationResult generateSasToken(SasTokenGenerationParameters sasTokenGenerationParameters) {
+ return serviceManager.configurationStores()
+ .generateSasToken(resourceGroupName, configStoreName, sasTokenGenerationParameters);
+ }
+
+ public Response resetSasKindWithResponse(ResetSasKindParameters resetSasKindParameters, Context context) {
+ return serviceManager.configurationStores()
+ .resetSasKindWithResponse(resourceGroupName, configStoreName, resetSasKindParameters, context);
+ }
+
+ public void resetSasKind(ResetSasKindParameters resetSasKindParameters) {
+ serviceManager.configurationStores().resetSasKind(resourceGroupName, configStoreName, resetSasKindParameters);
+ }
+
public ConfigurationStoreImpl withRegion(Region location) {
this.innerModel().withLocation(location.toString());
return this;
@@ -313,6 +341,16 @@ public ConfigurationStoreImpl withDisableLocalAuth(Boolean disableLocalAuth) {
}
}
+ public ConfigurationStoreImpl withSas(SasProperties sas) {
+ if (isInCreateMode()) {
+ this.innerModel().withSas(sas);
+ return this;
+ } else {
+ this.updateConfigStoreUpdateParameters.withSas(sas);
+ return this;
+ }
+ }
+
public ConfigurationStoreImpl withSoftDeleteRetentionInDays(Integer softDeleteRetentionInDays) {
this.innerModel().withSoftDeleteRetentionInDays(softDeleteRetentionInDays);
return this;
@@ -328,11 +366,41 @@ public ConfigurationStoreImpl withEnablePurgeProtection(Boolean enablePurgeProte
}
}
+ public ConfigurationStoreImpl withDataPlaneProxy(DataPlaneProxyProperties dataPlaneProxy) {
+ if (isInCreateMode()) {
+ this.innerModel().withDataPlaneProxy(dataPlaneProxy);
+ return this;
+ } else {
+ this.updateConfigStoreUpdateParameters.withDataPlaneProxy(dataPlaneProxy);
+ return this;
+ }
+ }
+
public ConfigurationStoreImpl withCreateMode(CreateMode createMode) {
this.innerModel().withCreateMode(createMode);
return this;
}
+ public ConfigurationStoreImpl withTelemetry(TelemetryProperties telemetry) {
+ if (isInCreateMode()) {
+ this.innerModel().withTelemetry(telemetry);
+ return this;
+ } else {
+ this.updateConfigStoreUpdateParameters.withTelemetry(telemetry);
+ return this;
+ }
+ }
+
+ public ConfigurationStoreImpl withExperimentation(ExperimentationProperties experimentation) {
+ if (isInCreateMode()) {
+ this.innerModel().withExperimentation(experimentation);
+ return this;
+ } else {
+ this.updateConfigStoreUpdateParameters.withExperimentation(experimentation);
+ return this;
+ }
+ }
+
private boolean isInCreateMode() {
return this.innerModel().id() == null;
}
diff --git a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/implementation/ConfigurationStoresClientImpl.java b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/implementation/ConfigurationStoresClientImpl.java
index 6cfa8b83596d4..76ea191d067d2 100644
--- a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/implementation/ConfigurationStoresClientImpl.java
+++ b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/implementation/ConfigurationStoresClientImpl.java
@@ -37,31 +37,40 @@
import com.azure.resourcemanager.appconfiguration.fluent.models.ApiKeyInner;
import com.azure.resourcemanager.appconfiguration.fluent.models.ConfigurationStoreInner;
import com.azure.resourcemanager.appconfiguration.fluent.models.DeletedConfigurationStoreInner;
+import com.azure.resourcemanager.appconfiguration.fluent.models.SasTokenGenerationResultInner;
import com.azure.resourcemanager.appconfiguration.models.ApiKeyListResult;
import com.azure.resourcemanager.appconfiguration.models.ConfigurationStoreListResult;
import com.azure.resourcemanager.appconfiguration.models.ConfigurationStoreUpdateParameters;
import com.azure.resourcemanager.appconfiguration.models.DeletedConfigurationStoreListResult;
import com.azure.resourcemanager.appconfiguration.models.RegenerateKeyParameters;
+import com.azure.resourcemanager.appconfiguration.models.ResetSasKindParameters;
+import com.azure.resourcemanager.appconfiguration.models.SasTokenGenerationParameters;
import java.nio.ByteBuffer;
import reactor.core.publisher.Flux;
import reactor.core.publisher.Mono;
-/** An instance of this class provides access to all the operations defined in ConfigurationStoresClient. */
+/**
+ * An instance of this class provides access to all the operations defined in ConfigurationStoresClient.
+ */
public final class ConfigurationStoresClientImpl implements ConfigurationStoresClient {
- /** The proxy service used to perform REST calls. */
+ /**
+ * The proxy service used to perform REST calls.
+ */
private final ConfigurationStoresService service;
- /** The service client containing this operation class. */
+ /**
+ * The service client containing this operation class.
+ */
private final AppConfigurationManagementClientImpl client;
/**
* Initializes an instance of ConfigurationStoresClientImpl.
- *
+ *
* @param client the instance of the service client containing this operation class.
*/
ConfigurationStoresClientImpl(AppConfigurationManagementClientImpl client) {
- this.service =
- RestProxy.create(ConfigurationStoresService.class, client.getHttpPipeline(), client.getSerializerAdapter());
+ this.service = RestProxy.create(ConfigurationStoresService.class, client.getHttpPipeline(),
+ client.getSerializerAdapter());
this.client = client;
}
@@ -72,304 +81,235 @@ public final class ConfigurationStoresClientImpl implements ConfigurationStoresC
@Host("{$host}")
@ServiceInterface(name = "AppConfigurationMana")
public interface ConfigurationStoresService {
- @Headers({"Content-Type: application/json"})
+ @Headers({ "Content-Type: application/json" })
@Get("/subscriptions/{subscriptionId}/providers/Microsoft.AppConfiguration/configurationStores")
- @ExpectedResponses({200})
+ @ExpectedResponses({ 200 })
@UnexpectedResponseExceptionType(ManagementException.class)
- Mono> list(
- @HostParam("$host") String endpoint,
- @PathParam("subscriptionId") String subscriptionId,
- @QueryParam("api-version") String apiVersion,
- @QueryParam("$skipToken") String skipToken,
- @HeaderParam("Accept") String accept,
- Context context);
-
- @Headers({"Content-Type: application/json"})
- @Get(
- "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppConfiguration/configurationStores")
- @ExpectedResponses({200})
+ Mono> list(@HostParam("$host") String endpoint,
+ @PathParam("subscriptionId") String subscriptionId, @QueryParam("api-version") String apiVersion,
+ @QueryParam("$skipToken") String skipToken, @HeaderParam("Accept") String accept, Context context);
+
+ @Headers({ "Content-Type: application/json" })
+ @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppConfiguration/configurationStores")
+ @ExpectedResponses({ 200 })
@UnexpectedResponseExceptionType(ManagementException.class)
- Mono> listByResourceGroup(
- @HostParam("$host") String endpoint,
+ Mono> listByResourceGroup(@HostParam("$host") String endpoint,
@PathParam("subscriptionId") String subscriptionId,
- @PathParam("resourceGroupName") String resourceGroupName,
- @QueryParam("api-version") String apiVersion,
- @QueryParam("$skipToken") String skipToken,
- @HeaderParam("Accept") String accept,
- Context context);
-
- @Headers({"Content-Type: application/json"})
- @Get(
- "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppConfiguration/configurationStores/{configStoreName}")
- @ExpectedResponses({200})
+ @PathParam("resourceGroupName") String resourceGroupName, @QueryParam("api-version") String apiVersion,
+ @QueryParam("$skipToken") String skipToken, @HeaderParam("Accept") String accept, Context context);
+
+ @Headers({ "Content-Type: application/json" })
+ @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppConfiguration/configurationStores/{configStoreName}")
+ @ExpectedResponses({ 200 })
@UnexpectedResponseExceptionType(ManagementException.class)
- Mono> getByResourceGroup(
- @HostParam("$host") String endpoint,
+ Mono> getByResourceGroup(@HostParam("$host") String endpoint,
@PathParam("subscriptionId") String subscriptionId,
@PathParam("resourceGroupName") String resourceGroupName,
- @PathParam("configStoreName") String configStoreName,
- @QueryParam("api-version") String apiVersion,
- @HeaderParam("Accept") String accept,
- Context context);
-
- @Headers({"Content-Type: application/json"})
- @Put(
- "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppConfiguration/configurationStores/{configStoreName}")
- @ExpectedResponses({200, 201})
+ @PathParam("configStoreName") String configStoreName, @QueryParam("api-version") String apiVersion,
+ @HeaderParam("Accept") String accept, Context context);
+
+ @Headers({ "Content-Type: application/json" })
+ @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppConfiguration/configurationStores/{configStoreName}")
+ @ExpectedResponses({ 200, 201 })
@UnexpectedResponseExceptionType(ManagementException.class)
- Mono>> create(
- @HostParam("$host") String endpoint,
+ Mono>> create(@HostParam("$host") String endpoint,
@PathParam("subscriptionId") String subscriptionId,
@PathParam("resourceGroupName") String resourceGroupName,
- @PathParam("configStoreName") String configStoreName,
- @QueryParam("api-version") String apiVersion,
+ @PathParam("configStoreName") String configStoreName, @QueryParam("api-version") String apiVersion,
@BodyParam("application/json") ConfigurationStoreInner configStoreCreationParameters,
- @HeaderParam("Accept") String accept,
- Context context);
+ @HeaderParam("Accept") String accept, Context context);
- @Headers({"Content-Type: application/json"})
- @Delete(
- "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppConfiguration/configurationStores/{configStoreName}")
- @ExpectedResponses({200, 202, 204})
+ @Headers({ "Content-Type: application/json" })
+ @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppConfiguration/configurationStores/{configStoreName}")
+ @ExpectedResponses({ 200, 202, 204 })
@UnexpectedResponseExceptionType(ManagementException.class)
- Mono>> delete(
- @HostParam("$host") String endpoint,
+ Mono>> delete(@HostParam("$host") String endpoint,
@PathParam("subscriptionId") String subscriptionId,
@PathParam("resourceGroupName") String resourceGroupName,
- @PathParam("configStoreName") String configStoreName,
- @QueryParam("api-version") String apiVersion,
- @HeaderParam("Accept") String accept,
- Context context);
-
- @Headers({"Content-Type: application/json"})
- @Patch(
- "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppConfiguration/configurationStores/{configStoreName}")
- @ExpectedResponses({200, 201})
+ @PathParam("configStoreName") String configStoreName, @QueryParam("api-version") String apiVersion,
+ @HeaderParam("Accept") String accept, Context context);
+
+ @Headers({ "Content-Type: application/json" })
+ @Patch("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppConfiguration/configurationStores/{configStoreName}")
+ @ExpectedResponses({ 200, 201 })
@UnexpectedResponseExceptionType(ManagementException.class)
- Mono>> update(
- @HostParam("$host") String endpoint,
+ Mono>> update(@HostParam("$host") String endpoint,
@PathParam("subscriptionId") String subscriptionId,
@PathParam("resourceGroupName") String resourceGroupName,
- @PathParam("configStoreName") String configStoreName,
- @QueryParam("api-version") String apiVersion,
+ @PathParam("configStoreName") String configStoreName, @QueryParam("api-version") String apiVersion,
@BodyParam("application/json") ConfigurationStoreUpdateParameters configStoreUpdateParameters,
- @HeaderParam("Accept") String accept,
- Context context);
+ @HeaderParam("Accept") String accept, Context context);
- @Headers({"Content-Type: application/json"})
- @Post(
- "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppConfiguration/configurationStores/{configStoreName}/listKeys")
- @ExpectedResponses({200})
+ @Headers({ "Content-Type: application/json" })
+ @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppConfiguration/configurationStores/{configStoreName}/listKeys")
+ @ExpectedResponses({ 200 })
@UnexpectedResponseExceptionType(ManagementException.class)
- Mono> listKeys(
- @HostParam("$host") String endpoint,
+ Mono> listKeys(@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);
-
- @Headers({"Content-Type: application/json"})
- @Post(
- "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppConfiguration/configurationStores/{configStoreName}/regenerateKey")
- @ExpectedResponses({200})
+ @PathParam("configStoreName") String configStoreName, @QueryParam("api-version") String apiVersion,
+ @QueryParam("$skipToken") String skipToken, @HeaderParam("Accept") String accept, Context context);
+
+ @Headers({ "Content-Type: application/json" })
+ @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppConfiguration/configurationStores/{configStoreName}/regenerateKey")
+ @ExpectedResponses({ 200 })
@UnexpectedResponseExceptionType(ManagementException.class)
- Mono> regenerateKey(
- @HostParam("$host") String endpoint,
+ Mono> regenerateKey(@HostParam("$host") String endpoint,
@PathParam("subscriptionId") String subscriptionId,
@PathParam("resourceGroupName") String resourceGroupName,
- @PathParam("configStoreName") String configStoreName,
- @QueryParam("api-version") String apiVersion,
+ @PathParam("configStoreName") String configStoreName, @QueryParam("api-version") String apiVersion,
@BodyParam("application/json") RegenerateKeyParameters regenerateKeyParameters,
- @HeaderParam("Accept") String accept,
- Context context);
+ @HeaderParam("Accept") String accept, Context context);
- @Headers({"Content-Type: application/json"})
- @Get("/subscriptions/{subscriptionId}/providers/Microsoft.AppConfiguration/deletedConfigurationStores")
- @ExpectedResponses({200})
+ @Headers({ "Content-Type: application/json" })
+ @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppConfiguration/configurationStores/{configStoreName}/generateSasToken")
+ @ExpectedResponses({ 200 })
@UnexpectedResponseExceptionType(ManagementException.class)
- Mono> listDeleted(
- @HostParam("$host") String endpoint,
- @QueryParam("api-version") String apiVersion,
+ Mono> generateSasToken(@HostParam("$host") String endpoint,
@PathParam("subscriptionId") String subscriptionId,
- @HeaderParam("Accept") String accept,
- Context context);
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("configStoreName") String configStoreName, @QueryParam("api-version") String apiVersion,
+ @BodyParam("application/json") SasTokenGenerationParameters sasTokenGenerationParameters,
+ @HeaderParam("Accept") String accept, Context context);
- @Headers({"Content-Type: application/json"})
- @Get(
- "/subscriptions/{subscriptionId}/providers/Microsoft.AppConfiguration/locations/{location}/deletedConfigurationStores/{configStoreName}")
- @ExpectedResponses({200})
+ @Headers({ "Content-Type: application/json" })
+ @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppConfiguration/configurationStores/{configStoreName}/resetSasKind")
+ @ExpectedResponses({ 200 })
@UnexpectedResponseExceptionType(ManagementException.class)
- Mono> getDeleted(
- @HostParam("$host") String endpoint,
- @QueryParam("api-version") String apiVersion,
+ Mono> resetSasKind(@HostParam("$host") String endpoint,
@PathParam("subscriptionId") String subscriptionId,
- @PathParam("location") String location,
- @PathParam("configStoreName") String configStoreName,
- @HeaderParam("Accept") String accept,
- Context context);
-
- @Headers({"Content-Type: application/json"})
- @Post(
- "/subscriptions/{subscriptionId}/providers/Microsoft.AppConfiguration/locations/{location}/deletedConfigurationStores/{configStoreName}/purge")
- @ExpectedResponses({200, 202, 204})
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("configStoreName") String configStoreName, @QueryParam("api-version") String apiVersion,
+ @BodyParam("application/json") ResetSasKindParameters resetSasKindParameters,
+ @HeaderParam("Accept") String accept, Context context);
+
+ @Headers({ "Content-Type: application/json" })
+ @Get("/subscriptions/{subscriptionId}/providers/Microsoft.AppConfiguration/deletedConfigurationStores")
+ @ExpectedResponses({ 200 })
@UnexpectedResponseExceptionType(ManagementException.class)
- Mono>> purgeDeleted(
- @HostParam("$host") String endpoint,
- @QueryParam("api-version") String apiVersion,
- @PathParam("subscriptionId") String subscriptionId,
- @PathParam("location") String location,
- @PathParam("configStoreName") String configStoreName,
- @HeaderParam("Accept") String accept,
- Context context);
+ Mono> listDeleted(@HostParam("$host") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
+ @HeaderParam("Accept") String accept, Context context);
+
+ @Headers({ "Content-Type: application/json" })
+ @Get("/subscriptions/{subscriptionId}/providers/Microsoft.AppConfiguration/locations/{location}/deletedConfigurationStores/{configStoreName}")
+ @ExpectedResponses({ 200 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> getDeleted(@HostParam("$host") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("location") String location, @PathParam("configStoreName") String configStoreName,
+ @HeaderParam("Accept") String accept, Context context);
+
+ @Headers({ "Content-Type: application/json" })
+ @Post("/subscriptions/{subscriptionId}/providers/Microsoft.AppConfiguration/locations/{location}/deletedConfigurationStores/{configStoreName}/purge")
+ @ExpectedResponses({ 200, 202, 204 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono>> purgeDeleted(@HostParam("$host") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("location") String location, @PathParam("configStoreName") String configStoreName,
+ @HeaderParam("Accept") String accept, Context context);
- @Headers({"Content-Type: application/json"})
+ @Headers({ "Content-Type: application/json" })
@Get("{nextLink}")
- @ExpectedResponses({200})
+ @ExpectedResponses({ 200 })
@UnexpectedResponseExceptionType(ManagementException.class)
Mono> listNext(
- @PathParam(value = "nextLink", encoded = true) String nextLink,
- @HostParam("$host") String endpoint,
- @HeaderParam("Accept") String accept,
- Context context);
+ @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("$host") String endpoint,
+ @HeaderParam("Accept") String accept, Context context);
- @Headers({"Content-Type: application/json"})
+ @Headers({ "Content-Type: application/json" })
@Get("{nextLink}")
- @ExpectedResponses({200})
+ @ExpectedResponses({ 200 })
@UnexpectedResponseExceptionType(ManagementException.class)
Mono> listByResourceGroupNext(
- @PathParam(value = "nextLink", encoded = true) String nextLink,
- @HostParam("$host") String endpoint,
- @HeaderParam("Accept") String accept,
- Context context);
+ @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("$host") String endpoint,
+ @HeaderParam("Accept") String accept, Context context);
- @Headers({"Content-Type: application/json"})
+ @Headers({ "Content-Type: application/json" })
@Get("{nextLink}")
- @ExpectedResponses({200})
+ @ExpectedResponses({ 200 })
@UnexpectedResponseExceptionType(ManagementException.class)
- Mono> listKeysNext(
- @PathParam(value = "nextLink", encoded = true) String nextLink,
- @HostParam("$host") String endpoint,
- @HeaderParam("Accept") String accept,
- Context context);
+ Mono> listKeysNext(@PathParam(value = "nextLink", encoded = true) String nextLink,
+ @HostParam("$host") String endpoint, @HeaderParam("Accept") String accept, Context context);
- @Headers({"Content-Type: application/json"})
+ @Headers({ "Content-Type: application/json" })
@Get("{nextLink}")
- @ExpectedResponses({200})
+ @ExpectedResponses({ 200 })
@UnexpectedResponseExceptionType(ManagementException.class)
Mono> listDeletedNext(
- @PathParam(value = "nextLink", encoded = true) String nextLink,
- @HostParam("$host") String endpoint,
- @HeaderParam("Accept") String accept,
- Context context);
+ @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("$host") String endpoint,
+ @HeaderParam("Accept") String accept, Context context);
}
/**
* Lists the configuration stores for a given subscription.
- *
+ *
* @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.
+ * 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 configuration stores along with {@link PagedResponse} on successful
- * completion of {@link Mono}.
+ * completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> listSinglePageAsync(String skipToken) {
if (this.client.getEndpoint() == null) {
- return Mono
- .error(
- new IllegalArgumentException(
- "Parameter this.client.getEndpoint() is required and cannot be 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."));
+ return Mono.error(new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
}
final String accept = "application/json";
return FluxUtil
- .withContext(
- context ->
- service
- .list(
- this.client.getEndpoint(),
- this.client.getSubscriptionId(),
- this.client.getApiVersion(),
- skipToken,
- accept,
- context))
- .>map(
- res ->
- new PagedResponseBase<>(
- res.getRequest(),
- res.getStatusCode(),
- res.getHeaders(),
- res.getValue().value(),
- res.getValue().nextLink(),
- null))
+ .withContext(context -> service.list(this.client.getEndpoint(), this.client.getSubscriptionId(),
+ 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 configuration stores for a given subscription.
- *
+ *
* @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.
+ * 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 configuration stores along with {@link PagedResponse} on successful
- * completion of {@link Mono}.
+ * completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> listSinglePageAsync(String skipToken, Context context) {
if (this.client.getEndpoint() == null) {
- return Mono
- .error(
- new IllegalArgumentException(
- "Parameter this.client.getEndpoint() is required and cannot be 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."));
+ return Mono.error(new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
}
final String accept = "application/json";
context = this.client.mergeContext(context);
return service
- .list(
- this.client.getEndpoint(),
- this.client.getSubscriptionId(),
- this.client.getApiVersion(),
- skipToken,
- accept,
- context)
- .map(
- res ->
- new PagedResponseBase<>(
- res.getRequest(),
- res.getStatusCode(),
- res.getHeaders(),
- res.getValue().value(),
- res.getValue().nextLink(),
- null));
+ .list(this.client.getEndpoint(), this.client.getSubscriptionId(), 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 configuration stores for a given subscription.
- *
+ *
* @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.
+ * 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.
@@ -382,7 +322,7 @@ private PagedFlux listAsync(String skipToken) {
/**
* Lists the configuration stores for a given subscription.
- *
+ *
* @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 configuration stores as paginated response with {@link PagedFlux}.
@@ -395,10 +335,10 @@ private PagedFlux listAsync() {
/**
* Lists the configuration stores for a given subscription.
- *
+ *
* @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.
+ * 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.
@@ -407,13 +347,13 @@ private PagedFlux listAsync() {
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
private PagedFlux listAsync(String skipToken, Context context) {
- return new PagedFlux<>(
- () -> listSinglePageAsync(skipToken, context), nextLink -> listNextSinglePageAsync(nextLink, context));
+ return new PagedFlux<>(() -> listSinglePageAsync(skipToken, context),
+ nextLink -> listNextSinglePageAsync(nextLink, context));
}
/**
* Lists the configuration stores for a given subscription.
- *
+ *
* @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 configuration stores as paginated response with {@link PagedIterable}.
@@ -426,10 +366,10 @@ public PagedIterable list() {
/**
* Lists the configuration stores for a given subscription.
- *
+ *
* @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.
+ * 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.
@@ -443,31 +383,27 @@ public PagedIterable list(String skipToken, Context con
/**
* Lists the configuration stores for a given resource group.
- *
+ *
* @param resourceGroupName The name of the resource group to which the container registry belongs.
* @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.
+ * 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 configuration stores along with {@link PagedResponse} on successful
- * completion of {@link Mono}.
+ * completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- private Mono> listByResourceGroupSinglePageAsync(
- String resourceGroupName, String skipToken) {
+ private Mono> listByResourceGroupSinglePageAsync(String resourceGroupName,
+ String skipToken) {
if (this.client.getEndpoint() == null) {
- return Mono
- .error(
- new IllegalArgumentException(
- "Parameter this.client.getEndpoint() is required and cannot be 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."));
+ return Mono.error(new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
}
if (resourceGroupName == null) {
return Mono
@@ -476,56 +412,37 @@ private Mono> listByResourceGroupSinglePa
final String accept = "application/json";
return FluxUtil
.withContext(
- context ->
- service
- .listByResourceGroup(
- this.client.getEndpoint(),
- this.client.getSubscriptionId(),
- resourceGroupName,
- this.client.getApiVersion(),
- skipToken,
- accept,
- context))
- .>map(
- res ->
- new PagedResponseBase<>(
- res.getRequest(),
- res.getStatusCode(),
- res.getHeaders(),
- res.getValue().value(),
- res.getValue().nextLink(),
- null))
+ context -> service.listByResourceGroup(this.client.getEndpoint(), this.client.getSubscriptionId(),
+ resourceGroupName, 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 configuration stores for a given resource group.
- *
+ *
* @param resourceGroupName The name of the resource group to which the container registry belongs.
* @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.
+ * 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 configuration stores along with {@link PagedResponse} on successful
- * completion of {@link Mono}.
+ * completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- private Mono> listByResourceGroupSinglePageAsync(
- String resourceGroupName, String skipToken, Context context) {
+ private Mono> listByResourceGroupSinglePageAsync(String resourceGroupName,
+ String skipToken, Context context) {
if (this.client.getEndpoint() == null) {
- return Mono
- .error(
- new IllegalArgumentException(
- "Parameter this.client.getEndpoint() is required and cannot be 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."));
+ return Mono.error(new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
}
if (resourceGroupName == null) {
return Mono
@@ -534,32 +451,19 @@ private Mono> listByResourceGroupSinglePa
final String accept = "application/json";
context = this.client.mergeContext(context);
return service
- .listByResourceGroup(
- this.client.getEndpoint(),
- this.client.getSubscriptionId(),
- resourceGroupName,
- this.client.getApiVersion(),
- skipToken,
- accept,
- context)
- .map(
- res ->
- new PagedResponseBase<>(
- res.getRequest(),
- res.getStatusCode(),
- res.getHeaders(),
- res.getValue().value(),
- res.getValue().nextLink(),
- null));
+ .listByResourceGroup(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName,
+ 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 configuration stores for a given resource group.
- *
+ *
* @param resourceGroupName The name of the resource group to which the container registry belongs.
* @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.
+ * 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.
@@ -567,14 +471,13 @@ private Mono> listByResourceGroupSinglePa
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
private PagedFlux listByResourceGroupAsync(String resourceGroupName, String skipToken) {
- return new PagedFlux<>(
- () -> listByResourceGroupSinglePageAsync(resourceGroupName, skipToken),
+ return new PagedFlux<>(() -> listByResourceGroupSinglePageAsync(resourceGroupName, skipToken),
nextLink -> listByResourceGroupNextSinglePageAsync(nextLink));
}
/**
* Lists the configuration stores for a given resource group.
- *
+ *
* @param resourceGroupName The name of the resource group to which the container registry belongs.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
@@ -584,18 +487,17 @@ private PagedFlux listByResourceGroupAsync(String resou
@ServiceMethod(returns = ReturnType.COLLECTION)
private PagedFlux listByResourceGroupAsync(String resourceGroupName) {
final String skipToken = null;
- return new PagedFlux<>(
- () -> listByResourceGroupSinglePageAsync(resourceGroupName, skipToken),
+ return new PagedFlux<>(() -> listByResourceGroupSinglePageAsync(resourceGroupName, skipToken),
nextLink -> listByResourceGroupNextSinglePageAsync(nextLink));
}
/**
* Lists the configuration stores for a given resource group.
- *
+ *
* @param resourceGroupName The name of the resource group to which the container registry belongs.
* @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.
+ * 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.
@@ -603,16 +505,15 @@ private PagedFlux listByResourceGroupAsync(String resou
* @return the result of a request to list configuration stores as paginated response with {@link PagedFlux}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
- private PagedFlux listByResourceGroupAsync(
- String resourceGroupName, String skipToken, Context context) {
- return new PagedFlux<>(
- () -> listByResourceGroupSinglePageAsync(resourceGroupName, skipToken, context),
+ private PagedFlux listByResourceGroupAsync(String resourceGroupName, String skipToken,
+ Context context) {
+ return new PagedFlux<>(() -> listByResourceGroupSinglePageAsync(resourceGroupName, skipToken, context),
nextLink -> listByResourceGroupNextSinglePageAsync(nextLink, context));
}
/**
* Lists the configuration stores for a given resource group.
- *
+ *
* @param resourceGroupName The name of the resource group to which the container registry belongs.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
@@ -627,11 +528,11 @@ public PagedIterable listByResourceGroup(String resourc
/**
* Lists the configuration stores for a given resource group.
- *
+ *
* @param resourceGroupName The name of the resource group to which the container registry belongs.
* @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.
+ * 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.
@@ -639,36 +540,32 @@ public PagedIterable listByResourceGroup(String resourc
* @return the result of a request to list configuration stores as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
- public PagedIterable listByResourceGroup(
- String resourceGroupName, String skipToken, Context context) {
+ public PagedIterable listByResourceGroup(String resourceGroupName, String skipToken,
+ Context context) {
return new PagedIterable<>(listByResourceGroupAsync(resourceGroupName, skipToken, 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.
* @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 configuration store along with {@link Response} on successful completion
- * of {@link Mono}.
+ * of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- private Mono> getByResourceGroupWithResponseAsync(
- String resourceGroupName, String configStoreName) {
+ private Mono