scopes = new ArrayList<>();
private RetryPolicy retryPolicy;
+ private RetryOptions retryOptions;
private Duration defaultPollInterval;
private Configurable() {
@@ -212,6 +231,17 @@ public Configurable withPolicy(HttpPipelinePolicy policy) {
return this;
}
+ /**
+ * Adds the scope to permission sets.
+ *
+ * @param scope the scope.
+ * @return the configurable object itself.
+ */
+ public Configurable withScope(String scope) {
+ this.scopes.add(Objects.requireNonNull(scope, "'scope' cannot be null."));
+ return this;
+ }
+
/**
* Sets the retry policy to the HTTP pipeline.
*
@@ -223,6 +253,19 @@ public Configurable withRetryPolicy(RetryPolicy retryPolicy) {
return this;
}
+ /**
+ * Sets the retry options for the HTTP pipeline retry policy.
+ *
+ * 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.
+ */
+ public Configurable withRetryOptions(RetryOptions retryOptions) {
+ this.retryOptions = Objects.requireNonNull(retryOptions, "'retryOptions' cannot be null.");
+ return this;
+ }
+
/**
* Sets the default poll interval, used when service does not provide "Retry-After" header.
*
@@ -230,9 +273,11 @@ public Configurable withRetryPolicy(RetryPolicy retryPolicy) {
* @return the configurable object itself.
*/
public Configurable withDefaultPollInterval(Duration defaultPollInterval) {
- this.defaultPollInterval = Objects.requireNonNull(defaultPollInterval, "'retryPolicy' cannot be null.");
+ this.defaultPollInterval =
+ Objects.requireNonNull(defaultPollInterval, "'defaultPollInterval' cannot be null.");
if (this.defaultPollInterval.isNegative()) {
- throw logger.logExceptionAsError(new IllegalArgumentException("'httpPipeline' cannot be negative"));
+ throw LOGGER
+ .logExceptionAsError(new IllegalArgumentException("'defaultPollInterval' cannot be negative"));
}
return this;
}
@@ -268,20 +313,38 @@ public MariaDBManager authenticate(TokenCredential credential, AzureProfile prof
userAgentBuilder.append(" (auto-generated)");
}
+ if (scopes.isEmpty()) {
+ scopes.add(profile.getEnvironment().getManagementEndpoint() + "/.default");
+ }
if (retryPolicy == null) {
- retryPolicy = new RetryPolicy("Retry-After", ChronoUnit.SECONDS);
+ if (retryOptions != null) {
+ retryPolicy = new RetryPolicy(retryOptions);
+ } else {
+ retryPolicy = new RetryPolicy("Retry-After", ChronoUnit.SECONDS);
+ }
}
List policies = new ArrayList<>();
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()));
HttpPolicyProviders.addBeforeRetryPolicies(policies);
policies.add(retryPolicy);
policies.add(new AddDatePolicy());
+ policies.add(new ArmChallengeAuthenticationPolicy(credential, scopes.toArray(new String[0])));
policies
- .add(
- new BearerTokenAuthenticationPolicy(
- credential, profile.getEnvironment().getManagementEndpoint() + "/.default"));
- policies.addAll(this.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 =
@@ -293,7 +356,11 @@ public MariaDBManager authenticate(TokenCredential credential, AzureProfile prof
}
}
- /** @return Resource collection API of Servers. */
+ /**
+ * Gets the resource collection API of Servers. It manages Server.
+ *
+ * @return Resource collection API of Servers.
+ */
public Servers servers() {
if (this.servers == null) {
this.servers = new ServersImpl(clientObject.getServers(), this);
@@ -301,7 +368,11 @@ public Servers servers() {
return servers;
}
- /** @return Resource collection API of Replicas. */
+ /**
+ * Gets the resource collection API of Replicas.
+ *
+ * @return Resource collection API of Replicas.
+ */
public Replicas replicas() {
if (this.replicas == null) {
this.replicas = new ReplicasImpl(clientObject.getReplicas(), this);
@@ -309,7 +380,11 @@ public Replicas replicas() {
return replicas;
}
- /** @return Resource collection API of FirewallRules. */
+ /**
+ * Gets the resource collection API of FirewallRules. It manages FirewallRule.
+ *
+ * @return Resource collection API of FirewallRules.
+ */
public FirewallRules firewallRules() {
if (this.firewallRules == null) {
this.firewallRules = new FirewallRulesImpl(clientObject.getFirewallRules(), this);
@@ -317,7 +392,11 @@ public FirewallRules firewallRules() {
return firewallRules;
}
- /** @return Resource collection API of VirtualNetworkRules. */
+ /**
+ * Gets the resource collection API of VirtualNetworkRules. It manages VirtualNetworkRule.
+ *
+ * @return Resource collection API of VirtualNetworkRules.
+ */
public VirtualNetworkRules virtualNetworkRules() {
if (this.virtualNetworkRules == null) {
this.virtualNetworkRules = new VirtualNetworkRulesImpl(clientObject.getVirtualNetworkRules(), this);
@@ -325,7 +404,11 @@ public VirtualNetworkRules virtualNetworkRules() {
return virtualNetworkRules;
}
- /** @return Resource collection API of Databases. */
+ /**
+ * Gets the resource collection API of Databases. It manages Database.
+ *
+ * @return Resource collection API of Databases.
+ */
public Databases databases() {
if (this.databases == null) {
this.databases = new DatabasesImpl(clientObject.getDatabases(), this);
@@ -333,7 +416,11 @@ public Databases databases() {
return databases;
}
- /** @return Resource collection API of Configurations. */
+ /**
+ * Gets the resource collection API of Configurations. It manages Configuration.
+ *
+ * @return Resource collection API of Configurations.
+ */
public Configurations configurations() {
if (this.configurations == null) {
this.configurations = new ConfigurationsImpl(clientObject.getConfigurations(), this);
@@ -341,7 +428,11 @@ public Configurations configurations() {
return configurations;
}
- /** @return Resource collection API of ServerParameters. */
+ /**
+ * Gets the resource collection API of ServerParameters.
+ *
+ * @return Resource collection API of ServerParameters.
+ */
public ServerParameters serverParameters() {
if (this.serverParameters == null) {
this.serverParameters = new ServerParametersImpl(clientObject.getServerParameters(), this);
@@ -349,7 +440,11 @@ public ServerParameters serverParameters() {
return serverParameters;
}
- /** @return Resource collection API of LogFiles. */
+ /**
+ * Gets the resource collection API of LogFiles.
+ *
+ * @return Resource collection API of LogFiles.
+ */
public LogFiles logFiles() {
if (this.logFiles == null) {
this.logFiles = new LogFilesImpl(clientObject.getLogFiles(), this);
@@ -357,7 +452,11 @@ public LogFiles logFiles() {
return logFiles;
}
- /** @return Resource collection API of RecoverableServers. */
+ /**
+ * Gets the resource collection API of RecoverableServers.
+ *
+ * @return Resource collection API of RecoverableServers.
+ */
public RecoverableServers recoverableServers() {
if (this.recoverableServers == null) {
this.recoverableServers = new RecoverableServersImpl(clientObject.getRecoverableServers(), this);
@@ -365,7 +464,11 @@ public RecoverableServers recoverableServers() {
return recoverableServers;
}
- /** @return Resource collection API of ServerBasedPerformanceTiers. */
+ /**
+ * Gets the resource collection API of ServerBasedPerformanceTiers.
+ *
+ * @return Resource collection API of ServerBasedPerformanceTiers.
+ */
public ServerBasedPerformanceTiers serverBasedPerformanceTiers() {
if (this.serverBasedPerformanceTiers == null) {
this.serverBasedPerformanceTiers =
@@ -374,7 +477,11 @@ public ServerBasedPerformanceTiers serverBasedPerformanceTiers() {
return serverBasedPerformanceTiers;
}
- /** @return Resource collection API of LocationBasedPerformanceTiers. */
+ /**
+ * Gets the resource collection API of LocationBasedPerformanceTiers.
+ *
+ * @return Resource collection API of LocationBasedPerformanceTiers.
+ */
public LocationBasedPerformanceTiers locationBasedPerformanceTiers() {
if (this.locationBasedPerformanceTiers == null) {
this.locationBasedPerformanceTiers =
@@ -383,7 +490,11 @@ public LocationBasedPerformanceTiers locationBasedPerformanceTiers() {
return locationBasedPerformanceTiers;
}
- /** @return Resource collection API of CheckNameAvailabilities. */
+ /**
+ * Gets the resource collection API of CheckNameAvailabilities.
+ *
+ * @return Resource collection API of CheckNameAvailabilities.
+ */
public CheckNameAvailabilities checkNameAvailabilities() {
if (this.checkNameAvailabilities == null) {
this.checkNameAvailabilities =
@@ -392,7 +503,11 @@ public CheckNameAvailabilities checkNameAvailabilities() {
return checkNameAvailabilities;
}
- /** @return Resource collection API of Operations. */
+ /**
+ * Gets the resource collection API of Operations.
+ *
+ * @return Resource collection API of Operations.
+ */
public Operations operations() {
if (this.operations == null) {
this.operations = new OperationsImpl(clientObject.getOperations(), this);
@@ -400,7 +515,11 @@ public Operations operations() {
return operations;
}
- /** @return Resource collection API of QueryTexts. */
+ /**
+ * Gets the resource collection API of QueryTexts.
+ *
+ * @return Resource collection API of QueryTexts.
+ */
public QueryTexts queryTexts() {
if (this.queryTexts == null) {
this.queryTexts = new QueryTextsImpl(clientObject.getQueryTexts(), this);
@@ -408,7 +527,11 @@ public QueryTexts queryTexts() {
return queryTexts;
}
- /** @return Resource collection API of TopQueryStatistics. */
+ /**
+ * Gets the resource collection API of TopQueryStatistics.
+ *
+ * @return Resource collection API of TopQueryStatistics.
+ */
public TopQueryStatistics topQueryStatistics() {
if (this.topQueryStatistics == null) {
this.topQueryStatistics = new TopQueryStatisticsImpl(clientObject.getTopQueryStatistics(), this);
@@ -416,7 +539,11 @@ public TopQueryStatistics topQueryStatistics() {
return topQueryStatistics;
}
- /** @return Resource collection API of WaitStatistics. */
+ /**
+ * Gets the resource collection API of WaitStatistics.
+ *
+ * @return Resource collection API of WaitStatistics.
+ */
public WaitStatistics waitStatistics() {
if (this.waitStatistics == null) {
this.waitStatistics = new WaitStatisticsImpl(clientObject.getWaitStatistics(), this);
@@ -424,7 +551,11 @@ public WaitStatistics waitStatistics() {
return waitStatistics;
}
- /** @return Resource collection API of ResourceProviders. */
+ /**
+ * Gets the resource collection API of ResourceProviders.
+ *
+ * @return Resource collection API of ResourceProviders.
+ */
public ResourceProviders resourceProviders() {
if (this.resourceProviders == null) {
this.resourceProviders = new ResourceProvidersImpl(clientObject.getResourceProviders(), this);
@@ -432,7 +563,11 @@ public ResourceProviders resourceProviders() {
return resourceProviders;
}
- /** @return Resource collection API of Advisors. */
+ /**
+ * Gets the resource collection API of Advisors.
+ *
+ * @return Resource collection API of Advisors.
+ */
public Advisors advisors() {
if (this.advisors == null) {
this.advisors = new AdvisorsImpl(clientObject.getAdvisors(), this);
@@ -440,7 +575,11 @@ public Advisors advisors() {
return advisors;
}
- /** @return Resource collection API of RecommendedActions. */
+ /**
+ * Gets the resource collection API of RecommendedActions.
+ *
+ * @return Resource collection API of RecommendedActions.
+ */
public RecommendedActions recommendedActions() {
if (this.recommendedActions == null) {
this.recommendedActions = new RecommendedActionsImpl(clientObject.getRecommendedActions(), this);
@@ -448,7 +587,11 @@ public RecommendedActions recommendedActions() {
return recommendedActions;
}
- /** @return Resource collection API of LocationBasedRecommendedActionSessionsOperationStatus. */
+ /**
+ * Gets the resource collection API of LocationBasedRecommendedActionSessionsOperationStatus.
+ *
+ * @return Resource collection API of LocationBasedRecommendedActionSessionsOperationStatus.
+ */
public LocationBasedRecommendedActionSessionsOperationStatus
locationBasedRecommendedActionSessionsOperationStatus() {
if (this.locationBasedRecommendedActionSessionsOperationStatus == null) {
@@ -459,7 +602,11 @@ public RecommendedActions recommendedActions() {
return locationBasedRecommendedActionSessionsOperationStatus;
}
- /** @return Resource collection API of LocationBasedRecommendedActionSessionsResults. */
+ /**
+ * Gets the resource collection API of LocationBasedRecommendedActionSessionsResults.
+ *
+ * @return Resource collection API of LocationBasedRecommendedActionSessionsResults.
+ */
public LocationBasedRecommendedActionSessionsResults locationBasedRecommendedActionSessionsResults() {
if (this.locationBasedRecommendedActionSessionsResults == null) {
this.locationBasedRecommendedActionSessionsResults =
@@ -469,7 +616,11 @@ public LocationBasedRecommendedActionSessionsResults locationBasedRecommendedAct
return locationBasedRecommendedActionSessionsResults;
}
- /** @return Resource collection API of PrivateEndpointConnections. */
+ /**
+ * 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 =
@@ -478,7 +629,11 @@ public PrivateEndpointConnections privateEndpointConnections() {
return privateEndpointConnections;
}
- /** @return Resource collection API of PrivateLinkResources. */
+ /**
+ * Gets the resource collection API of PrivateLinkResources.
+ *
+ * @return Resource collection API of PrivateLinkResources.
+ */
public PrivateLinkResources privateLinkResources() {
if (this.privateLinkResources == null) {
this.privateLinkResources = new PrivateLinkResourcesImpl(clientObject.getPrivateLinkResources(), this);
@@ -486,7 +641,11 @@ public PrivateLinkResources privateLinkResources() {
return privateLinkResources;
}
- /** @return Resource collection API of ServerSecurityAlertPolicies. */
+ /**
+ * Gets the resource collection API of ServerSecurityAlertPolicies. It manages ServerSecurityAlertPolicy.
+ *
+ * @return Resource collection API of ServerSecurityAlertPolicies.
+ */
public ServerSecurityAlertPolicies serverSecurityAlertPolicies() {
if (this.serverSecurityAlertPolicies == null) {
this.serverSecurityAlertPolicies =
diff --git a/sdk/mariadb/azure-resourcemanager-mariadb/src/main/java/com/azure/resourcemanager/mariadb/fluent/AdvisorsClient.java b/sdk/mariadb/azure-resourcemanager-mariadb/src/main/java/com/azure/resourcemanager/mariadb/fluent/AdvisorsClient.java
index 1093dae306ab..8580aac5161f 100644
--- a/sdk/mariadb/azure-resourcemanager-mariadb/src/main/java/com/azure/resourcemanager/mariadb/fluent/AdvisorsClient.java
+++ b/sdk/mariadb/azure-resourcemanager-mariadb/src/main/java/com/azure/resourcemanager/mariadb/fluent/AdvisorsClient.java
@@ -37,7 +37,7 @@ public interface AdvisorsClient {
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a recommendation action advisor.
+ * @return a recommendation action advisor along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response getWithResponse(
@@ -51,7 +51,7 @@ Response getWithResponse(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a list of query statistics.
+ * @return a list of query statistics as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listByServer(String resourceGroupName, String serverName);
@@ -65,7 +65,7 @@ Response getWithResponse(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a list of query statistics.
+ * @return a list of query statistics as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listByServer(String resourceGroupName, String serverName, Context context);
diff --git a/sdk/mariadb/azure-resourcemanager-mariadb/src/main/java/com/azure/resourcemanager/mariadb/fluent/CheckNameAvailabilitiesClient.java b/sdk/mariadb/azure-resourcemanager-mariadb/src/main/java/com/azure/resourcemanager/mariadb/fluent/CheckNameAvailabilitiesClient.java
index 0c7d979a5a56..5f6bcda672a6 100644
--- a/sdk/mariadb/azure-resourcemanager-mariadb/src/main/java/com/azure/resourcemanager/mariadb/fluent/CheckNameAvailabilitiesClient.java
+++ b/sdk/mariadb/azure-resourcemanager-mariadb/src/main/java/com/azure/resourcemanager/mariadb/fluent/CheckNameAvailabilitiesClient.java
@@ -33,7 +33,7 @@ public interface CheckNameAvailabilitiesClient {
* @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 represents a resource name availability.
+ * @return represents a resource name availability along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response executeWithResponse(
diff --git a/sdk/mariadb/azure-resourcemanager-mariadb/src/main/java/com/azure/resourcemanager/mariadb/fluent/ConfigurationsClient.java b/sdk/mariadb/azure-resourcemanager-mariadb/src/main/java/com/azure/resourcemanager/mariadb/fluent/ConfigurationsClient.java
index 9856aebab4fa..6d179a329cd8 100644
--- a/sdk/mariadb/azure-resourcemanager-mariadb/src/main/java/com/azure/resourcemanager/mariadb/fluent/ConfigurationsClient.java
+++ b/sdk/mariadb/azure-resourcemanager-mariadb/src/main/java/com/azure/resourcemanager/mariadb/fluent/ConfigurationsClient.java
@@ -25,9 +25,9 @@ public interface ConfigurationsClient {
* @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 represents a Configuration.
+ * @return the {@link SyncPoller} for polling of represents a Configuration.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, ConfigurationInner> beginCreateOrUpdate(
String resourceGroupName, String serverName, String configurationName, ConfigurationInner parameters);
@@ -42,9 +42,9 @@ SyncPoller, ConfigurationInner> beginCreateOrUpda
* @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 represents a Configuration.
+ * @return the {@link SyncPoller} for polling of represents a Configuration.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, ConfigurationInner> beginCreateOrUpdate(
String resourceGroupName,
String serverName,
@@ -113,7 +113,7 @@ ConfigurationInner createOrUpdate(
* @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 a configuration of server.
+ * @return information about a configuration of server along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response getWithResponse(
@@ -127,7 +127,7 @@ Response getWithResponse(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a list of server configurations.
+ * @return a list of server configurations as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listByServer(String resourceGroupName, String serverName);
@@ -141,7 +141,7 @@ Response getWithResponse(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a list of server configurations.
+ * @return a list of server configurations as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listByServer(String resourceGroupName, String serverName, Context context);
diff --git a/sdk/mariadb/azure-resourcemanager-mariadb/src/main/java/com/azure/resourcemanager/mariadb/fluent/DatabasesClient.java b/sdk/mariadb/azure-resourcemanager-mariadb/src/main/java/com/azure/resourcemanager/mariadb/fluent/DatabasesClient.java
index 517a87f63cb4..d2aab8f6b610 100644
--- a/sdk/mariadb/azure-resourcemanager-mariadb/src/main/java/com/azure/resourcemanager/mariadb/fluent/DatabasesClient.java
+++ b/sdk/mariadb/azure-resourcemanager-mariadb/src/main/java/com/azure/resourcemanager/mariadb/fluent/DatabasesClient.java
@@ -25,9 +25,9 @@ public interface DatabasesClient {
* @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 represents a Database.
+ * @return the {@link SyncPoller} for polling of represents a Database.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, DatabaseInner> beginCreateOrUpdate(
String resourceGroupName, String serverName, String databaseName, DatabaseInner parameters);
@@ -42,9 +42,9 @@ SyncPoller, DatabaseInner> beginCreateOrUpdate(
* @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 represents a Database.
+ * @return the {@link SyncPoller} for polling of represents a Database.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, DatabaseInner> beginCreateOrUpdate(
String resourceGroupName, String serverName, String databaseName, DatabaseInner parameters, Context context);
@@ -90,9 +90,9 @@ DatabaseInner createOrUpdate(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the completion.
+ * @return the {@link SyncPoller} for polling of long-running operation.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, Void> beginDelete(String resourceGroupName, String serverName, String databaseName);
/**
@@ -105,9 +105,9 @@ DatabaseInner createOrUpdate(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the completion.
+ * @return the {@link SyncPoller} for polling of long-running operation.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, Void> beginDelete(
String resourceGroupName, String serverName, String databaseName, Context context);
@@ -162,7 +162,7 @@ SyncPoller, Void> beginDelete(
* @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 a database.
+ * @return information about a database along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response getWithResponse(
@@ -176,7 +176,7 @@ Response getWithResponse(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a List of databases.
+ * @return a List of databases as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listByServer(String resourceGroupName, String serverName);
@@ -190,7 +190,7 @@ Response getWithResponse(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a List of databases.
+ * @return a List of databases as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listByServer(String resourceGroupName, String serverName, Context context);
diff --git a/sdk/mariadb/azure-resourcemanager-mariadb/src/main/java/com/azure/resourcemanager/mariadb/fluent/FirewallRulesClient.java b/sdk/mariadb/azure-resourcemanager-mariadb/src/main/java/com/azure/resourcemanager/mariadb/fluent/FirewallRulesClient.java
index 43d28326ca3b..8e93078664f4 100644
--- a/sdk/mariadb/azure-resourcemanager-mariadb/src/main/java/com/azure/resourcemanager/mariadb/fluent/FirewallRulesClient.java
+++ b/sdk/mariadb/azure-resourcemanager-mariadb/src/main/java/com/azure/resourcemanager/mariadb/fluent/FirewallRulesClient.java
@@ -25,9 +25,9 @@ public interface FirewallRulesClient {
* @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 represents a server firewall rule.
+ * @return the {@link SyncPoller} for polling of represents a server firewall rule.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, FirewallRuleInner> beginCreateOrUpdate(
String resourceGroupName, String serverName, String firewallRuleName, FirewallRuleInner parameters);
@@ -42,9 +42,9 @@ SyncPoller, FirewallRuleInner> beginCreateOrUpdate
* @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 represents a server firewall rule.
+ * @return the {@link SyncPoller} for polling of represents a server firewall rule.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, FirewallRuleInner> beginCreateOrUpdate(
String resourceGroupName,
String serverName,
@@ -98,9 +98,9 @@ FirewallRuleInner createOrUpdate(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the completion.
+ * @return the {@link SyncPoller} for polling of long-running operation.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, Void> beginDelete(
String resourceGroupName, String serverName, String firewallRuleName);
@@ -114,9 +114,9 @@ SyncPoller, Void> beginDelete(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the completion.
+ * @return the {@link SyncPoller} for polling of long-running operation.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, Void> beginDelete(
String resourceGroupName, String serverName, String firewallRuleName, Context context);
@@ -171,7 +171,7 @@ SyncPoller, Void> beginDelete(
* @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 a server firewall rule.
+ * @return information about a server firewall rule along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response getWithResponse(
@@ -185,7 +185,7 @@ Response getWithResponse(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a list of firewall rules.
+ * @return a list of firewall rules as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listByServer(String resourceGroupName, String serverName);
@@ -199,7 +199,7 @@ Response getWithResponse(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a list of firewall rules.
+ * @return a list of firewall rules as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listByServer(String resourceGroupName, String serverName, Context context);
diff --git a/sdk/mariadb/azure-resourcemanager-mariadb/src/main/java/com/azure/resourcemanager/mariadb/fluent/LocationBasedPerformanceTiersClient.java b/sdk/mariadb/azure-resourcemanager-mariadb/src/main/java/com/azure/resourcemanager/mariadb/fluent/LocationBasedPerformanceTiersClient.java
index 825a53701966..5605b0380916 100644
--- a/sdk/mariadb/azure-resourcemanager-mariadb/src/main/java/com/azure/resourcemanager/mariadb/fluent/LocationBasedPerformanceTiersClient.java
+++ b/sdk/mariadb/azure-resourcemanager-mariadb/src/main/java/com/azure/resourcemanager/mariadb/fluent/LocationBasedPerformanceTiersClient.java
@@ -19,7 +19,7 @@ public interface LocationBasedPerformanceTiersClient {
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a list of performance tiers.
+ * @return a list of performance tiers as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable list(String locationName);
@@ -32,7 +32,7 @@ public interface LocationBasedPerformanceTiersClient {
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a list of performance tiers.
+ * @return a list of performance tiers as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable list(String locationName, Context context);
diff --git a/sdk/mariadb/azure-resourcemanager-mariadb/src/main/java/com/azure/resourcemanager/mariadb/fluent/LocationBasedRecommendedActionSessionsOperationStatusClient.java b/sdk/mariadb/azure-resourcemanager-mariadb/src/main/java/com/azure/resourcemanager/mariadb/fluent/LocationBasedRecommendedActionSessionsOperationStatusClient.java
index 433c045661ee..408014d72ff7 100644
--- a/sdk/mariadb/azure-resourcemanager-mariadb/src/main/java/com/azure/resourcemanager/mariadb/fluent/LocationBasedRecommendedActionSessionsOperationStatusClient.java
+++ b/sdk/mariadb/azure-resourcemanager-mariadb/src/main/java/com/azure/resourcemanager/mariadb/fluent/LocationBasedRecommendedActionSessionsOperationStatusClient.java
@@ -37,7 +37,7 @@ public interface LocationBasedRecommendedActionSessionsOperationStatusClient {
* @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 recommendation action session operation status.
+ * @return recommendation action session operation status along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response getWithResponse(
diff --git a/sdk/mariadb/azure-resourcemanager-mariadb/src/main/java/com/azure/resourcemanager/mariadb/fluent/LocationBasedRecommendedActionSessionsResultsClient.java b/sdk/mariadb/azure-resourcemanager-mariadb/src/main/java/com/azure/resourcemanager/mariadb/fluent/LocationBasedRecommendedActionSessionsResultsClient.java
index 5ea2d2774633..311d9974937c 100644
--- a/sdk/mariadb/azure-resourcemanager-mariadb/src/main/java/com/azure/resourcemanager/mariadb/fluent/LocationBasedRecommendedActionSessionsResultsClient.java
+++ b/sdk/mariadb/azure-resourcemanager-mariadb/src/main/java/com/azure/resourcemanager/mariadb/fluent/LocationBasedRecommendedActionSessionsResultsClient.java
@@ -23,7 +23,7 @@ public interface LocationBasedRecommendedActionSessionsResultsClient {
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a list of recommendation actions.
+ * @return a list of recommendation actions as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable list(String locationName, String operationId);
@@ -37,7 +37,7 @@ public interface LocationBasedRecommendedActionSessionsResultsClient {
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a list of recommendation actions.
+ * @return a list of recommendation actions as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable list(String locationName, String operationId, Context context);
diff --git a/sdk/mariadb/azure-resourcemanager-mariadb/src/main/java/com/azure/resourcemanager/mariadb/fluent/LogFilesClient.java b/sdk/mariadb/azure-resourcemanager-mariadb/src/main/java/com/azure/resourcemanager/mariadb/fluent/LogFilesClient.java
index 367dfb6185b4..11af774488aa 100644
--- a/sdk/mariadb/azure-resourcemanager-mariadb/src/main/java/com/azure/resourcemanager/mariadb/fluent/LogFilesClient.java
+++ b/sdk/mariadb/azure-resourcemanager-mariadb/src/main/java/com/azure/resourcemanager/mariadb/fluent/LogFilesClient.java
@@ -20,7 +20,7 @@ public interface LogFilesClient {
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a list of log files.
+ * @return a list of log files as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listByServer(String resourceGroupName, String serverName);
@@ -34,7 +34,7 @@ public interface LogFilesClient {
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a list of log files.
+ * @return a list of log files as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listByServer(String resourceGroupName, String serverName, Context context);
diff --git a/sdk/mariadb/azure-resourcemanager-mariadb/src/main/java/com/azure/resourcemanager/mariadb/fluent/OperationsClient.java b/sdk/mariadb/azure-resourcemanager-mariadb/src/main/java/com/azure/resourcemanager/mariadb/fluent/OperationsClient.java
index 6f08ab233906..80b622e34477 100644
--- a/sdk/mariadb/azure-resourcemanager-mariadb/src/main/java/com/azure/resourcemanager/mariadb/fluent/OperationsClient.java
+++ b/sdk/mariadb/azure-resourcemanager-mariadb/src/main/java/com/azure/resourcemanager/mariadb/fluent/OperationsClient.java
@@ -29,7 +29,7 @@ public interface OperationsClient {
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a list of resource provider operations.
+ * @return a list of resource provider operations along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response listWithResponse(Context context);
diff --git a/sdk/mariadb/azure-resourcemanager-mariadb/src/main/java/com/azure/resourcemanager/mariadb/fluent/PrivateEndpointConnectionsClient.java b/sdk/mariadb/azure-resourcemanager-mariadb/src/main/java/com/azure/resourcemanager/mariadb/fluent/PrivateEndpointConnectionsClient.java
index 70f6cec419a4..aa92680711fd 100644
--- a/sdk/mariadb/azure-resourcemanager-mariadb/src/main/java/com/azure/resourcemanager/mariadb/fluent/PrivateEndpointConnectionsClient.java
+++ b/sdk/mariadb/azure-resourcemanager-mariadb/src/main/java/com/azure/resourcemanager/mariadb/fluent/PrivateEndpointConnectionsClient.java
@@ -41,7 +41,7 @@ PrivateEndpointConnectionInner get(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a private endpoint connection.
+ * @return a private endpoint connection along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response getWithResponse(
@@ -57,9 +57,9 @@ Response getWithResponse(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a private endpoint connection.
+ * @return the {@link SyncPoller} for polling of a private endpoint connection.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, PrivateEndpointConnectionInner> beginCreateOrUpdate(
String resourceGroupName,
String serverName,
@@ -77,9 +77,9 @@ SyncPoller, PrivateEndpointConnection
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a private endpoint connection.
+ * @return the {@link SyncPoller} for polling of a private endpoint connection.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, PrivateEndpointConnectionInner> beginCreateOrUpdate(
String resourceGroupName,
String serverName,
@@ -136,9 +136,9 @@ PrivateEndpointConnectionInner createOrUpdate(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the completion.
+ * @return the {@link SyncPoller} for polling of long-running operation.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, Void> beginDelete(
String resourceGroupName, String serverName, String privateEndpointConnectionName);
@@ -152,9 +152,9 @@ SyncPoller, Void> beginDelete(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the completion.
+ * @return the {@link SyncPoller} for polling of long-running operation.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, Void> beginDelete(
String resourceGroupName, String serverName, String privateEndpointConnectionName, Context context);
@@ -195,9 +195,9 @@ SyncPoller, Void> beginDelete(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a private endpoint connection.
+ * @return the {@link SyncPoller} for polling of a private endpoint connection.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, PrivateEndpointConnectionInner> beginUpdateTags(
String resourceGroupName, String serverName, String privateEndpointConnectionName, TagsObject parameters);
@@ -212,9 +212,9 @@ SyncPoller, PrivateEndpointConnection
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a private endpoint connection.
+ * @return the {@link SyncPoller} for polling of a private endpoint connection.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, PrivateEndpointConnectionInner> beginUpdateTags(
String resourceGroupName,
String serverName,
@@ -267,7 +267,7 @@ PrivateEndpointConnectionInner updateTags(
* @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 all private endpoint connections on a server.
+ * @return all private endpoint connections on a server as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listByServer(String resourceGroupName, String serverName);
@@ -281,7 +281,7 @@ PrivateEndpointConnectionInner updateTags(
* @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 all private endpoint connections on a server.
+ * @return all private endpoint connections on a server as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listByServer(
diff --git a/sdk/mariadb/azure-resourcemanager-mariadb/src/main/java/com/azure/resourcemanager/mariadb/fluent/PrivateLinkResourcesClient.java b/sdk/mariadb/azure-resourcemanager-mariadb/src/main/java/com/azure/resourcemanager/mariadb/fluent/PrivateLinkResourcesClient.java
index bd47e7fd131d..088ef4dd5ec5 100644
--- a/sdk/mariadb/azure-resourcemanager-mariadb/src/main/java/com/azure/resourcemanager/mariadb/fluent/PrivateLinkResourcesClient.java
+++ b/sdk/mariadb/azure-resourcemanager-mariadb/src/main/java/com/azure/resourcemanager/mariadb/fluent/PrivateLinkResourcesClient.java
@@ -21,7 +21,7 @@ public interface PrivateLinkResourcesClient {
* @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 for MariaDB server.
+ * @return the private link resources for MariaDB server as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listByServer(String resourceGroupName, String serverName);
@@ -35,7 +35,7 @@ public interface PrivateLinkResourcesClient {
* @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 for MariaDB server.
+ * @return the private link resources for MariaDB server as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listByServer(String resourceGroupName, String serverName, Context context);
@@ -64,7 +64,7 @@ public interface PrivateLinkResourcesClient {
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a private link resource for MariaDB server.
+ * @return a private link resource for MariaDB server along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response getWithResponse(
diff --git a/sdk/mariadb/azure-resourcemanager-mariadb/src/main/java/com/azure/resourcemanager/mariadb/fluent/QueryTextsClient.java b/sdk/mariadb/azure-resourcemanager-mariadb/src/main/java/com/azure/resourcemanager/mariadb/fluent/QueryTextsClient.java
index aa583343c951..46077acaefa6 100644
--- a/sdk/mariadb/azure-resourcemanager-mariadb/src/main/java/com/azure/resourcemanager/mariadb/fluent/QueryTextsClient.java
+++ b/sdk/mariadb/azure-resourcemanager-mariadb/src/main/java/com/azure/resourcemanager/mariadb/fluent/QueryTextsClient.java
@@ -38,7 +38,7 @@ public interface QueryTextsClient {
* @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 represents a Query Text.
+ * @return represents a Query Text along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response getWithResponse(
@@ -53,7 +53,7 @@ Response getWithResponse(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a list of query texts.
+ * @return a list of query texts as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listByServer(String resourceGroupName, String serverName, List queryIds);
@@ -68,7 +68,7 @@ Response getWithResponse(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a list of query texts.
+ * @return a list of query texts as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listByServer(
diff --git a/sdk/mariadb/azure-resourcemanager-mariadb/src/main/java/com/azure/resourcemanager/mariadb/fluent/RecommendedActionsClient.java b/sdk/mariadb/azure-resourcemanager-mariadb/src/main/java/com/azure/resourcemanager/mariadb/fluent/RecommendedActionsClient.java
index 5b1b89ba3206..1e7be8878f56 100644
--- a/sdk/mariadb/azure-resourcemanager-mariadb/src/main/java/com/azure/resourcemanager/mariadb/fluent/RecommendedActionsClient.java
+++ b/sdk/mariadb/azure-resourcemanager-mariadb/src/main/java/com/azure/resourcemanager/mariadb/fluent/RecommendedActionsClient.java
@@ -40,7 +40,7 @@ RecommendationActionInner get(
* @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 represents a Recommendation Action.
+ * @return represents a Recommendation Action along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response getWithResponse(
@@ -55,7 +55,7 @@ Response getWithResponse(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a list of recommendation actions.
+ * @return a list of recommendation actions as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listByServer(
@@ -72,7 +72,7 @@ PagedIterable listByServer(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a list of recommendation actions.
+ * @return a list of recommendation actions as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listByServer(
diff --git a/sdk/mariadb/azure-resourcemanager-mariadb/src/main/java/com/azure/resourcemanager/mariadb/fluent/RecoverableServersClient.java b/sdk/mariadb/azure-resourcemanager-mariadb/src/main/java/com/azure/resourcemanager/mariadb/fluent/RecoverableServersClient.java
index e7387f5929a4..0c17e3565a2b 100644
--- a/sdk/mariadb/azure-resourcemanager-mariadb/src/main/java/com/azure/resourcemanager/mariadb/fluent/RecoverableServersClient.java
+++ b/sdk/mariadb/azure-resourcemanager-mariadb/src/main/java/com/azure/resourcemanager/mariadb/fluent/RecoverableServersClient.java
@@ -34,7 +34,7 @@ public interface RecoverableServersClient {
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a recoverable MariaDB Server.
+ * @return a recoverable MariaDB Server along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response getWithResponse(
diff --git a/sdk/mariadb/azure-resourcemanager-mariadb/src/main/java/com/azure/resourcemanager/mariadb/fluent/ReplicasClient.java b/sdk/mariadb/azure-resourcemanager-mariadb/src/main/java/com/azure/resourcemanager/mariadb/fluent/ReplicasClient.java
index e1a4f828bffd..6b8803358cea 100644
--- a/sdk/mariadb/azure-resourcemanager-mariadb/src/main/java/com/azure/resourcemanager/mariadb/fluent/ReplicasClient.java
+++ b/sdk/mariadb/azure-resourcemanager-mariadb/src/main/java/com/azure/resourcemanager/mariadb/fluent/ReplicasClient.java
@@ -20,7 +20,7 @@ public interface ReplicasClient {
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a list of servers.
+ * @return a list of servers as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listByServer(String resourceGroupName, String serverName);
@@ -34,7 +34,7 @@ public interface ReplicasClient {
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a list of servers.
+ * @return a list of servers as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listByServer(String resourceGroupName, String serverName, Context context);
diff --git a/sdk/mariadb/azure-resourcemanager-mariadb/src/main/java/com/azure/resourcemanager/mariadb/fluent/ResourceProvidersClient.java b/sdk/mariadb/azure-resourcemanager-mariadb/src/main/java/com/azure/resourcemanager/mariadb/fluent/ResourceProvidersClient.java
index badc0650866c..0dcda632c94c 100644
--- a/sdk/mariadb/azure-resourcemanager-mariadb/src/main/java/com/azure/resourcemanager/mariadb/fluent/ResourceProvidersClient.java
+++ b/sdk/mariadb/azure-resourcemanager-mariadb/src/main/java/com/azure/resourcemanager/mariadb/fluent/ResourceProvidersClient.java
@@ -37,7 +37,7 @@ QueryPerformanceInsightResetDataResultInner resetQueryPerformanceInsightData(
* @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 result of Query Performance Insight data reset.
+ * @return result of Query Performance Insight data reset along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response resetQueryPerformanceInsightDataWithResponse(
@@ -53,9 +53,9 @@ Response resetQueryPerformanceInsig
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the completion.
+ * @return the {@link SyncPoller} for polling of long-running operation.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, Void> beginCreateRecommendedActionSession(
String resourceGroupName, String serverName, String advisorName, String databaseName);
@@ -70,9 +70,9 @@ SyncPoller, Void> beginCreateRecommendedActionSession(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the completion.
+ * @return the {@link SyncPoller} for polling of long-running operation.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, Void> beginCreateRecommendedActionSession(
String resourceGroupName, String serverName, String advisorName, String databaseName, Context context);
diff --git a/sdk/mariadb/azure-resourcemanager-mariadb/src/main/java/com/azure/resourcemanager/mariadb/fluent/ServerBasedPerformanceTiersClient.java b/sdk/mariadb/azure-resourcemanager-mariadb/src/main/java/com/azure/resourcemanager/mariadb/fluent/ServerBasedPerformanceTiersClient.java
index 28a938066b90..69fe48b87787 100644
--- a/sdk/mariadb/azure-resourcemanager-mariadb/src/main/java/com/azure/resourcemanager/mariadb/fluent/ServerBasedPerformanceTiersClient.java
+++ b/sdk/mariadb/azure-resourcemanager-mariadb/src/main/java/com/azure/resourcemanager/mariadb/fluent/ServerBasedPerformanceTiersClient.java
@@ -20,7 +20,7 @@ public interface ServerBasedPerformanceTiersClient {
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a list of performance tiers.
+ * @return a list of performance tiers as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable list(String resourceGroupName, String serverName);
@@ -34,7 +34,7 @@ public interface ServerBasedPerformanceTiersClient {
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a list of performance tiers.
+ * @return a list of performance tiers as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable list(String resourceGroupName, String serverName, Context context);
diff --git a/sdk/mariadb/azure-resourcemanager-mariadb/src/main/java/com/azure/resourcemanager/mariadb/fluent/ServerParametersClient.java b/sdk/mariadb/azure-resourcemanager-mariadb/src/main/java/com/azure/resourcemanager/mariadb/fluent/ServerParametersClient.java
index e8993687377a..6f4e234a9096 100644
--- a/sdk/mariadb/azure-resourcemanager-mariadb/src/main/java/com/azure/resourcemanager/mariadb/fluent/ServerParametersClient.java
+++ b/sdk/mariadb/azure-resourcemanager-mariadb/src/main/java/com/azure/resourcemanager/mariadb/fluent/ServerParametersClient.java
@@ -22,9 +22,9 @@ public interface ServerParametersClient {
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a list of server configurations.
+ * @return the {@link SyncPoller} for polling of a list of server configurations.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, ConfigurationListResultInner> beginListUpdateConfigurations(
String resourceGroupName, String serverName, ConfigurationListResultInner value);
@@ -38,9 +38,9 @@ SyncPoller, ConfigurationListResultInne
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a list of server configurations.
+ * @return the {@link SyncPoller} for polling of a list of server configurations.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, ConfigurationListResultInner> beginListUpdateConfigurations(
String resourceGroupName, String serverName, ConfigurationListResultInner value, Context context);
diff --git a/sdk/mariadb/azure-resourcemanager-mariadb/src/main/java/com/azure/resourcemanager/mariadb/fluent/ServerSecurityAlertPoliciesClient.java b/sdk/mariadb/azure-resourcemanager-mariadb/src/main/java/com/azure/resourcemanager/mariadb/fluent/ServerSecurityAlertPoliciesClient.java
index a9019b58e368..86d77a8f72be 100644
--- a/sdk/mariadb/azure-resourcemanager-mariadb/src/main/java/com/azure/resourcemanager/mariadb/fluent/ServerSecurityAlertPoliciesClient.java
+++ b/sdk/mariadb/azure-resourcemanager-mariadb/src/main/java/com/azure/resourcemanager/mariadb/fluent/ServerSecurityAlertPoliciesClient.java
@@ -41,7 +41,7 @@ ServerSecurityAlertPolicyInner get(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a server's security alert policy.
+ * @return a server's security alert policy along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response getWithResponse(
@@ -57,9 +57,9 @@ Response getWithResponse(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a server security alert policy.
+ * @return the {@link SyncPoller} for polling of a server security alert policy.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, ServerSecurityAlertPolicyInner> beginCreateOrUpdate(
String resourceGroupName,
String serverName,
@@ -77,9 +77,9 @@ SyncPoller, ServerSecurityAlertPolicy
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a server security alert policy.
+ * @return the {@link SyncPoller} for polling of a server security alert policy.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, ServerSecurityAlertPolicyInner> beginCreateOrUpdate(
String resourceGroupName,
String serverName,
@@ -135,7 +135,7 @@ ServerSecurityAlertPolicyInner createOrUpdate(
* @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 server's threat detection policies.
+ * @return the server's threat detection policies as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listByServer(String resourceGroupName, String serverName);
@@ -149,7 +149,7 @@ ServerSecurityAlertPolicyInner createOrUpdate(
* @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 server's threat detection policies.
+ * @return the server's threat detection policies as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listByServer(
diff --git a/sdk/mariadb/azure-resourcemanager-mariadb/src/main/java/com/azure/resourcemanager/mariadb/fluent/ServersClient.java b/sdk/mariadb/azure-resourcemanager-mariadb/src/main/java/com/azure/resourcemanager/mariadb/fluent/ServersClient.java
index 69cba03c1aaa..5494b3a7a35a 100644
--- a/sdk/mariadb/azure-resourcemanager-mariadb/src/main/java/com/azure/resourcemanager/mariadb/fluent/ServersClient.java
+++ b/sdk/mariadb/azure-resourcemanager-mariadb/src/main/java/com/azure/resourcemanager/mariadb/fluent/ServersClient.java
@@ -26,9 +26,9 @@ public interface ServersClient {
* @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 represents a server.
+ * @return the {@link SyncPoller} for polling of represents a server.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, ServerInner> beginCreate(
String resourceGroupName, String serverName, ServerForCreate parameters);
@@ -42,9 +42,9 @@ SyncPoller, ServerInner> beginCreate(
* @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 represents a server.
+ * @return the {@link SyncPoller} for polling of represents a server.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, ServerInner> beginCreate(
String resourceGroupName, String serverName, ServerForCreate parameters, Context context);
@@ -87,9 +87,9 @@ SyncPoller, ServerInner> beginCreate(
* @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 represents a server.
+ * @return the {@link SyncPoller} for polling of represents a server.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, ServerInner> beginUpdate(
String resourceGroupName, String serverName, ServerUpdateParameters parameters);
@@ -104,9 +104,9 @@ SyncPoller, ServerInner> beginUpdate(
* @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 represents a server.
+ * @return the {@link SyncPoller} for polling of represents a server.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, ServerInner> beginUpdate(
String resourceGroupName, String serverName, ServerUpdateParameters parameters, Context context);
@@ -149,9 +149,9 @@ SyncPoller, ServerInner> beginUpdate(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the completion.
+ * @return the {@link SyncPoller} for polling of long-running operation.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, Void> beginDelete(String resourceGroupName, String serverName);
/**
@@ -163,9 +163,9 @@ SyncPoller, ServerInner> beginUpdate(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the completion.
+ * @return the {@link SyncPoller} for polling of long-running operation.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, Void> beginDelete(String resourceGroupName, String serverName, Context context);
/**
@@ -215,7 +215,7 @@ SyncPoller, ServerInner> beginUpdate(
* @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 a server.
+ * @return information about a server along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response getByResourceGroupWithResponse(String resourceGroupName, String serverName, Context context);
@@ -227,7 +227,7 @@ SyncPoller, ServerInner> beginUpdate(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a list of servers.
+ * @return a list of servers as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listByResourceGroup(String resourceGroupName);
@@ -240,7 +240,7 @@ SyncPoller, ServerInner> beginUpdate(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a list of servers.
+ * @return a list of servers as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listByResourceGroup(String resourceGroupName, Context context);
@@ -250,7 +250,7 @@ SyncPoller, ServerInner> beginUpdate(
*
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a list of servers.
+ * @return a list of servers as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable list();
@@ -262,7 +262,7 @@ SyncPoller, ServerInner> beginUpdate(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a list of servers.
+ * @return a list of servers as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable list(Context context);
@@ -275,9 +275,9 @@ SyncPoller, ServerInner> beginUpdate(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the completion.
+ * @return the {@link SyncPoller} for polling of long-running operation.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, Void> beginRestart(String resourceGroupName, String serverName);
/**
@@ -289,9 +289,9 @@ SyncPoller, ServerInner> beginUpdate(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the completion.
+ * @return the {@link SyncPoller} for polling of long-running operation.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, Void> beginRestart(String resourceGroupName, String serverName, Context context);
/**
@@ -327,9 +327,9 @@ SyncPoller, ServerInner> beginUpdate(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the completion.
+ * @return the {@link SyncPoller} for polling of long-running operation.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, Void> beginStart(String resourceGroupName, String serverName);
/**
@@ -341,9 +341,9 @@ SyncPoller, ServerInner> beginUpdate(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the completion.
+ * @return the {@link SyncPoller} for polling of long-running operation.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, Void> beginStart(String resourceGroupName, String serverName, Context context);
/**
@@ -379,9 +379,9 @@ SyncPoller, ServerInner> beginUpdate(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the completion.
+ * @return the {@link SyncPoller} for polling of long-running operation.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, Void> beginStop(String resourceGroupName, String serverName);
/**
@@ -393,9 +393,9 @@ SyncPoller, ServerInner> beginUpdate(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the completion.
+ * @return the {@link SyncPoller} for polling of long-running operation.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, Void> beginStop(String resourceGroupName, String serverName, Context context);
/**
diff --git a/sdk/mariadb/azure-resourcemanager-mariadb/src/main/java/com/azure/resourcemanager/mariadb/fluent/TopQueryStatisticsClient.java b/sdk/mariadb/azure-resourcemanager-mariadb/src/main/java/com/azure/resourcemanager/mariadb/fluent/TopQueryStatisticsClient.java
index 7f3b90aa0674..c8452f08a5c0 100644
--- a/sdk/mariadb/azure-resourcemanager-mariadb/src/main/java/com/azure/resourcemanager/mariadb/fluent/TopQueryStatisticsClient.java
+++ b/sdk/mariadb/azure-resourcemanager-mariadb/src/main/java/com/azure/resourcemanager/mariadb/fluent/TopQueryStatisticsClient.java
@@ -38,7 +38,7 @@ public interface TopQueryStatisticsClient {
* @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 represents a Query Statistic.
+ * @return represents a Query Statistic along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response getWithResponse(
@@ -53,7 +53,7 @@ Response getWithResponse(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a list of query statistics.
+ * @return a list of query statistics as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listByServer(
@@ -69,7 +69,7 @@ PagedIterable listByServer(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a list of query statistics.
+ * @return a list of query statistics as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listByServer(
diff --git a/sdk/mariadb/azure-resourcemanager-mariadb/src/main/java/com/azure/resourcemanager/mariadb/fluent/VirtualNetworkRulesClient.java b/sdk/mariadb/azure-resourcemanager-mariadb/src/main/java/com/azure/resourcemanager/mariadb/fluent/VirtualNetworkRulesClient.java
index 12246f47698b..d5601ac7432a 100644
--- a/sdk/mariadb/azure-resourcemanager-mariadb/src/main/java/com/azure/resourcemanager/mariadb/fluent/VirtualNetworkRulesClient.java
+++ b/sdk/mariadb/azure-resourcemanager-mariadb/src/main/java/com/azure/resourcemanager/mariadb/fluent/VirtualNetworkRulesClient.java
@@ -39,7 +39,7 @@ public interface VirtualNetworkRulesClient {
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a virtual network rule.
+ * @return a virtual network rule along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response getWithResponse(
@@ -55,9 +55,9 @@ Response getWithResponse(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a virtual network rule.
+ * @return the {@link SyncPoller} for polling of a virtual network rule.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, VirtualNetworkRuleInner> beginCreateOrUpdate(
String resourceGroupName, String serverName, String virtualNetworkRuleName, VirtualNetworkRuleInner parameters);
@@ -72,9 +72,9 @@ SyncPoller, VirtualNetworkRuleInner> beginCr
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a virtual network rule.
+ * @return the {@link SyncPoller} for polling of a virtual network rule.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, VirtualNetworkRuleInner> beginCreateOrUpdate(
String resourceGroupName,
String serverName,
@@ -128,9 +128,9 @@ VirtualNetworkRuleInner createOrUpdate(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the completion.
+ * @return the {@link SyncPoller} for polling of long-running operation.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, Void> beginDelete(
String resourceGroupName, String serverName, String virtualNetworkRuleName);
@@ -144,9 +144,9 @@ SyncPoller, Void> beginDelete(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the completion.
+ * @return the {@link SyncPoller} for polling of long-running operation.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, Void> beginDelete(
String resourceGroupName, String serverName, String virtualNetworkRuleName, Context context);
@@ -185,7 +185,7 @@ SyncPoller, Void> beginDelete(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a list of virtual network rules in a server.
+ * @return a list of virtual network rules in a server as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listByServer(String resourceGroupName, String serverName);
@@ -199,7 +199,7 @@ SyncPoller, Void> beginDelete(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a list of virtual network rules in a server.
+ * @return a list of virtual network rules in a server as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listByServer(String resourceGroupName, String serverName, Context context);
diff --git a/sdk/mariadb/azure-resourcemanager-mariadb/src/main/java/com/azure/resourcemanager/mariadb/fluent/WaitStatisticsClient.java b/sdk/mariadb/azure-resourcemanager-mariadb/src/main/java/com/azure/resourcemanager/mariadb/fluent/WaitStatisticsClient.java
index 8e964679696e..c965fed6f7f3 100644
--- a/sdk/mariadb/azure-resourcemanager-mariadb/src/main/java/com/azure/resourcemanager/mariadb/fluent/WaitStatisticsClient.java
+++ b/sdk/mariadb/azure-resourcemanager-mariadb/src/main/java/com/azure/resourcemanager/mariadb/fluent/WaitStatisticsClient.java
@@ -38,7 +38,7 @@ public interface WaitStatisticsClient {
* @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 represents a Wait Statistic.
+ * @return represents a Wait Statistic along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response getWithResponse(
@@ -53,7 +53,7 @@ Response getWithResponse(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a list of wait statistics.
+ * @return a list of wait statistics as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listByServer(
@@ -69,7 +69,7 @@ PagedIterable listByServer(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a list of wait statistics.
+ * @return a list of wait statistics as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listByServer(
diff --git a/sdk/mariadb/azure-resourcemanager-mariadb/src/main/java/com/azure/resourcemanager/mariadb/fluent/models/AdvisorInner.java b/sdk/mariadb/azure-resourcemanager-mariadb/src/main/java/com/azure/resourcemanager/mariadb/fluent/models/AdvisorInner.java
index 0d2fcda31f4b..4579c9136a92 100644
--- a/sdk/mariadb/azure-resourcemanager-mariadb/src/main/java/com/azure/resourcemanager/mariadb/fluent/models/AdvisorInner.java
+++ b/sdk/mariadb/azure-resourcemanager-mariadb/src/main/java/com/azure/resourcemanager/mariadb/fluent/models/AdvisorInner.java
@@ -6,15 +6,11 @@
import com.azure.core.annotation.Fluent;
import com.azure.core.management.ProxyResource;
-import com.azure.core.util.logging.ClientLogger;
-import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
/** Represents a recommendation action advisor. */
@Fluent
public final class AdvisorInner extends ProxyResource {
- @JsonIgnore private final ClientLogger logger = new ClientLogger(AdvisorInner.class);
-
/*
* The properties of a recommendation action advisor.
*/
diff --git a/sdk/mariadb/azure-resourcemanager-mariadb/src/main/java/com/azure/resourcemanager/mariadb/fluent/models/ConfigurationInner.java b/sdk/mariadb/azure-resourcemanager-mariadb/src/main/java/com/azure/resourcemanager/mariadb/fluent/models/ConfigurationInner.java
index 4bfe0f597718..7d282d05e129 100644
--- a/sdk/mariadb/azure-resourcemanager-mariadb/src/main/java/com/azure/resourcemanager/mariadb/fluent/models/ConfigurationInner.java
+++ b/sdk/mariadb/azure-resourcemanager-mariadb/src/main/java/com/azure/resourcemanager/mariadb/fluent/models/ConfigurationInner.java
@@ -5,53 +5,26 @@
package com.azure.resourcemanager.mariadb.fluent.models;
import com.azure.core.annotation.Fluent;
-import com.azure.core.annotation.JsonFlatten;
import com.azure.core.management.ProxyResource;
-import com.azure.core.util.logging.ClientLogger;
-import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
/** Represents a Configuration. */
-@JsonFlatten
@Fluent
-public class ConfigurationInner extends ProxyResource {
- @JsonIgnore private final ClientLogger logger = new ClientLogger(ConfigurationInner.class);
-
+public final class ConfigurationInner extends ProxyResource {
/*
- * Value of the configuration.
+ * The properties of a configuration.
*/
- @JsonProperty(value = "properties.value")
- private String value;
+ @JsonProperty(value = "properties")
+ private ConfigurationProperties innerProperties;
- /*
- * Description of the configuration.
- */
- @JsonProperty(value = "properties.description", access = JsonProperty.Access.WRITE_ONLY)
- private String description;
-
- /*
- * Default value of the configuration.
- */
- @JsonProperty(value = "properties.defaultValue", access = JsonProperty.Access.WRITE_ONLY)
- private String defaultValue;
-
- /*
- * Data type of the configuration.
- */
- @JsonProperty(value = "properties.dataType", access = JsonProperty.Access.WRITE_ONLY)
- private String dataType;
-
- /*
- * Allowed values of the configuration.
- */
- @JsonProperty(value = "properties.allowedValues", access = JsonProperty.Access.WRITE_ONLY)
- private String allowedValues;
-
- /*
- * Source of the configuration.
+ /**
+ * Get the innerProperties property: The properties of a configuration.
+ *
+ * @return the innerProperties value.
*/
- @JsonProperty(value = "properties.source")
- private String source;
+ private ConfigurationProperties innerProperties() {
+ return this.innerProperties;
+ }
/**
* Get the value property: Value of the configuration.
@@ -59,7 +32,7 @@ public class ConfigurationInner extends ProxyResource {
* @return the value value.
*/
public String value() {
- return this.value;
+ return this.innerProperties() == null ? null : this.innerProperties().value();
}
/**
@@ -69,7 +42,10 @@ public String value() {
* @return the ConfigurationInner object itself.
*/
public ConfigurationInner withValue(String value) {
- this.value = value;
+ if (this.innerProperties() == null) {
+ this.innerProperties = new ConfigurationProperties();
+ }
+ this.innerProperties().withValue(value);
return this;
}
@@ -79,7 +55,7 @@ public ConfigurationInner withValue(String value) {
* @return the description value.
*/
public String description() {
- return this.description;
+ return this.innerProperties() == null ? null : this.innerProperties().description();
}
/**
@@ -88,7 +64,7 @@ public String description() {
* @return the defaultValue value.
*/
public String defaultValue() {
- return this.defaultValue;
+ return this.innerProperties() == null ? null : this.innerProperties().defaultValue();
}
/**
@@ -97,7 +73,7 @@ public String defaultValue() {
* @return the dataType value.
*/
public String dataType() {
- return this.dataType;
+ return this.innerProperties() == null ? null : this.innerProperties().dataType();
}
/**
@@ -106,7 +82,7 @@ public String dataType() {
* @return the allowedValues value.
*/
public String allowedValues() {
- return this.allowedValues;
+ return this.innerProperties() == null ? null : this.innerProperties().allowedValues();
}
/**
@@ -115,7 +91,7 @@ public String allowedValues() {
* @return the source value.
*/
public String source() {
- return this.source;
+ return this.innerProperties() == null ? null : this.innerProperties().source();
}
/**
@@ -125,7 +101,10 @@ public String source() {
* @return the ConfigurationInner object itself.
*/
public ConfigurationInner withSource(String source) {
- this.source = source;
+ if (this.innerProperties() == null) {
+ this.innerProperties = new ConfigurationProperties();
+ }
+ this.innerProperties().withSource(source);
return this;
}
@@ -135,5 +114,8 @@ public ConfigurationInner withSource(String source) {
* @throws IllegalArgumentException thrown if the instance is not valid.
*/
public void validate() {
+ if (innerProperties() != null) {
+ innerProperties().validate();
+ }
}
}
diff --git a/sdk/mariadb/azure-resourcemanager-mariadb/src/main/java/com/azure/resourcemanager/mariadb/fluent/models/ConfigurationListResultInner.java b/sdk/mariadb/azure-resourcemanager-mariadb/src/main/java/com/azure/resourcemanager/mariadb/fluent/models/ConfigurationListResultInner.java
index 44434a1ff53b..5885840c9d52 100644
--- a/sdk/mariadb/azure-resourcemanager-mariadb/src/main/java/com/azure/resourcemanager/mariadb/fluent/models/ConfigurationListResultInner.java
+++ b/sdk/mariadb/azure-resourcemanager-mariadb/src/main/java/com/azure/resourcemanager/mariadb/fluent/models/ConfigurationListResultInner.java
@@ -5,16 +5,12 @@
package com.azure.resourcemanager.mariadb.fluent.models;
import com.azure.core.annotation.Fluent;
-import com.azure.core.util.logging.ClientLogger;
-import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.List;
/** A list of server configurations. */
@Fluent
public final class ConfigurationListResultInner {
- @JsonIgnore private final ClientLogger logger = new ClientLogger(ConfigurationListResultInner.class);
-
/*
* The list of server configurations.
*/
diff --git a/sdk/mariadb/azure-resourcemanager-mariadb/src/main/java/com/azure/resourcemanager/mariadb/fluent/models/ConfigurationProperties.java b/sdk/mariadb/azure-resourcemanager-mariadb/src/main/java/com/azure/resourcemanager/mariadb/fluent/models/ConfigurationProperties.java
new file mode 100644
index 000000000000..f1d874481192
--- /dev/null
+++ b/sdk/mariadb/azure-resourcemanager-mariadb/src/main/java/com/azure/resourcemanager/mariadb/fluent/models/ConfigurationProperties.java
@@ -0,0 +1,132 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.mariadb.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/** The properties of a configuration. */
+@Fluent
+public final class ConfigurationProperties {
+ /*
+ * Value of the configuration.
+ */
+ @JsonProperty(value = "value")
+ private String value;
+
+ /*
+ * Description of the configuration.
+ */
+ @JsonProperty(value = "description", access = JsonProperty.Access.WRITE_ONLY)
+ private String description;
+
+ /*
+ * Default value of the configuration.
+ */
+ @JsonProperty(value = "defaultValue", access = JsonProperty.Access.WRITE_ONLY)
+ private String defaultValue;
+
+ /*
+ * Data type of the configuration.
+ */
+ @JsonProperty(value = "dataType", access = JsonProperty.Access.WRITE_ONLY)
+ private String dataType;
+
+ /*
+ * Allowed values of the configuration.
+ */
+ @JsonProperty(value = "allowedValues", access = JsonProperty.Access.WRITE_ONLY)
+ private String allowedValues;
+
+ /*
+ * Source of the configuration.
+ */
+ @JsonProperty(value = "source")
+ private String source;
+
+ /**
+ * Get the value property: Value of the configuration.
+ *
+ * @return the value value.
+ */
+ public String value() {
+ return this.value;
+ }
+
+ /**
+ * Set the value property: Value of the configuration.
+ *
+ * @param value the value value to set.
+ * @return the ConfigurationProperties object itself.
+ */
+ public ConfigurationProperties withValue(String value) {
+ this.value = value;
+ return this;
+ }
+
+ /**
+ * Get the description property: Description of the configuration.
+ *
+ * @return the description value.
+ */
+ public String description() {
+ return this.description;
+ }
+
+ /**
+ * Get the defaultValue property: Default value of the configuration.
+ *
+ * @return the defaultValue value.
+ */
+ public String defaultValue() {
+ return this.defaultValue;
+ }
+
+ /**
+ * Get the dataType property: Data type of the configuration.
+ *
+ * @return the dataType value.
+ */
+ public String dataType() {
+ return this.dataType;
+ }
+
+ /**
+ * Get the allowedValues property: Allowed values of the configuration.
+ *
+ * @return the allowedValues value.
+ */
+ public String allowedValues() {
+ return this.allowedValues;
+ }
+
+ /**
+ * Get the source property: Source of the configuration.
+ *
+ * @return the source value.
+ */
+ public String source() {
+ return this.source;
+ }
+
+ /**
+ * Set the source property: Source of the configuration.
+ *
+ * @param source the source value to set.
+ * @return the ConfigurationProperties object itself.
+ */
+ public ConfigurationProperties withSource(String source) {
+ this.source = source;
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ }
+}
diff --git a/sdk/mariadb/azure-resourcemanager-mariadb/src/main/java/com/azure/resourcemanager/mariadb/fluent/models/DatabaseInner.java b/sdk/mariadb/azure-resourcemanager-mariadb/src/main/java/com/azure/resourcemanager/mariadb/fluent/models/DatabaseInner.java
index af70d9b6c363..fed66e6b6437 100644
--- a/sdk/mariadb/azure-resourcemanager-mariadb/src/main/java/com/azure/resourcemanager/mariadb/fluent/models/DatabaseInner.java
+++ b/sdk/mariadb/azure-resourcemanager-mariadb/src/main/java/com/azure/resourcemanager/mariadb/fluent/models/DatabaseInner.java
@@ -5,29 +5,26 @@
package com.azure.resourcemanager.mariadb.fluent.models;
import com.azure.core.annotation.Fluent;
-import com.azure.core.annotation.JsonFlatten;
import com.azure.core.management.ProxyResource;
-import com.azure.core.util.logging.ClientLogger;
-import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
/** Represents a Database. */
-@JsonFlatten
@Fluent
-public class DatabaseInner extends ProxyResource {
- @JsonIgnore private final ClientLogger logger = new ClientLogger(DatabaseInner.class);
-
+public final class DatabaseInner extends ProxyResource {
/*
- * The charset of the database.
+ * The properties of a database.
*/
- @JsonProperty(value = "properties.charset")
- private String charset;
+ @JsonProperty(value = "properties")
+ private DatabaseProperties innerProperties;
- /*
- * The collation of the database.
+ /**
+ * Get the innerProperties property: The properties of a database.
+ *
+ * @return the innerProperties value.
*/
- @JsonProperty(value = "properties.collation")
- private String collation;
+ private DatabaseProperties innerProperties() {
+ return this.innerProperties;
+ }
/**
* Get the charset property: The charset of the database.
@@ -35,7 +32,7 @@ public class DatabaseInner extends ProxyResource {
* @return the charset value.
*/
public String charset() {
- return this.charset;
+ return this.innerProperties() == null ? null : this.innerProperties().charset();
}
/**
@@ -45,7 +42,10 @@ public String charset() {
* @return the DatabaseInner object itself.
*/
public DatabaseInner withCharset(String charset) {
- this.charset = charset;
+ if (this.innerProperties() == null) {
+ this.innerProperties = new DatabaseProperties();
+ }
+ this.innerProperties().withCharset(charset);
return this;
}
@@ -55,7 +55,7 @@ public DatabaseInner withCharset(String charset) {
* @return the collation value.
*/
public String collation() {
- return this.collation;
+ return this.innerProperties() == null ? null : this.innerProperties().collation();
}
/**
@@ -65,7 +65,10 @@ public String collation() {
* @return the DatabaseInner object itself.
*/
public DatabaseInner withCollation(String collation) {
- this.collation = collation;
+ if (this.innerProperties() == null) {
+ this.innerProperties = new DatabaseProperties();
+ }
+ this.innerProperties().withCollation(collation);
return this;
}
@@ -75,5 +78,8 @@ public DatabaseInner withCollation(String collation) {
* @throws IllegalArgumentException thrown if the instance is not valid.
*/
public void validate() {
+ if (innerProperties() != null) {
+ innerProperties().validate();
+ }
}
}
diff --git a/sdk/mariadb/azure-resourcemanager-mariadb/src/main/java/com/azure/resourcemanager/mariadb/fluent/models/DatabaseProperties.java b/sdk/mariadb/azure-resourcemanager-mariadb/src/main/java/com/azure/resourcemanager/mariadb/fluent/models/DatabaseProperties.java
new file mode 100644
index 000000000000..2ceb9a42bf7e
--- /dev/null
+++ b/sdk/mariadb/azure-resourcemanager-mariadb/src/main/java/com/azure/resourcemanager/mariadb/fluent/models/DatabaseProperties.java
@@ -0,0 +1,72 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.mariadb.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/** The properties of a database. */
+@Fluent
+public final class DatabaseProperties {
+ /*
+ * The charset of the database.
+ */
+ @JsonProperty(value = "charset")
+ private String charset;
+
+ /*
+ * The collation of the database.
+ */
+ @JsonProperty(value = "collation")
+ private String collation;
+
+ /**
+ * Get the charset property: The charset of the database.
+ *
+ * @return the charset value.
+ */
+ public String charset() {
+ return this.charset;
+ }
+
+ /**
+ * Set the charset property: The charset of the database.
+ *
+ * @param charset the charset value to set.
+ * @return the DatabaseProperties object itself.
+ */
+ public DatabaseProperties withCharset(String charset) {
+ this.charset = charset;
+ return this;
+ }
+
+ /**
+ * Get the collation property: The collation of the database.
+ *
+ * @return the collation value.
+ */
+ public String collation() {
+ return this.collation;
+ }
+
+ /**
+ * Set the collation property: The collation of the database.
+ *
+ * @param collation the collation value to set.
+ * @return the DatabaseProperties object itself.
+ */
+ public DatabaseProperties withCollation(String collation) {
+ this.collation = collation;
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ }
+}
diff --git a/sdk/mariadb/azure-resourcemanager-mariadb/src/main/java/com/azure/resourcemanager/mariadb/fluent/models/FirewallRuleInner.java b/sdk/mariadb/azure-resourcemanager-mariadb/src/main/java/com/azure/resourcemanager/mariadb/fluent/models/FirewallRuleInner.java
index 56e68a42d7af..b7da2bc9075e 100644
--- a/sdk/mariadb/azure-resourcemanager-mariadb/src/main/java/com/azure/resourcemanager/mariadb/fluent/models/FirewallRuleInner.java
+++ b/sdk/mariadb/azure-resourcemanager-mariadb/src/main/java/com/azure/resourcemanager/mariadb/fluent/models/FirewallRuleInner.java
@@ -5,29 +5,27 @@
package com.azure.resourcemanager.mariadb.fluent.models;
import com.azure.core.annotation.Fluent;
-import com.azure.core.annotation.JsonFlatten;
import com.azure.core.management.ProxyResource;
import com.azure.core.util.logging.ClientLogger;
-import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
/** Represents a server firewall rule. */
-@JsonFlatten
@Fluent
-public class FirewallRuleInner extends ProxyResource {
- @JsonIgnore private final ClientLogger logger = new ClientLogger(FirewallRuleInner.class);
-
+public final class FirewallRuleInner extends ProxyResource {
/*
- * The start IP address of the server firewall rule. Must be IPv4 format.
+ * The properties of a firewall rule.
*/
- @JsonProperty(value = "properties.startIpAddress", required = true)
- private String startIpAddress;
+ @JsonProperty(value = "properties", required = true)
+ private FirewallRuleProperties innerProperties = new FirewallRuleProperties();
- /*
- * The end IP address of the server firewall rule. Must be IPv4 format.
+ /**
+ * Get the innerProperties property: The properties of a firewall rule.
+ *
+ * @return the innerProperties value.
*/
- @JsonProperty(value = "properties.endIpAddress", required = true)
- private String endIpAddress;
+ private FirewallRuleProperties innerProperties() {
+ return this.innerProperties;
+ }
/**
* Get the startIpAddress property: The start IP address of the server firewall rule. Must be IPv4 format.
@@ -35,7 +33,7 @@ public class FirewallRuleInner extends ProxyResource {
* @return the startIpAddress value.
*/
public String startIpAddress() {
- return this.startIpAddress;
+ return this.innerProperties() == null ? null : this.innerProperties().startIpAddress();
}
/**
@@ -45,7 +43,10 @@ public String startIpAddress() {
* @return the FirewallRuleInner object itself.
*/
public FirewallRuleInner withStartIpAddress(String startIpAddress) {
- this.startIpAddress = startIpAddress;
+ if (this.innerProperties() == null) {
+ this.innerProperties = new FirewallRuleProperties();
+ }
+ this.innerProperties().withStartIpAddress(startIpAddress);
return this;
}
@@ -55,7 +56,7 @@ public FirewallRuleInner withStartIpAddress(String startIpAddress) {
* @return the endIpAddress value.
*/
public String endIpAddress() {
- return this.endIpAddress;
+ return this.innerProperties() == null ? null : this.innerProperties().endIpAddress();
}
/**
@@ -65,7 +66,10 @@ public String endIpAddress() {
* @return the FirewallRuleInner object itself.
*/
public FirewallRuleInner withEndIpAddress(String endIpAddress) {
- this.endIpAddress = endIpAddress;
+ if (this.innerProperties() == null) {
+ this.innerProperties = new FirewallRuleProperties();
+ }
+ this.innerProperties().withEndIpAddress(endIpAddress);
return this;
}
@@ -75,16 +79,15 @@ public FirewallRuleInner withEndIpAddress(String endIpAddress) {
* @throws IllegalArgumentException thrown if the instance is not valid.
*/
public void validate() {
- if (startIpAddress() == null) {
- throw logger
+ if (innerProperties() == null) {
+ throw LOGGER
.logExceptionAsError(
new IllegalArgumentException(
- "Missing required property startIpAddress in model FirewallRuleInner"));
- }
- if (endIpAddress() == null) {
- throw logger
- .logExceptionAsError(
- new IllegalArgumentException("Missing required property endIpAddress in model FirewallRuleInner"));
+ "Missing required property innerProperties in model FirewallRuleInner"));
+ } else {
+ innerProperties().validate();
}
}
+
+ private static final ClientLogger LOGGER = new ClientLogger(FirewallRuleInner.class);
}
diff --git a/sdk/mariadb/azure-resourcemanager-mariadb/src/main/java/com/azure/resourcemanager/mariadb/fluent/models/FirewallRuleProperties.java b/sdk/mariadb/azure-resourcemanager-mariadb/src/main/java/com/azure/resourcemanager/mariadb/fluent/models/FirewallRuleProperties.java
new file mode 100644
index 000000000000..485952a40711
--- /dev/null
+++ b/sdk/mariadb/azure-resourcemanager-mariadb/src/main/java/com/azure/resourcemanager/mariadb/fluent/models/FirewallRuleProperties.java
@@ -0,0 +1,87 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.mariadb.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.util.logging.ClientLogger;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/** The properties of a server firewall rule. */
+@Fluent
+public final class FirewallRuleProperties {
+ /*
+ * The start IP address of the server firewall rule. Must be IPv4 format.
+ */
+ @JsonProperty(value = "startIpAddress", required = true)
+ private String startIpAddress;
+
+ /*
+ * The end IP address of the server firewall rule. Must be IPv4 format.
+ */
+ @JsonProperty(value = "endIpAddress", required = true)
+ private String endIpAddress;
+
+ /**
+ * Get the startIpAddress property: The start IP address of the server firewall rule. Must be IPv4 format.
+ *
+ * @return the startIpAddress value.
+ */
+ public String startIpAddress() {
+ return this.startIpAddress;
+ }
+
+ /**
+ * Set the startIpAddress property: The start IP address of the server firewall rule. Must be IPv4 format.
+ *
+ * @param startIpAddress the startIpAddress value to set.
+ * @return the FirewallRuleProperties object itself.
+ */
+ public FirewallRuleProperties withStartIpAddress(String startIpAddress) {
+ this.startIpAddress = startIpAddress;
+ return this;
+ }
+
+ /**
+ * Get the endIpAddress property: The end IP address of the server firewall rule. Must be IPv4 format.
+ *
+ * @return the endIpAddress value.
+ */
+ public String endIpAddress() {
+ return this.endIpAddress;
+ }
+
+ /**
+ * Set the endIpAddress property: The end IP address of the server firewall rule. Must be IPv4 format.
+ *
+ * @param endIpAddress the endIpAddress value to set.
+ * @return the FirewallRuleProperties object itself.
+ */
+ public FirewallRuleProperties withEndIpAddress(String endIpAddress) {
+ this.endIpAddress = endIpAddress;
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (startIpAddress() == null) {
+ throw LOGGER
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ "Missing required property startIpAddress in model FirewallRuleProperties"));
+ }
+ if (endIpAddress() == null) {
+ throw LOGGER
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ "Missing required property endIpAddress in model FirewallRuleProperties"));
+ }
+ }
+
+ private static final ClientLogger LOGGER = new ClientLogger(FirewallRuleProperties.class);
+}
diff --git a/sdk/mariadb/azure-resourcemanager-mariadb/src/main/java/com/azure/resourcemanager/mariadb/fluent/models/LogFileInner.java b/sdk/mariadb/azure-resourcemanager-mariadb/src/main/java/com/azure/resourcemanager/mariadb/fluent/models/LogFileInner.java
index 804a63f60f13..c4c3ce13d3b0 100644
--- a/sdk/mariadb/azure-resourcemanager-mariadb/src/main/java/com/azure/resourcemanager/mariadb/fluent/models/LogFileInner.java
+++ b/sdk/mariadb/azure-resourcemanager-mariadb/src/main/java/com/azure/resourcemanager/mariadb/fluent/models/LogFileInner.java
@@ -5,48 +5,27 @@
package com.azure.resourcemanager.mariadb.fluent.models;
import com.azure.core.annotation.Fluent;
-import com.azure.core.annotation.JsonFlatten;
import com.azure.core.management.ProxyResource;
-import com.azure.core.util.logging.ClientLogger;
-import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.time.OffsetDateTime;
/** Represents a log file. */
-@JsonFlatten
@Fluent
-public class LogFileInner extends ProxyResource {
- @JsonIgnore private final ClientLogger logger = new ClientLogger(LogFileInner.class);
-
- /*
- * Size of the log file.
- */
- @JsonProperty(value = "properties.sizeInKB")
- private Long sizeInKB;
-
- /*
- * Creation timestamp of the log file.
- */
- @JsonProperty(value = "properties.createdTime", access = JsonProperty.Access.WRITE_ONLY)
- private OffsetDateTime createdTime;
-
+public final class LogFileInner extends ProxyResource {
/*
- * Last modified timestamp of the log file.
+ * The properties of the log file.
*/
- @JsonProperty(value = "properties.lastModifiedTime", access = JsonProperty.Access.WRITE_ONLY)
- private OffsetDateTime lastModifiedTime;
+ @JsonProperty(value = "properties")
+ private LogFileProperties innerProperties;
- /*
- * Type of the log file.
- */
- @JsonProperty(value = "properties.type")
- private String typePropertiesType;
-
- /*
- * The url to download the log file from.
+ /**
+ * Get the innerProperties property: The properties of the log file.
+ *
+ * @return the innerProperties value.
*/
- @JsonProperty(value = "properties.url", access = JsonProperty.Access.WRITE_ONLY)
- private String url;
+ private LogFileProperties innerProperties() {
+ return this.innerProperties;
+ }
/**
* Get the sizeInKB property: Size of the log file.
@@ -54,7 +33,7 @@ public class LogFileInner extends ProxyResource {
* @return the sizeInKB value.
*/
public Long sizeInKB() {
- return this.sizeInKB;
+ return this.innerProperties() == null ? null : this.innerProperties().sizeInKB();
}
/**
@@ -64,7 +43,10 @@ public Long sizeInKB() {
* @return the LogFileInner object itself.
*/
public LogFileInner withSizeInKB(Long sizeInKB) {
- this.sizeInKB = sizeInKB;
+ if (this.innerProperties() == null) {
+ this.innerProperties = new LogFileProperties();
+ }
+ this.innerProperties().withSizeInKB(sizeInKB);
return this;
}
@@ -74,7 +56,7 @@ public LogFileInner withSizeInKB(Long sizeInKB) {
* @return the createdTime value.
*/
public OffsetDateTime createdTime() {
- return this.createdTime;
+ return this.innerProperties() == null ? null : this.innerProperties().createdTime();
}
/**
@@ -83,26 +65,29 @@ public OffsetDateTime createdTime() {
* @return the lastModifiedTime value.
*/
public OffsetDateTime lastModifiedTime() {
- return this.lastModifiedTime;
+ return this.innerProperties() == null ? null : this.innerProperties().lastModifiedTime();
}
/**
- * Get the typePropertiesType property: Type of the log file.
+ * Get the type property: Type of the log file.
*
- * @return the typePropertiesType value.
+ * @return the type value.
*/
public String typePropertiesType() {
- return this.typePropertiesType;
+ return this.innerProperties() == null ? null : this.innerProperties().type();
}
/**
- * Set the typePropertiesType property: Type of the log file.
+ * Set the type property: Type of the log file.
*
- * @param typePropertiesType the typePropertiesType value to set.
+ * @param type the type value to set.
* @return the LogFileInner object itself.
*/
- public LogFileInner withTypePropertiesType(String typePropertiesType) {
- this.typePropertiesType = typePropertiesType;
+ public LogFileInner withTypePropertiesType(String type) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new LogFileProperties();
+ }
+ this.innerProperties().withType(type);
return this;
}
@@ -112,7 +97,7 @@ public LogFileInner withTypePropertiesType(String typePropertiesType) {
* @return the url value.
*/
public String url() {
- return this.url;
+ return this.innerProperties() == null ? null : this.innerProperties().url();
}
/**
@@ -121,5 +106,8 @@ public String url() {
* @throws IllegalArgumentException thrown if the instance is not valid.
*/
public void validate() {
+ if (innerProperties() != null) {
+ innerProperties().validate();
+ }
}
}
diff --git a/sdk/mariadb/azure-resourcemanager-mariadb/src/main/java/com/azure/resourcemanager/mariadb/fluent/models/LogFileProperties.java b/sdk/mariadb/azure-resourcemanager-mariadb/src/main/java/com/azure/resourcemanager/mariadb/fluent/models/LogFileProperties.java
new file mode 100644
index 000000000000..e1e67877d925
--- /dev/null
+++ b/sdk/mariadb/azure-resourcemanager-mariadb/src/main/java/com/azure/resourcemanager/mariadb/fluent/models/LogFileProperties.java
@@ -0,0 +1,118 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.mariadb.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import java.time.OffsetDateTime;
+
+/** The properties of a log file. */
+@Fluent
+public final class LogFileProperties {
+ /*
+ * Size of the log file.
+ */
+ @JsonProperty(value = "sizeInKB")
+ private Long sizeInKB;
+
+ /*
+ * Creation timestamp of the log file.
+ */
+ @JsonProperty(value = "createdTime", access = JsonProperty.Access.WRITE_ONLY)
+ private OffsetDateTime createdTime;
+
+ /*
+ * Last modified timestamp of the log file.
+ */
+ @JsonProperty(value = "lastModifiedTime", access = JsonProperty.Access.WRITE_ONLY)
+ private OffsetDateTime lastModifiedTime;
+
+ /*
+ * Type of the log file.
+ */
+ @JsonProperty(value = "type")
+ private String type;
+
+ /*
+ * The url to download the log file from.
+ */
+ @JsonProperty(value = "url", access = JsonProperty.Access.WRITE_ONLY)
+ private String url;
+
+ /**
+ * Get the sizeInKB property: Size of the log file.
+ *
+ * @return the sizeInKB value.
+ */
+ public Long sizeInKB() {
+ return this.sizeInKB;
+ }
+
+ /**
+ * Set the sizeInKB property: Size of the log file.
+ *
+ * @param sizeInKB the sizeInKB value to set.
+ * @return the LogFileProperties object itself.
+ */
+ public LogFileProperties withSizeInKB(Long sizeInKB) {
+ this.sizeInKB = sizeInKB;
+ return this;
+ }
+
+ /**
+ * Get the createdTime property: Creation timestamp of the log file.
+ *
+ * @return the createdTime value.
+ */
+ public OffsetDateTime createdTime() {
+ return this.createdTime;
+ }
+
+ /**
+ * Get the lastModifiedTime property: Last modified timestamp of the log file.
+ *
+ * @return the lastModifiedTime value.
+ */
+ public OffsetDateTime lastModifiedTime() {
+ return this.lastModifiedTime;
+ }
+
+ /**
+ * Get the type property: Type of the log file.
+ *
+ * @return the type value.
+ */
+ public String type() {
+ return this.type;
+ }
+
+ /**
+ * Set the type property: Type of the log file.
+ *
+ * @param type the type value to set.
+ * @return the LogFileProperties object itself.
+ */
+ public LogFileProperties withType(String type) {
+ this.type = type;
+ return this;
+ }
+
+ /**
+ * Get the url property: The url to download the log file from.
+ *
+ * @return the url value.
+ */
+ public String url() {
+ return this.url;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ }
+}
diff --git a/sdk/mariadb/azure-resourcemanager-mariadb/src/main/java/com/azure/resourcemanager/mariadb/fluent/models/NameAvailabilityInner.java b/sdk/mariadb/azure-resourcemanager-mariadb/src/main/java/com/azure/resourcemanager/mariadb/fluent/models/NameAvailabilityInner.java
index 3096e7c39705..fb23a99b17ba 100644
--- a/sdk/mariadb/azure-resourcemanager-mariadb/src/main/java/com/azure/resourcemanager/mariadb/fluent/models/NameAvailabilityInner.java
+++ b/sdk/mariadb/azure-resourcemanager-mariadb/src/main/java/com/azure/resourcemanager/mariadb/fluent/models/NameAvailabilityInner.java
@@ -5,15 +5,11 @@
package com.azure.resourcemanager.mariadb.fluent.models;
import com.azure.core.annotation.Fluent;
-import com.azure.core.util.logging.ClientLogger;
-import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
/** Represents a resource name availability. */
@Fluent
public final class NameAvailabilityInner {
- @JsonIgnore private final ClientLogger logger = new ClientLogger(NameAvailabilityInner.class);
-
/*
* Error Message.
*/
diff --git a/sdk/mariadb/azure-resourcemanager-mariadb/src/main/java/com/azure/resourcemanager/mariadb/fluent/models/OperationListResultInner.java b/sdk/mariadb/azure-resourcemanager-mariadb/src/main/java/com/azure/resourcemanager/mariadb/fluent/models/OperationListResultInner.java
index 0b1b737342ea..7a2693c9992c 100644
--- a/sdk/mariadb/azure-resourcemanager-mariadb/src/main/java/com/azure/resourcemanager/mariadb/fluent/models/OperationListResultInner.java
+++ b/sdk/mariadb/azure-resourcemanager-mariadb/src/main/java/com/azure/resourcemanager/mariadb/fluent/models/OperationListResultInner.java
@@ -5,17 +5,13 @@
package com.azure.resourcemanager.mariadb.fluent.models;
import com.azure.core.annotation.Fluent;
-import com.azure.core.util.logging.ClientLogger;
import com.azure.resourcemanager.mariadb.models.Operation;
-import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.List;
/** A list of resource provider operations. */
@Fluent
public final class OperationListResultInner {
- @JsonIgnore private final ClientLogger logger = new ClientLogger(OperationListResultInner.class);
-
/*
* The list of resource provider operations.
*/
diff --git a/sdk/mariadb/azure-resourcemanager-mariadb/src/main/java/com/azure/resourcemanager/mariadb/fluent/models/PerformanceTierPropertiesInner.java b/sdk/mariadb/azure-resourcemanager-mariadb/src/main/java/com/azure/resourcemanager/mariadb/fluent/models/PerformanceTierPropertiesInner.java
index 8c399e47344c..5fa43dd0a600 100644
--- a/sdk/mariadb/azure-resourcemanager-mariadb/src/main/java/com/azure/resourcemanager/mariadb/fluent/models/PerformanceTierPropertiesInner.java
+++ b/sdk/mariadb/azure-resourcemanager-mariadb/src/main/java/com/azure/resourcemanager/mariadb/fluent/models/PerformanceTierPropertiesInner.java
@@ -5,17 +5,13 @@
package com.azure.resourcemanager.mariadb.fluent.models;
import com.azure.core.annotation.Fluent;
-import com.azure.core.util.logging.ClientLogger;
import com.azure.resourcemanager.mariadb.models.PerformanceTierServiceLevelObjectives;
-import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.List;
/** Performance tier properties. */
@Fluent
public final class PerformanceTierPropertiesInner {
- @JsonIgnore private final ClientLogger logger = new ClientLogger(PerformanceTierPropertiesInner.class);
-
/*
* ID of the performance tier.
*/
diff --git a/sdk/mariadb/azure-resourcemanager-mariadb/src/main/java/com/azure/resourcemanager/mariadb/fluent/models/PrivateEndpointConnectionInner.java b/sdk/mariadb/azure-resourcemanager-mariadb/src/main/java/com/azure/resourcemanager/mariadb/fluent/models/PrivateEndpointConnectionInner.java
index 6e908201b18f..492800d6f008 100644
--- a/sdk/mariadb/azure-resourcemanager-mariadb/src/main/java/com/azure/resourcemanager/mariadb/fluent/models/PrivateEndpointConnectionInner.java
+++ b/sdk/mariadb/azure-resourcemanager-mariadb/src/main/java/com/azure/resourcemanager/mariadb/fluent/models/PrivateEndpointConnectionInner.java
@@ -5,37 +5,28 @@
package com.azure.resourcemanager.mariadb.fluent.models;
import com.azure.core.annotation.Fluent;
-import com.azure.core.annotation.JsonFlatten;
import com.azure.core.management.ProxyResource;
-import com.azure.core.util.logging.ClientLogger;
import com.azure.resourcemanager.mariadb.models.PrivateEndpointProperty;
import com.azure.resourcemanager.mariadb.models.PrivateLinkServiceConnectionStateProperty;
-import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
/** A private endpoint connection. */
-@JsonFlatten
@Fluent
-public class PrivateEndpointConnectionInner extends ProxyResource {
- @JsonIgnore private final ClientLogger logger = new ClientLogger(PrivateEndpointConnectionInner.class);
-
- /*
- * Private endpoint which the connection belongs to.
- */
- @JsonProperty(value = "properties.privateEndpoint")
- private PrivateEndpointProperty privateEndpoint;
-
+public final class PrivateEndpointConnectionInner extends ProxyResource {
/*
- * Connection state of the private endpoint connection.
+ * Resource properties.
*/
- @JsonProperty(value = "properties.privateLinkServiceConnectionState")
- private PrivateLinkServiceConnectionStateProperty privateLinkServiceConnectionState;
+ @JsonProperty(value = "properties")
+ private PrivateEndpointConnectionProperties innerProperties;
- /*
- * State of the private endpoint connection.
+ /**
+ * Get the innerProperties property: Resource properties.
+ *
+ * @return the innerProperties value.
*/
- @JsonProperty(value = "properties.provisioningState", access = JsonProperty.Access.WRITE_ONLY)
- private String provisioningState;
+ private PrivateEndpointConnectionProperties innerProperties() {
+ return this.innerProperties;
+ }
/**
* Get the privateEndpoint property: Private endpoint which the connection belongs to.
@@ -43,7 +34,7 @@ public class PrivateEndpointConnectionInner extends ProxyResource {
* @return the privateEndpoint value.
*/
public PrivateEndpointProperty privateEndpoint() {
- return this.privateEndpoint;
+ return this.innerProperties() == null ? null : this.innerProperties().privateEndpoint();
}
/**
@@ -53,7 +44,10 @@ public PrivateEndpointProperty privateEndpoint() {
* @return the PrivateEndpointConnectionInner object itself.
*/
public PrivateEndpointConnectionInner withPrivateEndpoint(PrivateEndpointProperty privateEndpoint) {
- this.privateEndpoint = privateEndpoint;
+ if (this.innerProperties() == null) {
+ this.innerProperties = new PrivateEndpointConnectionProperties();
+ }
+ this.innerProperties().withPrivateEndpoint(privateEndpoint);
return this;
}
@@ -63,7 +57,7 @@ public PrivateEndpointConnectionInner withPrivateEndpoint(PrivateEndpointPropert
* @return the privateLinkServiceConnectionState value.
*/
public PrivateLinkServiceConnectionStateProperty privateLinkServiceConnectionState() {
- return this.privateLinkServiceConnectionState;
+ return this.innerProperties() == null ? null : this.innerProperties().privateLinkServiceConnectionState();
}
/**
@@ -74,7 +68,10 @@ public PrivateLinkServiceConnectionStateProperty privateLinkServiceConnectionSta
*/
public PrivateEndpointConnectionInner withPrivateLinkServiceConnectionState(
PrivateLinkServiceConnectionStateProperty privateLinkServiceConnectionState) {
- this.privateLinkServiceConnectionState = privateLinkServiceConnectionState;
+ if (this.innerProperties() == null) {
+ this.innerProperties = new PrivateEndpointConnectionProperties();
+ }
+ this.innerProperties().withPrivateLinkServiceConnectionState(privateLinkServiceConnectionState);
return this;
}
@@ -84,7 +81,7 @@ public PrivateEndpointConnectionInner withPrivateLinkServiceConnectionState(
* @return the provisioningState value.
*/
public String provisioningState() {
- return this.provisioningState;
+ return this.innerProperties() == null ? null : this.innerProperties().provisioningState();
}
/**
@@ -93,11 +90,8 @@ public String provisioningState() {
* @throws IllegalArgumentException thrown if the instance is not valid.
*/
public void validate() {
- if (privateEndpoint() != null) {
- privateEndpoint().validate();
- }
- if (privateLinkServiceConnectionState() != null) {
- privateLinkServiceConnectionState().validate();
+ if (innerProperties() != null) {
+ innerProperties().validate();
}
}
}
diff --git a/sdk/mariadb/azure-resourcemanager-mariadb/src/main/java/com/azure/resourcemanager/mariadb/fluent/models/PrivateEndpointConnectionProperties.java b/sdk/mariadb/azure-resourcemanager-mariadb/src/main/java/com/azure/resourcemanager/mariadb/fluent/models/PrivateEndpointConnectionProperties.java
new file mode 100644
index 000000000000..2f9d7bbe219c
--- /dev/null
+++ b/sdk/mariadb/azure-resourcemanager-mariadb/src/main/java/com/azure/resourcemanager/mariadb/fluent/models/PrivateEndpointConnectionProperties.java
@@ -0,0 +1,96 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.mariadb.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.resourcemanager.mariadb.models.PrivateEndpointProperty;
+import com.azure.resourcemanager.mariadb.models.PrivateLinkServiceConnectionStateProperty;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/** Properties of a private endpoint connection. */
+@Fluent
+public final class PrivateEndpointConnectionProperties {
+ /*
+ * Private endpoint which the connection belongs to.
+ */
+ @JsonProperty(value = "privateEndpoint")
+ private PrivateEndpointProperty privateEndpoint;
+
+ /*
+ * Connection state of the private endpoint connection.
+ */
+ @JsonProperty(value = "privateLinkServiceConnectionState")
+ private PrivateLinkServiceConnectionStateProperty privateLinkServiceConnectionState;
+
+ /*
+ * State of the private endpoint connection.
+ */
+ @JsonProperty(value = "provisioningState", access = JsonProperty.Access.WRITE_ONLY)
+ private String provisioningState;
+
+ /**
+ * Get the privateEndpoint property: Private endpoint which the connection belongs to.
+ *
+ * @return the privateEndpoint value.
+ */
+ public PrivateEndpointProperty privateEndpoint() {
+ return this.privateEndpoint;
+ }
+
+ /**
+ * Set the privateEndpoint property: Private endpoint which the connection belongs to.
+ *
+ * @param privateEndpoint the privateEndpoint value to set.
+ * @return the PrivateEndpointConnectionProperties object itself.
+ */
+ public PrivateEndpointConnectionProperties withPrivateEndpoint(PrivateEndpointProperty privateEndpoint) {
+ this.privateEndpoint = privateEndpoint;
+ return this;
+ }
+
+ /**
+ * Get the privateLinkServiceConnectionState property: Connection state of the private endpoint connection.
+ *
+ * @return the privateLinkServiceConnectionState value.
+ */
+ public PrivateLinkServiceConnectionStateProperty privateLinkServiceConnectionState() {
+ return this.privateLinkServiceConnectionState;
+ }
+
+ /**
+ * Set the privateLinkServiceConnectionState property: Connection state of the private endpoint connection.
+ *
+ * @param privateLinkServiceConnectionState the privateLinkServiceConnectionState value to set.
+ * @return the PrivateEndpointConnectionProperties object itself.
+ */
+ public PrivateEndpointConnectionProperties withPrivateLinkServiceConnectionState(
+ PrivateLinkServiceConnectionStateProperty privateLinkServiceConnectionState) {
+ this.privateLinkServiceConnectionState = privateLinkServiceConnectionState;
+ return this;
+ }
+
+ /**
+ * Get the provisioningState property: State of the private endpoint connection.
+ *
+ * @return the provisioningState value.
+ */
+ public String provisioningState() {
+ return this.provisioningState;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (privateEndpoint() != null) {
+ privateEndpoint().validate();
+ }
+ if (privateLinkServiceConnectionState() != null) {
+ privateLinkServiceConnectionState().validate();
+ }
+ }
+}
diff --git a/sdk/mariadb/azure-resourcemanager-mariadb/src/main/java/com/azure/resourcemanager/mariadb/fluent/models/PrivateLinkResourceInner.java b/sdk/mariadb/azure-resourcemanager-mariadb/src/main/java/com/azure/resourcemanager/mariadb/fluent/models/PrivateLinkResourceInner.java
index c5ca68c7ec38..968711c51c7e 100644
--- a/sdk/mariadb/azure-resourcemanager-mariadb/src/main/java/com/azure/resourcemanager/mariadb/fluent/models/PrivateLinkResourceInner.java
+++ b/sdk/mariadb/azure-resourcemanager-mariadb/src/main/java/com/azure/resourcemanager/mariadb/fluent/models/PrivateLinkResourceInner.java
@@ -6,16 +6,12 @@
import com.azure.core.annotation.Immutable;
import com.azure.core.management.ProxyResource;
-import com.azure.core.util.logging.ClientLogger;
import com.azure.resourcemanager.mariadb.models.PrivateLinkResourceProperties;
-import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
/** A private link resource. */
@Immutable
public final class PrivateLinkResourceInner extends ProxyResource {
- @JsonIgnore private final ClientLogger logger = new ClientLogger(PrivateLinkResourceInner.class);
-
/*
* The private link resource group id.
*/
diff --git a/sdk/mariadb/azure-resourcemanager-mariadb/src/main/java/com/azure/resourcemanager/mariadb/fluent/models/QueryPerformanceInsightResetDataResultInner.java b/sdk/mariadb/azure-resourcemanager-mariadb/src/main/java/com/azure/resourcemanager/mariadb/fluent/models/QueryPerformanceInsightResetDataResultInner.java
index 9c19716c3494..50fa33a9292e 100644
--- a/sdk/mariadb/azure-resourcemanager-mariadb/src/main/java/com/azure/resourcemanager/mariadb/fluent/models/QueryPerformanceInsightResetDataResultInner.java
+++ b/sdk/mariadb/azure-resourcemanager-mariadb/src/main/java/com/azure/resourcemanager/mariadb/fluent/models/QueryPerformanceInsightResetDataResultInner.java
@@ -5,16 +5,12 @@
package com.azure.resourcemanager.mariadb.fluent.models;
import com.azure.core.annotation.Fluent;
-import com.azure.core.util.logging.ClientLogger;
import com.azure.resourcemanager.mariadb.models.QueryPerformanceInsightResetDataResultState;
-import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
/** Result of Query Performance Insight data reset. */
@Fluent
public final class QueryPerformanceInsightResetDataResultInner {
- @JsonIgnore private final ClientLogger logger = new ClientLogger(QueryPerformanceInsightResetDataResultInner.class);
-
/*
* Indicates result of the operation.
*/
diff --git a/sdk/mariadb/azure-resourcemanager-mariadb/src/main/java/com/azure/resourcemanager/mariadb/fluent/models/QueryStatisticInner.java b/sdk/mariadb/azure-resourcemanager-mariadb/src/main/java/com/azure/resourcemanager/mariadb/fluent/models/QueryStatisticInner.java
index 0898f2f39b47..c3881e312883 100644
--- a/sdk/mariadb/azure-resourcemanager-mariadb/src/main/java/com/azure/resourcemanager/mariadb/fluent/models/QueryStatisticInner.java
+++ b/sdk/mariadb/azure-resourcemanager-mariadb/src/main/java/com/azure/resourcemanager/mariadb/fluent/models/QueryStatisticInner.java
@@ -5,79 +5,28 @@
package com.azure.resourcemanager.mariadb.fluent.models;
import com.azure.core.annotation.Fluent;
-import com.azure.core.annotation.JsonFlatten;
import com.azure.core.management.ProxyResource;
-import com.azure.core.util.logging.ClientLogger;
-import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.time.OffsetDateTime;
import java.util.List;
/** Represents a Query Statistic. */
-@JsonFlatten
@Fluent
-public class QueryStatisticInner extends ProxyResource {
- @JsonIgnore private final ClientLogger logger = new ClientLogger(QueryStatisticInner.class);
-
- /*
- * Database query identifier.
- */
- @JsonProperty(value = "properties.queryId")
- private String queryId;
-
+public final class QueryStatisticInner extends ProxyResource {
/*
- * Observation start time.
+ * The properties of a query statistic.
*/
- @JsonProperty(value = "properties.startTime")
- private OffsetDateTime startTime;
+ @JsonProperty(value = "properties")
+ private QueryStatisticProperties innerProperties;
- /*
- * Observation end time.
- */
- @JsonProperty(value = "properties.endTime")
- private OffsetDateTime endTime;
-
- /*
- * Aggregation function name.
- */
- @JsonProperty(value = "properties.aggregationFunction")
- private String aggregationFunction;
-
- /*
- * The list of database names.
- */
- @JsonProperty(value = "properties.databaseNames")
- private List databaseNames;
-
- /*
- * Number of query executions in this time interval.
- */
- @JsonProperty(value = "properties.queryExecutionCount")
- private Long queryExecutionCount;
-
- /*
- * Metric name.
- */
- @JsonProperty(value = "properties.metricName")
- private String metricName;
-
- /*
- * Metric display name.
- */
- @JsonProperty(value = "properties.metricDisplayName")
- private String metricDisplayName;
-
- /*
- * Metric value.
- */
- @JsonProperty(value = "properties.metricValue")
- private Double metricValue;
-
- /*
- * Metric value unit.
+ /**
+ * Get the innerProperties property: The properties of a query statistic.
+ *
+ * @return the innerProperties value.
*/
- @JsonProperty(value = "properties.metricValueUnit")
- private String metricValueUnit;
+ private QueryStatisticProperties innerProperties() {
+ return this.innerProperties;
+ }
/**
* Get the queryId property: Database query identifier.
@@ -85,7 +34,7 @@ public class QueryStatisticInner extends ProxyResource {
* @return the queryId value.
*/
public String queryId() {
- return this.queryId;
+ return this.innerProperties() == null ? null : this.innerProperties().queryId();
}
/**
@@ -95,7 +44,10 @@ public String queryId() {
* @return the QueryStatisticInner object itself.
*/
public QueryStatisticInner withQueryId(String queryId) {
- this.queryId = queryId;
+ if (this.innerProperties() == null) {
+ this.innerProperties = new QueryStatisticProperties();
+ }
+ this.innerProperties().withQueryId(queryId);
return this;
}
@@ -105,7 +57,7 @@ public QueryStatisticInner withQueryId(String queryId) {
* @return the startTime value.
*/
public OffsetDateTime startTime() {
- return this.startTime;
+ return this.innerProperties() == null ? null : this.innerProperties().startTime();
}
/**
@@ -115,7 +67,10 @@ public OffsetDateTime startTime() {
* @return the QueryStatisticInner object itself.
*/
public QueryStatisticInner withStartTime(OffsetDateTime startTime) {
- this.startTime = startTime;
+ if (this.innerProperties() == null) {
+ this.innerProperties = new QueryStatisticProperties();
+ }
+ this.innerProperties().withStartTime(startTime);
return this;
}
@@ -125,7 +80,7 @@ public QueryStatisticInner withStartTime(OffsetDateTime startTime) {
* @return the endTime value.
*/
public OffsetDateTime endTime() {
- return this.endTime;
+ return this.innerProperties() == null ? null : this.innerProperties().endTime();
}
/**
@@ -135,7 +90,10 @@ public OffsetDateTime endTime() {
* @return the QueryStatisticInner object itself.
*/
public QueryStatisticInner withEndTime(OffsetDateTime endTime) {
- this.endTime = endTime;
+ if (this.innerProperties() == null) {
+ this.innerProperties = new QueryStatisticProperties();
+ }
+ this.innerProperties().withEndTime(endTime);
return this;
}
@@ -145,7 +103,7 @@ public QueryStatisticInner withEndTime(OffsetDateTime endTime) {
* @return the aggregationFunction value.
*/
public String aggregationFunction() {
- return this.aggregationFunction;
+ return this.innerProperties() == null ? null : this.innerProperties().aggregationFunction();
}
/**
@@ -155,7 +113,10 @@ public String aggregationFunction() {
* @return the QueryStatisticInner object itself.
*/
public QueryStatisticInner withAggregationFunction(String aggregationFunction) {
- this.aggregationFunction = aggregationFunction;
+ if (this.innerProperties() == null) {
+ this.innerProperties = new QueryStatisticProperties();
+ }
+ this.innerProperties().withAggregationFunction(aggregationFunction);
return this;
}
@@ -165,7 +126,7 @@ public QueryStatisticInner withAggregationFunction(String aggregationFunction) {
* @return the databaseNames value.
*/
public List databaseNames() {
- return this.databaseNames;
+ return this.innerProperties() == null ? null : this.innerProperties().databaseNames();
}
/**
@@ -175,7 +136,10 @@ public List databaseNames() {
* @return the QueryStatisticInner object itself.
*/
public QueryStatisticInner withDatabaseNames(List databaseNames) {
- this.databaseNames = databaseNames;
+ if (this.innerProperties() == null) {
+ this.innerProperties = new QueryStatisticProperties();
+ }
+ this.innerProperties().withDatabaseNames(databaseNames);
return this;
}
@@ -185,7 +149,7 @@ public QueryStatisticInner withDatabaseNames(List databaseNames) {
* @return the queryExecutionCount value.
*/
public Long queryExecutionCount() {
- return this.queryExecutionCount;
+ return this.innerProperties() == null ? null : this.innerProperties().queryExecutionCount();
}
/**
@@ -195,7 +159,10 @@ public Long queryExecutionCount() {
* @return the QueryStatisticInner object itself.
*/
public QueryStatisticInner withQueryExecutionCount(Long queryExecutionCount) {
- this.queryExecutionCount = queryExecutionCount;
+ if (this.innerProperties() == null) {
+ this.innerProperties = new QueryStatisticProperties();
+ }
+ this.innerProperties().withQueryExecutionCount(queryExecutionCount);
return this;
}
@@ -205,7 +172,7 @@ public QueryStatisticInner withQueryExecutionCount(Long queryExecutionCount) {
* @return the metricName value.
*/
public String metricName() {
- return this.metricName;
+ return this.innerProperties() == null ? null : this.innerProperties().metricName();
}
/**
@@ -215,7 +182,10 @@ public String metricName() {
* @return the QueryStatisticInner object itself.
*/
public QueryStatisticInner withMetricName(String metricName) {
- this.metricName = metricName;
+ if (this.innerProperties() == null) {
+ this.innerProperties = new QueryStatisticProperties();
+ }
+ this.innerProperties().withMetricName(metricName);
return this;
}
@@ -225,7 +195,7 @@ public QueryStatisticInner withMetricName(String metricName) {
* @return the metricDisplayName value.
*/
public String metricDisplayName() {
- return this.metricDisplayName;
+ return this.innerProperties() == null ? null : this.innerProperties().metricDisplayName();
}
/**
@@ -235,7 +205,10 @@ public String metricDisplayName() {
* @return the QueryStatisticInner object itself.
*/
public QueryStatisticInner withMetricDisplayName(String metricDisplayName) {
- this.metricDisplayName = metricDisplayName;
+ if (this.innerProperties() == null) {
+ this.innerProperties = new QueryStatisticProperties();
+ }
+ this.innerProperties().withMetricDisplayName(metricDisplayName);
return this;
}
@@ -245,7 +218,7 @@ public QueryStatisticInner withMetricDisplayName(String metricDisplayName) {
* @return the metricValue value.
*/
public Double metricValue() {
- return this.metricValue;
+ return this.innerProperties() == null ? null : this.innerProperties().metricValue();
}
/**
@@ -255,7 +228,10 @@ public Double metricValue() {
* @return the QueryStatisticInner object itself.
*/
public QueryStatisticInner withMetricValue(Double metricValue) {
- this.metricValue = metricValue;
+ if (this.innerProperties() == null) {
+ this.innerProperties = new QueryStatisticProperties();
+ }
+ this.innerProperties().withMetricValue(metricValue);
return this;
}
@@ -265,7 +241,7 @@ public QueryStatisticInner withMetricValue(Double metricValue) {
* @return the metricValueUnit value.
*/
public String metricValueUnit() {
- return this.metricValueUnit;
+ return this.innerProperties() == null ? null : this.innerProperties().metricValueUnit();
}
/**
@@ -275,7 +251,10 @@ public String metricValueUnit() {
* @return the QueryStatisticInner object itself.
*/
public QueryStatisticInner withMetricValueUnit(String metricValueUnit) {
- this.metricValueUnit = metricValueUnit;
+ if (this.innerProperties() == null) {
+ this.innerProperties = new QueryStatisticProperties();
+ }
+ this.innerProperties().withMetricValueUnit(metricValueUnit);
return this;
}
@@ -285,5 +264,8 @@ public QueryStatisticInner withMetricValueUnit(String metricValueUnit) {
* @throws IllegalArgumentException thrown if the instance is not valid.
*/
public void validate() {
+ if (innerProperties() != null) {
+ innerProperties().validate();
+ }
}
}
diff --git a/sdk/mariadb/azure-resourcemanager-mariadb/src/main/java/com/azure/resourcemanager/mariadb/fluent/models/QueryStatisticProperties.java b/sdk/mariadb/azure-resourcemanager-mariadb/src/main/java/com/azure/resourcemanager/mariadb/fluent/models/QueryStatisticProperties.java
new file mode 100644
index 000000000000..ee299500a864
--- /dev/null
+++ b/sdk/mariadb/azure-resourcemanager-mariadb/src/main/java/com/azure/resourcemanager/mariadb/fluent/models/QueryStatisticProperties.java
@@ -0,0 +1,282 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.mariadb.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import java.time.OffsetDateTime;
+import java.util.List;
+
+/** The properties of a query statistic. */
+@Fluent
+public final class QueryStatisticProperties {
+ /*
+ * Database query identifier.
+ */
+ @JsonProperty(value = "queryId")
+ private String queryId;
+
+ /*
+ * Observation start time.
+ */
+ @JsonProperty(value = "startTime")
+ private OffsetDateTime startTime;
+
+ /*
+ * Observation end time.
+ */
+ @JsonProperty(value = "endTime")
+ private OffsetDateTime endTime;
+
+ /*
+ * Aggregation function name.
+ */
+ @JsonProperty(value = "aggregationFunction")
+ private String aggregationFunction;
+
+ /*
+ * The list of database names.
+ */
+ @JsonProperty(value = "databaseNames")
+ private List databaseNames;
+
+ /*
+ * Number of query executions in this time interval.
+ */
+ @JsonProperty(value = "queryExecutionCount")
+ private Long queryExecutionCount;
+
+ /*
+ * Metric name.
+ */
+ @JsonProperty(value = "metricName")
+ private String metricName;
+
+ /*
+ * Metric display name.
+ */
+ @JsonProperty(value = "metricDisplayName")
+ private String metricDisplayName;
+
+ /*
+ * Metric value.
+ */
+ @JsonProperty(value = "metricValue")
+ private Double metricValue;
+
+ /*
+ * Metric value unit.
+ */
+ @JsonProperty(value = "metricValueUnit")
+ private String metricValueUnit;
+
+ /**
+ * Get the queryId property: Database query identifier.
+ *
+ * @return the queryId value.
+ */
+ public String queryId() {
+ return this.queryId;
+ }
+
+ /**
+ * Set the queryId property: Database query identifier.
+ *
+ * @param queryId the queryId value to set.
+ * @return the QueryStatisticProperties object itself.
+ */
+ public QueryStatisticProperties withQueryId(String queryId) {
+ this.queryId = queryId;
+ return this;
+ }
+
+ /**
+ * Get the startTime property: Observation start time.
+ *
+ * @return the startTime value.
+ */
+ public OffsetDateTime startTime() {
+ return this.startTime;
+ }
+
+ /**
+ * Set the startTime property: Observation start time.
+ *
+ * @param startTime the startTime value to set.
+ * @return the QueryStatisticProperties object itself.
+ */
+ public QueryStatisticProperties withStartTime(OffsetDateTime startTime) {
+ this.startTime = startTime;
+ return this;
+ }
+
+ /**
+ * Get the endTime property: Observation end time.
+ *
+ * @return the endTime value.
+ */
+ public OffsetDateTime endTime() {
+ return this.endTime;
+ }
+
+ /**
+ * Set the endTime property: Observation end time.
+ *
+ * @param endTime the endTime value to set.
+ * @return the QueryStatisticProperties object itself.
+ */
+ public QueryStatisticProperties withEndTime(OffsetDateTime endTime) {
+ this.endTime = endTime;
+ return this;
+ }
+
+ /**
+ * Get the aggregationFunction property: Aggregation function name.
+ *
+ * @return the aggregationFunction value.
+ */
+ public String aggregationFunction() {
+ return this.aggregationFunction;
+ }
+
+ /**
+ * Set the aggregationFunction property: Aggregation function name.
+ *
+ * @param aggregationFunction the aggregationFunction value to set.
+ * @return the QueryStatisticProperties object itself.
+ */
+ public QueryStatisticProperties withAggregationFunction(String aggregationFunction) {
+ this.aggregationFunction = aggregationFunction;
+ return this;
+ }
+
+ /**
+ * Get the databaseNames property: The list of database names.
+ *
+ * @return the databaseNames value.
+ */
+ public List databaseNames() {
+ return this.databaseNames;
+ }
+
+ /**
+ * Set the databaseNames property: The list of database names.
+ *
+ * @param databaseNames the databaseNames value to set.
+ * @return the QueryStatisticProperties object itself.
+ */
+ public QueryStatisticProperties withDatabaseNames(List databaseNames) {
+ this.databaseNames = databaseNames;
+ return this;
+ }
+
+ /**
+ * Get the queryExecutionCount property: Number of query executions in this time interval.
+ *
+ * @return the queryExecutionCount value.
+ */
+ public Long queryExecutionCount() {
+ return this.queryExecutionCount;
+ }
+
+ /**
+ * Set the queryExecutionCount property: Number of query executions in this time interval.
+ *
+ * @param queryExecutionCount the queryExecutionCount value to set.
+ * @return the QueryStatisticProperties object itself.
+ */
+ public QueryStatisticProperties withQueryExecutionCount(Long queryExecutionCount) {
+ this.queryExecutionCount = queryExecutionCount;
+ return this;
+ }
+
+ /**
+ * Get the metricName property: Metric name.
+ *
+ * @return the metricName value.
+ */
+ public String metricName() {
+ return this.metricName;
+ }
+
+ /**
+ * Set the metricName property: Metric name.
+ *
+ * @param metricName the metricName value to set.
+ * @return the QueryStatisticProperties object itself.
+ */
+ public QueryStatisticProperties withMetricName(String metricName) {
+ this.metricName = metricName;
+ return this;
+ }
+
+ /**
+ * Get the metricDisplayName property: Metric display name.
+ *
+ * @return the metricDisplayName value.
+ */
+ public String metricDisplayName() {
+ return this.metricDisplayName;
+ }
+
+ /**
+ * Set the metricDisplayName property: Metric display name.
+ *
+ * @param metricDisplayName the metricDisplayName value to set.
+ * @return the QueryStatisticProperties object itself.
+ */
+ public QueryStatisticProperties withMetricDisplayName(String metricDisplayName) {
+ this.metricDisplayName = metricDisplayName;
+ return this;
+ }
+
+ /**
+ * Get the metricValue property: Metric value.
+ *
+ * @return the metricValue value.
+ */
+ public Double metricValue() {
+ return this.metricValue;
+ }
+
+ /**
+ * Set the metricValue property: Metric value.
+ *
+ * @param metricValue the metricValue value to set.
+ * @return the QueryStatisticProperties object itself.
+ */
+ public QueryStatisticProperties withMetricValue(Double metricValue) {
+ this.metricValue = metricValue;
+ return this;
+ }
+
+ /**
+ * Get the metricValueUnit property: Metric value unit.
+ *
+ * @return the metricValueUnit value.
+ */
+ public String metricValueUnit() {
+ return this.metricValueUnit;
+ }
+
+ /**
+ * Set the metricValueUnit property: Metric value unit.
+ *
+ * @param metricValueUnit the metricValueUnit value to set.
+ * @return the QueryStatisticProperties object itself.
+ */
+ public QueryStatisticProperties withMetricValueUnit(String metricValueUnit) {
+ this.metricValueUnit = metricValueUnit;
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ }
+}
diff --git a/sdk/mariadb/azure-resourcemanager-mariadb/src/main/java/com/azure/resourcemanager/mariadb/fluent/models/QueryTextInner.java b/sdk/mariadb/azure-resourcemanager-mariadb/src/main/java/com/azure/resourcemanager/mariadb/fluent/models/QueryTextInner.java
index ec8383391676..0a2545ab6b01 100644
--- a/sdk/mariadb/azure-resourcemanager-mariadb/src/main/java/com/azure/resourcemanager/mariadb/fluent/models/QueryTextInner.java
+++ b/sdk/mariadb/azure-resourcemanager-mariadb/src/main/java/com/azure/resourcemanager/mariadb/fluent/models/QueryTextInner.java
@@ -5,29 +5,26 @@
package com.azure.resourcemanager.mariadb.fluent.models;
import com.azure.core.annotation.Fluent;
-import com.azure.core.annotation.JsonFlatten;
import com.azure.core.management.ProxyResource;
-import com.azure.core.util.logging.ClientLogger;
-import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
/** Represents a Query Text. */
-@JsonFlatten
@Fluent
-public class QueryTextInner extends ProxyResource {
- @JsonIgnore private final ClientLogger logger = new ClientLogger(QueryTextInner.class);
-
+public final class QueryTextInner extends ProxyResource {
/*
- * Query identifier unique to the server.
+ * The properties of a query text.
*/
- @JsonProperty(value = "properties.queryId")
- private String queryId;
+ @JsonProperty(value = "properties")
+ private QueryTextProperties innerProperties;
- /*
- * Query text.
+ /**
+ * Get the innerProperties property: The properties of a query text.
+ *
+ * @return the innerProperties value.
*/
- @JsonProperty(value = "properties.queryText")
- private String queryText;
+ private QueryTextProperties innerProperties() {
+ return this.innerProperties;
+ }
/**
* Get the queryId property: Query identifier unique to the server.
@@ -35,7 +32,7 @@ public class QueryTextInner extends ProxyResource {
* @return the queryId value.
*/
public String queryId() {
- return this.queryId;
+ return this.innerProperties() == null ? null : this.innerProperties().queryId();
}
/**
@@ -45,7 +42,10 @@ public String queryId() {
* @return the QueryTextInner object itself.
*/
public QueryTextInner withQueryId(String queryId) {
- this.queryId = queryId;
+ if (this.innerProperties() == null) {
+ this.innerProperties = new QueryTextProperties();
+ }
+ this.innerProperties().withQueryId(queryId);
return this;
}
@@ -55,7 +55,7 @@ public QueryTextInner withQueryId(String queryId) {
* @return the queryText value.
*/
public String queryText() {
- return this.queryText;
+ return this.innerProperties() == null ? null : this.innerProperties().queryText();
}
/**
@@ -65,7 +65,10 @@ public String queryText() {
* @return the QueryTextInner object itself.
*/
public QueryTextInner withQueryText(String queryText) {
- this.queryText = queryText;
+ if (this.innerProperties() == null) {
+ this.innerProperties = new QueryTextProperties();
+ }
+ this.innerProperties().withQueryText(queryText);
return this;
}
@@ -75,5 +78,8 @@ public QueryTextInner withQueryText(String queryText) {
* @throws IllegalArgumentException thrown if the instance is not valid.
*/
public void validate() {
+ if (innerProperties() != null) {
+ innerProperties().validate();
+ }
}
}
diff --git a/sdk/mariadb/azure-resourcemanager-mariadb/src/main/java/com/azure/resourcemanager/mariadb/fluent/models/QueryTextProperties.java b/sdk/mariadb/azure-resourcemanager-mariadb/src/main/java/com/azure/resourcemanager/mariadb/fluent/models/QueryTextProperties.java
new file mode 100644
index 000000000000..ebb35c066eb9
--- /dev/null
+++ b/sdk/mariadb/azure-resourcemanager-mariadb/src/main/java/com/azure/resourcemanager/mariadb/fluent/models/QueryTextProperties.java
@@ -0,0 +1,72 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.mariadb.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/** The properties of a query text. */
+@Fluent
+public final class QueryTextProperties {
+ /*
+ * Query identifier unique to the server.
+ */
+ @JsonProperty(value = "queryId")
+ private String queryId;
+
+ /*
+ * Query text.
+ */
+ @JsonProperty(value = "queryText")
+ private String queryText;
+
+ /**
+ * Get the queryId property: Query identifier unique to the server.
+ *
+ * @return the queryId value.
+ */
+ public String queryId() {
+ return this.queryId;
+ }
+
+ /**
+ * Set the queryId property: Query identifier unique to the server.
+ *
+ * @param queryId the queryId value to set.
+ * @return the QueryTextProperties object itself.
+ */
+ public QueryTextProperties withQueryId(String queryId) {
+ this.queryId = queryId;
+ return this;
+ }
+
+ /**
+ * Get the queryText property: Query text.
+ *
+ * @return the queryText value.
+ */
+ public String queryText() {
+ return this.queryText;
+ }
+
+ /**
+ * Set the queryText property: Query text.
+ *
+ * @param queryText the queryText value to set.
+ * @return the QueryTextProperties object itself.
+ */
+ public QueryTextProperties withQueryText(String queryText) {
+ this.queryText = queryText;
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ }
+}
diff --git a/sdk/mariadb/azure-resourcemanager-mariadb/src/main/java/com/azure/resourcemanager/mariadb/fluent/models/RecommendationActionInner.java b/sdk/mariadb/azure-resourcemanager-mariadb/src/main/java/com/azure/resourcemanager/mariadb/fluent/models/RecommendationActionInner.java
index 5896f4072a3d..dada9c168324 100644
--- a/sdk/mariadb/azure-resourcemanager-mariadb/src/main/java/com/azure/resourcemanager/mariadb/fluent/models/RecommendationActionInner.java
+++ b/sdk/mariadb/azure-resourcemanager-mariadb/src/main/java/com/azure/resourcemanager/mariadb/fluent/models/RecommendationActionInner.java
@@ -5,67 +5,28 @@
package com.azure.resourcemanager.mariadb.fluent.models;
import com.azure.core.annotation.Fluent;
-import com.azure.core.annotation.JsonFlatten;
import com.azure.core.management.ProxyResource;
-import com.azure.core.util.logging.ClientLogger;
-import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.time.OffsetDateTime;
import java.util.Map;
/** Represents a Recommendation Action. */
-@JsonFlatten
@Fluent
-public class RecommendationActionInner extends ProxyResource {
- @JsonIgnore private final ClientLogger logger = new ClientLogger(RecommendationActionInner.class);
-
- /*
- * Advisor name.
- */
- @JsonProperty(value = "properties.advisorName")
- private String advisorName;
-
- /*
- * Recommendation action session identifier.
- */
- @JsonProperty(value = "properties.sessionId")
- private String sessionId;
-
- /*
- * Recommendation action identifier.
- */
- @JsonProperty(value = "properties.actionId")
- private Integer actionId;
-
+public final class RecommendationActionInner extends ProxyResource {
/*
- * Recommendation action creation time.
+ * The properties of a recommendation action.
*/
- @JsonProperty(value = "properties.createdTime")
- private OffsetDateTime createdTime;
+ @JsonProperty(value = "properties")
+ private RecommendationActionProperties innerProperties;
- /*
- * Recommendation action expiration time.
- */
- @JsonProperty(value = "properties.expirationTime")
- private OffsetDateTime expirationTime;
-
- /*
- * Recommendation action reason.
- */
- @JsonProperty(value = "properties.reason")
- private String reason;
-
- /*
- * Recommendation action type.
- */
- @JsonProperty(value = "properties.recommendationType")
- private String recommendationType;
-
- /*
- * Recommendation action details.
+ /**
+ * Get the innerProperties property: The properties of a recommendation action.
+ *
+ * @return the innerProperties value.
*/
- @JsonProperty(value = "properties.details")
- private Map details;
+ private RecommendationActionProperties innerProperties() {
+ return this.innerProperties;
+ }
/**
* Get the advisorName property: Advisor name.
@@ -73,7 +34,7 @@ public class RecommendationActionInner extends ProxyResource {
* @return the advisorName value.
*/
public String advisorName() {
- return this.advisorName;
+ return this.innerProperties() == null ? null : this.innerProperties().advisorName();
}
/**
@@ -83,7 +44,10 @@ public String advisorName() {
* @return the RecommendationActionInner object itself.
*/
public RecommendationActionInner withAdvisorName(String advisorName) {
- this.advisorName = advisorName;
+ if (this.innerProperties() == null) {
+ this.innerProperties = new RecommendationActionProperties();
+ }
+ this.innerProperties().withAdvisorName(advisorName);
return this;
}
@@ -93,7 +57,7 @@ public RecommendationActionInner withAdvisorName(String advisorName) {
* @return the sessionId value.
*/
public String sessionId() {
- return this.sessionId;
+ return this.innerProperties() == null ? null : this.innerProperties().sessionId();
}
/**
@@ -103,7 +67,10 @@ public String sessionId() {
* @return the RecommendationActionInner object itself.
*/
public RecommendationActionInner withSessionId(String sessionId) {
- this.sessionId = sessionId;
+ if (this.innerProperties() == null) {
+ this.innerProperties = new RecommendationActionProperties();
+ }
+ this.innerProperties().withSessionId(sessionId);
return this;
}
@@ -113,7 +80,7 @@ public RecommendationActionInner withSessionId(String sessionId) {
* @return the actionId value.
*/
public Integer actionId() {
- return this.actionId;
+ return this.innerProperties() == null ? null : this.innerProperties().actionId();
}
/**
@@ -123,7 +90,10 @@ public Integer actionId() {
* @return the RecommendationActionInner object itself.
*/
public RecommendationActionInner withActionId(Integer actionId) {
- this.actionId = actionId;
+ if (this.innerProperties() == null) {
+ this.innerProperties = new RecommendationActionProperties();
+ }
+ this.innerProperties().withActionId(actionId);
return this;
}
@@ -133,7 +103,7 @@ public RecommendationActionInner withActionId(Integer actionId) {
* @return the createdTime value.
*/
public OffsetDateTime createdTime() {
- return this.createdTime;
+ return this.innerProperties() == null ? null : this.innerProperties().createdTime();
}
/**
@@ -143,7 +113,10 @@ public OffsetDateTime createdTime() {
* @return the RecommendationActionInner object itself.
*/
public RecommendationActionInner withCreatedTime(OffsetDateTime createdTime) {
- this.createdTime = createdTime;
+ if (this.innerProperties() == null) {
+ this.innerProperties = new RecommendationActionProperties();
+ }
+ this.innerProperties().withCreatedTime(createdTime);
return this;
}
@@ -153,7 +126,7 @@ public RecommendationActionInner withCreatedTime(OffsetDateTime createdTime) {
* @return the expirationTime value.
*/
public OffsetDateTime expirationTime() {
- return this.expirationTime;
+ return this.innerProperties() == null ? null : this.innerProperties().expirationTime();
}
/**
@@ -163,7 +136,10 @@ public OffsetDateTime expirationTime() {
* @return the RecommendationActionInner object itself.
*/
public RecommendationActionInner withExpirationTime(OffsetDateTime expirationTime) {
- this.expirationTime = expirationTime;
+ if (this.innerProperties() == null) {
+ this.innerProperties = new RecommendationActionProperties();
+ }
+ this.innerProperties().withExpirationTime(expirationTime);
return this;
}
@@ -173,7 +149,7 @@ public RecommendationActionInner withExpirationTime(OffsetDateTime expirationTim
* @return the reason value.
*/
public String reason() {
- return this.reason;
+ return this.innerProperties() == null ? null : this.innerProperties().reason();
}
/**
@@ -183,7 +159,10 @@ public String reason() {
* @return the RecommendationActionInner object itself.
*/
public RecommendationActionInner withReason(String reason) {
- this.reason = reason;
+ if (this.innerProperties() == null) {
+ this.innerProperties = new RecommendationActionProperties();
+ }
+ this.innerProperties().withReason(reason);
return this;
}
@@ -193,7 +172,7 @@ public RecommendationActionInner withReason(String reason) {
* @return the recommendationType value.
*/
public String recommendationType() {
- return this.recommendationType;
+ return this.innerProperties() == null ? null : this.innerProperties().recommendationType();
}
/**
@@ -203,7 +182,10 @@ public String recommendationType() {
* @return the RecommendationActionInner object itself.
*/
public RecommendationActionInner withRecommendationType(String recommendationType) {
- this.recommendationType = recommendationType;
+ if (this.innerProperties() == null) {
+ this.innerProperties = new RecommendationActionProperties();
+ }
+ this.innerProperties().withRecommendationType(recommendationType);
return this;
}
@@ -213,7 +195,7 @@ public RecommendationActionInner withRecommendationType(String recommendationTyp
* @return the details value.
*/
public Map details() {
- return this.details;
+ return this.innerProperties() == null ? null : this.innerProperties().details();
}
/**
@@ -223,7 +205,10 @@ public Map details() {
* @return the RecommendationActionInner object itself.
*/
public RecommendationActionInner withDetails(Map details) {
- this.details = details;
+ if (this.innerProperties() == null) {
+ this.innerProperties = new RecommendationActionProperties();
+ }
+ this.innerProperties().withDetails(details);
return this;
}
@@ -233,5 +218,8 @@ public RecommendationActionInner withDetails(Map details) {
* @throws IllegalArgumentException thrown if the instance is not valid.
*/
public void validate() {
+ if (innerProperties() != null) {
+ innerProperties().validate();
+ }
}
}
diff --git a/sdk/mariadb/azure-resourcemanager-mariadb/src/main/java/com/azure/resourcemanager/mariadb/fluent/models/RecommendationActionProperties.java b/sdk/mariadb/azure-resourcemanager-mariadb/src/main/java/com/azure/resourcemanager/mariadb/fluent/models/RecommendationActionProperties.java
new file mode 100644
index 000000000000..4cad977d78a1
--- /dev/null
+++ b/sdk/mariadb/azure-resourcemanager-mariadb/src/main/java/com/azure/resourcemanager/mariadb/fluent/models/RecommendationActionProperties.java
@@ -0,0 +1,232 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.mariadb.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.fasterxml.jackson.annotation.JsonInclude;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import java.time.OffsetDateTime;
+import java.util.Map;
+
+/** The properties of a recommendation action. */
+@Fluent
+public final class RecommendationActionProperties {
+ /*
+ * Advisor name.
+ */
+ @JsonProperty(value = "advisorName")
+ private String advisorName;
+
+ /*
+ * Recommendation action session identifier.
+ */
+ @JsonProperty(value = "sessionId")
+ private String sessionId;
+
+ /*
+ * Recommendation action identifier.
+ */
+ @JsonProperty(value = "actionId")
+ private Integer actionId;
+
+ /*
+ * Recommendation action creation time.
+ */
+ @JsonProperty(value = "createdTime")
+ private OffsetDateTime createdTime;
+
+ /*
+ * Recommendation action expiration time.
+ */
+ @JsonProperty(value = "expirationTime")
+ private OffsetDateTime expirationTime;
+
+ /*
+ * Recommendation action reason.
+ */
+ @JsonProperty(value = "reason")
+ private String reason;
+
+ /*
+ * Recommendation action type.
+ */
+ @JsonProperty(value = "recommendationType")
+ private String recommendationType;
+
+ /*
+ * Recommendation action details.
+ */
+ @JsonProperty(value = "details")
+ @JsonInclude(value = JsonInclude.Include.NON_NULL, content = JsonInclude.Include.ALWAYS)
+ private Map details;
+
+ /**
+ * Get the advisorName property: Advisor name.
+ *
+ * @return the advisorName value.
+ */
+ public String advisorName() {
+ return this.advisorName;
+ }
+
+ /**
+ * Set the advisorName property: Advisor name.
+ *
+ * @param advisorName the advisorName value to set.
+ * @return the RecommendationActionProperties object itself.
+ */
+ public RecommendationActionProperties withAdvisorName(String advisorName) {
+ this.advisorName = advisorName;
+ return this;
+ }
+
+ /**
+ * Get the sessionId property: Recommendation action session identifier.
+ *
+ * @return the sessionId value.
+ */
+ public String sessionId() {
+ return this.sessionId;
+ }
+
+ /**
+ * Set the sessionId property: Recommendation action session identifier.
+ *
+ * @param sessionId the sessionId value to set.
+ * @return the RecommendationActionProperties object itself.
+ */
+ public RecommendationActionProperties withSessionId(String sessionId) {
+ this.sessionId = sessionId;
+ return this;
+ }
+
+ /**
+ * Get the actionId property: Recommendation action identifier.
+ *
+ * @return the actionId value.
+ */
+ public Integer actionId() {
+ return this.actionId;
+ }
+
+ /**
+ * Set the actionId property: Recommendation action identifier.
+ *
+ * @param actionId the actionId value to set.
+ * @return the RecommendationActionProperties object itself.
+ */
+ public RecommendationActionProperties withActionId(Integer actionId) {
+ this.actionId = actionId;
+ return this;
+ }
+
+ /**
+ * Get the createdTime property: Recommendation action creation time.
+ *
+ * @return the createdTime value.
+ */
+ public OffsetDateTime createdTime() {
+ return this.createdTime;
+ }
+
+ /**
+ * Set the createdTime property: Recommendation action creation time.
+ *
+ * @param createdTime the createdTime value to set.
+ * @return the RecommendationActionProperties object itself.
+ */
+ public RecommendationActionProperties withCreatedTime(OffsetDateTime createdTime) {
+ this.createdTime = createdTime;
+ return this;
+ }
+
+ /**
+ * Get the expirationTime property: Recommendation action expiration time.
+ *
+ * @return the expirationTime value.
+ */
+ public OffsetDateTime expirationTime() {
+ return this.expirationTime;
+ }
+
+ /**
+ * Set the expirationTime property: Recommendation action expiration time.
+ *
+ * @param expirationTime the expirationTime value to set.
+ * @return the RecommendationActionProperties object itself.
+ */
+ public RecommendationActionProperties withExpirationTime(OffsetDateTime expirationTime) {
+ this.expirationTime = expirationTime;
+ return this;
+ }
+
+ /**
+ * Get the reason property: Recommendation action reason.
+ *
+ * @return the reason value.
+ */
+ public String reason() {
+ return this.reason;
+ }
+
+ /**
+ * Set the reason property: Recommendation action reason.
+ *
+ * @param reason the reason value to set.
+ * @return the RecommendationActionProperties object itself.
+ */
+ public RecommendationActionProperties withReason(String reason) {
+ this.reason = reason;
+ return this;
+ }
+
+ /**
+ * Get the recommendationType property: Recommendation action type.
+ *
+ * @return the recommendationType value.
+ */
+ public String recommendationType() {
+ return this.recommendationType;
+ }
+
+ /**
+ * Set the recommendationType property: Recommendation action type.
+ *
+ * @param recommendationType the recommendationType value to set.
+ * @return the RecommendationActionProperties object itself.
+ */
+ public RecommendationActionProperties withRecommendationType(String recommendationType) {
+ this.recommendationType = recommendationType;
+ return this;
+ }
+
+ /**
+ * Get the details property: Recommendation action details.
+ *
+ * @return the details value.
+ */
+ public Map details() {
+ return this.details;
+ }
+
+ /**
+ * Set the details property: Recommendation action details.
+ *
+ * @param details the details value to set.
+ * @return the RecommendationActionProperties object itself.
+ */
+ public RecommendationActionProperties withDetails(Map details) {
+ this.details = details;
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ }
+}
diff --git a/sdk/mariadb/azure-resourcemanager-mariadb/src/main/java/com/azure/resourcemanager/mariadb/fluent/models/RecommendedActionSessionsOperationStatusInner.java b/sdk/mariadb/azure-resourcemanager-mariadb/src/main/java/com/azure/resourcemanager/mariadb/fluent/models/RecommendedActionSessionsOperationStatusInner.java
index 4b2b9ec737ae..03b4eafeefec 100644
--- a/sdk/mariadb/azure-resourcemanager-mariadb/src/main/java/com/azure/resourcemanager/mariadb/fluent/models/RecommendedActionSessionsOperationStatusInner.java
+++ b/sdk/mariadb/azure-resourcemanager-mariadb/src/main/java/com/azure/resourcemanager/mariadb/fluent/models/RecommendedActionSessionsOperationStatusInner.java
@@ -5,17 +5,12 @@
package com.azure.resourcemanager.mariadb.fluent.models;
import com.azure.core.annotation.Fluent;
-import com.azure.core.util.logging.ClientLogger;
-import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.time.OffsetDateTime;
/** Recommendation action session operation status. */
@Fluent
public final class RecommendedActionSessionsOperationStatusInner {
- @JsonIgnore
- private final ClientLogger logger = new ClientLogger(RecommendedActionSessionsOperationStatusInner.class);
-
/*
* Operation identifier.
*/
diff --git a/sdk/mariadb/azure-resourcemanager-mariadb/src/main/java/com/azure/resourcemanager/mariadb/fluent/models/RecoverableServerProperties.java b/sdk/mariadb/azure-resourcemanager-mariadb/src/main/java/com/azure/resourcemanager/mariadb/fluent/models/RecoverableServerProperties.java
new file mode 100644
index 000000000000..3525029f183c
--- /dev/null
+++ b/sdk/mariadb/azure-resourcemanager-mariadb/src/main/java/com/azure/resourcemanager/mariadb/fluent/models/RecoverableServerProperties.java
@@ -0,0 +1,110 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.mariadb.fluent.models;
+
+import com.azure.core.annotation.Immutable;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/** The recoverable server's properties. */
+@Immutable
+public final class RecoverableServerProperties {
+ /*
+ * The last available backup date time.
+ */
+ @JsonProperty(value = "lastAvailableBackupDateTime", access = JsonProperty.Access.WRITE_ONLY)
+ private String lastAvailableBackupDateTime;
+
+ /*
+ * The service level objective
+ */
+ @JsonProperty(value = "serviceLevelObjective", access = JsonProperty.Access.WRITE_ONLY)
+ private String serviceLevelObjective;
+
+ /*
+ * Edition of the performance tier.
+ */
+ @JsonProperty(value = "edition", access = JsonProperty.Access.WRITE_ONLY)
+ private String edition;
+
+ /*
+ * vCore associated with the service level objective
+ */
+ @JsonProperty(value = "vCore", access = JsonProperty.Access.WRITE_ONLY)
+ private Integer vCore;
+
+ /*
+ * Hardware generation associated with the service level objective
+ */
+ @JsonProperty(value = "hardwareGeneration", access = JsonProperty.Access.WRITE_ONLY)
+ private String hardwareGeneration;
+
+ /*
+ * The MariaDB version
+ */
+ @JsonProperty(value = "version", access = JsonProperty.Access.WRITE_ONLY)
+ private String version;
+
+ /**
+ * Get the lastAvailableBackupDateTime property: The last available backup date time.
+ *
+ * @return the lastAvailableBackupDateTime value.
+ */
+ public String lastAvailableBackupDateTime() {
+ return this.lastAvailableBackupDateTime;
+ }
+
+ /**
+ * Get the serviceLevelObjective property: The service level objective.
+ *
+ * @return the serviceLevelObjective value.
+ */
+ public String serviceLevelObjective() {
+ return this.serviceLevelObjective;
+ }
+
+ /**
+ * Get the edition property: Edition of the performance tier.
+ *
+ * @return the edition value.
+ */
+ public String edition() {
+ return this.edition;
+ }
+
+ /**
+ * Get the vCore property: vCore associated with the service level objective.
+ *
+ * @return the vCore value.
+ */
+ public Integer vCore() {
+ return this.vCore;
+ }
+
+ /**
+ * Get the hardwareGeneration property: Hardware generation associated with the service level objective.
+ *
+ * @return the hardwareGeneration value.
+ */
+ public String hardwareGeneration() {
+ return this.hardwareGeneration;
+ }
+
+ /**
+ * Get the version property: The MariaDB version.
+ *
+ * @return the version value.
+ */
+ public String version() {
+ return this.version;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ }
+}
diff --git a/sdk/mariadb/azure-resourcemanager-mariadb/src/main/java/com/azure/resourcemanager/mariadb/fluent/models/RecoverableServerResourceInner.java b/sdk/mariadb/azure-resourcemanager-mariadb/src/main/java/com/azure/resourcemanager/mariadb/fluent/models/RecoverableServerResourceInner.java
index e8b6dffa0737..73d7cd159e83 100644
--- a/sdk/mariadb/azure-resourcemanager-mariadb/src/main/java/com/azure/resourcemanager/mariadb/fluent/models/RecoverableServerResourceInner.java
+++ b/sdk/mariadb/azure-resourcemanager-mariadb/src/main/java/com/azure/resourcemanager/mariadb/fluent/models/RecoverableServerResourceInner.java
@@ -4,54 +4,27 @@
package com.azure.resourcemanager.mariadb.fluent.models;
-import com.azure.core.annotation.Immutable;
-import com.azure.core.annotation.JsonFlatten;
+import com.azure.core.annotation.Fluent;
import com.azure.core.management.ProxyResource;
-import com.azure.core.util.logging.ClientLogger;
-import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
/** A recoverable server resource. */
-@JsonFlatten
-@Immutable
-public class RecoverableServerResourceInner extends ProxyResource {
- @JsonIgnore private final ClientLogger logger = new ClientLogger(RecoverableServerResourceInner.class);
-
+@Fluent
+public final class RecoverableServerResourceInner extends ProxyResource {
/*
- * The last available backup date time.
+ * Resource properties.
*/
- @JsonProperty(value = "properties.lastAvailableBackupDateTime", access = JsonProperty.Access.WRITE_ONLY)
- private String lastAvailableBackupDateTime;
+ @JsonProperty(value = "properties")
+ private RecoverableServerProperties innerProperties;
- /*
- * The service level objective
- */
- @JsonProperty(value = "properties.serviceLevelObjective", access = JsonProperty.Access.WRITE_ONLY)
- private String serviceLevelObjective;
-
- /*
- * Edition of the performance tier.
- */
- @JsonProperty(value = "properties.edition", access = JsonProperty.Access.WRITE_ONLY)
- private String edition;
-
- /*
- * vCore associated with the service level objective
- */
- @JsonProperty(value = "properties.vCore", access = JsonProperty.Access.WRITE_ONLY)
- private Integer vCore;
-
- /*
- * Hardware generation associated with the service level objective
- */
- @JsonProperty(value = "properties.hardwareGeneration", access = JsonProperty.Access.WRITE_ONLY)
- private String hardwareGeneration;
-
- /*
- * The MariaDB version
+ /**
+ * Get the innerProperties property: Resource properties.
+ *
+ * @return the innerProperties value.
*/
- @JsonProperty(value = "properties.version", access = JsonProperty.Access.WRITE_ONLY)
- private String version;
+ private RecoverableServerProperties innerProperties() {
+ return this.innerProperties;
+ }
/**
* Get the lastAvailableBackupDateTime property: The last available backup date time.
@@ -59,7 +32,7 @@ public class RecoverableServerResourceInner extends ProxyResource {
* @return the lastAvailableBackupDateTime value.
*/
public String lastAvailableBackupDateTime() {
- return this.lastAvailableBackupDateTime;
+ return this.innerProperties() == null ? null : this.innerProperties().lastAvailableBackupDateTime();
}
/**
@@ -68,7 +41,7 @@ public String lastAvailableBackupDateTime() {
* @return the serviceLevelObjective value.
*/
public String serviceLevelObjective() {
- return this.serviceLevelObjective;
+ return this.innerProperties() == null ? null : this.innerProperties().serviceLevelObjective();
}
/**
@@ -77,7 +50,7 @@ public String serviceLevelObjective() {
* @return the edition value.
*/
public String edition() {
- return this.edition;
+ return this.innerProperties() == null ? null : this.innerProperties().edition();
}
/**
@@ -86,7 +59,7 @@ public String edition() {
* @return the vCore value.
*/
public Integer vCore() {
- return this.vCore;
+ return this.innerProperties() == null ? null : this.innerProperties().vCore();
}
/**
@@ -95,7 +68,7 @@ public Integer vCore() {
* @return the hardwareGeneration value.
*/
public String hardwareGeneration() {
- return this.hardwareGeneration;
+ return this.innerProperties() == null ? null : this.innerProperties().hardwareGeneration();
}
/**
@@ -104,7 +77,7 @@ public String hardwareGeneration() {
* @return the version value.
*/
public String version() {
- return this.version;
+ return this.innerProperties() == null ? null : this.innerProperties().version();
}
/**
@@ -113,5 +86,8 @@ public String version() {
* @throws IllegalArgumentException thrown if the instance is not valid.
*/
public void validate() {
+ if (innerProperties() != null) {
+ innerProperties().validate();
+ }
}
}
diff --git a/sdk/mariadb/azure-resourcemanager-mariadb/src/main/java/com/azure/resourcemanager/mariadb/fluent/models/SecurityAlertPolicyProperties.java b/sdk/mariadb/azure-resourcemanager-mariadb/src/main/java/com/azure/resourcemanager/mariadb/fluent/models/SecurityAlertPolicyProperties.java
new file mode 100644
index 000000000000..3139de97fc13
--- /dev/null
+++ b/sdk/mariadb/azure-resourcemanager-mariadb/src/main/java/com/azure/resourcemanager/mariadb/fluent/models/SecurityAlertPolicyProperties.java
@@ -0,0 +1,223 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.mariadb.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.util.logging.ClientLogger;
+import com.azure.resourcemanager.mariadb.models.ServerSecurityAlertPolicyState;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import java.util.List;
+
+/** Properties of a security alert policy. */
+@Fluent
+public final class SecurityAlertPolicyProperties {
+ /*
+ * Specifies the state of the policy, whether it is enabled or disabled.
+ */
+ @JsonProperty(value = "state", required = true)
+ private ServerSecurityAlertPolicyState state;
+
+ /*
+ * Specifies an array of alerts that are disabled. Allowed values are:
+ * Sql_Injection, Sql_Injection_Vulnerability, Access_Anomaly
+ */
+ @JsonProperty(value = "disabledAlerts")
+ private List disabledAlerts;
+
+ /*
+ * Specifies an array of e-mail addresses to which the alert is sent.
+ */
+ @JsonProperty(value = "emailAddresses")
+ private List emailAddresses;
+
+ /*
+ * Specifies that the alert is sent to the account administrators.
+ */
+ @JsonProperty(value = "emailAccountAdmins")
+ private Boolean emailAccountAdmins;
+
+ /*
+ * Specifies the blob storage endpoint (e.g.
+ * https://MyAccount.blob.core.windows.net). This blob storage will hold
+ * all Threat Detection audit logs.
+ */
+ @JsonProperty(value = "storageEndpoint")
+ private String storageEndpoint;
+
+ /*
+ * Specifies the identifier key of the Threat Detection audit storage
+ * account.
+ */
+ @JsonProperty(value = "storageAccountAccessKey")
+ private String storageAccountAccessKey;
+
+ /*
+ * Specifies the number of days to keep in the Threat Detection audit logs.
+ */
+ @JsonProperty(value = "retentionDays")
+ private Integer retentionDays;
+
+ /**
+ * Get the state property: Specifies the state of the policy, whether it is enabled or disabled.
+ *
+ * @return the state value.
+ */
+ public ServerSecurityAlertPolicyState state() {
+ return this.state;
+ }
+
+ /**
+ * Set the state property: Specifies the state of the policy, whether it is enabled or disabled.
+ *
+ * @param state the state value to set.
+ * @return the SecurityAlertPolicyProperties object itself.
+ */
+ public SecurityAlertPolicyProperties withState(ServerSecurityAlertPolicyState state) {
+ this.state = state;
+ return this;
+ }
+
+ /**
+ * Get the disabledAlerts property: Specifies an array of alerts that are disabled. Allowed values are:
+ * Sql_Injection, Sql_Injection_Vulnerability, Access_Anomaly.
+ *
+ * @return the disabledAlerts value.
+ */
+ public List disabledAlerts() {
+ return this.disabledAlerts;
+ }
+
+ /**
+ * Set the disabledAlerts property: Specifies an array of alerts that are disabled. Allowed values are:
+ * Sql_Injection, Sql_Injection_Vulnerability, Access_Anomaly.
+ *
+ * @param disabledAlerts the disabledAlerts value to set.
+ * @return the SecurityAlertPolicyProperties object itself.
+ */
+ public SecurityAlertPolicyProperties withDisabledAlerts(List disabledAlerts) {
+ this.disabledAlerts = disabledAlerts;
+ return this;
+ }
+
+ /**
+ * Get the emailAddresses property: Specifies an array of e-mail addresses to which the alert is sent.
+ *
+ * @return the emailAddresses value.
+ */
+ public List emailAddresses() {
+ return this.emailAddresses;
+ }
+
+ /**
+ * Set the emailAddresses property: Specifies an array of e-mail addresses to which the alert is sent.
+ *
+ * @param emailAddresses the emailAddresses value to set.
+ * @return the SecurityAlertPolicyProperties object itself.
+ */
+ public SecurityAlertPolicyProperties withEmailAddresses(List emailAddresses) {
+ this.emailAddresses = emailAddresses;
+ return this;
+ }
+
+ /**
+ * Get the emailAccountAdmins property: Specifies that the alert is sent to the account administrators.
+ *
+ * @return the emailAccountAdmins value.
+ */
+ public Boolean emailAccountAdmins() {
+ return this.emailAccountAdmins;
+ }
+
+ /**
+ * Set the emailAccountAdmins property: Specifies that the alert is sent to the account administrators.
+ *
+ * @param emailAccountAdmins the emailAccountAdmins value to set.
+ * @return the SecurityAlertPolicyProperties object itself.
+ */
+ public SecurityAlertPolicyProperties withEmailAccountAdmins(Boolean emailAccountAdmins) {
+ this.emailAccountAdmins = emailAccountAdmins;
+ return this;
+ }
+
+ /**
+ * Get the storageEndpoint property: Specifies the blob storage endpoint (e.g.
+ * https://MyAccount.blob.core.windows.net). This blob storage will hold all Threat Detection audit logs.
+ *
+ * @return the storageEndpoint value.
+ */
+ public String storageEndpoint() {
+ return this.storageEndpoint;
+ }
+
+ /**
+ * Set the storageEndpoint property: Specifies the blob storage endpoint (e.g.
+ * https://MyAccount.blob.core.windows.net). This blob storage will hold all Threat Detection audit logs.
+ *
+ * @param storageEndpoint the storageEndpoint value to set.
+ * @return the SecurityAlertPolicyProperties object itself.
+ */
+ public SecurityAlertPolicyProperties withStorageEndpoint(String storageEndpoint) {
+ this.storageEndpoint = storageEndpoint;
+ return this;
+ }
+
+ /**
+ * Get the storageAccountAccessKey property: Specifies the identifier key of the Threat Detection audit storage
+ * account.
+ *
+ * @return the storageAccountAccessKey value.
+ */
+ public String storageAccountAccessKey() {
+ return this.storageAccountAccessKey;
+ }
+
+ /**
+ * Set the storageAccountAccessKey property: Specifies the identifier key of the Threat Detection audit storage
+ * account.
+ *
+ * @param storageAccountAccessKey the storageAccountAccessKey value to set.
+ * @return the SecurityAlertPolicyProperties object itself.
+ */
+ public SecurityAlertPolicyProperties withStorageAccountAccessKey(String storageAccountAccessKey) {
+ this.storageAccountAccessKey = storageAccountAccessKey;
+ return this;
+ }
+
+ /**
+ * Get the retentionDays property: Specifies the number of days to keep in the Threat Detection audit logs.
+ *
+ * @return the retentionDays value.
+ */
+ public Integer retentionDays() {
+ return this.retentionDays;
+ }
+
+ /**
+ * Set the retentionDays property: Specifies the number of days to keep in the Threat Detection audit logs.
+ *
+ * @param retentionDays the retentionDays value to set.
+ * @return the SecurityAlertPolicyProperties object itself.
+ */
+ public SecurityAlertPolicyProperties withRetentionDays(Integer retentionDays) {
+ this.retentionDays = retentionDays;
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (state() == null) {
+ throw LOGGER
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ "Missing required property state in model SecurityAlertPolicyProperties"));
+ }
+ }
+
+ private static final ClientLogger LOGGER = new ClientLogger(SecurityAlertPolicyProperties.class);
+}
diff --git a/sdk/mariadb/azure-resourcemanager-mariadb/src/main/java/com/azure/resourcemanager/mariadb/fluent/models/ServerInner.java b/sdk/mariadb/azure-resourcemanager-mariadb/src/main/java/com/azure/resourcemanager/mariadb/fluent/models/ServerInner.java
index dd0fa5700e36..0eb8fffc66c1 100644
--- a/sdk/mariadb/azure-resourcemanager-mariadb/src/main/java/com/azure/resourcemanager/mariadb/fluent/models/ServerInner.java
+++ b/sdk/mariadb/azure-resourcemanager-mariadb/src/main/java/com/azure/resourcemanager/mariadb/fluent/models/ServerInner.java
@@ -5,9 +5,7 @@
package com.azure.resourcemanager.mariadb.fluent.models;
import com.azure.core.annotation.Fluent;
-import com.azure.core.annotation.JsonFlatten;
import com.azure.core.management.Resource;
-import com.azure.core.util.logging.ClientLogger;
import com.azure.resourcemanager.mariadb.models.MinimalTlsVersionEnum;
import com.azure.resourcemanager.mariadb.models.PublicNetworkAccessEnum;
import com.azure.resourcemanager.mariadb.models.ServerPrivateEndpointConnection;
@@ -16,18 +14,14 @@
import com.azure.resourcemanager.mariadb.models.Sku;
import com.azure.resourcemanager.mariadb.models.SslEnforcementEnum;
import com.azure.resourcemanager.mariadb.models.StorageProfile;
-import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.time.OffsetDateTime;
import java.util.List;
import java.util.Map;
/** Represents a server. */
-@JsonFlatten
@Fluent
-public class ServerInner extends Resource {
- @JsonIgnore private final ClientLogger logger = new ClientLogger(ServerInner.class);
-
+public final class ServerInner extends Resource {
/*
* The SKU (pricing tier) of the server.
*/
@@ -35,84 +29,10 @@ public class ServerInner extends Resource {
private Sku sku;
/*
- * The administrator's login name of a server. Can only be specified when
- * the server is being created (and is required for creation).
- */
- @JsonProperty(value = "properties.administratorLogin")
- private String administratorLogin;
-
- /*
- * Server version.
- */
- @JsonProperty(value = "properties.version")
- private ServerVersion version;
-
- /*
- * Enable ssl enforcement or not when connect to server.
- */
- @JsonProperty(value = "properties.sslEnforcement")
- private SslEnforcementEnum sslEnforcement;
-
- /*
- * Enforce a minimal Tls version for the server.
- */
- @JsonProperty(value = "properties.minimalTlsVersion")
- private MinimalTlsVersionEnum minimalTlsVersion;
-
- /*
- * A state of a server that is visible to user.
- */
- @JsonProperty(value = "properties.userVisibleState")
- private ServerState userVisibleState;
-
- /*
- * The fully qualified domain name of a server.
- */
- @JsonProperty(value = "properties.fullyQualifiedDomainName")
- private String fullyQualifiedDomainName;
-
- /*
- * Earliest restore point creation time (ISO8601 format)
- */
- @JsonProperty(value = "properties.earliestRestoreDate")
- private OffsetDateTime earliestRestoreDate;
-
- /*
- * Storage profile of a server.
- */
- @JsonProperty(value = "properties.storageProfile")
- private StorageProfile storageProfile;
-
- /*
- * The replication role of the server.
+ * Properties of the server.
*/
- @JsonProperty(value = "properties.replicationRole")
- private String replicationRole;
-
- /*
- * The master server id of a replica server.
- */
- @JsonProperty(value = "properties.masterServerId")
- private String masterServerId;
-
- /*
- * The maximum number of replicas that a master server can have.
- */
- @JsonProperty(value = "properties.replicaCapacity")
- private Integer replicaCapacity;
-
- /*
- * Whether or not public network access is allowed for this server. Value
- * is optional but if passed in, must be 'Enabled' or 'Disabled'
- */
- @JsonProperty(value = "properties.publicNetworkAccess")
- private PublicNetworkAccessEnum publicNetworkAccess;
-
- /*
- * List of private endpoint connections on a server
- */
- @JsonProperty(value = "properties.privateEndpointConnections", access = JsonProperty.Access.WRITE_ONLY)
- private List privateEndpointConnections;
+ @JsonProperty(value = "properties")
+ private ServerProperties innerProperties;
/**
* Get the sku property: The SKU (pricing tier) of the server.
@@ -134,6 +54,29 @@ public ServerInner withSku(Sku sku) {
return this;
}
+ /**
+ * Get the innerProperties property: Properties of the server.
+ *
+ * @return the innerProperties value.
+ */
+ private ServerProperties innerProperties() {
+ return this.innerProperties;
+ }
+
+ /** {@inheritDoc} */
+ @Override
+ public ServerInner withLocation(String location) {
+ super.withLocation(location);
+ return this;
+ }
+
+ /** {@inheritDoc} */
+ @Override
+ public ServerInner withTags(Map tags) {
+ super.withTags(tags);
+ return this;
+ }
+
/**
* Get the administratorLogin property: The administrator's login name of a server. Can only be specified when the
* server is being created (and is required for creation).
@@ -141,7 +84,7 @@ public ServerInner withSku(Sku sku) {
* @return the administratorLogin value.
*/
public String administratorLogin() {
- return this.administratorLogin;
+ return this.innerProperties() == null ? null : this.innerProperties().administratorLogin();
}
/**
@@ -152,7 +95,10 @@ public String administratorLogin() {
* @return the ServerInner object itself.
*/
public ServerInner withAdministratorLogin(String administratorLogin) {
- this.administratorLogin = administratorLogin;
+ if (this.innerProperties() == null) {
+ this.innerProperties = new ServerProperties();
+ }
+ this.innerProperties().withAdministratorLogin(administratorLogin);
return this;
}
@@ -162,7 +108,7 @@ public ServerInner withAdministratorLogin(String administratorLogin) {
* @return the version value.
*/
public ServerVersion version() {
- return this.version;
+ return this.innerProperties() == null ? null : this.innerProperties().version();
}
/**
@@ -172,7 +118,10 @@ public ServerVersion version() {
* @return the ServerInner object itself.
*/
public ServerInner withVersion(ServerVersion version) {
- this.version = version;
+ if (this.innerProperties() == null) {
+ this.innerProperties = new ServerProperties();
+ }
+ this.innerProperties().withVersion(version);
return this;
}
@@ -182,7 +131,7 @@ public ServerInner withVersion(ServerVersion version) {
* @return the sslEnforcement value.
*/
public SslEnforcementEnum sslEnforcement() {
- return this.sslEnforcement;
+ return this.innerProperties() == null ? null : this.innerProperties().sslEnforcement();
}
/**
@@ -192,7 +141,10 @@ public SslEnforcementEnum sslEnforcement() {
* @return the ServerInner object itself.
*/
public ServerInner withSslEnforcement(SslEnforcementEnum sslEnforcement) {
- this.sslEnforcement = sslEnforcement;
+ if (this.innerProperties() == null) {
+ this.innerProperties = new ServerProperties();
+ }
+ this.innerProperties().withSslEnforcement(sslEnforcement);
return this;
}
@@ -202,7 +154,7 @@ public ServerInner withSslEnforcement(SslEnforcementEnum sslEnforcement) {
* @return the minimalTlsVersion value.
*/
public MinimalTlsVersionEnum minimalTlsVersion() {
- return this.minimalTlsVersion;
+ return this.innerProperties() == null ? null : this.innerProperties().minimalTlsVersion();
}
/**
@@ -212,7 +164,10 @@ public MinimalTlsVersionEnum minimalTlsVersion() {
* @return the ServerInner object itself.
*/
public ServerInner withMinimalTlsVersion(MinimalTlsVersionEnum minimalTlsVersion) {
- this.minimalTlsVersion = minimalTlsVersion;
+ if (this.innerProperties() == null) {
+ this.innerProperties = new ServerProperties();
+ }
+ this.innerProperties().withMinimalTlsVersion(minimalTlsVersion);
return this;
}
@@ -222,7 +177,7 @@ public ServerInner withMinimalTlsVersion(MinimalTlsVersionEnum minimalTlsVersion
* @return the userVisibleState value.
*/
public ServerState userVisibleState() {
- return this.userVisibleState;
+ return this.innerProperties() == null ? null : this.innerProperties().userVisibleState();
}
/**
@@ -232,7 +187,10 @@ public ServerState userVisibleState() {
* @return the ServerInner object itself.
*/
public ServerInner withUserVisibleState(ServerState userVisibleState) {
- this.userVisibleState = userVisibleState;
+ if (this.innerProperties() == null) {
+ this.innerProperties = new ServerProperties();
+ }
+ this.innerProperties().withUserVisibleState(userVisibleState);
return this;
}
@@ -242,7 +200,7 @@ public ServerInner withUserVisibleState(ServerState userVisibleState) {
* @return the fullyQualifiedDomainName value.
*/
public String fullyQualifiedDomainName() {
- return this.fullyQualifiedDomainName;
+ return this.innerProperties() == null ? null : this.innerProperties().fullyQualifiedDomainName();
}
/**
@@ -252,7 +210,10 @@ public String fullyQualifiedDomainName() {
* @return the ServerInner object itself.
*/
public ServerInner withFullyQualifiedDomainName(String fullyQualifiedDomainName) {
- this.fullyQualifiedDomainName = fullyQualifiedDomainName;
+ if (this.innerProperties() == null) {
+ this.innerProperties = new ServerProperties();
+ }
+ this.innerProperties().withFullyQualifiedDomainName(fullyQualifiedDomainName);
return this;
}
@@ -262,7 +223,7 @@ public ServerInner withFullyQualifiedDomainName(String fullyQualifiedDomainName)
* @return the earliestRestoreDate value.
*/
public OffsetDateTime earliestRestoreDate() {
- return this.earliestRestoreDate;
+ return this.innerProperties() == null ? null : this.innerProperties().earliestRestoreDate();
}
/**
@@ -272,7 +233,10 @@ public OffsetDateTime earliestRestoreDate() {
* @return the ServerInner object itself.
*/
public ServerInner withEarliestRestoreDate(OffsetDateTime earliestRestoreDate) {
- this.earliestRestoreDate = earliestRestoreDate;
+ if (this.innerProperties() == null) {
+ this.innerProperties = new ServerProperties();
+ }
+ this.innerProperties().withEarliestRestoreDate(earliestRestoreDate);
return this;
}
@@ -282,7 +246,7 @@ public ServerInner withEarliestRestoreDate(OffsetDateTime earliestRestoreDate) {
* @return the storageProfile value.
*/
public StorageProfile storageProfile() {
- return this.storageProfile;
+ return this.innerProperties() == null ? null : this.innerProperties().storageProfile();
}
/**
@@ -292,7 +256,10 @@ public StorageProfile storageProfile() {
* @return the ServerInner object itself.
*/
public ServerInner withStorageProfile(StorageProfile storageProfile) {
- this.storageProfile = storageProfile;
+ if (this.innerProperties() == null) {
+ this.innerProperties = new ServerProperties();
+ }
+ this.innerProperties().withStorageProfile(storageProfile);
return this;
}
@@ -302,7 +269,7 @@ public ServerInner withStorageProfile(StorageProfile storageProfile) {
* @return the replicationRole value.
*/
public String replicationRole() {
- return this.replicationRole;
+ return this.innerProperties() == null ? null : this.innerProperties().replicationRole();
}
/**
@@ -312,7 +279,10 @@ public String replicationRole() {
* @return the ServerInner object itself.
*/
public ServerInner withReplicationRole(String replicationRole) {
- this.replicationRole = replicationRole;
+ if (this.innerProperties() == null) {
+ this.innerProperties = new ServerProperties();
+ }
+ this.innerProperties().withReplicationRole(replicationRole);
return this;
}
@@ -322,7 +292,7 @@ public ServerInner withReplicationRole(String replicationRole) {
* @return the masterServerId value.
*/
public String masterServerId() {
- return this.masterServerId;
+ return this.innerProperties() == null ? null : this.innerProperties().masterServerId();
}
/**
@@ -332,7 +302,10 @@ public String masterServerId() {
* @return the ServerInner object itself.
*/
public ServerInner withMasterServerId(String masterServerId) {
- this.masterServerId = masterServerId;
+ if (this.innerProperties() == null) {
+ this.innerProperties = new ServerProperties();
+ }
+ this.innerProperties().withMasterServerId(masterServerId);
return this;
}
@@ -342,7 +315,7 @@ public ServerInner withMasterServerId(String masterServerId) {
* @return the replicaCapacity value.
*/
public Integer replicaCapacity() {
- return this.replicaCapacity;
+ return this.innerProperties() == null ? null : this.innerProperties().replicaCapacity();
}
/**
@@ -352,7 +325,10 @@ public Integer replicaCapacity() {
* @return the ServerInner object itself.
*/
public ServerInner withReplicaCapacity(Integer replicaCapacity) {
- this.replicaCapacity = replicaCapacity;
+ if (this.innerProperties() == null) {
+ this.innerProperties = new ServerProperties();
+ }
+ this.innerProperties().withReplicaCapacity(replicaCapacity);
return this;
}
@@ -363,7 +339,7 @@ public ServerInner withReplicaCapacity(Integer replicaCapacity) {
* @return the publicNetworkAccess value.
*/
public PublicNetworkAccessEnum publicNetworkAccess() {
- return this.publicNetworkAccess;
+ return this.innerProperties() == null ? null : this.innerProperties().publicNetworkAccess();
}
/**
@@ -374,7 +350,10 @@ public PublicNetworkAccessEnum publicNetworkAccess() {
* @return the ServerInner object itself.
*/
public ServerInner withPublicNetworkAccess(PublicNetworkAccessEnum publicNetworkAccess) {
- this.publicNetworkAccess = publicNetworkAccess;
+ if (this.innerProperties() == null) {
+ this.innerProperties = new ServerProperties();
+ }
+ this.innerProperties().withPublicNetworkAccess(publicNetworkAccess);
return this;
}
@@ -384,21 +363,7 @@ public ServerInner withPublicNetworkAccess(PublicNetworkAccessEnum publicNetwork
* @return the privateEndpointConnections value.
*/
public List privateEndpointConnections() {
- return this.privateEndpointConnections;
- }
-
- /** {@inheritDoc} */
- @Override
- public ServerInner withLocation(String location) {
- super.withLocation(location);
- return this;
- }
-
- /** {@inheritDoc} */
- @Override
- public ServerInner withTags(Map tags) {
- super.withTags(tags);
- return this;
+ return this.innerProperties() == null ? null : this.innerProperties().privateEndpointConnections();
}
/**
@@ -410,11 +375,8 @@ public void validate() {
if (sku() != null) {
sku().validate();
}
- if (storageProfile() != null) {
- storageProfile().validate();
- }
- if (privateEndpointConnections() != null) {
- privateEndpointConnections().forEach(e -> e.validate());
+ if (innerProperties() != null) {
+ innerProperties().validate();
}
}
}
diff --git a/sdk/mariadb/azure-resourcemanager-mariadb/src/main/java/com/azure/resourcemanager/mariadb/fluent/models/ServerProperties.java b/sdk/mariadb/azure-resourcemanager-mariadb/src/main/java/com/azure/resourcemanager/mariadb/fluent/models/ServerProperties.java
new file mode 100644
index 000000000000..dc75b5a72830
--- /dev/null
+++ b/sdk/mariadb/azure-resourcemanager-mariadb/src/main/java/com/azure/resourcemanager/mariadb/fluent/models/ServerProperties.java
@@ -0,0 +1,368 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.mariadb.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.resourcemanager.mariadb.models.MinimalTlsVersionEnum;
+import com.azure.resourcemanager.mariadb.models.PublicNetworkAccessEnum;
+import com.azure.resourcemanager.mariadb.models.ServerPrivateEndpointConnection;
+import com.azure.resourcemanager.mariadb.models.ServerState;
+import com.azure.resourcemanager.mariadb.models.ServerVersion;
+import com.azure.resourcemanager.mariadb.models.SslEnforcementEnum;
+import com.azure.resourcemanager.mariadb.models.StorageProfile;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import java.time.OffsetDateTime;
+import java.util.List;
+
+/** The properties of a server. */
+@Fluent
+public final class ServerProperties {
+ /*
+ * The administrator's login name of a server. Can only be specified when
+ * the server is being created (and is required for creation).
+ */
+ @JsonProperty(value = "administratorLogin")
+ private String administratorLogin;
+
+ /*
+ * Server version.
+ */
+ @JsonProperty(value = "version")
+ private ServerVersion version;
+
+ /*
+ * Enable ssl enforcement or not when connect to server.
+ */
+ @JsonProperty(value = "sslEnforcement")
+ private SslEnforcementEnum sslEnforcement;
+
+ /*
+ * Enforce a minimal Tls version for the server.
+ */
+ @JsonProperty(value = "minimalTlsVersion")
+ private MinimalTlsVersionEnum minimalTlsVersion;
+
+ /*
+ * A state of a server that is visible to user.
+ */
+ @JsonProperty(value = "userVisibleState")
+ private ServerState userVisibleState;
+
+ /*
+ * The fully qualified domain name of a server.
+ */
+ @JsonProperty(value = "fullyQualifiedDomainName")
+ private String fullyQualifiedDomainName;
+
+ /*
+ * Earliest restore point creation time (ISO8601 format)
+ */
+ @JsonProperty(value = "earliestRestoreDate")
+ private OffsetDateTime earliestRestoreDate;
+
+ /*
+ * Storage profile of a server.
+ */
+ @JsonProperty(value = "storageProfile")
+ private StorageProfile storageProfile;
+
+ /*
+ * The replication role of the server.
+ */
+ @JsonProperty(value = "replicationRole")
+ private String replicationRole;
+
+ /*
+ * The master server id of a replica server.
+ */
+ @JsonProperty(value = "masterServerId")
+ private String masterServerId;
+
+ /*
+ * The maximum number of replicas that a master server can have.
+ */
+ @JsonProperty(value = "replicaCapacity")
+ private Integer replicaCapacity;
+
+ /*
+ * Whether or not public network access is allowed for this server. Value
+ * is optional but if passed in, must be 'Enabled' or 'Disabled'
+ */
+ @JsonProperty(value = "publicNetworkAccess")
+ private PublicNetworkAccessEnum publicNetworkAccess;
+
+ /*
+ * List of private endpoint connections on a server
+ */
+ @JsonProperty(value = "privateEndpointConnections", access = JsonProperty.Access.WRITE_ONLY)
+ private List privateEndpointConnections;
+
+ /**
+ * Get the administratorLogin property: The administrator's login name of a server. Can only be specified when the
+ * server is being created (and is required for creation).
+ *
+ * @return the administratorLogin value.
+ */
+ public String administratorLogin() {
+ return this.administratorLogin;
+ }
+
+ /**
+ * Set the administratorLogin property: The administrator's login name of a server. Can only be specified when the
+ * server is being created (and is required for creation).
+ *
+ * @param administratorLogin the administratorLogin value to set.
+ * @return the ServerProperties object itself.
+ */
+ public ServerProperties withAdministratorLogin(String administratorLogin) {
+ this.administratorLogin = administratorLogin;
+ return this;
+ }
+
+ /**
+ * Get the version property: Server version.
+ *
+ * @return the version value.
+ */
+ public ServerVersion version() {
+ return this.version;
+ }
+
+ /**
+ * Set the version property: Server version.
+ *
+ * @param version the version value to set.
+ * @return the ServerProperties object itself.
+ */
+ public ServerProperties withVersion(ServerVersion version) {
+ this.version = version;
+ return this;
+ }
+
+ /**
+ * Get the sslEnforcement property: Enable ssl enforcement or not when connect to server.
+ *
+ * @return the sslEnforcement value.
+ */
+ public SslEnforcementEnum sslEnforcement() {
+ return this.sslEnforcement;
+ }
+
+ /**
+ * Set the sslEnforcement property: Enable ssl enforcement or not when connect to server.
+ *
+ * @param sslEnforcement the sslEnforcement value to set.
+ * @return the ServerProperties object itself.
+ */
+ public ServerProperties withSslEnforcement(SslEnforcementEnum sslEnforcement) {
+ this.sslEnforcement = sslEnforcement;
+ return this;
+ }
+
+ /**
+ * Get the minimalTlsVersion property: Enforce a minimal Tls version for the server.
+ *
+ * @return the minimalTlsVersion value.
+ */
+ public MinimalTlsVersionEnum minimalTlsVersion() {
+ return this.minimalTlsVersion;
+ }
+
+ /**
+ * Set the minimalTlsVersion property: Enforce a minimal Tls version for the server.
+ *
+ * @param minimalTlsVersion the minimalTlsVersion value to set.
+ * @return the ServerProperties object itself.
+ */
+ public ServerProperties withMinimalTlsVersion(MinimalTlsVersionEnum minimalTlsVersion) {
+ this.minimalTlsVersion = minimalTlsVersion;
+ return this;
+ }
+
+ /**
+ * Get the userVisibleState property: A state of a server that is visible to user.
+ *
+ * @return the userVisibleState value.
+ */
+ public ServerState userVisibleState() {
+ return this.userVisibleState;
+ }
+
+ /**
+ * Set the userVisibleState property: A state of a server that is visible to user.
+ *
+ * @param userVisibleState the userVisibleState value to set.
+ * @return the ServerProperties object itself.
+ */
+ public ServerProperties withUserVisibleState(ServerState userVisibleState) {
+ this.userVisibleState = userVisibleState;
+ return this;
+ }
+
+ /**
+ * Get the fullyQualifiedDomainName property: The fully qualified domain name of a server.
+ *
+ * @return the fullyQualifiedDomainName value.
+ */
+ public String fullyQualifiedDomainName() {
+ return this.fullyQualifiedDomainName;
+ }
+
+ /**
+ * Set the fullyQualifiedDomainName property: The fully qualified domain name of a server.
+ *
+ * @param fullyQualifiedDomainName the fullyQualifiedDomainName value to set.
+ * @return the ServerProperties object itself.
+ */
+ public ServerProperties withFullyQualifiedDomainName(String fullyQualifiedDomainName) {
+ this.fullyQualifiedDomainName = fullyQualifiedDomainName;
+ return this;
+ }
+
+ /**
+ * Get the earliestRestoreDate property: Earliest restore point creation time (ISO8601 format).
+ *
+ * @return the earliestRestoreDate value.
+ */
+ public OffsetDateTime earliestRestoreDate() {
+ return this.earliestRestoreDate;
+ }
+
+ /**
+ * Set the earliestRestoreDate property: Earliest restore point creation time (ISO8601 format).
+ *
+ * @param earliestRestoreDate the earliestRestoreDate value to set.
+ * @return the ServerProperties object itself.
+ */
+ public ServerProperties withEarliestRestoreDate(OffsetDateTime earliestRestoreDate) {
+ this.earliestRestoreDate = earliestRestoreDate;
+ return this;
+ }
+
+ /**
+ * Get the storageProfile property: Storage profile of a server.
+ *
+ * @return the storageProfile value.
+ */
+ public StorageProfile storageProfile() {
+ return this.storageProfile;
+ }
+
+ /**
+ * Set the storageProfile property: Storage profile of a server.
+ *
+ * @param storageProfile the storageProfile value to set.
+ * @return the ServerProperties object itself.
+ */
+ public ServerProperties withStorageProfile(StorageProfile storageProfile) {
+ this.storageProfile = storageProfile;
+ return this;
+ }
+
+ /**
+ * Get the replicationRole property: The replication role of the server.
+ *
+ * @return the replicationRole value.
+ */
+ public String replicationRole() {
+ return this.replicationRole;
+ }
+
+ /**
+ * Set the replicationRole property: The replication role of the server.
+ *
+ * @param replicationRole the replicationRole value to set.
+ * @return the ServerProperties object itself.
+ */
+ public ServerProperties withReplicationRole(String replicationRole) {
+ this.replicationRole = replicationRole;
+ return this;
+ }
+
+ /**
+ * Get the masterServerId property: The master server id of a replica server.
+ *
+ * @return the masterServerId value.
+ */
+ public String masterServerId() {
+ return this.masterServerId;
+ }
+
+ /**
+ * Set the masterServerId property: The master server id of a replica server.
+ *
+ * @param masterServerId the masterServerId value to set.
+ * @return the ServerProperties object itself.
+ */
+ public ServerProperties withMasterServerId(String masterServerId) {
+ this.masterServerId = masterServerId;
+ return this;
+ }
+
+ /**
+ * Get the replicaCapacity property: The maximum number of replicas that a master server can have.
+ *
+ * @return the replicaCapacity value.
+ */
+ public Integer replicaCapacity() {
+ return this.replicaCapacity;
+ }
+
+ /**
+ * Set the replicaCapacity property: The maximum number of replicas that a master server can have.
+ *
+ * @param replicaCapacity the replicaCapacity value to set.
+ * @return the ServerProperties object itself.
+ */
+ public ServerProperties withReplicaCapacity(Integer replicaCapacity) {
+ this.replicaCapacity = replicaCapacity;
+ return this;
+ }
+
+ /**
+ * Get the publicNetworkAccess property: Whether or not public network access is allowed for this server. Value is
+ * optional but if passed in, must be 'Enabled' or 'Disabled'.
+ *
+ * @return the publicNetworkAccess value.
+ */
+ public PublicNetworkAccessEnum publicNetworkAccess() {
+ return this.publicNetworkAccess;
+ }
+
+ /**
+ * Set the publicNetworkAccess property: Whether or not public network access is allowed for this server. Value is
+ * optional but if passed in, must be 'Enabled' or 'Disabled'.
+ *
+ * @param publicNetworkAccess the publicNetworkAccess value to set.
+ * @return the ServerProperties object itself.
+ */
+ public ServerProperties withPublicNetworkAccess(PublicNetworkAccessEnum publicNetworkAccess) {
+ this.publicNetworkAccess = publicNetworkAccess;
+ return this;
+ }
+
+ /**
+ * Get the privateEndpointConnections property: List of private endpoint connections on a server.
+ *
+ * @return the privateEndpointConnections value.
+ */
+ public List privateEndpointConnections() {
+ return this.privateEndpointConnections;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (storageProfile() != null) {
+ storageProfile().validate();
+ }
+ if (privateEndpointConnections() != null) {
+ privateEndpointConnections().forEach(e -> e.validate());
+ }
+ }
+}
diff --git a/sdk/mariadb/azure-resourcemanager-mariadb/src/main/java/com/azure/resourcemanager/mariadb/fluent/models/ServerSecurityAlertPolicyInner.java b/sdk/mariadb/azure-resourcemanager-mariadb/src/main/java/com/azure/resourcemanager/mariadb/fluent/models/ServerSecurityAlertPolicyInner.java
index 460392e8eeb6..161817450a88 100644
--- a/sdk/mariadb/azure-resourcemanager-mariadb/src/main/java/com/azure/resourcemanager/mariadb/fluent/models/ServerSecurityAlertPolicyInner.java
+++ b/sdk/mariadb/azure-resourcemanager-mariadb/src/main/java/com/azure/resourcemanager/mariadb/fluent/models/ServerSecurityAlertPolicyInner.java
@@ -5,65 +5,28 @@
package com.azure.resourcemanager.mariadb.fluent.models;
import com.azure.core.annotation.Fluent;
-import com.azure.core.annotation.JsonFlatten;
import com.azure.core.management.ProxyResource;
-import com.azure.core.util.logging.ClientLogger;
import com.azure.resourcemanager.mariadb.models.ServerSecurityAlertPolicyState;
-import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.List;
/** A server security alert policy. */
-@JsonFlatten
@Fluent
-public class ServerSecurityAlertPolicyInner extends ProxyResource {
- @JsonIgnore private final ClientLogger logger = new ClientLogger(ServerSecurityAlertPolicyInner.class);
-
- /*
- * Specifies the state of the policy, whether it is enabled or disabled.
- */
- @JsonProperty(value = "properties.state")
- private ServerSecurityAlertPolicyState state;
-
+public final class ServerSecurityAlertPolicyInner extends ProxyResource {
/*
- * Specifies an array of alerts that are disabled. Allowed values are:
- * Sql_Injection, Sql_Injection_Vulnerability, Access_Anomaly
+ * Resource properties.
*/
- @JsonProperty(value = "properties.disabledAlerts")
- private List disabledAlerts;
+ @JsonProperty(value = "properties")
+ private SecurityAlertPolicyProperties innerProperties;
- /*
- * Specifies an array of e-mail addresses to which the alert is sent.
- */
- @JsonProperty(value = "properties.emailAddresses")
- private List emailAddresses;
-
- /*
- * Specifies that the alert is sent to the account administrators.
- */
- @JsonProperty(value = "properties.emailAccountAdmins")
- private Boolean emailAccountAdmins;
-
- /*
- * Specifies the blob storage endpoint (e.g.
- * https://MyAccount.blob.core.windows.net). This blob storage will hold
- * all Threat Detection audit logs.
- */
- @JsonProperty(value = "properties.storageEndpoint")
- private String storageEndpoint;
-
- /*
- * Specifies the identifier key of the Threat Detection audit storage
- * account.
- */
- @JsonProperty(value = "properties.storageAccountAccessKey")
- private String storageAccountAccessKey;
-
- /*
- * Specifies the number of days to keep in the Threat Detection audit logs.
+ /**
+ * Get the innerProperties property: Resource properties.
+ *
+ * @return the innerProperties value.
*/
- @JsonProperty(value = "properties.retentionDays")
- private Integer retentionDays;
+ private SecurityAlertPolicyProperties innerProperties() {
+ return this.innerProperties;
+ }
/**
* Get the state property: Specifies the state of the policy, whether it is enabled or disabled.
@@ -71,7 +34,7 @@ public class ServerSecurityAlertPolicyInner extends ProxyResource {
* @return the state value.
*/
public ServerSecurityAlertPolicyState state() {
- return this.state;
+ return this.innerProperties() == null ? null : this.innerProperties().state();
}
/**
@@ -81,7 +44,10 @@ public ServerSecurityAlertPolicyState state() {
* @return the ServerSecurityAlertPolicyInner object itself.
*/
public ServerSecurityAlertPolicyInner withState(ServerSecurityAlertPolicyState state) {
- this.state = state;
+ if (this.innerProperties() == null) {
+ this.innerProperties = new SecurityAlertPolicyProperties();
+ }
+ this.innerProperties().withState(state);
return this;
}
@@ -92,7 +58,7 @@ public ServerSecurityAlertPolicyInner withState(ServerSecurityAlertPolicyState s
* @return the disabledAlerts value.
*/
public List disabledAlerts() {
- return this.disabledAlerts;
+ return this.innerProperties() == null ? null : this.innerProperties().disabledAlerts();
}
/**
@@ -103,7 +69,10 @@ public List disabledAlerts() {
* @return the ServerSecurityAlertPolicyInner object itself.
*/
public ServerSecurityAlertPolicyInner withDisabledAlerts(List disabledAlerts) {
- this.disabledAlerts = disabledAlerts;
+ if (this.innerProperties() == null) {
+ this.innerProperties = new SecurityAlertPolicyProperties();
+ }
+ this.innerProperties().withDisabledAlerts(disabledAlerts);
return this;
}
@@ -113,7 +82,7 @@ public ServerSecurityAlertPolicyInner withDisabledAlerts(List disabledAl
* @return the emailAddresses value.
*/
public List emailAddresses() {
- return this.emailAddresses;
+ return this.innerProperties() == null ? null : this.innerProperties().emailAddresses();
}
/**
@@ -123,7 +92,10 @@ public List emailAddresses() {
* @return the ServerSecurityAlertPolicyInner object itself.
*/
public ServerSecurityAlertPolicyInner withEmailAddresses(List emailAddresses) {
- this.emailAddresses = emailAddresses;
+ if (this.innerProperties() == null) {
+ this.innerProperties = new SecurityAlertPolicyProperties();
+ }
+ this.innerProperties().withEmailAddresses(emailAddresses);
return this;
}
@@ -133,7 +105,7 @@ public ServerSecurityAlertPolicyInner withEmailAddresses(List emailAddre
* @return the emailAccountAdmins value.
*/
public Boolean emailAccountAdmins() {
- return this.emailAccountAdmins;
+ return this.innerProperties() == null ? null : this.innerProperties().emailAccountAdmins();
}
/**
@@ -143,7 +115,10 @@ public Boolean emailAccountAdmins() {
* @return the ServerSecurityAlertPolicyInner object itself.
*/
public ServerSecurityAlertPolicyInner withEmailAccountAdmins(Boolean emailAccountAdmins) {
- this.emailAccountAdmins = emailAccountAdmins;
+ if (this.innerProperties() == null) {
+ this.innerProperties = new SecurityAlertPolicyProperties();
+ }
+ this.innerProperties().withEmailAccountAdmins(emailAccountAdmins);
return this;
}
@@ -154,7 +129,7 @@ public ServerSecurityAlertPolicyInner withEmailAccountAdmins(Boolean emailAccoun
* @return the storageEndpoint value.
*/
public String storageEndpoint() {
- return this.storageEndpoint;
+ return this.innerProperties() == null ? null : this.innerProperties().storageEndpoint();
}
/**
@@ -165,7 +140,10 @@ public String storageEndpoint() {
* @return the ServerSecurityAlertPolicyInner object itself.
*/
public ServerSecurityAlertPolicyInner withStorageEndpoint(String storageEndpoint) {
- this.storageEndpoint = storageEndpoint;
+ if (this.innerProperties() == null) {
+ this.innerProperties = new SecurityAlertPolicyProperties();
+ }
+ this.innerProperties().withStorageEndpoint(storageEndpoint);
return this;
}
@@ -176,7 +154,7 @@ public ServerSecurityAlertPolicyInner withStorageEndpoint(String storageEndpoint
* @return the storageAccountAccessKey value.
*/
public String storageAccountAccessKey() {
- return this.storageAccountAccessKey;
+ return this.innerProperties() == null ? null : this.innerProperties().storageAccountAccessKey();
}
/**
@@ -187,7 +165,10 @@ public String storageAccountAccessKey() {
* @return the ServerSecurityAlertPolicyInner object itself.
*/
public ServerSecurityAlertPolicyInner withStorageAccountAccessKey(String storageAccountAccessKey) {
- this.storageAccountAccessKey = storageAccountAccessKey;
+ if (this.innerProperties() == null) {
+ this.innerProperties = new SecurityAlertPolicyProperties();
+ }
+ this.innerProperties().withStorageAccountAccessKey(storageAccountAccessKey);
return this;
}
@@ -197,7 +178,7 @@ public ServerSecurityAlertPolicyInner withStorageAccountAccessKey(String storage
* @return the retentionDays value.
*/
public Integer retentionDays() {
- return this.retentionDays;
+ return this.innerProperties() == null ? null : this.innerProperties().retentionDays();
}
/**
@@ -207,7 +188,10 @@ public Integer retentionDays() {
* @return the ServerSecurityAlertPolicyInner object itself.
*/
public ServerSecurityAlertPolicyInner withRetentionDays(Integer retentionDays) {
- this.retentionDays = retentionDays;
+ if (this.innerProperties() == null) {
+ this.innerProperties = new SecurityAlertPolicyProperties();
+ }
+ this.innerProperties().withRetentionDays(retentionDays);
return this;
}
@@ -217,5 +201,8 @@ public ServerSecurityAlertPolicyInner withRetentionDays(Integer retentionDays) {
* @throws IllegalArgumentException thrown if the instance is not valid.
*/
public void validate() {
+ if (innerProperties() != null) {
+ innerProperties().validate();
+ }
}
}
diff --git a/sdk/mariadb/azure-resourcemanager-mariadb/src/main/java/com/azure/resourcemanager/mariadb/fluent/models/ServerUpdateParametersProperties.java b/sdk/mariadb/azure-resourcemanager-mariadb/src/main/java/com/azure/resourcemanager/mariadb/fluent/models/ServerUpdateParametersProperties.java
new file mode 100644
index 000000000000..f65e42f64710
--- /dev/null
+++ b/sdk/mariadb/azure-resourcemanager-mariadb/src/main/java/com/azure/resourcemanager/mariadb/fluent/models/ServerUpdateParametersProperties.java
@@ -0,0 +1,213 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.mariadb.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.resourcemanager.mariadb.models.MinimalTlsVersionEnum;
+import com.azure.resourcemanager.mariadb.models.PublicNetworkAccessEnum;
+import com.azure.resourcemanager.mariadb.models.ServerVersion;
+import com.azure.resourcemanager.mariadb.models.SslEnforcementEnum;
+import com.azure.resourcemanager.mariadb.models.StorageProfile;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/** The properties that can be updated for a server. */
+@Fluent
+public final class ServerUpdateParametersProperties {
+ /*
+ * Storage profile of a server.
+ */
+ @JsonProperty(value = "storageProfile")
+ private StorageProfile storageProfile;
+
+ /*
+ * The password of the administrator login.
+ */
+ @JsonProperty(value = "administratorLoginPassword")
+ private String administratorLoginPassword;
+
+ /*
+ * The version of a server.
+ */
+ @JsonProperty(value = "version")
+ private ServerVersion version;
+
+ /*
+ * Enable ssl enforcement or not when connect to server.
+ */
+ @JsonProperty(value = "sslEnforcement")
+ private SslEnforcementEnum sslEnforcement;
+
+ /*
+ * Enforce a minimal Tls version for the server.
+ */
+ @JsonProperty(value = "minimalTlsVersion")
+ private MinimalTlsVersionEnum minimalTlsVersion;
+
+ /*
+ * Whether or not public network access is allowed for this server. Value
+ * is optional but if passed in, must be 'Enabled' or 'Disabled'
+ */
+ @JsonProperty(value = "publicNetworkAccess")
+ private PublicNetworkAccessEnum publicNetworkAccess;
+
+ /*
+ * The replication role of the server.
+ */
+ @JsonProperty(value = "replicationRole")
+ private String replicationRole;
+
+ /**
+ * Get the storageProfile property: Storage profile of a server.
+ *
+ * @return the storageProfile value.
+ */
+ public StorageProfile storageProfile() {
+ return this.storageProfile;
+ }
+
+ /**
+ * Set the storageProfile property: Storage profile of a server.
+ *
+ * @param storageProfile the storageProfile value to set.
+ * @return the ServerUpdateParametersProperties object itself.
+ */
+ public ServerUpdateParametersProperties withStorageProfile(StorageProfile storageProfile) {
+ this.storageProfile = storageProfile;
+ return this;
+ }
+
+ /**
+ * Get the administratorLoginPassword property: The password of the administrator login.
+ *
+ * @return the administratorLoginPassword value.
+ */
+ public String administratorLoginPassword() {
+ return this.administratorLoginPassword;
+ }
+
+ /**
+ * Set the administratorLoginPassword property: The password of the administrator login.
+ *
+ * @param administratorLoginPassword the administratorLoginPassword value to set.
+ * @return the ServerUpdateParametersProperties object itself.
+ */
+ public ServerUpdateParametersProperties withAdministratorLoginPassword(String administratorLoginPassword) {
+ this.administratorLoginPassword = administratorLoginPassword;
+ return this;
+ }
+
+ /**
+ * Get the version property: The version of a server.
+ *
+ * @return the version value.
+ */
+ public ServerVersion version() {
+ return this.version;
+ }
+
+ /**
+ * Set the version property: The version of a server.
+ *
+ * @param version the version value to set.
+ * @return the ServerUpdateParametersProperties object itself.
+ */
+ public ServerUpdateParametersProperties withVersion(ServerVersion version) {
+ this.version = version;
+ return this;
+ }
+
+ /**
+ * Get the sslEnforcement property: Enable ssl enforcement or not when connect to server.
+ *
+ * @return the sslEnforcement value.
+ */
+ public SslEnforcementEnum sslEnforcement() {
+ return this.sslEnforcement;
+ }
+
+ /**
+ * Set the sslEnforcement property: Enable ssl enforcement or not when connect to server.
+ *
+ * @param sslEnforcement the sslEnforcement value to set.
+ * @return the ServerUpdateParametersProperties object itself.
+ */
+ public ServerUpdateParametersProperties withSslEnforcement(SslEnforcementEnum sslEnforcement) {
+ this.sslEnforcement = sslEnforcement;
+ return this;
+ }
+
+ /**
+ * Get the minimalTlsVersion property: Enforce a minimal Tls version for the server.
+ *
+ * @return the minimalTlsVersion value.
+ */
+ public MinimalTlsVersionEnum minimalTlsVersion() {
+ return this.minimalTlsVersion;
+ }
+
+ /**
+ * Set the minimalTlsVersion property: Enforce a minimal Tls version for the server.
+ *
+ * @param minimalTlsVersion the minimalTlsVersion value to set.
+ * @return the ServerUpdateParametersProperties object itself.
+ */
+ public ServerUpdateParametersProperties withMinimalTlsVersion(MinimalTlsVersionEnum minimalTlsVersion) {
+ this.minimalTlsVersion = minimalTlsVersion;
+ return this;
+ }
+
+ /**
+ * Get the publicNetworkAccess property: Whether or not public network access is allowed for this server. Value is
+ * optional but if passed in, must be 'Enabled' or 'Disabled'.
+ *
+ * @return the publicNetworkAccess value.
+ */
+ public PublicNetworkAccessEnum publicNetworkAccess() {
+ return this.publicNetworkAccess;
+ }
+
+ /**
+ * Set the publicNetworkAccess property: Whether or not public network access is allowed for this server. Value is
+ * optional but if passed in, must be 'Enabled' or 'Disabled'.
+ *
+ * @param publicNetworkAccess the publicNetworkAccess value to set.
+ * @return the ServerUpdateParametersProperties object itself.
+ */
+ public ServerUpdateParametersProperties withPublicNetworkAccess(PublicNetworkAccessEnum publicNetworkAccess) {
+ this.publicNetworkAccess = publicNetworkAccess;
+ return this;
+ }
+
+ /**
+ * Get the replicationRole property: The replication role of the server.
+ *
+ * @return the replicationRole value.
+ */
+ public String replicationRole() {
+ return this.replicationRole;
+ }
+
+ /**
+ * Set the replicationRole property: The replication role of the server.
+ *
+ * @param replicationRole the replicationRole value to set.
+ * @return the ServerUpdateParametersProperties object itself.
+ */
+ public ServerUpdateParametersProperties withReplicationRole(String replicationRole) {
+ this.replicationRole = replicationRole;
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (storageProfile() != null) {
+ storageProfile().validate();
+ }
+ }
+}
diff --git a/sdk/mariadb/azure-resourcemanager-mariadb/src/main/java/com/azure/resourcemanager/mariadb/fluent/models/TopQueryStatisticsInputProperties.java b/sdk/mariadb/azure-resourcemanager-mariadb/src/main/java/com/azure/resourcemanager/mariadb/fluent/models/TopQueryStatisticsInputProperties.java
new file mode 100644
index 000000000000..6116a61f5e93
--- /dev/null
+++ b/sdk/mariadb/azure-resourcemanager-mariadb/src/main/java/com/azure/resourcemanager/mariadb/fluent/models/TopQueryStatisticsInputProperties.java
@@ -0,0 +1,210 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.mariadb.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.util.logging.ClientLogger;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import java.time.OffsetDateTime;
+
+/** The properties for input to get top query statistics. */
+@Fluent
+public final class TopQueryStatisticsInputProperties {
+ /*
+ * Max number of top queries to return.
+ */
+ @JsonProperty(value = "numberOfTopQueries", required = true)
+ private int numberOfTopQueries;
+
+ /*
+ * Aggregation function name.
+ */
+ @JsonProperty(value = "aggregationFunction", required = true)
+ private String aggregationFunction;
+
+ /*
+ * Observed metric name.
+ */
+ @JsonProperty(value = "observedMetric", required = true)
+ private String observedMetric;
+
+ /*
+ * Observation start time.
+ */
+ @JsonProperty(value = "observationStartTime", required = true)
+ private OffsetDateTime observationStartTime;
+
+ /*
+ * Observation end time.
+ */
+ @JsonProperty(value = "observationEndTime", required = true)
+ private OffsetDateTime observationEndTime;
+
+ /*
+ * Aggregation interval type in ISO 8601 format.
+ */
+ @JsonProperty(value = "aggregationWindow", required = true)
+ private String aggregationWindow;
+
+ /**
+ * Get the numberOfTopQueries property: Max number of top queries to return.
+ *
+ * @return the numberOfTopQueries value.
+ */
+ public int numberOfTopQueries() {
+ return this.numberOfTopQueries;
+ }
+
+ /**
+ * Set the numberOfTopQueries property: Max number of top queries to return.
+ *
+ * @param numberOfTopQueries the numberOfTopQueries value to set.
+ * @return the TopQueryStatisticsInputProperties object itself.
+ */
+ public TopQueryStatisticsInputProperties withNumberOfTopQueries(int numberOfTopQueries) {
+ this.numberOfTopQueries = numberOfTopQueries;
+ return this;
+ }
+
+ /**
+ * Get the aggregationFunction property: Aggregation function name.
+ *
+ * @return the aggregationFunction value.
+ */
+ public String aggregationFunction() {
+ return this.aggregationFunction;
+ }
+
+ /**
+ * Set the aggregationFunction property: Aggregation function name.
+ *
+ * @param aggregationFunction the aggregationFunction value to set.
+ * @return the TopQueryStatisticsInputProperties object itself.
+ */
+ public TopQueryStatisticsInputProperties withAggregationFunction(String aggregationFunction) {
+ this.aggregationFunction = aggregationFunction;
+ return this;
+ }
+
+ /**
+ * Get the observedMetric property: Observed metric name.
+ *
+ * @return the observedMetric value.
+ */
+ public String observedMetric() {
+ return this.observedMetric;
+ }
+
+ /**
+ * Set the observedMetric property: Observed metric name.
+ *
+ * @param observedMetric the observedMetric value to set.
+ * @return the TopQueryStatisticsInputProperties object itself.
+ */
+ public TopQueryStatisticsInputProperties withObservedMetric(String observedMetric) {
+ this.observedMetric = observedMetric;
+ return this;
+ }
+
+ /**
+ * Get the observationStartTime property: Observation start time.
+ *
+ * @return the observationStartTime value.
+ */
+ public OffsetDateTime observationStartTime() {
+ return this.observationStartTime;
+ }
+
+ /**
+ * Set the observationStartTime property: Observation start time.
+ *
+ * @param observationStartTime the observationStartTime value to set.
+ * @return the TopQueryStatisticsInputProperties object itself.
+ */
+ public TopQueryStatisticsInputProperties withObservationStartTime(OffsetDateTime observationStartTime) {
+ this.observationStartTime = observationStartTime;
+ return this;
+ }
+
+ /**
+ * Get the observationEndTime property: Observation end time.
+ *
+ * @return the observationEndTime value.
+ */
+ public OffsetDateTime observationEndTime() {
+ return this.observationEndTime;
+ }
+
+ /**
+ * Set the observationEndTime property: Observation end time.
+ *
+ * @param observationEndTime the observationEndTime value to set.
+ * @return the TopQueryStatisticsInputProperties object itself.
+ */
+ public TopQueryStatisticsInputProperties withObservationEndTime(OffsetDateTime observationEndTime) {
+ this.observationEndTime = observationEndTime;
+ return this;
+ }
+
+ /**
+ * Get the aggregationWindow property: Aggregation interval type in ISO 8601 format.
+ *
+ * @return the aggregationWindow value.
+ */
+ public String aggregationWindow() {
+ return this.aggregationWindow;
+ }
+
+ /**
+ * Set the aggregationWindow property: Aggregation interval type in ISO 8601 format.
+ *
+ * @param aggregationWindow the aggregationWindow value to set.
+ * @return the TopQueryStatisticsInputProperties object itself.
+ */
+ public TopQueryStatisticsInputProperties withAggregationWindow(String aggregationWindow) {
+ this.aggregationWindow = aggregationWindow;
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (aggregationFunction() == null) {
+ throw LOGGER
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ "Missing required property aggregationFunction in model TopQueryStatisticsInputProperties"));
+ }
+ if (observedMetric() == null) {
+ throw LOGGER
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ "Missing required property observedMetric in model TopQueryStatisticsInputProperties"));
+ }
+ if (observationStartTime() == null) {
+ throw LOGGER
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ "Missing required property observationStartTime in model TopQueryStatisticsInputProperties"));
+ }
+ if (observationEndTime() == null) {
+ throw LOGGER
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ "Missing required property observationEndTime in model TopQueryStatisticsInputProperties"));
+ }
+ if (aggregationWindow() == null) {
+ throw LOGGER
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ "Missing required property aggregationWindow in model TopQueryStatisticsInputProperties"));
+ }
+ }
+
+ private static final ClientLogger LOGGER = new ClientLogger(TopQueryStatisticsInputProperties.class);
+}
diff --git a/sdk/mariadb/azure-resourcemanager-mariadb/src/main/java/com/azure/resourcemanager/mariadb/fluent/models/VirtualNetworkRuleInner.java b/sdk/mariadb/azure-resourcemanager-mariadb/src/main/java/com/azure/resourcemanager/mariadb/fluent/models/VirtualNetworkRuleInner.java
index 0b14c0d3f222..b05491290b3d 100644
--- a/sdk/mariadb/azure-resourcemanager-mariadb/src/main/java/com/azure/resourcemanager/mariadb/fluent/models/VirtualNetworkRuleInner.java
+++ b/sdk/mariadb/azure-resourcemanager-mariadb/src/main/java/com/azure/resourcemanager/mariadb/fluent/models/VirtualNetworkRuleInner.java
@@ -5,37 +5,27 @@
package com.azure.resourcemanager.mariadb.fluent.models;
import com.azure.core.annotation.Fluent;
-import com.azure.core.annotation.JsonFlatten;
import com.azure.core.management.ProxyResource;
-import com.azure.core.util.logging.ClientLogger;
import com.azure.resourcemanager.mariadb.models.VirtualNetworkRuleState;
-import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
/** A virtual network rule. */
-@JsonFlatten
@Fluent
-public class VirtualNetworkRuleInner extends ProxyResource {
- @JsonIgnore private final ClientLogger logger = new ClientLogger(VirtualNetworkRuleInner.class);
-
- /*
- * The ARM resource id of the virtual network subnet.
- */
- @JsonProperty(value = "properties.virtualNetworkSubnetId")
- private String virtualNetworkSubnetId;
-
+public final class VirtualNetworkRuleInner extends ProxyResource {
/*
- * Create firewall rule before the virtual network has vnet service
- * endpoint enabled.
+ * Resource properties.
*/
- @JsonProperty(value = "properties.ignoreMissingVnetServiceEndpoint")
- private Boolean ignoreMissingVnetServiceEndpoint;
+ @JsonProperty(value = "properties")
+ private VirtualNetworkRuleProperties innerProperties;
- /*
- * Virtual Network Rule State
+ /**
+ * Get the innerProperties property: Resource properties.
+ *
+ * @return the innerProperties value.
*/
- @JsonProperty(value = "properties.state", access = JsonProperty.Access.WRITE_ONLY)
- private VirtualNetworkRuleState state;
+ private VirtualNetworkRuleProperties innerProperties() {
+ return this.innerProperties;
+ }
/**
* Get the virtualNetworkSubnetId property: The ARM resource id of the virtual network subnet.
@@ -43,7 +33,7 @@ public class VirtualNetworkRuleInner extends ProxyResource {
* @return the virtualNetworkSubnetId value.
*/
public String virtualNetworkSubnetId() {
- return this.virtualNetworkSubnetId;
+ return this.innerProperties() == null ? null : this.innerProperties().virtualNetworkSubnetId();
}
/**
@@ -53,7 +43,10 @@ public String virtualNetworkSubnetId() {
* @return the VirtualNetworkRuleInner object itself.
*/
public VirtualNetworkRuleInner withVirtualNetworkSubnetId(String virtualNetworkSubnetId) {
- this.virtualNetworkSubnetId = virtualNetworkSubnetId;
+ if (this.innerProperties() == null) {
+ this.innerProperties = new VirtualNetworkRuleProperties();
+ }
+ this.innerProperties().withVirtualNetworkSubnetId(virtualNetworkSubnetId);
return this;
}
@@ -64,7 +57,7 @@ public VirtualNetworkRuleInner withVirtualNetworkSubnetId(String virtualNetworkS
* @return the ignoreMissingVnetServiceEndpoint value.
*/
public Boolean ignoreMissingVnetServiceEndpoint() {
- return this.ignoreMissingVnetServiceEndpoint;
+ return this.innerProperties() == null ? null : this.innerProperties().ignoreMissingVnetServiceEndpoint();
}
/**
@@ -75,7 +68,10 @@ public Boolean ignoreMissingVnetServiceEndpoint() {
* @return the VirtualNetworkRuleInner object itself.
*/
public VirtualNetworkRuleInner withIgnoreMissingVnetServiceEndpoint(Boolean ignoreMissingVnetServiceEndpoint) {
- this.ignoreMissingVnetServiceEndpoint = ignoreMissingVnetServiceEndpoint;
+ if (this.innerProperties() == null) {
+ this.innerProperties = new VirtualNetworkRuleProperties();
+ }
+ this.innerProperties().withIgnoreMissingVnetServiceEndpoint(ignoreMissingVnetServiceEndpoint);
return this;
}
@@ -85,7 +81,7 @@ public VirtualNetworkRuleInner withIgnoreMissingVnetServiceEndpoint(Boolean igno
* @return the state value.
*/
public VirtualNetworkRuleState state() {
- return this.state;
+ return this.innerProperties() == null ? null : this.innerProperties().state();
}
/**
@@ -94,5 +90,8 @@ public VirtualNetworkRuleState state() {
* @throws IllegalArgumentException thrown if the instance is not valid.
*/
public void validate() {
+ if (innerProperties() != null) {
+ innerProperties().validate();
+ }
}
}
diff --git a/sdk/mariadb/azure-resourcemanager-mariadb/src/main/java/com/azure/resourcemanager/mariadb/fluent/models/VirtualNetworkRuleProperties.java b/sdk/mariadb/azure-resourcemanager-mariadb/src/main/java/com/azure/resourcemanager/mariadb/fluent/models/VirtualNetworkRuleProperties.java
new file mode 100644
index 000000000000..bfe7fbd16c89
--- /dev/null
+++ b/sdk/mariadb/azure-resourcemanager-mariadb/src/main/java/com/azure/resourcemanager/mariadb/fluent/models/VirtualNetworkRuleProperties.java
@@ -0,0 +1,100 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.mariadb.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.util.logging.ClientLogger;
+import com.azure.resourcemanager.mariadb.models.VirtualNetworkRuleState;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/** Properties of a virtual network rule. */
+@Fluent
+public final class VirtualNetworkRuleProperties {
+ /*
+ * The ARM resource id of the virtual network subnet.
+ */
+ @JsonProperty(value = "virtualNetworkSubnetId", required = true)
+ private String virtualNetworkSubnetId;
+
+ /*
+ * Create firewall rule before the virtual network has vnet service
+ * endpoint enabled.
+ */
+ @JsonProperty(value = "ignoreMissingVnetServiceEndpoint")
+ private Boolean ignoreMissingVnetServiceEndpoint;
+
+ /*
+ * Virtual Network Rule State
+ */
+ @JsonProperty(value = "state", access = JsonProperty.Access.WRITE_ONLY)
+ private VirtualNetworkRuleState state;
+
+ /**
+ * Get the virtualNetworkSubnetId property: The ARM resource id of the virtual network subnet.
+ *
+ * @return the virtualNetworkSubnetId value.
+ */
+ public String virtualNetworkSubnetId() {
+ return this.virtualNetworkSubnetId;
+ }
+
+ /**
+ * Set the virtualNetworkSubnetId property: The ARM resource id of the virtual network subnet.
+ *
+ * @param virtualNetworkSubnetId the virtualNetworkSubnetId value to set.
+ * @return the VirtualNetworkRuleProperties object itself.
+ */
+ public VirtualNetworkRuleProperties withVirtualNetworkSubnetId(String virtualNetworkSubnetId) {
+ this.virtualNetworkSubnetId = virtualNetworkSubnetId;
+ return this;
+ }
+
+ /**
+ * Get the ignoreMissingVnetServiceEndpoint property: Create firewall rule before the virtual network has vnet
+ * service endpoint enabled.
+ *
+ * @return the ignoreMissingVnetServiceEndpoint value.
+ */
+ public Boolean ignoreMissingVnetServiceEndpoint() {
+ return this.ignoreMissingVnetServiceEndpoint;
+ }
+
+ /**
+ * Set the ignoreMissingVnetServiceEndpoint property: Create firewall rule before the virtual network has vnet
+ * service endpoint enabled.
+ *
+ * @param ignoreMissingVnetServiceEndpoint the ignoreMissingVnetServiceEndpoint value to set.
+ * @return the VirtualNetworkRuleProperties object itself.
+ */
+ public VirtualNetworkRuleProperties withIgnoreMissingVnetServiceEndpoint(Boolean ignoreMissingVnetServiceEndpoint) {
+ this.ignoreMissingVnetServiceEndpoint = ignoreMissingVnetServiceEndpoint;
+ return this;
+ }
+
+ /**
+ * Get the state property: Virtual Network Rule State.
+ *
+ * @return the state value.
+ */
+ public VirtualNetworkRuleState state() {
+ return this.state;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (virtualNetworkSubnetId() == null) {
+ throw LOGGER
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ "Missing required property virtualNetworkSubnetId in model VirtualNetworkRuleProperties"));
+ }
+ }
+
+ private static final ClientLogger LOGGER = new ClientLogger(VirtualNetworkRuleProperties.class);
+}
diff --git a/sdk/mariadb/azure-resourcemanager-mariadb/src/main/java/com/azure/resourcemanager/mariadb/fluent/models/WaitStatisticInner.java b/sdk/mariadb/azure-resourcemanager-mariadb/src/main/java/com/azure/resourcemanager/mariadb/fluent/models/WaitStatisticInner.java
index 976e3978502c..112f53320230 100644
--- a/sdk/mariadb/azure-resourcemanager-mariadb/src/main/java/com/azure/resourcemanager/mariadb/fluent/models/WaitStatisticInner.java
+++ b/sdk/mariadb/azure-resourcemanager-mariadb/src/main/java/com/azure/resourcemanager/mariadb/fluent/models/WaitStatisticInner.java
@@ -5,72 +5,27 @@
package com.azure.resourcemanager.mariadb.fluent.models;
import com.azure.core.annotation.Fluent;
-import com.azure.core.annotation.JsonFlatten;
import com.azure.core.management.ProxyResource;
-import com.azure.core.util.logging.ClientLogger;
-import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.time.OffsetDateTime;
/** Represents a Wait Statistic. */
-@JsonFlatten
@Fluent
-public class WaitStatisticInner extends ProxyResource {
- @JsonIgnore private final ClientLogger logger = new ClientLogger(WaitStatisticInner.class);
-
- /*
- * Observation start time.
- */
- @JsonProperty(value = "properties.startTime")
- private OffsetDateTime startTime;
-
- /*
- * Observation end time.
- */
- @JsonProperty(value = "properties.endTime")
- private OffsetDateTime endTime;
-
- /*
- * Wait event name.
- */
- @JsonProperty(value = "properties.eventName")
- private String eventName;
-
- /*
- * Wait event type name.
- */
- @JsonProperty(value = "properties.eventTypeName")
- private String eventTypeName;
-
+public final class WaitStatisticInner extends ProxyResource {
/*
- * Database query identifier.
+ * The properties of a wait statistic.
*/
- @JsonProperty(value = "properties.queryId")
- private Long queryId;
+ @JsonProperty(value = "properties")
+ private WaitStatisticProperties innerProperties;
- /*
- * Database Name.
- */
- @JsonProperty(value = "properties.databaseName")
- private String databaseName;
-
- /*
- * Database user identifier.
- */
- @JsonProperty(value = "properties.userId")
- private Long userId;
-
- /*
- * Wait event count observed in this time interval.
- */
- @JsonProperty(value = "properties.count")
- private Long count;
-
- /*
- * Total time of wait in milliseconds in this time interval.
+ /**
+ * Get the innerProperties property: The properties of a wait statistic.
+ *
+ * @return the innerProperties value.
*/
- @JsonProperty(value = "properties.totalTimeInMs")
- private Double totalTimeInMs;
+ private WaitStatisticProperties innerProperties() {
+ return this.innerProperties;
+ }
/**
* Get the startTime property: Observation start time.
@@ -78,7 +33,7 @@ public class WaitStatisticInner extends ProxyResource {
* @return the startTime value.
*/
public OffsetDateTime startTime() {
- return this.startTime;
+ return this.innerProperties() == null ? null : this.innerProperties().startTime();
}
/**
@@ -88,7 +43,10 @@ public OffsetDateTime startTime() {
* @return the WaitStatisticInner object itself.
*/
public WaitStatisticInner withStartTime(OffsetDateTime startTime) {
- this.startTime = startTime;
+ if (this.innerProperties() == null) {
+ this.innerProperties = new WaitStatisticProperties();
+ }
+ this.innerProperties().withStartTime(startTime);
return this;
}
@@ -98,7 +56,7 @@ public WaitStatisticInner withStartTime(OffsetDateTime startTime) {
* @return the endTime value.
*/
public OffsetDateTime endTime() {
- return this.endTime;
+ return this.innerProperties() == null ? null : this.innerProperties().endTime();
}
/**
@@ -108,7 +66,10 @@ public OffsetDateTime endTime() {
* @return the WaitStatisticInner object itself.
*/
public WaitStatisticInner withEndTime(OffsetDateTime endTime) {
- this.endTime = endTime;
+ if (this.innerProperties() == null) {
+ this.innerProperties = new WaitStatisticProperties();
+ }
+ this.innerProperties().withEndTime(endTime);
return this;
}
@@ -118,7 +79,7 @@ public WaitStatisticInner withEndTime(OffsetDateTime endTime) {
* @return the eventName value.
*/
public String eventName() {
- return this.eventName;
+ return this.innerProperties() == null ? null : this.innerProperties().eventName();
}
/**
@@ -128,7 +89,10 @@ public String eventName() {
* @return the WaitStatisticInner object itself.
*/
public WaitStatisticInner withEventName(String eventName) {
- this.eventName = eventName;
+ if (this.innerProperties() == null) {
+ this.innerProperties = new WaitStatisticProperties();
+ }
+ this.innerProperties().withEventName(eventName);
return this;
}
@@ -138,7 +102,7 @@ public WaitStatisticInner withEventName(String eventName) {
* @return the eventTypeName value.
*/
public String eventTypeName() {
- return this.eventTypeName;
+ return this.innerProperties() == null ? null : this.innerProperties().eventTypeName();
}
/**
@@ -148,7 +112,10 @@ public String eventTypeName() {
* @return the WaitStatisticInner object itself.
*/
public WaitStatisticInner withEventTypeName(String eventTypeName) {
- this.eventTypeName = eventTypeName;
+ if (this.innerProperties() == null) {
+ this.innerProperties = new WaitStatisticProperties();
+ }
+ this.innerProperties().withEventTypeName(eventTypeName);
return this;
}
@@ -158,7 +125,7 @@ public WaitStatisticInner withEventTypeName(String eventTypeName) {
* @return the queryId value.
*/
public Long queryId() {
- return this.queryId;
+ return this.innerProperties() == null ? null : this.innerProperties().queryId();
}
/**
@@ -168,7 +135,10 @@ public Long queryId() {
* @return the WaitStatisticInner object itself.
*/
public WaitStatisticInner withQueryId(Long queryId) {
- this.queryId = queryId;
+ if (this.innerProperties() == null) {
+ this.innerProperties = new WaitStatisticProperties();
+ }
+ this.innerProperties().withQueryId(queryId);
return this;
}
@@ -178,7 +148,7 @@ public WaitStatisticInner withQueryId(Long queryId) {
* @return the databaseName value.
*/
public String databaseName() {
- return this.databaseName;
+ return this.innerProperties() == null ? null : this.innerProperties().databaseName();
}
/**
@@ -188,7 +158,10 @@ public String databaseName() {
* @return the WaitStatisticInner object itself.
*/
public WaitStatisticInner withDatabaseName(String databaseName) {
- this.databaseName = databaseName;
+ if (this.innerProperties() == null) {
+ this.innerProperties = new WaitStatisticProperties();
+ }
+ this.innerProperties().withDatabaseName(databaseName);
return this;
}
@@ -198,7 +171,7 @@ public WaitStatisticInner withDatabaseName(String databaseName) {
* @return the userId value.
*/
public Long userId() {
- return this.userId;
+ return this.innerProperties() == null ? null : this.innerProperties().userId();
}
/**
@@ -208,7 +181,10 @@ public Long userId() {
* @return the WaitStatisticInner object itself.
*/
public WaitStatisticInner withUserId(Long userId) {
- this.userId = userId;
+ if (this.innerProperties() == null) {
+ this.innerProperties = new WaitStatisticProperties();
+ }
+ this.innerProperties().withUserId(userId);
return this;
}
@@ -218,7 +194,7 @@ public WaitStatisticInner withUserId(Long userId) {
* @return the count value.
*/
public Long count() {
- return this.count;
+ return this.innerProperties() == null ? null : this.innerProperties().count();
}
/**
@@ -228,7 +204,10 @@ public Long count() {
* @return the WaitStatisticInner object itself.
*/
public WaitStatisticInner withCount(Long count) {
- this.count = count;
+ if (this.innerProperties() == null) {
+ this.innerProperties = new WaitStatisticProperties();
+ }
+ this.innerProperties().withCount(count);
return this;
}
@@ -238,7 +217,7 @@ public WaitStatisticInner withCount(Long count) {
* @return the totalTimeInMs value.
*/
public Double totalTimeInMs() {
- return this.totalTimeInMs;
+ return this.innerProperties() == null ? null : this.innerProperties().totalTimeInMs();
}
/**
@@ -248,7 +227,10 @@ public Double totalTimeInMs() {
* @return the WaitStatisticInner object itself.
*/
public WaitStatisticInner withTotalTimeInMs(Double totalTimeInMs) {
- this.totalTimeInMs = totalTimeInMs;
+ if (this.innerProperties() == null) {
+ this.innerProperties = new WaitStatisticProperties();
+ }
+ this.innerProperties().withTotalTimeInMs(totalTimeInMs);
return this;
}
@@ -258,5 +240,8 @@ public WaitStatisticInner withTotalTimeInMs(Double totalTimeInMs) {
* @throws IllegalArgumentException thrown if the instance is not valid.
*/
public void validate() {
+ if (innerProperties() != null) {
+ innerProperties().validate();
+ }
}
}
diff --git a/sdk/mariadb/azure-resourcemanager-mariadb/src/main/java/com/azure/resourcemanager/mariadb/fluent/models/WaitStatisticProperties.java b/sdk/mariadb/azure-resourcemanager-mariadb/src/main/java/com/azure/resourcemanager/mariadb/fluent/models/WaitStatisticProperties.java
new file mode 100644
index 000000000000..ce0b4da004ea
--- /dev/null
+++ b/sdk/mariadb/azure-resourcemanager-mariadb/src/main/java/com/azure/resourcemanager/mariadb/fluent/models/WaitStatisticProperties.java
@@ -0,0 +1,255 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.mariadb.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import java.time.OffsetDateTime;
+
+/** The properties of a wait statistic. */
+@Fluent
+public final class WaitStatisticProperties {
+ /*
+ * Observation start time.
+ */
+ @JsonProperty(value = "startTime")
+ private OffsetDateTime startTime;
+
+ /*
+ * Observation end time.
+ */
+ @JsonProperty(value = "endTime")
+ private OffsetDateTime endTime;
+
+ /*
+ * Wait event name.
+ */
+ @JsonProperty(value = "eventName")
+ private String eventName;
+
+ /*
+ * Wait event type name.
+ */
+ @JsonProperty(value = "eventTypeName")
+ private String eventTypeName;
+
+ /*
+ * Database query identifier.
+ */
+ @JsonProperty(value = "queryId")
+ private Long queryId;
+
+ /*
+ * Database Name.
+ */
+ @JsonProperty(value = "databaseName")
+ private String databaseName;
+
+ /*
+ * Database user identifier.
+ */
+ @JsonProperty(value = "userId")
+ private Long userId;
+
+ /*
+ * Wait event count observed in this time interval.
+ */
+ @JsonProperty(value = "count")
+ private Long count;
+
+ /*
+ * Total time of wait in milliseconds in this time interval.
+ */
+ @JsonProperty(value = "totalTimeInMs")
+ private Double totalTimeInMs;
+
+ /**
+ * Get the startTime property: Observation start time.
+ *
+ * @return the startTime value.
+ */
+ public OffsetDateTime startTime() {
+ return this.startTime;
+ }
+
+ /**
+ * Set the startTime property: Observation start time.
+ *
+ * @param startTime the startTime value to set.
+ * @return the WaitStatisticProperties object itself.
+ */
+ public WaitStatisticProperties withStartTime(OffsetDateTime startTime) {
+ this.startTime = startTime;
+ return this;
+ }
+
+ /**
+ * Get the endTime property: Observation end time.
+ *
+ * @return the endTime value.
+ */
+ public OffsetDateTime endTime() {
+ return this.endTime;
+ }
+
+ /**
+ * Set the endTime property: Observation end time.
+ *
+ * @param endTime the endTime value to set.
+ * @return the WaitStatisticProperties object itself.
+ */
+ public WaitStatisticProperties withEndTime(OffsetDateTime endTime) {
+ this.endTime = endTime;
+ return this;
+ }
+
+ /**
+ * Get the eventName property: Wait event name.
+ *
+ * @return the eventName value.
+ */
+ public String eventName() {
+ return this.eventName;
+ }
+
+ /**
+ * Set the eventName property: Wait event name.
+ *
+ * @param eventName the eventName value to set.
+ * @return the WaitStatisticProperties object itself.
+ */
+ public WaitStatisticProperties withEventName(String eventName) {
+ this.eventName = eventName;
+ return this;
+ }
+
+ /**
+ * Get the eventTypeName property: Wait event type name.
+ *
+ * @return the eventTypeName value.
+ */
+ public String eventTypeName() {
+ return this.eventTypeName;
+ }
+
+ /**
+ * Set the eventTypeName property: Wait event type name.
+ *
+ * @param eventTypeName the eventTypeName value to set.
+ * @return the WaitStatisticProperties object itself.
+ */
+ public WaitStatisticProperties withEventTypeName(String eventTypeName) {
+ this.eventTypeName = eventTypeName;
+ return this;
+ }
+
+ /**
+ * Get the queryId property: Database query identifier.
+ *
+ * @return the queryId value.
+ */
+ public Long queryId() {
+ return this.queryId;
+ }
+
+ /**
+ * Set the queryId property: Database query identifier.
+ *
+ * @param queryId the queryId value to set.
+ * @return the WaitStatisticProperties object itself.
+ */
+ public WaitStatisticProperties withQueryId(Long queryId) {
+ this.queryId = queryId;
+ return this;
+ }
+
+ /**
+ * Get the databaseName property: Database Name.
+ *
+ * @return the databaseName value.
+ */
+ public String databaseName() {
+ return this.databaseName;
+ }
+
+ /**
+ * Set the databaseName property: Database Name.
+ *
+ * @param databaseName the databaseName value to set.
+ * @return the WaitStatisticProperties object itself.
+ */
+ public WaitStatisticProperties withDatabaseName(String databaseName) {
+ this.databaseName = databaseName;
+ return this;
+ }
+
+ /**
+ * Get the userId property: Database user identifier.
+ *
+ * @return the userId value.
+ */
+ public Long userId() {
+ return this.userId;
+ }
+
+ /**
+ * Set the userId property: Database user identifier.
+ *
+ * @param userId the userId value to set.
+ * @return the WaitStatisticProperties object itself.
+ */
+ public WaitStatisticProperties withUserId(Long userId) {
+ this.userId = userId;
+ return this;
+ }
+
+ /**
+ * Get the count property: Wait event count observed in this time interval.
+ *
+ * @return the count value.
+ */
+ public Long count() {
+ return this.count;
+ }
+
+ /**
+ * Set the count property: Wait event count observed in this time interval.
+ *
+ * @param count the count value to set.
+ * @return the WaitStatisticProperties object itself.
+ */
+ public WaitStatisticProperties withCount(Long count) {
+ this.count = count;
+ return this;
+ }
+
+ /**
+ * Get the totalTimeInMs property: Total time of wait in milliseconds in this time interval.
+ *
+ * @return the totalTimeInMs value.
+ */
+ public Double totalTimeInMs() {
+ return this.totalTimeInMs;
+ }
+
+ /**
+ * Set the totalTimeInMs property: Total time of wait in milliseconds in this time interval.
+ *
+ * @param totalTimeInMs the totalTimeInMs value to set.
+ * @return the WaitStatisticProperties object itself.
+ */
+ public WaitStatisticProperties withTotalTimeInMs(Double totalTimeInMs) {
+ this.totalTimeInMs = totalTimeInMs;
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ }
+}
diff --git a/sdk/mariadb/azure-resourcemanager-mariadb/src/main/java/com/azure/resourcemanager/mariadb/fluent/models/WaitStatisticsInputProperties.java b/sdk/mariadb/azure-resourcemanager-mariadb/src/main/java/com/azure/resourcemanager/mariadb/fluent/models/WaitStatisticsInputProperties.java
new file mode 100644
index 000000000000..89c595a473b2
--- /dev/null
+++ b/sdk/mariadb/azure-resourcemanager-mariadb/src/main/java/com/azure/resourcemanager/mariadb/fluent/models/WaitStatisticsInputProperties.java
@@ -0,0 +1,120 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.mariadb.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.util.logging.ClientLogger;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import java.time.OffsetDateTime;
+
+/** The properties for input to get wait statistics. */
+@Fluent
+public final class WaitStatisticsInputProperties {
+ /*
+ * Observation start time.
+ */
+ @JsonProperty(value = "observationStartTime", required = true)
+ private OffsetDateTime observationStartTime;
+
+ /*
+ * Observation end time.
+ */
+ @JsonProperty(value = "observationEndTime", required = true)
+ private OffsetDateTime observationEndTime;
+
+ /*
+ * Aggregation interval type in ISO 8601 format.
+ */
+ @JsonProperty(value = "aggregationWindow", required = true)
+ private String aggregationWindow;
+
+ /**
+ * Get the observationStartTime property: Observation start time.
+ *
+ * @return the observationStartTime value.
+ */
+ public OffsetDateTime observationStartTime() {
+ return this.observationStartTime;
+ }
+
+ /**
+ * Set the observationStartTime property: Observation start time.
+ *
+ * @param observationStartTime the observationStartTime value to set.
+ * @return the WaitStatisticsInputProperties object itself.
+ */
+ public WaitStatisticsInputProperties withObservationStartTime(OffsetDateTime observationStartTime) {
+ this.observationStartTime = observationStartTime;
+ return this;
+ }
+
+ /**
+ * Get the observationEndTime property: Observation end time.
+ *
+ * @return the observationEndTime value.
+ */
+ public OffsetDateTime observationEndTime() {
+ return this.observationEndTime;
+ }
+
+ /**
+ * Set the observationEndTime property: Observation end time.
+ *
+ * @param observationEndTime the observationEndTime value to set.
+ * @return the WaitStatisticsInputProperties object itself.
+ */
+ public WaitStatisticsInputProperties withObservationEndTime(OffsetDateTime observationEndTime) {
+ this.observationEndTime = observationEndTime;
+ return this;
+ }
+
+ /**
+ * Get the aggregationWindow property: Aggregation interval type in ISO 8601 format.
+ *
+ * @return the aggregationWindow value.
+ */
+ public String aggregationWindow() {
+ return this.aggregationWindow;
+ }
+
+ /**
+ * Set the aggregationWindow property: Aggregation interval type in ISO 8601 format.
+ *
+ * @param aggregationWindow the aggregationWindow value to set.
+ * @return the WaitStatisticsInputProperties object itself.
+ */
+ public WaitStatisticsInputProperties withAggregationWindow(String aggregationWindow) {
+ this.aggregationWindow = aggregationWindow;
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (observationStartTime() == null) {
+ throw LOGGER
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ "Missing required property observationStartTime in model WaitStatisticsInputProperties"));
+ }
+ if (observationEndTime() == null) {
+ throw LOGGER
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ "Missing required property observationEndTime in model WaitStatisticsInputProperties"));
+ }
+ if (aggregationWindow() == null) {
+ throw LOGGER
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ "Missing required property aggregationWindow in model WaitStatisticsInputProperties"));
+ }
+ }
+
+ private static final ClientLogger LOGGER = new ClientLogger(WaitStatisticsInputProperties.class);
+}
diff --git a/sdk/mariadb/azure-resourcemanager-mariadb/src/main/java/com/azure/resourcemanager/mariadb/implementation/AdvisorsClientImpl.java b/sdk/mariadb/azure-resourcemanager-mariadb/src/main/java/com/azure/resourcemanager/mariadb/implementation/AdvisorsClientImpl.java
index d8f85a9e619b..7b480bf78272 100644
--- a/sdk/mariadb/azure-resourcemanager-mariadb/src/main/java/com/azure/resourcemanager/mariadb/implementation/AdvisorsClientImpl.java
+++ b/sdk/mariadb/azure-resourcemanager-mariadb/src/main/java/com/azure/resourcemanager/mariadb/implementation/AdvisorsClientImpl.java
@@ -25,7 +25,6 @@
import com.azure.core.management.exception.ManagementException;
import com.azure.core.util.Context;
import com.azure.core.util.FluxUtil;
-import com.azure.core.util.logging.ClientLogger;
import com.azure.resourcemanager.mariadb.fluent.AdvisorsClient;
import com.azure.resourcemanager.mariadb.fluent.models.AdvisorInner;
import com.azure.resourcemanager.mariadb.models.AdvisorsResultList;
@@ -33,8 +32,6 @@
/** An instance of this class provides access to all the operations defined in AdvisorsClient. */
public final class AdvisorsClientImpl implements AdvisorsClient {
- private final ClientLogger logger = new ClientLogger(AdvisorsClientImpl.class);
-
/** The proxy service used to perform REST calls. */
private final AdvisorsService service;
@@ -109,7 +106,7 @@ Mono> listByServerNext(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a recommendation action advisor.
+ * @return a recommendation action advisor along with {@link Response} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> getWithResponseAsync(
@@ -164,7 +161,7 @@ private Mono> getWithResponseAsync(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a recommendation action advisor.
+ * @return a recommendation action advisor along with {@link Response} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> getWithResponseAsync(
@@ -215,19 +212,12 @@ private Mono> getWithResponseAsync(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a recommendation action advisor.
+ * @return a recommendation action advisor on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono getAsync(String resourceGroupName, String serverName, String advisorName) {
return getWithResponseAsync(resourceGroupName, serverName, advisorName)
- .flatMap(
- (Response res) -> {
- if (res.getValue() != null) {
- return Mono.just(res.getValue());
- } else {
- return Mono.empty();
- }
- });
+ .flatMap(res -> Mono.justOrEmpty(res.getValue()));
}
/**
@@ -256,7 +246,7 @@ public AdvisorInner get(String resourceGroupName, String serverName, String advi
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a recommendation action advisor.
+ * @return a recommendation action advisor along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
public Response getWithResponse(
@@ -272,7 +262,7 @@ public Response getWithResponse(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a list of query statistics.
+ * @return a list of query statistics along with {@link PagedResponse} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> listByServerSinglePageAsync(String resourceGroupName, String serverName) {
@@ -330,7 +320,7 @@ private Mono> listByServerSinglePageAsync(String res
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a list of query statistics.
+ * @return a list of query statistics along with {@link PagedResponse} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> listByServerSinglePageAsync(
@@ -385,7 +375,7 @@ private Mono> listByServerSinglePageAsync(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a list of query statistics.
+ * @return a list of query statistics as paginated response with {@link PagedFlux}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
private PagedFlux listByServerAsync(String resourceGroupName, String serverName) {
@@ -403,7 +393,7 @@ private PagedFlux listByServerAsync(String resourceGroupName, Stri
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a list of query statistics.
+ * @return a list of query statistics as paginated response with {@link PagedFlux}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
private PagedFlux listByServerAsync(String resourceGroupName, String serverName, Context context) {
@@ -420,7 +410,7 @@ private PagedFlux listByServerAsync(String resourceGroupName, Stri
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a list of query statistics.
+ * @return a list of query statistics as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
public PagedIterable listByServer(String resourceGroupName, String serverName) {
@@ -436,7 +426,7 @@ public PagedIterable listByServer(String resourceGroupName, String
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a list of query statistics.
+ * @return a list of query statistics as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
public PagedIterable listByServer(String resourceGroupName, String serverName, Context context) {
@@ -450,7 +440,7 @@ public PagedIterable listByServer(String resourceGroupName, String
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a list of query statistics.
+ * @return a list of query statistics along with {@link PagedResponse} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> listByServerNextSinglePageAsync(String nextLink) {
@@ -486,7 +476,7 @@ private Mono> listByServerNextSinglePageAsync(String
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a list of query statistics.
+ * @return a list of query statistics along with {@link PagedResponse} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> listByServerNextSinglePageAsync(String nextLink, Context context) {
diff --git a/sdk/mariadb/azure-resourcemanager-mariadb/src/main/java/com/azure/resourcemanager/mariadb/implementation/AdvisorsImpl.java b/sdk/mariadb/azure-resourcemanager-mariadb/src/main/java/com/azure/resourcemanager/mariadb/implementation/AdvisorsImpl.java
index 9f6506d9fd9b..8952a9c8ade1 100644
--- a/sdk/mariadb/azure-resourcemanager-mariadb/src/main/java/com/azure/resourcemanager/mariadb/implementation/AdvisorsImpl.java
+++ b/sdk/mariadb/azure-resourcemanager-mariadb/src/main/java/com/azure/resourcemanager/mariadb/implementation/AdvisorsImpl.java
@@ -13,10 +13,9 @@
import com.azure.resourcemanager.mariadb.fluent.models.AdvisorInner;
import com.azure.resourcemanager.mariadb.models.Advisor;
import com.azure.resourcemanager.mariadb.models.Advisors;
-import com.fasterxml.jackson.annotation.JsonIgnore;
public final class AdvisorsImpl implements Advisors {
- @JsonIgnore private final ClientLogger logger = new ClientLogger(AdvisorsImpl.class);
+ private static final ClientLogger LOGGER = new ClientLogger(AdvisorsImpl.class);
private final AdvisorsClient innerClient;
diff --git a/sdk/mariadb/azure-resourcemanager-mariadb/src/main/java/com/azure/resourcemanager/mariadb/implementation/CheckNameAvailabilitiesClientImpl.java b/sdk/mariadb/azure-resourcemanager-mariadb/src/main/java/com/azure/resourcemanager/mariadb/implementation/CheckNameAvailabilitiesClientImpl.java
index ef12da2a8ca4..1b61316c79a5 100644
--- a/sdk/mariadb/azure-resourcemanager-mariadb/src/main/java/com/azure/resourcemanager/mariadb/implementation/CheckNameAvailabilitiesClientImpl.java
+++ b/sdk/mariadb/azure-resourcemanager-mariadb/src/main/java/com/azure/resourcemanager/mariadb/implementation/CheckNameAvailabilitiesClientImpl.java
@@ -22,7 +22,6 @@
import com.azure.core.management.exception.ManagementException;
import com.azure.core.util.Context;
import com.azure.core.util.FluxUtil;
-import com.azure.core.util.logging.ClientLogger;
import com.azure.resourcemanager.mariadb.fluent.CheckNameAvailabilitiesClient;
import com.azure.resourcemanager.mariadb.fluent.models.NameAvailabilityInner;
import com.azure.resourcemanager.mariadb.models.NameAvailabilityRequest;
@@ -30,8 +29,6 @@
/** An instance of this class provides access to all the operations defined in CheckNameAvailabilitiesClient. */
public final class CheckNameAvailabilitiesClientImpl implements CheckNameAvailabilitiesClient {
- private final ClientLogger logger = new ClientLogger(CheckNameAvailabilitiesClientImpl.class);
-
/** The proxy service used to perform REST calls. */
private final CheckNameAvailabilitiesService service;
@@ -58,7 +55,7 @@ public final class CheckNameAvailabilitiesClientImpl implements CheckNameAvailab
@ServiceInterface(name = "MariaDBManagementCli")
private interface CheckNameAvailabilitiesService {
@Headers({"Content-Type: application/json"})
- @Post("/subscriptions/{subscriptionId}/providers/Microsoft.DBForMariaDB/checkNameAvailability")
+ @Post("/subscriptions/{subscriptionId}/providers/Microsoft.DBforMariaDB/checkNameAvailability")
@ExpectedResponses({200})
@UnexpectedResponseExceptionType(ManagementException.class)
Mono> execute(
@@ -77,7 +74,8 @@ Mono> execute(
* @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 represents a resource name availability.
+ * @return represents a resource name availability along with {@link Response} on successful completion of {@link
+ * Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> executeWithResponseAsync(
@@ -125,7 +123,8 @@ private Mono> executeWithResponseAsync(
* @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 represents a resource name availability.
+ * @return represents a resource name availability along with {@link Response} on successful completion of {@link
+ * Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> executeWithResponseAsync(
@@ -169,19 +168,11 @@ private Mono> executeWithResponseAsync(
* @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 represents a resource name availability.
+ * @return represents a resource name availability on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono executeAsync(NameAvailabilityRequest nameAvailabilityRequest) {
- return executeWithResponseAsync(nameAvailabilityRequest)
- .flatMap(
- (Response res) -> {
- if (res.getValue() != null) {
- return Mono.just(res.getValue());
- } else {
- return Mono.empty();
- }
- });
+ return executeWithResponseAsync(nameAvailabilityRequest).flatMap(res -> Mono.justOrEmpty(res.getValue()));
}
/**
@@ -206,7 +197,7 @@ public NameAvailabilityInner execute(NameAvailabilityRequest nameAvailabilityReq
* @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 represents a resource name availability.
+ * @return represents a resource name availability along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
public Response executeWithResponse(
diff --git a/sdk/mariadb/azure-resourcemanager-mariadb/src/main/java/com/azure/resourcemanager/mariadb/implementation/CheckNameAvailabilitiesImpl.java b/sdk/mariadb/azure-resourcemanager-mariadb/src/main/java/com/azure/resourcemanager/mariadb/implementation/CheckNameAvailabilitiesImpl.java
index 8cce2d67aacf..5f0faa81f3f2 100644
--- a/sdk/mariadb/azure-resourcemanager-mariadb/src/main/java/com/azure/resourcemanager/mariadb/implementation/CheckNameAvailabilitiesImpl.java
+++ b/sdk/mariadb/azure-resourcemanager-mariadb/src/main/java/com/azure/resourcemanager/mariadb/implementation/CheckNameAvailabilitiesImpl.java
@@ -13,10 +13,9 @@
import com.azure.resourcemanager.mariadb.models.CheckNameAvailabilities;
import com.azure.resourcemanager.mariadb.models.NameAvailability;
import com.azure.resourcemanager.mariadb.models.NameAvailabilityRequest;
-import com.fasterxml.jackson.annotation.JsonIgnore;
public final class CheckNameAvailabilitiesImpl implements CheckNameAvailabilities {
- @JsonIgnore private final ClientLogger logger = new ClientLogger(CheckNameAvailabilitiesImpl.class);
+ private static final ClientLogger LOGGER = new ClientLogger(CheckNameAvailabilitiesImpl.class);
private final CheckNameAvailabilitiesClient innerClient;
diff --git a/sdk/mariadb/azure-resourcemanager-mariadb/src/main/java/com/azure/resourcemanager/mariadb/implementation/ConfigurationImpl.java b/sdk/mariadb/azure-resourcemanager-mariadb/src/main/java/com/azure/resourcemanager/mariadb/implementation/ConfigurationImpl.java
index 56aca7c66858..6a83adb8d0a2 100644
--- a/sdk/mariadb/azure-resourcemanager-mariadb/src/main/java/com/azure/resourcemanager/mariadb/implementation/ConfigurationImpl.java
+++ b/sdk/mariadb/azure-resourcemanager-mariadb/src/main/java/com/azure/resourcemanager/mariadb/implementation/ConfigurationImpl.java
@@ -49,6 +49,10 @@ public String source() {
return this.innerModel().source();
}
+ public String resourceGroupName() {
+ return resourceGroupName;
+ }
+
public ConfigurationInner innerModel() {
return this.innerObject;
}
diff --git a/sdk/mariadb/azure-resourcemanager-mariadb/src/main/java/com/azure/resourcemanager/mariadb/implementation/ConfigurationsClientImpl.java b/sdk/mariadb/azure-resourcemanager-mariadb/src/main/java/com/azure/resourcemanager/mariadb/implementation/ConfigurationsClientImpl.java
index 8e166ac52047..a353e53bae82 100644
--- a/sdk/mariadb/azure-resourcemanager-mariadb/src/main/java/com/azure/resourcemanager/mariadb/implementation/ConfigurationsClientImpl.java
+++ b/sdk/mariadb/azure-resourcemanager-mariadb/src/main/java/com/azure/resourcemanager/mariadb/implementation/ConfigurationsClientImpl.java
@@ -28,7 +28,6 @@
import com.azure.core.management.polling.PollResult;
import com.azure.core.util.Context;
import com.azure.core.util.FluxUtil;
-import com.azure.core.util.logging.ClientLogger;
import com.azure.core.util.polling.PollerFlux;
import com.azure.core.util.polling.SyncPoller;
import com.azure.resourcemanager.mariadb.fluent.ConfigurationsClient;
@@ -40,8 +39,6 @@
/** An instance of this class provides access to all the operations defined in ConfigurationsClient. */
public final class ConfigurationsClientImpl implements ConfigurationsClient {
- private final ClientLogger logger = new ClientLogger(ConfigurationsClientImpl.class);
-
/** The proxy service used to perform REST calls. */
private final ConfigurationsService service;
@@ -68,7 +65,7 @@ public final class ConfigurationsClientImpl implements ConfigurationsClient {
private interface ConfigurationsService {
@Headers({"Content-Type: application/json"})
@Put(
- "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForMariaDB"
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMariaDB"
+ "/servers/{serverName}/configurations/{configurationName}")
@ExpectedResponses({200, 202})
@UnexpectedResponseExceptionType(ManagementException.class)
@@ -85,7 +82,7 @@ Mono>> createOrUpdate(
@Headers({"Content-Type: application/json"})
@Get(
- "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForMariaDB"
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMariaDB"
+ "/servers/{serverName}/configurations/{configurationName}")
@ExpectedResponses({200})
@UnexpectedResponseExceptionType(ManagementException.class)
@@ -101,7 +98,7 @@ Mono> get(
@Headers({"Content-Type: application/json"})
@Get(
- "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForMariaDB"
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMariaDB"
+ "/servers/{serverName}/configurations")
@ExpectedResponses({200})
@UnexpectedResponseExceptionType(ManagementException.class)
@@ -125,7 +122,7 @@ Mono> listByServer(
* @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 represents a Configuration.
+ * @return represents a Configuration along with {@link Response} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono>> createOrUpdateWithResponseAsync(
@@ -188,7 +185,7 @@ private Mono>> createOrUpdateWithResponseAsync(
* @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 represents a Configuration.
+ * @return represents a Configuration along with {@link Response} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono>> createOrUpdateWithResponseAsync(
@@ -251,9 +248,9 @@ private Mono>> createOrUpdateWithResponseAsync(
* @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 represents a Configuration.
+ * @return the {@link PollerFlux} for polling of represents a Configuration.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
private PollerFlux, ConfigurationInner> beginCreateOrUpdateAsync(
String resourceGroupName, String serverName, String configurationName, ConfigurationInner parameters) {
Mono>> mono =
@@ -261,7 +258,11 @@ private PollerFlux, ConfigurationInner> beginCrea
return this
.client
.getLroResult(
- mono, this.client.getHttpPipeline(), ConfigurationInner.class, ConfigurationInner.class, Context.NONE);
+ mono,
+ this.client.getHttpPipeline(),
+ ConfigurationInner.class,
+ ConfigurationInner.class,
+ this.client.getContext());
}
/**
@@ -275,9 +276,9 @@ private PollerFlux, ConfigurationInner> beginCrea
* @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 represents a Configuration.
+ * @return the {@link PollerFlux} for polling of represents a Configuration.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
private PollerFlux, ConfigurationInner> beginCreateOrUpdateAsync(
String resourceGroupName,
String serverName,
@@ -303,9 +304,9 @@ private PollerFlux, ConfigurationInner> beginCrea
* @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 represents a Configuration.
+ * @return the {@link SyncPoller} for polling of represents a Configuration.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
public SyncPoller, ConfigurationInner> beginCreateOrUpdate(
String resourceGroupName, String serverName, String configurationName, ConfigurationInner parameters) {
return beginCreateOrUpdateAsync(resourceGroupName, serverName, configurationName, parameters).getSyncPoller();
@@ -322,9 +323,9 @@ public SyncPoller, ConfigurationInner> beginCreat
* @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 represents a Configuration.
+ * @return the {@link SyncPoller} for polling of represents a Configuration.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
public SyncPoller, ConfigurationInner> beginCreateOrUpdate(
String resourceGroupName,
String serverName,
@@ -345,7 +346,7 @@ public SyncPoller, ConfigurationInner> beginCreat
* @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 represents a Configuration.
+ * @return represents a Configuration on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono createOrUpdateAsync(
@@ -366,7 +367,7 @@ private Mono createOrUpdateAsync(
* @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 represents a Configuration.
+ * @return represents a Configuration on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono createOrUpdateAsync(
@@ -430,7 +431,8 @@ public ConfigurationInner createOrUpdate(
* @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 information about a configuration of server.
+ * @return information about a configuration of server along with {@link Response} on successful completion of
+ * {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> getWithResponseAsync(
@@ -486,7 +488,8 @@ private Mono> getWithResponseAsync(
* @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 information about a configuration of server.
+ * @return information about a configuration of server along with {@link Response} on successful completion of
+ * {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono