, Void> beginDelete(
+ String resourceGroupName, String serverName, String privateEndpointConnectionName, Context context);
+
+ /**
+ * Deletes a private endpoint connection with a given name.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param serverName The name of the server.
+ * @param privateEndpointConnectionName The privateEndpointConnectionName parameter.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void delete(String resourceGroupName, String serverName, String privateEndpointConnectionName);
+
+ /**
+ * Deletes a private endpoint connection with a given name.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param serverName The name of the server.
+ * @param privateEndpointConnectionName The privateEndpointConnectionName parameter.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void delete(String resourceGroupName, String serverName, String privateEndpointConnectionName, Context context);
+
+ /**
+ * Updates tags on private endpoint connection.
+ *
+ * Updates private endpoint connection with the specified tags.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param serverName The name of the server.
+ * @param privateEndpointConnectionName The privateEndpointConnectionName parameter.
+ * @param parameters Parameters supplied to the Update private endpoint connection Tags operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of a private endpoint connection.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, PrivateEndpointConnectionInner> beginUpdateTags(
+ String resourceGroupName, String serverName, String privateEndpointConnectionName, TagsObject parameters);
+
+ /**
+ * Updates tags on private endpoint connection.
+ *
+ * Updates private endpoint connection with the specified tags.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param serverName The name of the server.
+ * @param privateEndpointConnectionName The privateEndpointConnectionName parameter.
+ * @param parameters Parameters supplied to the Update private endpoint connection Tags operation.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of a private endpoint connection.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, PrivateEndpointConnectionInner> beginUpdateTags(
+ String resourceGroupName,
+ String serverName,
+ String privateEndpointConnectionName,
+ TagsObject parameters,
+ Context context);
+
+ /**
+ * Updates tags on private endpoint connection.
+ *
+ * Updates private endpoint connection with the specified tags.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param serverName The name of the server.
+ * @param privateEndpointConnectionName The privateEndpointConnectionName parameter.
+ * @param parameters Parameters supplied to the Update private endpoint connection Tags operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a private endpoint connection.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ PrivateEndpointConnectionInner updateTags(
+ String resourceGroupName, String serverName, String privateEndpointConnectionName, TagsObject parameters);
+
+ /**
+ * Updates tags on private endpoint connection.
+ *
+ *
Updates private endpoint connection with the specified tags.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param serverName The name of the server.
+ * @param privateEndpointConnectionName The privateEndpointConnectionName parameter.
+ * @param parameters Parameters supplied to the Update private endpoint connection Tags operation.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a private endpoint connection.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ PrivateEndpointConnectionInner updateTags(
+ String resourceGroupName,
+ String serverName,
+ String privateEndpointConnectionName,
+ TagsObject parameters,
+ Context context);
+
+ /**
+ * Gets all private endpoint connections on a server.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param serverName The name of the server.
+ * @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 as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByServer(String resourceGroupName, String serverName);
+
+ /**
+ * Gets all private endpoint connections on a server.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param serverName The name of the server.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return all private endpoint connections on a server as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByServer(
+ String resourceGroupName, String serverName, Context context);
+}
diff --git a/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/PrivateLinkResourcesClient.java b/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/PrivateLinkResourcesClient.java
new file mode 100644
index 000000000000..add415e70994
--- /dev/null
+++ b/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/PrivateLinkResourcesClient.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.mysqlflexibleserver.fluent;
+
+import com.azure.core.annotation.ReturnType;
+import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.http.rest.PagedIterable;
+import com.azure.core.http.rest.Response;
+import com.azure.core.util.Context;
+import com.azure.resourcemanager.mysqlflexibleserver.fluent.models.PrivateLinkResourceInner;
+
+/** An instance of this class provides access to all the operations defined in PrivateLinkResourcesClient. */
+public interface PrivateLinkResourcesClient {
+ /**
+ * Gets the private link resources for MySQL server.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param serverName The name of the server.
+ * @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 MySQL server as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByServer(String resourceGroupName, String serverName);
+
+ /**
+ * Gets the private link resources for MySQL server.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param serverName The name of the server.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the private link resources for MySQL server as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByServer(String resourceGroupName, String serverName, Context context);
+
+ /**
+ * Gets a private link resource for MySQL server.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param serverName The name of the server.
+ * @param groupName The name of the private link resource.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a private link resource for MySQL server along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getWithResponse(
+ String resourceGroupName, String serverName, String groupName, Context context);
+
+ /**
+ * Gets a private link resource for MySQL server.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param serverName The name of the server.
+ * @param groupName The name of the private link resource.
+ * @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 MySQL server.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ PrivateLinkResourceInner get(String resourceGroupName, String serverName, String groupName);
+}
diff --git a/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/QueryTextsClient.java b/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/QueryTextsClient.java
new file mode 100644
index 000000000000..63858a78aff4
--- /dev/null
+++ b/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/QueryTextsClient.java
@@ -0,0 +1,76 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.mysqlflexibleserver.fluent;
+
+import com.azure.core.annotation.ReturnType;
+import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.http.rest.PagedIterable;
+import com.azure.core.http.rest.Response;
+import com.azure.core.util.Context;
+import com.azure.resourcemanager.mysqlflexibleserver.fluent.models.QueryTextInner;
+import java.util.List;
+
+/** An instance of this class provides access to all the operations defined in QueryTextsClient. */
+public interface QueryTextsClient {
+ /**
+ * Retrieve the Query-Store query texts for the queryId.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param serverName The name of the server.
+ * @param queryId The Query-Store query identifier.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return represents a Query Text along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getWithResponse(
+ String resourceGroupName, String serverName, String queryId, Context context);
+
+ /**
+ * Retrieve the Query-Store query texts for the queryId.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param serverName The name of the server.
+ * @param queryId The Query-Store query identifier.
+ * @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.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ QueryTextInner get(String resourceGroupName, String serverName, String queryId);
+
+ /**
+ * Retrieve the Query-Store query texts for specified queryIds.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param serverName The name of the server.
+ * @param queryIds The query identifiers.
+ * @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 as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByServer(String resourceGroupName, String serverName, List queryIds);
+
+ /**
+ * Retrieve the Query-Store query texts for specified queryIds.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param serverName The name of the server.
+ * @param queryIds The query identifiers.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a list of query texts as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByServer(
+ String resourceGroupName, String serverName, List queryIds, Context context);
+}
diff --git a/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/RecommendedActionsClient.java b/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/RecommendedActionsClient.java
new file mode 100644
index 000000000000..ec8e30216767
--- /dev/null
+++ b/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/RecommendedActionsClient.java
@@ -0,0 +1,80 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.mysqlflexibleserver.fluent;
+
+import com.azure.core.annotation.ReturnType;
+import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.http.rest.PagedIterable;
+import com.azure.core.http.rest.Response;
+import com.azure.core.util.Context;
+import com.azure.resourcemanager.mysqlflexibleserver.fluent.models.RecommendationActionInner;
+
+/** An instance of this class provides access to all the operations defined in RecommendedActionsClient. */
+public interface RecommendedActionsClient {
+ /**
+ * Retrieve recommended actions from the advisor.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param serverName The name of the server.
+ * @param advisorName The advisor name for recommendation action.
+ * @param recommendedActionName The recommended action name.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return represents a Recommendation Action along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getWithResponse(
+ String resourceGroupName, String serverName, String advisorName, String recommendedActionName, Context context);
+
+ /**
+ * Retrieve recommended actions from the advisor.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param serverName The name of the server.
+ * @param advisorName The advisor name for recommendation action.
+ * @param recommendedActionName The recommended action name.
+ * @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.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ RecommendationActionInner get(
+ String resourceGroupName, String serverName, String advisorName, String recommendedActionName);
+
+ /**
+ * Retrieve recommended actions from the advisor.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param serverName The name of the server.
+ * @param advisorName The advisor name for recommendation action.
+ * @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 as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByServer(
+ String resourceGroupName, String serverName, String advisorName);
+
+ /**
+ * Retrieve recommended actions from the advisor.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param serverName The name of the server.
+ * @param advisorName The advisor name for recommendation action.
+ * @param sessionId The recommendation action session identifier.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a list of recommendation actions as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByServer(
+ String resourceGroupName, String serverName, String advisorName, String sessionId, Context context);
+}
diff --git a/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/GetPrivateDnsZoneSuffixesClient.java b/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/RecoverableServersClient.java
similarity index 58%
rename from sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/GetPrivateDnsZoneSuffixesClient.java
rename to sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/RecoverableServersClient.java
index 415d6b62de5d..09ac26e18275 100644
--- a/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/GetPrivateDnsZoneSuffixesClient.java
+++ b/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/RecoverableServersClient.java
@@ -8,29 +8,35 @@
import com.azure.core.annotation.ServiceMethod;
import com.azure.core.http.rest.Response;
import com.azure.core.util.Context;
-import com.azure.resourcemanager.mysqlflexibleserver.fluent.models.GetPrivateDnsZoneSuffixResponseInner;
+import com.azure.resourcemanager.mysqlflexibleserver.fluent.models.RecoverableServerResourceInner;
-/** An instance of this class provides access to all the operations defined in GetPrivateDnsZoneSuffixesClient. */
-public interface GetPrivateDnsZoneSuffixesClient {
+/** An instance of this class provides access to all the operations defined in RecoverableServersClient. */
+public interface RecoverableServersClient {
/**
- * Get private DNS zone suffix in the cloud.
+ * Gets a recoverable MySQL Server.
*
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param serverName The name of the server.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return private DNS zone suffix in the cloud along with {@link Response}.
+ * @return a recoverable MySQL Server along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response executeWithResponse(Context context);
+ Response getWithResponse(
+ String resourceGroupName, String serverName, Context context);
/**
- * Get private DNS zone suffix in the cloud.
+ * Gets a recoverable MySQL Server.
*
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param serverName The name of the server.
+ * @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 private DNS zone suffix in the cloud.
+ * @return a recoverable MySQL Server.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- GetPrivateDnsZoneSuffixResponseInner execute();
+ RecoverableServerResourceInner get(String resourceGroupName, String serverName);
}
diff --git a/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/BackupsClient.java b/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/ResourceProvidersClient.java
similarity index 60%
rename from sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/BackupsClient.java
rename to sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/ResourceProvidersClient.java
index 1ca1b401c4e0..fa86d02d5f78 100644
--- a/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/BackupsClient.java
+++ b/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/ResourceProvidersClient.java
@@ -6,97 +6,104 @@
import com.azure.core.annotation.ReturnType;
import com.azure.core.annotation.ServiceMethod;
-import com.azure.core.http.rest.PagedIterable;
import com.azure.core.http.rest.Response;
+import com.azure.core.management.polling.PollResult;
import com.azure.core.util.Context;
-import com.azure.resourcemanager.mysqlflexibleserver.fluent.models.ServerBackupInner;
+import com.azure.core.util.polling.SyncPoller;
+import com.azure.resourcemanager.mysqlflexibleserver.fluent.models.QueryPerformanceInsightResetDataResultInner;
-/** An instance of this class provides access to all the operations defined in BackupsClient. */
-public interface BackupsClient {
+/** An instance of this class provides access to all the operations defined in ResourceProvidersClient. */
+public interface ResourceProvidersClient {
/**
- * Create backup for a given server with specified backup name.
+ * Reset data for Query Performance Insight.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param serverName The name of the server.
- * @param backupName The name of the backup.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return server backup properties along with {@link Response}.
+ * @return result of Query Performance Insight data reset along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response putWithResponse(
- String resourceGroupName, String serverName, String backupName, Context context);
+ Response resetQueryPerformanceInsightDataWithResponse(
+ String resourceGroupName, String serverName, Context context);
/**
- * Create backup for a given server with specified backup name.
+ * Reset data for Query Performance Insight.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param serverName The name of the server.
- * @param backupName The name of the backup.
* @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 server backup properties.
+ * @return result of Query Performance Insight data reset.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- ServerBackupInner put(String resourceGroupName, String serverName, String backupName);
+ QueryPerformanceInsightResetDataResultInner resetQueryPerformanceInsightData(
+ String resourceGroupName, String serverName);
/**
- * List all the backups for a given server.
+ * Create recommendation action session for the advisor.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param serverName The name of the server.
- * @param backupName The name of the backup.
- * @param context The context to associate with this operation.
+ * @param advisorName The advisor name for recommendation action.
+ * @param databaseName The name of the database.
* @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 server backup properties along with {@link Response}.
+ * @return the {@link SyncPoller} for polling of long-running operation.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
- Response getWithResponse(
- String resourceGroupName, String serverName, String backupName, Context context);
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginCreateRecommendedActionSession(
+ String resourceGroupName, String serverName, String advisorName, String databaseName);
/**
- * List all the backups for a given server.
+ * Create recommendation action session for the advisor.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param serverName The name of the server.
- * @param backupName The name of the backup.
+ * @param advisorName The advisor name for recommendation action.
+ * @param databaseName The name of the database.
+ * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return server backup properties.
+ * @return the {@link SyncPoller} for polling of long-running operation.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
- ServerBackupInner get(String resourceGroupName, String serverName, String backupName);
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginCreateRecommendedActionSession(
+ String resourceGroupName, String serverName, String advisorName, String databaseName, Context context);
/**
- * List all the backups for a given server.
+ * Create recommendation action session for the advisor.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param serverName The name of the server.
+ * @param advisorName The advisor name for recommendation action.
+ * @param databaseName The name of the database.
* @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 backups as paginated response with {@link PagedIterable}.
*/
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable listByServer(String resourceGroupName, String serverName);
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void createRecommendedActionSession(
+ String resourceGroupName, String serverName, String advisorName, String databaseName);
/**
- * List all the backups for a given server.
+ * Create recommendation action session for the advisor.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param serverName The name of the server.
+ * @param advisorName The advisor name for recommendation action.
+ * @param databaseName The name of the database.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a list of server backups as paginated response with {@link PagedIterable}.
*/
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable listByServer(String resourceGroupName, String serverName, Context context);
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void createRecommendedActionSession(
+ String resourceGroupName, String serverName, String advisorName, String databaseName, Context context);
}
diff --git a/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/ServerAdministratorsClient.java b/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/ServerAdministratorsClient.java
new file mode 100644
index 000000000000..af29bf54d1aa
--- /dev/null
+++ b/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/ServerAdministratorsClient.java
@@ -0,0 +1,192 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.mysqlflexibleserver.fluent;
+
+import com.azure.core.annotation.ReturnType;
+import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.http.rest.PagedIterable;
+import com.azure.core.http.rest.Response;
+import com.azure.core.management.polling.PollResult;
+import com.azure.core.util.Context;
+import com.azure.core.util.polling.SyncPoller;
+import com.azure.resourcemanager.mysqlflexibleserver.fluent.models.ServerAdministratorResourceInner;
+
+/** An instance of this class provides access to all the operations defined in ServerAdministratorsClient. */
+public interface ServerAdministratorsClient {
+ /**
+ * Gets information about a AAD server administrator.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param serverName The name of the server.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return information about a AAD server administrator along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getWithResponse(
+ String resourceGroupName, String serverName, Context context);
+
+ /**
+ * Gets information about a AAD server administrator.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param serverName The name of the server.
+ * @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 AAD server administrator.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ServerAdministratorResourceInner get(String resourceGroupName, String serverName);
+
+ /**
+ * Creates or update active directory administrator on an existing server. The update action will overwrite the
+ * existing administrator.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param serverName The name of the server.
+ * @param properties The required parameters for creating or updating an AAD server administrator.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of represents a and external administrator to be created.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, ServerAdministratorResourceInner> beginCreateOrUpdate(
+ String resourceGroupName, String serverName, ServerAdministratorResourceInner properties);
+
+ /**
+ * Creates or update active directory administrator on an existing server. The update action will overwrite the
+ * existing administrator.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param serverName The name of the server.
+ * @param properties The required parameters for creating or updating an AAD server administrator.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of represents a and external administrator to be created.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, ServerAdministratorResourceInner> beginCreateOrUpdate(
+ String resourceGroupName, String serverName, ServerAdministratorResourceInner properties, Context context);
+
+ /**
+ * Creates or update active directory administrator on an existing server. The update action will overwrite the
+ * existing administrator.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param serverName The name of the server.
+ * @param properties The required parameters for creating or updating an AAD server administrator.
+ * @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 and external administrator to be created.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ServerAdministratorResourceInner createOrUpdate(
+ String resourceGroupName, String serverName, ServerAdministratorResourceInner properties);
+
+ /**
+ * Creates or update active directory administrator on an existing server. The update action will overwrite the
+ * existing administrator.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param serverName The name of the server.
+ * @param properties The required parameters for creating or updating an AAD server administrator.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return represents a and external administrator to be created.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ServerAdministratorResourceInner createOrUpdate(
+ String resourceGroupName, String serverName, ServerAdministratorResourceInner properties, Context context);
+
+ /**
+ * Deletes server active directory administrator.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param serverName The name of the server.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginDelete(String resourceGroupName, String serverName);
+
+ /**
+ * Deletes server active directory administrator.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param serverName The name of the server.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginDelete(String resourceGroupName, String serverName, Context context);
+
+ /**
+ * Deletes server active directory administrator.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param serverName The name of the server.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void delete(String resourceGroupName, String serverName);
+
+ /**
+ * Deletes server active directory administrator.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param serverName The name of the server.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void delete(String resourceGroupName, String serverName, Context context);
+
+ /**
+ * Returns a list of server Administrators.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param serverName The name of the server.
+ * @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 response to a list Active Directory Administrators request as paginated response with {@link
+ * PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(String resourceGroupName, String serverName);
+
+ /**
+ * Returns a list of server Administrators.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param serverName The name of the server.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response to a list Active Directory Administrators request as paginated response with {@link
+ * PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(String resourceGroupName, String serverName, Context context);
+}
diff --git a/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/ServerBasedPerformanceTiersClient.java b/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/ServerBasedPerformanceTiersClient.java
new file mode 100644
index 000000000000..5f6ce9bc125c
--- /dev/null
+++ b/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/ServerBasedPerformanceTiersClient.java
@@ -0,0 +1,41 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.mysqlflexibleserver.fluent;
+
+import com.azure.core.annotation.ReturnType;
+import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.http.rest.PagedIterable;
+import com.azure.core.util.Context;
+import com.azure.resourcemanager.mysqlflexibleserver.fluent.models.PerformanceTierPropertiesInner;
+
+/** An instance of this class provides access to all the operations defined in ServerBasedPerformanceTiersClient. */
+public interface ServerBasedPerformanceTiersClient {
+ /**
+ * List all the performance tiers for a MySQL server.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param serverName The name of the server.
+ * @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 as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(String resourceGroupName, String serverName);
+
+ /**
+ * List all the performance tiers for a MySQL server.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param serverName The name of the server.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a 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/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/ServerKeysClient.java b/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/ServerKeysClient.java
new file mode 100644
index 000000000000..625931aa3eae
--- /dev/null
+++ b/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/ServerKeysClient.java
@@ -0,0 +1,197 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.mysqlflexibleserver.fluent;
+
+import com.azure.core.annotation.ReturnType;
+import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.http.rest.PagedIterable;
+import com.azure.core.http.rest.Response;
+import com.azure.core.management.polling.PollResult;
+import com.azure.core.util.Context;
+import com.azure.core.util.polling.SyncPoller;
+import com.azure.resourcemanager.mysqlflexibleserver.fluent.models.ServerKeyInner;
+
+/** An instance of this class provides access to all the operations defined in ServerKeysClient. */
+public interface ServerKeysClient {
+ /**
+ * Gets a list of Server keys.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param serverName The name of the server.
+ * @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 keys as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(String resourceGroupName, String serverName);
+
+ /**
+ * Gets a list of Server keys.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param serverName The name of the server.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a list of Server keys as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(String resourceGroupName, String serverName, Context context);
+
+ /**
+ * Gets a MySQL Server key.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param serverName The name of the server.
+ * @param keyName The name of the MySQL Server key to be retrieved.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a MySQL Server key along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getWithResponse(
+ String resourceGroupName, String serverName, String keyName, Context context);
+
+ /**
+ * Gets a MySQL Server key.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param serverName The name of the server.
+ * @param keyName The name of the MySQL Server key to be retrieved.
+ * @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 MySQL Server key.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ServerKeyInner get(String resourceGroupName, String serverName, String keyName);
+
+ /**
+ * Creates or updates a MySQL Server key.
+ *
+ * @param serverName The name of the server.
+ * @param keyName The name of the MySQL Server key to be operated on (updated or created).
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param parameters The requested MySQL Server key resource state.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of a MySQL Server key.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, ServerKeyInner> beginCreateOrUpdate(
+ String serverName, String keyName, String resourceGroupName, ServerKeyInner parameters);
+
+ /**
+ * Creates or updates a MySQL Server key.
+ *
+ * @param serverName The name of the server.
+ * @param keyName The name of the MySQL Server key to be operated on (updated or created).
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param parameters The requested MySQL Server key resource state.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of a MySQL Server key.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, ServerKeyInner> beginCreateOrUpdate(
+ String serverName, String keyName, String resourceGroupName, ServerKeyInner parameters, Context context);
+
+ /**
+ * Creates or updates a MySQL Server key.
+ *
+ * @param serverName The name of the server.
+ * @param keyName The name of the MySQL Server key to be operated on (updated or created).
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param parameters The requested MySQL Server key resource state.
+ * @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 MySQL Server key.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ServerKeyInner createOrUpdate(
+ String serverName, String keyName, String resourceGroupName, ServerKeyInner parameters);
+
+ /**
+ * Creates or updates a MySQL Server key.
+ *
+ * @param serverName The name of the server.
+ * @param keyName The name of the MySQL Server key to be operated on (updated or created).
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param parameters The requested MySQL Server key resource state.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a MySQL Server key.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ServerKeyInner createOrUpdate(
+ String serverName, String keyName, String resourceGroupName, ServerKeyInner parameters, Context context);
+
+ /**
+ * Deletes the MySQL Server key with the given name.
+ *
+ * @param serverName The name of the server.
+ * @param keyName The name of the MySQL Server key to be deleted.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginDelete(String serverName, String keyName, String resourceGroupName);
+
+ /**
+ * Deletes the MySQL Server key with the given name.
+ *
+ * @param serverName The name of the server.
+ * @param keyName The name of the MySQL Server key to be deleted.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginDelete(
+ String serverName, String keyName, String resourceGroupName, Context context);
+
+ /**
+ * Deletes the MySQL Server key with the given name.
+ *
+ * @param serverName The name of the server.
+ * @param keyName The name of the MySQL Server key to be deleted.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void delete(String serverName, String keyName, String resourceGroupName);
+
+ /**
+ * Deletes the MySQL Server key with the given name.
+ *
+ * @param serverName The name of the server.
+ * @param keyName The name of the MySQL Server key to be deleted.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void delete(String serverName, String keyName, String resourceGroupName, Context context);
+}
diff --git a/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/ServerParametersClient.java b/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/ServerParametersClient.java
new file mode 100644
index 000000000000..a4cc31c58504
--- /dev/null
+++ b/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/ServerParametersClient.java
@@ -0,0 +1,77 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.mysqlflexibleserver.fluent;
+
+import com.azure.core.annotation.ReturnType;
+import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.management.polling.PollResult;
+import com.azure.core.util.Context;
+import com.azure.core.util.polling.SyncPoller;
+import com.azure.resourcemanager.mysqlflexibleserver.fluent.models.ConfigurationListResultInner;
+
+/** An instance of this class provides access to all the operations defined in ServerParametersClient. */
+public interface ServerParametersClient {
+ /**
+ * Update a list of configurations in a given server.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param serverName The name of the server.
+ * @param value The parameters for updating a list of server configuration.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of a list of server configurations.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, ConfigurationListResultInner> beginListUpdateConfigurations(
+ String resourceGroupName, String serverName, ConfigurationListResultInner value);
+
+ /**
+ * Update a list of configurations in a given server.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param serverName The name of the server.
+ * @param value The parameters for updating a list of server configuration.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of a list of server configurations.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, ConfigurationListResultInner> beginListUpdateConfigurations(
+ String resourceGroupName, String serverName, ConfigurationListResultInner value, Context context);
+
+ /**
+ * Update a list of configurations in a given server.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param serverName The name of the server.
+ * @param value The parameters for updating a list of server configuration.
+ * @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.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ConfigurationListResultInner listUpdateConfigurations(
+ String resourceGroupName, String serverName, ConfigurationListResultInner value);
+
+ /**
+ * Update a list of configurations in a given server.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param serverName The name of the server.
+ * @param value The parameters for updating a list of server configuration.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a list of server configurations.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ConfigurationListResultInner listUpdateConfigurations(
+ String resourceGroupName, String serverName, ConfigurationListResultInner value, Context context);
+}
diff --git a/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/ServerSecurityAlertPoliciesClient.java b/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/ServerSecurityAlertPoliciesClient.java
new file mode 100644
index 000000000000..d8a30bf4b2b1
--- /dev/null
+++ b/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/ServerSecurityAlertPoliciesClient.java
@@ -0,0 +1,157 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.mysqlflexibleserver.fluent;
+
+import com.azure.core.annotation.ReturnType;
+import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.http.rest.PagedIterable;
+import com.azure.core.http.rest.Response;
+import com.azure.core.management.polling.PollResult;
+import com.azure.core.util.Context;
+import com.azure.core.util.polling.SyncPoller;
+import com.azure.resourcemanager.mysqlflexibleserver.fluent.models.ServerSecurityAlertPolicyInner;
+import com.azure.resourcemanager.mysqlflexibleserver.models.SecurityAlertPolicyName;
+
+/** An instance of this class provides access to all the operations defined in ServerSecurityAlertPoliciesClient. */
+public interface ServerSecurityAlertPoliciesClient {
+ /**
+ * Get a server's security alert policy.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param serverName The name of the server.
+ * @param securityAlertPolicyName The name of the security alert policy.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a server's security alert policy along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getWithResponse(
+ String resourceGroupName, String serverName, SecurityAlertPolicyName securityAlertPolicyName, Context context);
+
+ /**
+ * Get a server's security alert policy.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param serverName The name of the server.
+ * @param securityAlertPolicyName The name of the security alert policy.
+ * @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.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ServerSecurityAlertPolicyInner get(
+ String resourceGroupName, String serverName, SecurityAlertPolicyName securityAlertPolicyName);
+
+ /**
+ * Creates or updates a threat detection policy.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param serverName The name of the server.
+ * @param securityAlertPolicyName The name of the threat detection policy.
+ * @param parameters The server security alert policy.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of a server security alert policy.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, ServerSecurityAlertPolicyInner> beginCreateOrUpdate(
+ String resourceGroupName,
+ String serverName,
+ SecurityAlertPolicyName securityAlertPolicyName,
+ ServerSecurityAlertPolicyInner parameters);
+
+ /**
+ * Creates or updates a threat detection policy.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param serverName The name of the server.
+ * @param securityAlertPolicyName The name of the threat detection policy.
+ * @param parameters The server security alert policy.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of a server security alert policy.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, ServerSecurityAlertPolicyInner> beginCreateOrUpdate(
+ String resourceGroupName,
+ String serverName,
+ SecurityAlertPolicyName securityAlertPolicyName,
+ ServerSecurityAlertPolicyInner parameters,
+ Context context);
+
+ /**
+ * Creates or updates a threat detection policy.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param serverName The name of the server.
+ * @param securityAlertPolicyName The name of the threat detection policy.
+ * @param parameters The server security alert policy.
+ * @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.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ServerSecurityAlertPolicyInner createOrUpdate(
+ String resourceGroupName,
+ String serverName,
+ SecurityAlertPolicyName securityAlertPolicyName,
+ ServerSecurityAlertPolicyInner parameters);
+
+ /**
+ * Creates or updates a threat detection policy.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param serverName The name of the server.
+ * @param securityAlertPolicyName The name of the threat detection policy.
+ * @param parameters The server security alert policy.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a server security alert policy.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ServerSecurityAlertPolicyInner createOrUpdate(
+ String resourceGroupName,
+ String serverName,
+ SecurityAlertPolicyName securityAlertPolicyName,
+ ServerSecurityAlertPolicyInner parameters,
+ Context context);
+
+ /**
+ * Get the server's threat detection policies.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param serverName The name of the server.
+ * @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 as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByServer(String resourceGroupName, String serverName);
+
+ /**
+ * Get the server's threat detection policies.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param serverName The name of the server.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the server's threat detection policies as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByServer(
+ String resourceGroupName, String serverName, Context context);
+}
diff --git a/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/ServersClient.java b/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/ServersClient.java
index 324a1884752f..f3a79a798dc6 100644
--- a/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/ServersClient.java
+++ b/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/ServersClient.java
@@ -12,8 +12,9 @@
import com.azure.core.util.Context;
import com.azure.core.util.polling.SyncPoller;
import com.azure.resourcemanager.mysqlflexibleserver.fluent.models.ServerInner;
-import com.azure.resourcemanager.mysqlflexibleserver.models.ServerForUpdate;
-import com.azure.resourcemanager.mysqlflexibleserver.models.ServerRestartParameter;
+import com.azure.resourcemanager.mysqlflexibleserver.models.ServerForCreate;
+import com.azure.resourcemanager.mysqlflexibleserver.models.ServerUpdateParameters;
+import com.azure.resourcemanager.mysqlflexibleserver.models.ServerUpgradeParameters;
/** An instance of this class provides access to all the operations defined in ServersClient. */
public interface ServersClient {
@@ -30,7 +31,7 @@ public interface ServersClient {
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, ServerInner> beginCreate(
- String resourceGroupName, String serverName, ServerInner parameters);
+ String resourceGroupName, String serverName, ServerForCreate parameters);
/**
* Creates a new server or updates an existing server. The update action will overwrite the existing server.
@@ -46,7 +47,7 @@ SyncPoller, ServerInner> beginCreate(
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, ServerInner> beginCreate(
- String resourceGroupName, String serverName, ServerInner parameters, Context context);
+ String resourceGroupName, String serverName, ServerForCreate parameters, Context context);
/**
* Creates a new server or updates an existing server. The update action will overwrite the existing server.
@@ -60,7 +61,7 @@ SyncPoller, ServerInner> beginCreate(
* @return represents a server.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- ServerInner create(String resourceGroupName, String serverName, ServerInner parameters);
+ ServerInner create(String resourceGroupName, String serverName, ServerForCreate parameters);
/**
* Creates a new server or updates an existing server. The update action will overwrite the existing server.
@@ -75,7 +76,7 @@ SyncPoller, ServerInner> beginCreate(
* @return represents a server.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- ServerInner create(String resourceGroupName, String serverName, ServerInner parameters, Context context);
+ ServerInner create(String resourceGroupName, String serverName, ServerForCreate parameters, Context context);
/**
* Updates an existing server. The request body can contain one to many of the properties present in the normal
@@ -91,7 +92,7 @@ SyncPoller, ServerInner> beginCreate(
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, ServerInner> beginUpdate(
- String resourceGroupName, String serverName, ServerForUpdate parameters);
+ String resourceGroupName, String serverName, ServerUpdateParameters parameters);
/**
* Updates an existing server. The request body can contain one to many of the properties present in the normal
@@ -108,7 +109,7 @@ SyncPoller, ServerInner> beginUpdate(
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, ServerInner> beginUpdate(
- String resourceGroupName, String serverName, ServerForUpdate parameters, Context context);
+ String resourceGroupName, String serverName, ServerUpdateParameters parameters, Context context);
/**
* Updates an existing server. The request body can contain one to many of the properties present in the normal
@@ -123,7 +124,7 @@ SyncPoller, ServerInner> beginUpdate(
* @return represents a server.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- ServerInner update(String resourceGroupName, String serverName, ServerForUpdate parameters);
+ ServerInner update(String resourceGroupName, String serverName, ServerUpdateParameters parameters);
/**
* Updates an existing server. The request body can contain one to many of the properties present in the normal
@@ -139,7 +140,7 @@ SyncPoller, ServerInner> beginUpdate(
* @return represents a server.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- ServerInner update(String resourceGroupName, String serverName, ServerForUpdate parameters, Context context);
+ ServerInner update(String resourceGroupName, String serverName, ServerUpdateParameters parameters, Context context);
/**
* Deletes a server.
@@ -268,7 +269,7 @@ SyncPoller, ServerInner> beginUpdate(
PagedIterable list(Context context);
/**
- * Manual failover a server.
+ * Restarts a server.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param serverName The name of the server.
@@ -278,10 +279,10 @@ SyncPoller, ServerInner> beginUpdate(
* @return the {@link SyncPoller} for polling of long-running operation.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, Void> beginFailover(String resourceGroupName, String serverName);
+ SyncPoller, Void> beginRestart(String resourceGroupName, String serverName);
/**
- * Manual failover a server.
+ * Restarts a server.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param serverName The name of the server.
@@ -292,10 +293,10 @@ SyncPoller, ServerInner> beginUpdate(
* @return the {@link SyncPoller} for polling of long-running operation.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, Void> beginFailover(String resourceGroupName, String serverName, Context context);
+ SyncPoller, Void> beginRestart(String resourceGroupName, String serverName, Context context);
/**
- * Manual failover a server.
+ * Restarts a server.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param serverName The name of the server.
@@ -304,10 +305,10 @@ SyncPoller, ServerInner> beginUpdate(
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- void failover(String resourceGroupName, String serverName);
+ void restart(String resourceGroupName, String serverName);
/**
- * Manual failover a server.
+ * Restarts a server.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param serverName The name of the server.
@@ -317,29 +318,26 @@ SyncPoller, ServerInner> beginUpdate(
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- void failover(String resourceGroupName, String serverName, Context context);
+ void restart(String resourceGroupName, String serverName, Context context);
/**
- * Restarts a server.
+ * Starts a stopped server.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param serverName The name of the server.
- * @param parameters The required parameters for restarting a server.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the {@link SyncPoller} for polling of long-running operation.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, Void> beginRestart(
- String resourceGroupName, String serverName, ServerRestartParameter parameters);
+ SyncPoller, Void> beginStart(String resourceGroupName, String serverName);
/**
- * Restarts a server.
+ * Starts a stopped server.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param serverName The name of the server.
- * @param parameters The required parameters for restarting a server.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
@@ -347,38 +345,35 @@ SyncPoller, Void> beginRestart(
* @return the {@link SyncPoller} for polling of long-running operation.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, Void> beginRestart(
- String resourceGroupName, String serverName, ServerRestartParameter parameters, Context context);
+ SyncPoller, Void> beginStart(String resourceGroupName, String serverName, Context context);
/**
- * Restarts a server.
+ * Starts a stopped server.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param serverName The name of the server.
- * @param parameters The required parameters for restarting a server.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- void restart(String resourceGroupName, String serverName, ServerRestartParameter parameters);
+ void start(String resourceGroupName, String serverName);
/**
- * Restarts a server.
+ * Starts a stopped server.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param serverName The name of the server.
- * @param parameters The required parameters for restarting a server.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- void restart(String resourceGroupName, String serverName, ServerRestartParameter parameters, Context context);
+ void start(String resourceGroupName, String serverName, Context context);
/**
- * Starts a server.
+ * Stops a running server.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param serverName The name of the server.
@@ -388,10 +383,10 @@ SyncPoller, Void> beginRestart(
* @return the {@link SyncPoller} for polling of long-running operation.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, Void> beginStart(String resourceGroupName, String serverName);
+ SyncPoller, Void> beginStop(String resourceGroupName, String serverName);
/**
- * Starts a server.
+ * Stops a running server.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param serverName The name of the server.
@@ -402,10 +397,10 @@ SyncPoller, Void> beginRestart(
* @return the {@link SyncPoller} for polling of long-running operation.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, Void> beginStart(String resourceGroupName, String serverName, Context context);
+ SyncPoller, Void> beginStop(String resourceGroupName, String serverName, Context context);
/**
- * Starts a server.
+ * Stops a running server.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param serverName The name of the server.
@@ -414,10 +409,10 @@ SyncPoller, Void> beginRestart(
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- void start(String resourceGroupName, String serverName);
+ void stop(String resourceGroupName, String serverName);
/**
- * Starts a server.
+ * Stops a running server.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param serverName The name of the server.
@@ -427,26 +422,29 @@ SyncPoller, Void> beginRestart(
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- void start(String resourceGroupName, String serverName, Context context);
+ void stop(String resourceGroupName, String serverName, Context context);
/**
- * Stops a server.
+ * Upgrade server version.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param serverName The name of the server.
+ * @param parameters The required parameters for updating a server.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the {@link SyncPoller} for polling of long-running operation.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, Void> beginStop(String resourceGroupName, String serverName);
+ SyncPoller, Void> beginUpgrade(
+ String resourceGroupName, String serverName, ServerUpgradeParameters parameters);
/**
- * Stops a server.
+ * Upgrade server version.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param serverName The name of the server.
+ * @param parameters The required parameters for updating a server.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
@@ -454,30 +452,33 @@ SyncPoller, Void> beginRestart(
* @return the {@link SyncPoller} for polling of long-running operation.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, Void> beginStop(String resourceGroupName, String serverName, Context context);
+ SyncPoller, Void> beginUpgrade(
+ String resourceGroupName, String serverName, ServerUpgradeParameters parameters, Context context);
/**
- * Stops a server.
+ * Upgrade server version.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param serverName The name of the server.
+ * @param parameters The required parameters for updating a server.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- void stop(String resourceGroupName, String serverName);
+ void upgrade(String resourceGroupName, String serverName, ServerUpgradeParameters parameters);
/**
- * Stops a server.
+ * Upgrade server version.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param serverName The name of the server.
+ * @param parameters The required parameters for updating a server.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- void stop(String resourceGroupName, String serverName, Context context);
+ void upgrade(String resourceGroupName, String serverName, ServerUpgradeParameters parameters, Context context);
}
diff --git a/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/TopQueryStatisticsClient.java b/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/TopQueryStatisticsClient.java
new file mode 100644
index 000000000000..c46f21aa2038
--- /dev/null
+++ b/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/TopQueryStatisticsClient.java
@@ -0,0 +1,77 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.mysqlflexibleserver.fluent;
+
+import com.azure.core.annotation.ReturnType;
+import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.http.rest.PagedIterable;
+import com.azure.core.http.rest.Response;
+import com.azure.core.util.Context;
+import com.azure.resourcemanager.mysqlflexibleserver.fluent.models.QueryStatisticInner;
+import com.azure.resourcemanager.mysqlflexibleserver.models.TopQueryStatisticsInput;
+
+/** An instance of this class provides access to all the operations defined in TopQueryStatisticsClient. */
+public interface TopQueryStatisticsClient {
+ /**
+ * Retrieve the query statistic for specified identifier.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param serverName The name of the server.
+ * @param queryStatisticId The Query Statistic identifier.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return represents a Query Statistic along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getWithResponse(
+ String resourceGroupName, String serverName, String queryStatisticId, Context context);
+
+ /**
+ * Retrieve the query statistic for specified identifier.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param serverName The name of the server.
+ * @param queryStatisticId The Query Statistic identifier.
+ * @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.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ QueryStatisticInner get(String resourceGroupName, String serverName, String queryStatisticId);
+
+ /**
+ * Retrieve the Query-Store top queries for specified metric and aggregation.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param serverName The name of the server.
+ * @param parameters The required parameters for retrieving top query statistics.
+ * @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 as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByServer(
+ String resourceGroupName, String serverName, TopQueryStatisticsInput parameters);
+
+ /**
+ * Retrieve the Query-Store top queries for specified metric and aggregation.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param serverName The name of the server.
+ * @param parameters The required parameters for retrieving top query statistics.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a list of query statistics as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByServer(
+ String resourceGroupName, String serverName, TopQueryStatisticsInput parameters, Context context);
+}
diff --git a/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/AzureADAdministratorsClient.java b/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/VirtualNetworkRulesClient.java
similarity index 64%
rename from sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/AzureADAdministratorsClient.java
rename to sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/VirtualNetworkRulesClient.java
index cde53fb3a637..8c6e33d4598f 100644
--- a/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/AzureADAdministratorsClient.java
+++ b/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/VirtualNetworkRulesClient.java
@@ -11,194 +11,187 @@
import com.azure.core.management.polling.PollResult;
import com.azure.core.util.Context;
import com.azure.core.util.polling.SyncPoller;
-import com.azure.resourcemanager.mysqlflexibleserver.fluent.models.AzureADAdministratorInner;
-import com.azure.resourcemanager.mysqlflexibleserver.models.AdministratorName;
+import com.azure.resourcemanager.mysqlflexibleserver.fluent.models.VirtualNetworkRuleInner;
-/** An instance of this class provides access to all the operations defined in AzureADAdministratorsClient. */
-public interface AzureADAdministratorsClient {
+/** An instance of this class provides access to all the operations defined in VirtualNetworkRulesClient. */
+public interface VirtualNetworkRulesClient {
/**
- * Creates or updates an existing Azure Active Directory administrator.
+ * Gets a virtual network rule.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param serverName The name of the server.
- * @param administratorName The name of the Azure AD Administrator.
- * @param parameters The required parameters for creating or updating an aad administrator.
+ * @param virtualNetworkRuleName The name of the virtual network rule.
+ * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the {@link SyncPoller} for polling of represents a Administrator.
+ * @return a virtual network rule along with {@link Response}.
*/
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, AzureADAdministratorInner> beginCreateOrUpdate(
- String resourceGroupName,
- String serverName,
- AdministratorName administratorName,
- AzureADAdministratorInner parameters);
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getWithResponse(
+ String resourceGroupName, String serverName, String virtualNetworkRuleName, Context context);
/**
- * Creates or updates an existing Azure Active Directory administrator.
+ * Gets a virtual network rule.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param serverName The name of the server.
- * @param administratorName The name of the Azure AD Administrator.
- * @param parameters The required parameters for creating or updating an aad administrator.
- * @param context The context to associate with this operation.
+ * @param virtualNetworkRuleName The name of the virtual network rule.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the {@link SyncPoller} for polling of represents a Administrator.
+ * @return a virtual network rule.
*/
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, AzureADAdministratorInner> beginCreateOrUpdate(
- String resourceGroupName,
- String serverName,
- AdministratorName administratorName,
- AzureADAdministratorInner parameters,
- Context context);
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ VirtualNetworkRuleInner get(String resourceGroupName, String serverName, String virtualNetworkRuleName);
/**
- * Creates or updates an existing Azure Active Directory administrator.
+ * Creates or updates an existing virtual network rule.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param serverName The name of the server.
- * @param administratorName The name of the Azure AD Administrator.
- * @param parameters The required parameters for creating or updating an aad administrator.
+ * @param virtualNetworkRuleName The name of the virtual network rule.
+ * @param parameters The requested virtual Network Rule Resource state.
* @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 Administrator.
+ * @return the {@link SyncPoller} for polling of a virtual network rule.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
- AzureADAdministratorInner createOrUpdate(
- String resourceGroupName,
- String serverName,
- AdministratorName administratorName,
- AzureADAdministratorInner parameters);
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, VirtualNetworkRuleInner> beginCreateOrUpdate(
+ String resourceGroupName, String serverName, String virtualNetworkRuleName, VirtualNetworkRuleInner parameters);
/**
- * Creates or updates an existing Azure Active Directory administrator.
+ * Creates or updates an existing virtual network rule.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param serverName The name of the server.
- * @param administratorName The name of the Azure AD Administrator.
- * @param parameters The required parameters for creating or updating an aad administrator.
+ * @param virtualNetworkRuleName The name of the virtual network rule.
+ * @param parameters The requested virtual Network Rule Resource state.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return represents a Administrator.
+ * @return the {@link SyncPoller} for polling of a virtual network rule.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
- AzureADAdministratorInner createOrUpdate(
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, VirtualNetworkRuleInner> beginCreateOrUpdate(
String resourceGroupName,
String serverName,
- AdministratorName administratorName,
- AzureADAdministratorInner parameters,
+ String virtualNetworkRuleName,
+ VirtualNetworkRuleInner parameters,
Context context);
/**
- * Deletes an Azure AD Administrator.
+ * Creates or updates an existing virtual network rule.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param serverName The name of the server.
- * @param administratorName The name of the Azure AD Administrator.
+ * @param virtualNetworkRuleName The name of the virtual network rule.
+ * @param parameters The requested virtual Network Rule Resource state.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the {@link SyncPoller} for polling of long-running operation.
+ * @return a virtual network rule.
*/
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, Void> beginDelete(
- String resourceGroupName, String serverName, AdministratorName administratorName);
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ VirtualNetworkRuleInner createOrUpdate(
+ String resourceGroupName, String serverName, String virtualNetworkRuleName, VirtualNetworkRuleInner parameters);
/**
- * Deletes an Azure AD Administrator.
+ * Creates or updates an existing virtual network rule.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param serverName The name of the server.
- * @param administratorName The name of the Azure AD Administrator.
+ * @param virtualNetworkRuleName The name of the virtual network rule.
+ * @param parameters The requested virtual Network Rule Resource state.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the {@link SyncPoller} for polling of long-running operation.
+ * @return a virtual network rule.
*/
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, Void> beginDelete(
- String resourceGroupName, String serverName, AdministratorName administratorName, Context context);
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ VirtualNetworkRuleInner createOrUpdate(
+ String resourceGroupName,
+ String serverName,
+ String virtualNetworkRuleName,
+ VirtualNetworkRuleInner parameters,
+ Context context);
/**
- * Deletes an Azure AD Administrator.
+ * Deletes the virtual network rule with the given name.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param serverName The name of the server.
- * @param administratorName The name of the Azure AD Administrator.
+ * @param virtualNetworkRuleName The name of the virtual network rule.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of long-running operation.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
- void delete(String resourceGroupName, String serverName, AdministratorName administratorName);
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginDelete(
+ String resourceGroupName, String serverName, String virtualNetworkRuleName);
/**
- * Deletes an Azure AD Administrator.
+ * Deletes the virtual network rule with the given name.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param serverName The name of the server.
- * @param administratorName The name of the Azure AD Administrator.
+ * @param virtualNetworkRuleName The name of the virtual network rule.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of long-running operation.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
- void delete(String resourceGroupName, String serverName, AdministratorName administratorName, Context context);
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginDelete(
+ String resourceGroupName, String serverName, String virtualNetworkRuleName, Context context);
/**
- * Gets information about an azure ad administrator.
+ * Deletes the virtual network rule with the given name.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param serverName The name of the server.
- * @param administratorName The name of the Azure AD Administrator.
- * @param context The context to associate with this operation.
+ * @param virtualNetworkRuleName The name of the virtual network rule.
* @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 an azure ad administrator along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response getWithResponse(
- String resourceGroupName, String serverName, AdministratorName administratorName, Context context);
+ void delete(String resourceGroupName, String serverName, String virtualNetworkRuleName);
/**
- * Gets information about an azure ad administrator.
+ * Deletes the virtual network rule with the given name.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param serverName The name of the server.
- * @param administratorName The name of the Azure AD Administrator.
+ * @param virtualNetworkRuleName The name of the virtual network rule.
+ * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return information about an azure ad administrator.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- AzureADAdministratorInner get(String resourceGroupName, String serverName, AdministratorName administratorName);
+ void delete(String resourceGroupName, String serverName, String virtualNetworkRuleName, Context context);
/**
- * List all the AAD administrators in a given server.
+ * Gets a list of virtual network rules in a server.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param serverName The name of the server.
* @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 azure ad administrators as paginated response with {@link PagedIterable}.
+ * @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);
+ PagedIterable listByServer(String resourceGroupName, String serverName);
/**
- * List all the AAD administrators in a given server.
+ * Gets a list of virtual network rules in a server.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param serverName The name of the server.
@@ -206,8 +199,8 @@ 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 azure ad administrators as paginated response with {@link PagedIterable}.
+ * @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);
+ PagedIterable listByServer(String resourceGroupName, String serverName, Context context);
}
diff --git a/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/WaitStatisticsClient.java b/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/WaitStatisticsClient.java
new file mode 100644
index 000000000000..1076190ec25c
--- /dev/null
+++ b/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/WaitStatisticsClient.java
@@ -0,0 +1,77 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.mysqlflexibleserver.fluent;
+
+import com.azure.core.annotation.ReturnType;
+import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.http.rest.PagedIterable;
+import com.azure.core.http.rest.Response;
+import com.azure.core.util.Context;
+import com.azure.resourcemanager.mysqlflexibleserver.fluent.models.WaitStatisticInner;
+import com.azure.resourcemanager.mysqlflexibleserver.models.WaitStatisticsInput;
+
+/** An instance of this class provides access to all the operations defined in WaitStatisticsClient. */
+public interface WaitStatisticsClient {
+ /**
+ * Retrieve wait statistics for specified identifier.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param serverName The name of the server.
+ * @param waitStatisticsId The Wait Statistic identifier.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return represents a Wait Statistic along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getWithResponse(
+ String resourceGroupName, String serverName, String waitStatisticsId, Context context);
+
+ /**
+ * Retrieve wait statistics for specified identifier.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param serverName The name of the server.
+ * @param waitStatisticsId The Wait Statistic identifier.
+ * @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.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ WaitStatisticInner get(String resourceGroupName, String serverName, String waitStatisticsId);
+
+ /**
+ * Retrieve wait statistics for specified aggregation window.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param serverName The name of the server.
+ * @param parameters The required parameters for retrieving wait statistics.
+ * @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 as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByServer(
+ String resourceGroupName, String serverName, WaitStatisticsInput parameters);
+
+ /**
+ * Retrieve wait statistics for specified aggregation window.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param serverName The name of the server.
+ * @param parameters The required parameters for retrieving wait statistics.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a list of wait statistics as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByServer(
+ String resourceGroupName, String serverName, WaitStatisticsInput parameters, Context context);
+}
diff --git a/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/models/AdministratorProperties.java b/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/models/AdministratorProperties.java
deleted file mode 100644
index 360d94453368..000000000000
--- a/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/models/AdministratorProperties.java
+++ /dev/null
@@ -1,155 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.mysqlflexibleserver.fluent.models;
-
-import com.azure.core.annotation.Fluent;
-import com.azure.resourcemanager.mysqlflexibleserver.models.AdministratorType;
-import com.fasterxml.jackson.annotation.JsonProperty;
-
-/** The properties of an administrator. */
-@Fluent
-public final class AdministratorProperties {
- /*
- * Type of the sever administrator.
- */
- @JsonProperty(value = "administratorType")
- private AdministratorType administratorType;
-
- /*
- * Login name of the server administrator.
- */
- @JsonProperty(value = "login")
- private String login;
-
- /*
- * SID (object ID) of the server administrator.
- */
- @JsonProperty(value = "sid")
- private String sid;
-
- /*
- * Tenant ID of the administrator.
- */
- @JsonProperty(value = "tenantId")
- private String tenantId;
-
- /*
- * The resource id of the identity used for AAD Authentication.
- */
- @JsonProperty(value = "identityResourceId")
- private String identityResourceId;
-
- /** Creates an instance of AdministratorProperties class. */
- public AdministratorProperties() {
- }
-
- /**
- * Get the administratorType property: Type of the sever administrator.
- *
- * @return the administratorType value.
- */
- public AdministratorType administratorType() {
- return this.administratorType;
- }
-
- /**
- * Set the administratorType property: Type of the sever administrator.
- *
- * @param administratorType the administratorType value to set.
- * @return the AdministratorProperties object itself.
- */
- public AdministratorProperties withAdministratorType(AdministratorType administratorType) {
- this.administratorType = administratorType;
- return this;
- }
-
- /**
- * Get the login property: Login name of the server administrator.
- *
- * @return the login value.
- */
- public String login() {
- return this.login;
- }
-
- /**
- * Set the login property: Login name of the server administrator.
- *
- * @param login the login value to set.
- * @return the AdministratorProperties object itself.
- */
- public AdministratorProperties withLogin(String login) {
- this.login = login;
- return this;
- }
-
- /**
- * Get the sid property: SID (object ID) of the server administrator.
- *
- * @return the sid value.
- */
- public String sid() {
- return this.sid;
- }
-
- /**
- * Set the sid property: SID (object ID) of the server administrator.
- *
- * @param sid the sid value to set.
- * @return the AdministratorProperties object itself.
- */
- public AdministratorProperties withSid(String sid) {
- this.sid = sid;
- return this;
- }
-
- /**
- * Get the tenantId property: Tenant ID of the administrator.
- *
- * @return the tenantId value.
- */
- public String tenantId() {
- return this.tenantId;
- }
-
- /**
- * Set the tenantId property: Tenant ID of the administrator.
- *
- * @param tenantId the tenantId value to set.
- * @return the AdministratorProperties object itself.
- */
- public AdministratorProperties withTenantId(String tenantId) {
- this.tenantId = tenantId;
- return this;
- }
-
- /**
- * Get the identityResourceId property: The resource id of the identity used for AAD Authentication.
- *
- * @return the identityResourceId value.
- */
- public String identityResourceId() {
- return this.identityResourceId;
- }
-
- /**
- * Set the identityResourceId property: The resource id of the identity used for AAD Authentication.
- *
- * @param identityResourceId the identityResourceId value to set.
- * @return the AdministratorProperties object itself.
- */
- public AdministratorProperties withIdentityResourceId(String identityResourceId) {
- this.identityResourceId = identityResourceId;
- return this;
- }
-
- /**
- * Validates the instance.
- *
- * @throws IllegalArgumentException thrown if the instance is not valid.
- */
- public void validate() {
- }
-}
diff --git a/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/models/AdvisorInner.java b/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/models/AdvisorInner.java
new file mode 100644
index 000000000000..4bda5812d845
--- /dev/null
+++ b/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/models/AdvisorInner.java
@@ -0,0 +1,51 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.mysqlflexibleserver.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.management.ProxyResource;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/** Represents a recommendation action advisor. */
+@Fluent
+public final class AdvisorInner extends ProxyResource {
+ /*
+ * The properties of a recommendation action advisor.
+ */
+ @JsonProperty(value = "properties")
+ private Object properties;
+
+ /** Creates an instance of AdvisorInner class. */
+ public AdvisorInner() {
+ }
+
+ /**
+ * Get the properties property: The properties of a recommendation action advisor.
+ *
+ * @return the properties value.
+ */
+ public Object properties() {
+ return this.properties;
+ }
+
+ /**
+ * Set the properties property: The properties of a recommendation action advisor.
+ *
+ * @param properties the properties value to set.
+ * @return the AdvisorInner object itself.
+ */
+ public AdvisorInner withProperties(Object properties) {
+ this.properties = properties;
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ }
+}
diff --git a/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/models/AzureADAdministratorInner.java b/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/models/AzureADAdministratorInner.java
deleted file mode 100644
index 8903f56b030d..000000000000
--- a/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/models/AzureADAdministratorInner.java
+++ /dev/null
@@ -1,175 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.mysqlflexibleserver.fluent.models;
-
-import com.azure.core.annotation.Fluent;
-import com.azure.core.management.ProxyResource;
-import com.azure.core.management.SystemData;
-import com.azure.resourcemanager.mysqlflexibleserver.models.AdministratorType;
-import com.fasterxml.jackson.annotation.JsonProperty;
-
-/** Represents a Administrator. */
-@Fluent
-public final class AzureADAdministratorInner extends ProxyResource {
- /*
- * The properties of an administrator.
- */
- @JsonProperty(value = "properties")
- private AdministratorProperties innerProperties;
-
- /*
- * The system metadata relating to this resource.
- */
- @JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY)
- private SystemData systemData;
-
- /** Creates an instance of AzureADAdministratorInner class. */
- public AzureADAdministratorInner() {
- }
-
- /**
- * Get the innerProperties property: The properties of an administrator.
- *
- * @return the innerProperties value.
- */
- private AdministratorProperties innerProperties() {
- return this.innerProperties;
- }
-
- /**
- * Get the systemData property: The system metadata relating to this resource.
- *
- * @return the systemData value.
- */
- public SystemData systemData() {
- return this.systemData;
- }
-
- /**
- * Get the administratorType property: Type of the sever administrator.
- *
- * @return the administratorType value.
- */
- public AdministratorType administratorType() {
- return this.innerProperties() == null ? null : this.innerProperties().administratorType();
- }
-
- /**
- * Set the administratorType property: Type of the sever administrator.
- *
- * @param administratorType the administratorType value to set.
- * @return the AzureADAdministratorInner object itself.
- */
- public AzureADAdministratorInner withAdministratorType(AdministratorType administratorType) {
- if (this.innerProperties() == null) {
- this.innerProperties = new AdministratorProperties();
- }
- this.innerProperties().withAdministratorType(administratorType);
- return this;
- }
-
- /**
- * Get the login property: Login name of the server administrator.
- *
- * @return the login value.
- */
- public String login() {
- return this.innerProperties() == null ? null : this.innerProperties().login();
- }
-
- /**
- * Set the login property: Login name of the server administrator.
- *
- * @param login the login value to set.
- * @return the AzureADAdministratorInner object itself.
- */
- public AzureADAdministratorInner withLogin(String login) {
- if (this.innerProperties() == null) {
- this.innerProperties = new AdministratorProperties();
- }
- this.innerProperties().withLogin(login);
- return this;
- }
-
- /**
- * Get the sid property: SID (object ID) of the server administrator.
- *
- * @return the sid value.
- */
- public String sid() {
- return this.innerProperties() == null ? null : this.innerProperties().sid();
- }
-
- /**
- * Set the sid property: SID (object ID) of the server administrator.
- *
- * @param sid the sid value to set.
- * @return the AzureADAdministratorInner object itself.
- */
- public AzureADAdministratorInner withSid(String sid) {
- if (this.innerProperties() == null) {
- this.innerProperties = new AdministratorProperties();
- }
- this.innerProperties().withSid(sid);
- return this;
- }
-
- /**
- * Get the tenantId property: Tenant ID of the administrator.
- *
- * @return the tenantId value.
- */
- public String tenantId() {
- return this.innerProperties() == null ? null : this.innerProperties().tenantId();
- }
-
- /**
- * Set the tenantId property: Tenant ID of the administrator.
- *
- * @param tenantId the tenantId value to set.
- * @return the AzureADAdministratorInner object itself.
- */
- public AzureADAdministratorInner withTenantId(String tenantId) {
- if (this.innerProperties() == null) {
- this.innerProperties = new AdministratorProperties();
- }
- this.innerProperties().withTenantId(tenantId);
- return this;
- }
-
- /**
- * Get the identityResourceId property: The resource id of the identity used for AAD Authentication.
- *
- * @return the identityResourceId value.
- */
- public String identityResourceId() {
- return this.innerProperties() == null ? null : this.innerProperties().identityResourceId();
- }
-
- /**
- * Set the identityResourceId property: The resource id of the identity used for AAD Authentication.
- *
- * @param identityResourceId the identityResourceId value to set.
- * @return the AzureADAdministratorInner object itself.
- */
- public AzureADAdministratorInner withIdentityResourceId(String identityResourceId) {
- if (this.innerProperties() == null) {
- this.innerProperties = new AdministratorProperties();
- }
- this.innerProperties().withIdentityResourceId(identityResourceId);
- return this;
- }
-
- /**
- * Validates the instance.
- *
- * @throws IllegalArgumentException thrown if the instance is not valid.
- */
- public void validate() {
- if (innerProperties() != null) {
- innerProperties().validate();
- }
- }
-}
diff --git a/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/models/CapabilityPropertiesInner.java b/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/models/CapabilityPropertiesInner.java
deleted file mode 100644
index 4c83c93d3eb8..000000000000
--- a/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/models/CapabilityPropertiesInner.java
+++ /dev/null
@@ -1,89 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.mysqlflexibleserver.fluent.models;
-
-import com.azure.core.annotation.Immutable;
-import com.azure.resourcemanager.mysqlflexibleserver.models.ServerEditionCapability;
-import com.fasterxml.jackson.annotation.JsonProperty;
-import java.util.List;
-
-/** Location capabilities. */
-@Immutable
-public final class CapabilityPropertiesInner {
- /*
- * zone name
- */
- @JsonProperty(value = "zone", access = JsonProperty.Access.WRITE_ONLY)
- private String zone;
-
- /*
- * Supported high availability mode
- */
- @JsonProperty(value = "supportedHAMode", access = JsonProperty.Access.WRITE_ONLY)
- private List supportedHAMode;
-
- /*
- * supported geo backup regions
- */
- @JsonProperty(value = "supportedGeoBackupRegions", access = JsonProperty.Access.WRITE_ONLY)
- private List supportedGeoBackupRegions;
-
- /*
- * A list of supported flexible server editions.
- */
- @JsonProperty(value = "supportedFlexibleServerEditions", access = JsonProperty.Access.WRITE_ONLY)
- private List supportedFlexibleServerEditions;
-
- /** Creates an instance of CapabilityPropertiesInner class. */
- public CapabilityPropertiesInner() {
- }
-
- /**
- * Get the zone property: zone name.
- *
- * @return the zone value.
- */
- public String zone() {
- return this.zone;
- }
-
- /**
- * Get the supportedHAMode property: Supported high availability mode.
- *
- * @return the supportedHAMode value.
- */
- public List supportedHAMode() {
- return this.supportedHAMode;
- }
-
- /**
- * Get the supportedGeoBackupRegions property: supported geo backup regions.
- *
- * @return the supportedGeoBackupRegions value.
- */
- public List supportedGeoBackupRegions() {
- return this.supportedGeoBackupRegions;
- }
-
- /**
- * Get the supportedFlexibleServerEditions property: A list of supported flexible server editions.
- *
- * @return the supportedFlexibleServerEditions value.
- */
- public List supportedFlexibleServerEditions() {
- return this.supportedFlexibleServerEditions;
- }
-
- /**
- * Validates the instance.
- *
- * @throws IllegalArgumentException thrown if the instance is not valid.
- */
- public void validate() {
- if (supportedFlexibleServerEditions() != null) {
- supportedFlexibleServerEditions().forEach(e -> e.validate());
- }
- }
-}
diff --git a/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/models/ConfigurationForBatchUpdateProperties.java b/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/models/ConfigurationForBatchUpdateProperties.java
deleted file mode 100644
index 4d7b13d5f8f0..000000000000
--- a/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/models/ConfigurationForBatchUpdateProperties.java
+++ /dev/null
@@ -1,76 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.mysqlflexibleserver.fluent.models;
-
-import com.azure.core.annotation.Fluent;
-import com.fasterxml.jackson.annotation.JsonProperty;
-
-/** The properties can be updated for a configuration. */
-@Fluent
-public final class ConfigurationForBatchUpdateProperties {
- /*
- * Value of the configuration.
- */
- @JsonProperty(value = "value")
- private String value;
-
- /*
- * Source of the configuration.
- */
- @JsonProperty(value = "source")
- private String source;
-
- /** Creates an instance of ConfigurationForBatchUpdateProperties class. */
- public ConfigurationForBatchUpdateProperties() {
- }
-
- /**
- * 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 ConfigurationForBatchUpdateProperties object itself.
- */
- public ConfigurationForBatchUpdateProperties withValue(String value) {
- this.value = value;
- return this;
- }
-
- /**
- * 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 ConfigurationForBatchUpdateProperties object itself.
- */
- public ConfigurationForBatchUpdateProperties 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/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/models/ConfigurationInner.java b/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/models/ConfigurationInner.java
index c7d61a08e0f4..f817ffa6929c 100644
--- a/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/models/ConfigurationInner.java
+++ b/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/models/ConfigurationInner.java
@@ -6,11 +6,6 @@
import com.azure.core.annotation.Fluent;
import com.azure.core.management.ProxyResource;
-import com.azure.core.management.SystemData;
-import com.azure.resourcemanager.mysqlflexibleserver.models.ConfigurationSource;
-import com.azure.resourcemanager.mysqlflexibleserver.models.IsConfigPendingRestart;
-import com.azure.resourcemanager.mysqlflexibleserver.models.IsDynamicConfig;
-import com.azure.resourcemanager.mysqlflexibleserver.models.IsReadOnly;
import com.fasterxml.jackson.annotation.JsonProperty;
/** Represents a Configuration. */
@@ -22,12 +17,6 @@ public final class ConfigurationInner extends ProxyResource {
@JsonProperty(value = "properties")
private ConfigurationProperties innerProperties;
- /*
- * The system metadata relating to this resource.
- */
- @JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY)
- private SystemData systemData;
-
/** Creates an instance of ConfigurationInner class. */
public ConfigurationInner() {
}
@@ -41,15 +30,6 @@ private ConfigurationProperties innerProperties() {
return this.innerProperties;
}
- /**
- * Get the systemData property: The system metadata relating to this resource.
- *
- * @return the systemData value.
- */
- public SystemData systemData() {
- return this.systemData;
- }
-
/**
* Get the value property: Value of the configuration.
*
@@ -114,7 +94,7 @@ public String allowedValues() {
*
* @return the source value.
*/
- public ConfigurationSource source() {
+ public String source() {
return this.innerProperties() == null ? null : this.innerProperties().source();
}
@@ -124,7 +104,7 @@ public ConfigurationSource source() {
* @param source the source value to set.
* @return the ConfigurationInner object itself.
*/
- public ConfigurationInner withSource(ConfigurationSource source) {
+ public ConfigurationInner withSource(String source) {
if (this.innerProperties() == null) {
this.innerProperties = new ConfigurationProperties();
}
@@ -132,33 +112,6 @@ public ConfigurationInner withSource(ConfigurationSource source) {
return this;
}
- /**
- * Get the isReadOnly property: If is the configuration read only.
- *
- * @return the isReadOnly value.
- */
- public IsReadOnly isReadOnly() {
- return this.innerProperties() == null ? null : this.innerProperties().isReadOnly();
- }
-
- /**
- * Get the isConfigPendingRestart property: If is the configuration pending restart or not.
- *
- * @return the isConfigPendingRestart value.
- */
- public IsConfigPendingRestart isConfigPendingRestart() {
- return this.innerProperties() == null ? null : this.innerProperties().isConfigPendingRestart();
- }
-
- /**
- * Get the isDynamicConfig property: If is the configuration dynamic.
- *
- * @return the isDynamicConfig value.
- */
- public IsDynamicConfig isDynamicConfig() {
- return this.innerProperties() == null ? null : this.innerProperties().isDynamicConfig();
- }
-
/**
* Validates the instance.
*
diff --git a/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/models/ConfigurationListResultInner.java b/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/models/ConfigurationListResultInner.java
index 4c51019cb54f..ce57247860fe 100644
--- a/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/models/ConfigurationListResultInner.java
+++ b/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/models/ConfigurationListResultInner.java
@@ -17,12 +17,6 @@ public final class ConfigurationListResultInner {
@JsonProperty(value = "value")
private List value;
- /*
- * The link used to get the next page of operations.
- */
- @JsonProperty(value = "nextLink")
- private String nextLink;
-
/** Creates an instance of ConfigurationListResultInner class. */
public ConfigurationListResultInner() {
}
@@ -47,26 +41,6 @@ public ConfigurationListResultInner withValue(List value) {
return this;
}
- /**
- * Get the nextLink property: The link used to get the next page of operations.
- *
- * @return the nextLink value.
- */
- public String nextLink() {
- return this.nextLink;
- }
-
- /**
- * Set the nextLink property: The link used to get the next page of operations.
- *
- * @param nextLink the nextLink value to set.
- * @return the ConfigurationListResultInner object itself.
- */
- public ConfigurationListResultInner withNextLink(String nextLink) {
- this.nextLink = nextLink;
- return this;
- }
-
/**
* Validates the instance.
*
diff --git a/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/models/ConfigurationProperties.java b/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/models/ConfigurationProperties.java
index 9c9b3e63a94a..559284d9c445 100644
--- a/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/models/ConfigurationProperties.java
+++ b/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/models/ConfigurationProperties.java
@@ -5,10 +5,6 @@
package com.azure.resourcemanager.mysqlflexibleserver.fluent.models;
import com.azure.core.annotation.Fluent;
-import com.azure.resourcemanager.mysqlflexibleserver.models.ConfigurationSource;
-import com.azure.resourcemanager.mysqlflexibleserver.models.IsConfigPendingRestart;
-import com.azure.resourcemanager.mysqlflexibleserver.models.IsDynamicConfig;
-import com.azure.resourcemanager.mysqlflexibleserver.models.IsReadOnly;
import com.fasterxml.jackson.annotation.JsonProperty;
/** The properties of a configuration. */
@@ -48,25 +44,7 @@ public final class ConfigurationProperties {
* Source of the configuration.
*/
@JsonProperty(value = "source")
- private ConfigurationSource source;
-
- /*
- * If is the configuration read only.
- */
- @JsonProperty(value = "isReadOnly", access = JsonProperty.Access.WRITE_ONLY)
- private IsReadOnly isReadOnly;
-
- /*
- * If is the configuration pending restart or not.
- */
- @JsonProperty(value = "isConfigPendingRestart", access = JsonProperty.Access.WRITE_ONLY)
- private IsConfigPendingRestart isConfigPendingRestart;
-
- /*
- * If is the configuration dynamic.
- */
- @JsonProperty(value = "isDynamicConfig", access = JsonProperty.Access.WRITE_ONLY)
- private IsDynamicConfig isDynamicConfig;
+ private String source;
/** Creates an instance of ConfigurationProperties class. */
public ConfigurationProperties() {
@@ -133,7 +111,7 @@ public String allowedValues() {
*
* @return the source value.
*/
- public ConfigurationSource source() {
+ public String source() {
return this.source;
}
@@ -143,38 +121,11 @@ public ConfigurationSource source() {
* @param source the source value to set.
* @return the ConfigurationProperties object itself.
*/
- public ConfigurationProperties withSource(ConfigurationSource source) {
+ public ConfigurationProperties withSource(String source) {
this.source = source;
return this;
}
- /**
- * Get the isReadOnly property: If is the configuration read only.
- *
- * @return the isReadOnly value.
- */
- public IsReadOnly isReadOnly() {
- return this.isReadOnly;
- }
-
- /**
- * Get the isConfigPendingRestart property: If is the configuration pending restart or not.
- *
- * @return the isConfigPendingRestart value.
- */
- public IsConfigPendingRestart isConfigPendingRestart() {
- return this.isConfigPendingRestart;
- }
-
- /**
- * Get the isDynamicConfig property: If is the configuration dynamic.
- *
- * @return the isDynamicConfig value.
- */
- public IsDynamicConfig isDynamicConfig() {
- return this.isDynamicConfig;
- }
-
/**
* Validates the instance.
*
diff --git a/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/models/DatabaseInner.java b/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/models/DatabaseInner.java
index 5e05985e128c..2f35ec0c8214 100644
--- a/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/models/DatabaseInner.java
+++ b/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/models/DatabaseInner.java
@@ -6,7 +6,6 @@
import com.azure.core.annotation.Fluent;
import com.azure.core.management.ProxyResource;
-import com.azure.core.management.SystemData;
import com.fasterxml.jackson.annotation.JsonProperty;
/** Represents a Database. */
@@ -18,12 +17,6 @@ public final class DatabaseInner extends ProxyResource {
@JsonProperty(value = "properties")
private DatabaseProperties innerProperties;
- /*
- * The system metadata relating to this resource.
- */
- @JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY)
- private SystemData systemData;
-
/** Creates an instance of DatabaseInner class. */
public DatabaseInner() {
}
@@ -37,15 +30,6 @@ private DatabaseProperties innerProperties() {
return this.innerProperties;
}
- /**
- * Get the systemData property: The system metadata relating to this resource.
- *
- * @return the systemData value.
- */
- public SystemData systemData() {
- return this.systemData;
- }
-
/**
* Get the charset property: The charset of the database.
*
diff --git a/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/models/FirewallRuleInner.java b/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/models/FirewallRuleInner.java
index 89fb5eb8a280..5fdcb6f3e6d6 100644
--- a/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/models/FirewallRuleInner.java
+++ b/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/models/FirewallRuleInner.java
@@ -6,7 +6,6 @@
import com.azure.core.annotation.Fluent;
import com.azure.core.management.ProxyResource;
-import com.azure.core.management.SystemData;
import com.azure.core.util.logging.ClientLogger;
import com.fasterxml.jackson.annotation.JsonProperty;
@@ -19,12 +18,6 @@ public final class FirewallRuleInner extends ProxyResource {
@JsonProperty(value = "properties", required = true)
private FirewallRuleProperties innerProperties = new FirewallRuleProperties();
- /*
- * The system metadata relating to this resource.
- */
- @JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY)
- private SystemData systemData;
-
/** Creates an instance of FirewallRuleInner class. */
public FirewallRuleInner() {
}
@@ -38,15 +31,6 @@ private FirewallRuleProperties innerProperties() {
return this.innerProperties;
}
- /**
- * Get the systemData property: The system metadata relating to this resource.
- *
- * @return the systemData value.
- */
- public SystemData systemData() {
- return this.systemData;
- }
-
/**
* Get the startIpAddress property: The start IP address of the server firewall rule. Must be IPv4 format.
*
diff --git a/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/models/GetPrivateDnsZoneSuffixResponseInner.java b/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/models/GetPrivateDnsZoneSuffixResponseInner.java
deleted file mode 100644
index b487bd743973..000000000000
--- a/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/models/GetPrivateDnsZoneSuffixResponseInner.java
+++ /dev/null
@@ -1,50 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.mysqlflexibleserver.fluent.models;
-
-import com.azure.core.annotation.Fluent;
-import com.fasterxml.jackson.annotation.JsonProperty;
-
-/** The response of get private dns zone suffix. */
-@Fluent
-public final class GetPrivateDnsZoneSuffixResponseInner {
- /*
- * Represents the private DNS zone suffix.
- */
- @JsonProperty(value = "privateDnsZoneSuffix")
- private String privateDnsZoneSuffix;
-
- /** Creates an instance of GetPrivateDnsZoneSuffixResponseInner class. */
- public GetPrivateDnsZoneSuffixResponseInner() {
- }
-
- /**
- * Get the privateDnsZoneSuffix property: Represents the private DNS zone suffix.
- *
- * @return the privateDnsZoneSuffix value.
- */
- public String privateDnsZoneSuffix() {
- return this.privateDnsZoneSuffix;
- }
-
- /**
- * Set the privateDnsZoneSuffix property: Represents the private DNS zone suffix.
- *
- * @param privateDnsZoneSuffix the privateDnsZoneSuffix value to set.
- * @return the GetPrivateDnsZoneSuffixResponseInner object itself.
- */
- public GetPrivateDnsZoneSuffixResponseInner withPrivateDnsZoneSuffix(String privateDnsZoneSuffix) {
- this.privateDnsZoneSuffix = privateDnsZoneSuffix;
- return this;
- }
-
- /**
- * Validates the instance.
- *
- * @throws IllegalArgumentException thrown if the instance is not valid.
- */
- public void validate() {
- }
-}
diff --git a/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/models/LogFileInner.java b/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/models/LogFileInner.java
index 511bd0fe65b3..cc780816c1d8 100644
--- a/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/models/LogFileInner.java
+++ b/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/models/LogFileInner.java
@@ -6,31 +6,24 @@
import com.azure.core.annotation.Fluent;
import com.azure.core.management.ProxyResource;
-import com.azure.core.management.SystemData;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.time.OffsetDateTime;
-/** Represents a logFile. */
+/** Represents a log file. */
@Fluent
public final class LogFileInner extends ProxyResource {
/*
- * The properties of a logFile.
+ * The properties of the log file.
*/
@JsonProperty(value = "properties")
private LogFileProperties innerProperties;
- /*
- * The system metadata relating to this resource.
- */
- @JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY)
- private SystemData systemData;
-
/** Creates an instance of LogFileInner class. */
public LogFileInner() {
}
/**
- * Get the innerProperties property: The properties of a logFile.
+ * Get the innerProperties property: The properties of the log file.
*
* @return the innerProperties value.
*/
@@ -39,16 +32,7 @@ private LogFileProperties innerProperties() {
}
/**
- * Get the systemData property: The system metadata relating to this resource.
- *
- * @return the systemData value.
- */
- public SystemData systemData() {
- return this.systemData;
- }
-
- /**
- * Get the sizeInKB property: The size in kb of the logFile.
+ * Get the sizeInKB property: Size of the log file.
*
* @return the sizeInKB value.
*/
@@ -57,7 +41,7 @@ public Long sizeInKB() {
}
/**
- * Set the sizeInKB property: The size in kb of the logFile.
+ * Set the sizeInKB property: Size of the log file.
*
* @param sizeInKB the sizeInKB value to set.
* @return the LogFileInner object itself.
@@ -80,17 +64,12 @@ public OffsetDateTime createdTime() {
}
/**
- * Set the createdTime property: Creation timestamp of the log file.
+ * Get the lastModifiedTime property: Last modified timestamp of the log file.
*
- * @param createdTime the createdTime value to set.
- * @return the LogFileInner object itself.
+ * @return the lastModifiedTime value.
*/
- public LogFileInner withCreatedTime(OffsetDateTime createdTime) {
- if (this.innerProperties() == null) {
- this.innerProperties = new LogFileProperties();
- }
- this.innerProperties().withCreatedTime(createdTime);
- return this;
+ public OffsetDateTime lastModifiedTime() {
+ return this.innerProperties() == null ? null : this.innerProperties().lastModifiedTime();
}
/**
@@ -116,29 +95,6 @@ public LogFileInner withTypePropertiesType(String type) {
return this;
}
- /**
- * Get the lastModifiedTime property: Last modified timestamp of the log file.
- *
- * @return the lastModifiedTime value.
- */
- public OffsetDateTime lastModifiedTime() {
- return this.innerProperties() == null ? null : this.innerProperties().lastModifiedTime();
- }
-
- /**
- * Set the lastModifiedTime property: Last modified timestamp of the log file.
- *
- * @param lastModifiedTime the lastModifiedTime value to set.
- * @return the LogFileInner object itself.
- */
- public LogFileInner withLastModifiedTime(OffsetDateTime lastModifiedTime) {
- if (this.innerProperties() == null) {
- this.innerProperties = new LogFileProperties();
- }
- this.innerProperties().withLastModifiedTime(lastModifiedTime);
- return this;
- }
-
/**
* Get the url property: The url to download the log file from.
*
diff --git a/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/models/LogFileProperties.java b/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/models/LogFileProperties.java
index dfece1b1ac3f..80de2223b39b 100644
--- a/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/models/LogFileProperties.java
+++ b/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/models/LogFileProperties.java
@@ -8,11 +8,11 @@
import com.fasterxml.jackson.annotation.JsonProperty;
import java.time.OffsetDateTime;
-/** The properties of a logFile. */
+/** The properties of a log file. */
@Fluent
public final class LogFileProperties {
/*
- * The size in kb of the logFile.
+ * Size of the log file.
*/
@JsonProperty(value = "sizeInKB")
private Long sizeInKB;
@@ -20,20 +20,20 @@ public final class LogFileProperties {
/*
* Creation timestamp of the log file.
*/
- @JsonProperty(value = "createdTime")
+ @JsonProperty(value = "createdTime", access = JsonProperty.Access.WRITE_ONLY)
private OffsetDateTime createdTime;
/*
- * Type of the log file.
+ * Last modified timestamp of the log file.
*/
- @JsonProperty(value = "type")
- private String type;
+ @JsonProperty(value = "lastModifiedTime", access = JsonProperty.Access.WRITE_ONLY)
+ private OffsetDateTime lastModifiedTime;
/*
- * Last modified timestamp of the log file.
+ * Type of the log file.
*/
- @JsonProperty(value = "lastModifiedTime")
- private OffsetDateTime lastModifiedTime;
+ @JsonProperty(value = "type")
+ private String type;
/*
* The url to download the log file from.
@@ -46,7 +46,7 @@ public LogFileProperties() {
}
/**
- * Get the sizeInKB property: The size in kb of the logFile.
+ * Get the sizeInKB property: Size of the log file.
*
* @return the sizeInKB value.
*/
@@ -55,7 +55,7 @@ public Long sizeInKB() {
}
/**
- * Set the sizeInKB property: The size in kb of the logFile.
+ * Set the sizeInKB property: Size of the log file.
*
* @param sizeInKB the sizeInKB value to set.
* @return the LogFileProperties object itself.
@@ -75,14 +75,12 @@ public OffsetDateTime createdTime() {
}
/**
- * Set the createdTime property: Creation timestamp of the log file.
+ * Get the lastModifiedTime property: Last modified timestamp of the log file.
*
- * @param createdTime the createdTime value to set.
- * @return the LogFileProperties object itself.
+ * @return the lastModifiedTime value.
*/
- public LogFileProperties withCreatedTime(OffsetDateTime createdTime) {
- this.createdTime = createdTime;
- return this;
+ public OffsetDateTime lastModifiedTime() {
+ return this.lastModifiedTime;
}
/**
@@ -105,26 +103,6 @@ public LogFileProperties withType(String type) {
return this;
}
- /**
- * Get the lastModifiedTime property: Last modified timestamp of the log file.
- *
- * @return the lastModifiedTime value.
- */
- public OffsetDateTime lastModifiedTime() {
- return this.lastModifiedTime;
- }
-
- /**
- * Set the lastModifiedTime property: Last modified timestamp of the log file.
- *
- * @param lastModifiedTime the lastModifiedTime value to set.
- * @return the LogFileProperties object itself.
- */
- public LogFileProperties withLastModifiedTime(OffsetDateTime lastModifiedTime) {
- this.lastModifiedTime = lastModifiedTime;
- return this;
- }
-
/**
* Get the url property: The url to download the log file from.
*
diff --git a/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/models/OperationInner.java b/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/models/OperationInner.java
deleted file mode 100644
index 5673dc733b05..000000000000
--- a/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/models/OperationInner.java
+++ /dev/null
@@ -1,135 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.mysqlflexibleserver.fluent.models;
-
-import com.azure.core.annotation.Fluent;
-import com.azure.resourcemanager.mysqlflexibleserver.models.OperationDisplay;
-import com.fasterxml.jackson.annotation.JsonInclude;
-import com.fasterxml.jackson.annotation.JsonProperty;
-import java.util.Map;
-
-/** REST API operation definition. */
-@Fluent
-public final class OperationInner {
- /*
- * The name of the operation being performed on this particular object.
- */
- @JsonProperty(value = "name")
- private String name;
-
- /*
- * The localized display information for this particular operation or action.
- */
- @JsonProperty(value = "display")
- private OperationDisplay display;
-
- /*
- * The intended executor of the operation.
- */
- @JsonProperty(value = "origin")
- private String origin;
-
- /*
- * Additional descriptions for the operation.
- */
- @JsonProperty(value = "properties")
- @JsonInclude(value = JsonInclude.Include.NON_NULL, content = JsonInclude.Include.ALWAYS)
- private Map properties;
-
- /** Creates an instance of OperationInner class. */
- public OperationInner() {
- }
-
- /**
- * Get the name property: The name of the operation being performed on this particular object.
- *
- * @return the name value.
- */
- public String name() {
- return this.name;
- }
-
- /**
- * Set the name property: The name of the operation being performed on this particular object.
- *
- * @param name the name value to set.
- * @return the OperationInner object itself.
- */
- public OperationInner withName(String name) {
- this.name = name;
- return this;
- }
-
- /**
- * Get the display property: The localized display information for this particular operation or action.
- *
- * @return the display value.
- */
- public OperationDisplay display() {
- return this.display;
- }
-
- /**
- * Set the display property: The localized display information for this particular operation or action.
- *
- * @param display the display value to set.
- * @return the OperationInner object itself.
- */
- public OperationInner withDisplay(OperationDisplay display) {
- this.display = display;
- return this;
- }
-
- /**
- * Get the origin property: The intended executor of the operation.
- *
- * @return the origin value.
- */
- public String origin() {
- return this.origin;
- }
-
- /**
- * Set the origin property: The intended executor of the operation.
- *
- * @param origin the origin value to set.
- * @return the OperationInner object itself.
- */
- public OperationInner withOrigin(String origin) {
- this.origin = origin;
- return this;
- }
-
- /**
- * Get the properties property: Additional descriptions for the operation.
- *
- * @return the properties value.
- */
- public Map properties() {
- return this.properties;
- }
-
- /**
- * Set the properties property: Additional descriptions for the operation.
- *
- * @param properties the properties value to set.
- * @return the OperationInner object itself.
- */
- public OperationInner withProperties(Map properties) {
- this.properties = properties;
- return this;
- }
-
- /**
- * Validates the instance.
- *
- * @throws IllegalArgumentException thrown if the instance is not valid.
- */
- public void validate() {
- if (display() != null) {
- display().validate();
- }
- }
-}
diff --git a/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/models/OperationListResultInner.java b/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/models/OperationListResultInner.java
new file mode 100644
index 000000000000..1d0a19d0db7c
--- /dev/null
+++ b/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/models/OperationListResultInner.java
@@ -0,0 +1,55 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.mysqlflexibleserver.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.resourcemanager.mysqlflexibleserver.models.Operation;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import java.util.List;
+
+/** A list of resource provider operations. */
+@Fluent
+public final class OperationListResultInner {
+ /*
+ * The list of resource provider operations.
+ */
+ @JsonProperty(value = "value")
+ private List value;
+
+ /** Creates an instance of OperationListResultInner class. */
+ public OperationListResultInner() {
+ }
+
+ /**
+ * Get the value property: The list of resource provider operations.
+ *
+ * @return the value value.
+ */
+ public List value() {
+ return this.value;
+ }
+
+ /**
+ * Set the value property: The list of resource provider operations.
+ *
+ * @param value the value value to set.
+ * @return the OperationListResultInner object itself.
+ */
+ public OperationListResultInner withValue(List value) {
+ this.value = value;
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (value() != null) {
+ value().forEach(e -> e.validate());
+ }
+ }
+}
diff --git a/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/models/PerformanceTierPropertiesInner.java b/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/models/PerformanceTierPropertiesInner.java
new file mode 100644
index 000000000000..9eeba0a0ea8a
--- /dev/null
+++ b/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/models/PerformanceTierPropertiesInner.java
@@ -0,0 +1,238 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.mysqlflexibleserver.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.resourcemanager.mysqlflexibleserver.models.PerformanceTierServiceLevelObjectives;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import java.util.List;
+
+/** Performance tier properties. */
+@Fluent
+public final class PerformanceTierPropertiesInner {
+ /*
+ * ID of the performance tier.
+ */
+ @JsonProperty(value = "id")
+ private String id;
+
+ /*
+ * Maximum Backup retention in days for the performance tier edition
+ */
+ @JsonProperty(value = "maxBackupRetentionDays")
+ private Integer maxBackupRetentionDays;
+
+ /*
+ * Minimum Backup retention in days for the performance tier edition
+ */
+ @JsonProperty(value = "minBackupRetentionDays")
+ private Integer minBackupRetentionDays;
+
+ /*
+ * Max storage allowed for a server.
+ */
+ @JsonProperty(value = "maxStorageMB")
+ private Integer maxStorageMB;
+
+ /*
+ * Max storage allowed for a server.
+ */
+ @JsonProperty(value = "minLargeStorageMB")
+ private Integer minLargeStorageMB;
+
+ /*
+ * Max storage allowed for a server.
+ */
+ @JsonProperty(value = "maxLargeStorageMB")
+ private Integer maxLargeStorageMB;
+
+ /*
+ * Max storage allowed for a server.
+ */
+ @JsonProperty(value = "minStorageMB")
+ private Integer minStorageMB;
+
+ /*
+ * Service level objectives associated with the performance tier
+ */
+ @JsonProperty(value = "serviceLevelObjectives")
+ private List serviceLevelObjectives;
+
+ /** Creates an instance of PerformanceTierPropertiesInner class. */
+ public PerformanceTierPropertiesInner() {
+ }
+
+ /**
+ * Get the id property: ID of the performance tier.
+ *
+ * @return the id value.
+ */
+ public String id() {
+ return this.id;
+ }
+
+ /**
+ * Set the id property: ID of the performance tier.
+ *
+ * @param id the id value to set.
+ * @return the PerformanceTierPropertiesInner object itself.
+ */
+ public PerformanceTierPropertiesInner withId(String id) {
+ this.id = id;
+ return this;
+ }
+
+ /**
+ * Get the maxBackupRetentionDays property: Maximum Backup retention in days for the performance tier edition.
+ *
+ * @return the maxBackupRetentionDays value.
+ */
+ public Integer maxBackupRetentionDays() {
+ return this.maxBackupRetentionDays;
+ }
+
+ /**
+ * Set the maxBackupRetentionDays property: Maximum Backup retention in days for the performance tier edition.
+ *
+ * @param maxBackupRetentionDays the maxBackupRetentionDays value to set.
+ * @return the PerformanceTierPropertiesInner object itself.
+ */
+ public PerformanceTierPropertiesInner withMaxBackupRetentionDays(Integer maxBackupRetentionDays) {
+ this.maxBackupRetentionDays = maxBackupRetentionDays;
+ return this;
+ }
+
+ /**
+ * Get the minBackupRetentionDays property: Minimum Backup retention in days for the performance tier edition.
+ *
+ * @return the minBackupRetentionDays value.
+ */
+ public Integer minBackupRetentionDays() {
+ return this.minBackupRetentionDays;
+ }
+
+ /**
+ * Set the minBackupRetentionDays property: Minimum Backup retention in days for the performance tier edition.
+ *
+ * @param minBackupRetentionDays the minBackupRetentionDays value to set.
+ * @return the PerformanceTierPropertiesInner object itself.
+ */
+ public PerformanceTierPropertiesInner withMinBackupRetentionDays(Integer minBackupRetentionDays) {
+ this.minBackupRetentionDays = minBackupRetentionDays;
+ return this;
+ }
+
+ /**
+ * Get the maxStorageMB property: Max storage allowed for a server.
+ *
+ * @return the maxStorageMB value.
+ */
+ public Integer maxStorageMB() {
+ return this.maxStorageMB;
+ }
+
+ /**
+ * Set the maxStorageMB property: Max storage allowed for a server.
+ *
+ * @param maxStorageMB the maxStorageMB value to set.
+ * @return the PerformanceTierPropertiesInner object itself.
+ */
+ public PerformanceTierPropertiesInner withMaxStorageMB(Integer maxStorageMB) {
+ this.maxStorageMB = maxStorageMB;
+ return this;
+ }
+
+ /**
+ * Get the minLargeStorageMB property: Max storage allowed for a server.
+ *
+ * @return the minLargeStorageMB value.
+ */
+ public Integer minLargeStorageMB() {
+ return this.minLargeStorageMB;
+ }
+
+ /**
+ * Set the minLargeStorageMB property: Max storage allowed for a server.
+ *
+ * @param minLargeStorageMB the minLargeStorageMB value to set.
+ * @return the PerformanceTierPropertiesInner object itself.
+ */
+ public PerformanceTierPropertiesInner withMinLargeStorageMB(Integer minLargeStorageMB) {
+ this.minLargeStorageMB = minLargeStorageMB;
+ return this;
+ }
+
+ /**
+ * Get the maxLargeStorageMB property: Max storage allowed for a server.
+ *
+ * @return the maxLargeStorageMB value.
+ */
+ public Integer maxLargeStorageMB() {
+ return this.maxLargeStorageMB;
+ }
+
+ /**
+ * Set the maxLargeStorageMB property: Max storage allowed for a server.
+ *
+ * @param maxLargeStorageMB the maxLargeStorageMB value to set.
+ * @return the PerformanceTierPropertiesInner object itself.
+ */
+ public PerformanceTierPropertiesInner withMaxLargeStorageMB(Integer maxLargeStorageMB) {
+ this.maxLargeStorageMB = maxLargeStorageMB;
+ return this;
+ }
+
+ /**
+ * Get the minStorageMB property: Max storage allowed for a server.
+ *
+ * @return the minStorageMB value.
+ */
+ public Integer minStorageMB() {
+ return this.minStorageMB;
+ }
+
+ /**
+ * Set the minStorageMB property: Max storage allowed for a server.
+ *
+ * @param minStorageMB the minStorageMB value to set.
+ * @return the PerformanceTierPropertiesInner object itself.
+ */
+ public PerformanceTierPropertiesInner withMinStorageMB(Integer minStorageMB) {
+ this.minStorageMB = minStorageMB;
+ return this;
+ }
+
+ /**
+ * Get the serviceLevelObjectives property: Service level objectives associated with the performance tier.
+ *
+ * @return the serviceLevelObjectives value.
+ */
+ public List serviceLevelObjectives() {
+ return this.serviceLevelObjectives;
+ }
+
+ /**
+ * Set the serviceLevelObjectives property: Service level objectives associated with the performance tier.
+ *
+ * @param serviceLevelObjectives the serviceLevelObjectives value to set.
+ * @return the PerformanceTierPropertiesInner object itself.
+ */
+ public PerformanceTierPropertiesInner withServiceLevelObjectives(
+ List serviceLevelObjectives) {
+ this.serviceLevelObjectives = serviceLevelObjectives;
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (serviceLevelObjectives() != null) {
+ serviceLevelObjectives().forEach(e -> e.validate());
+ }
+ }
+}
diff --git a/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/models/PrivateEndpointConnectionInner.java b/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/models/PrivateEndpointConnectionInner.java
new file mode 100644
index 000000000000..6e3bd60a5274
--- /dev/null
+++ b/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/models/PrivateEndpointConnectionInner.java
@@ -0,0 +1,101 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.mysqlflexibleserver.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.management.ProxyResource;
+import com.azure.resourcemanager.mysqlflexibleserver.models.PrivateEndpointProperty;
+import com.azure.resourcemanager.mysqlflexibleserver.models.PrivateLinkServiceConnectionStateProperty;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/** A private endpoint connection. */
+@Fluent
+public final class PrivateEndpointConnectionInner extends ProxyResource {
+ /*
+ * Resource properties.
+ */
+ @JsonProperty(value = "properties")
+ private PrivateEndpointConnectionProperties innerProperties;
+
+ /** Creates an instance of PrivateEndpointConnectionInner class. */
+ public PrivateEndpointConnectionInner() {
+ }
+
+ /**
+ * Get the innerProperties property: Resource properties.
+ *
+ * @return the innerProperties value.
+ */
+ private PrivateEndpointConnectionProperties innerProperties() {
+ return this.innerProperties;
+ }
+
+ /**
+ * Get the privateEndpoint property: Private endpoint which the connection belongs to.
+ *
+ * @return the privateEndpoint value.
+ */
+ public PrivateEndpointProperty privateEndpoint() {
+ return this.innerProperties() == null ? null : this.innerProperties().privateEndpoint();
+ }
+
+ /**
+ * Set the privateEndpoint property: Private endpoint which the connection belongs to.
+ *
+ * @param privateEndpoint the privateEndpoint value to set.
+ * @return the PrivateEndpointConnectionInner object itself.
+ */
+ public PrivateEndpointConnectionInner withPrivateEndpoint(PrivateEndpointProperty privateEndpoint) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new PrivateEndpointConnectionProperties();
+ }
+ this.innerProperties().withPrivateEndpoint(privateEndpoint);
+ return this;
+ }
+
+ /**
+ * Get the privateLinkServiceConnectionState property: Connection state of the private endpoint connection.
+ *
+ * @return the privateLinkServiceConnectionState value.
+ */
+ public PrivateLinkServiceConnectionStateProperty privateLinkServiceConnectionState() {
+ return this.innerProperties() == null ? null : this.innerProperties().privateLinkServiceConnectionState();
+ }
+
+ /**
+ * Set the privateLinkServiceConnectionState property: Connection state of the private endpoint connection.
+ *
+ * @param privateLinkServiceConnectionState the privateLinkServiceConnectionState value to set.
+ * @return the PrivateEndpointConnectionInner object itself.
+ */
+ public PrivateEndpointConnectionInner withPrivateLinkServiceConnectionState(
+ PrivateLinkServiceConnectionStateProperty privateLinkServiceConnectionState) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new PrivateEndpointConnectionProperties();
+ }
+ this.innerProperties().withPrivateLinkServiceConnectionState(privateLinkServiceConnectionState);
+ return this;
+ }
+
+ /**
+ * Get the provisioningState property: State of the private endpoint connection.
+ *
+ * @return the provisioningState value.
+ */
+ public String provisioningState() {
+ return this.innerProperties() == null ? null : this.innerProperties().provisioningState();
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (innerProperties() != null) {
+ innerProperties().validate();
+ }
+ }
+}
diff --git a/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/models/PrivateEndpointConnectionProperties.java b/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/models/PrivateEndpointConnectionProperties.java
new file mode 100644
index 000000000000..b1b0a8f25a31
--- /dev/null
+++ b/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/models/PrivateEndpointConnectionProperties.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.mysqlflexibleserver.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.resourcemanager.mysqlflexibleserver.models.PrivateEndpointProperty;
+import com.azure.resourcemanager.mysqlflexibleserver.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;
+
+ /** Creates an instance of PrivateEndpointConnectionProperties class. */
+ public PrivateEndpointConnectionProperties() {
+ }
+
+ /**
+ * 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/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/models/PrivateLinkResourceInner.java b/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/models/PrivateLinkResourceInner.java
new file mode 100644
index 000000000000..0b47f84330c4
--- /dev/null
+++ b/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/models/PrivateLinkResourceInner.java
@@ -0,0 +1,44 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.mysqlflexibleserver.fluent.models;
+
+import com.azure.core.annotation.Immutable;
+import com.azure.core.management.ProxyResource;
+import com.azure.resourcemanager.mysqlflexibleserver.models.PrivateLinkResourceProperties;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/** A private link resource. */
+@Immutable
+public final class PrivateLinkResourceInner extends ProxyResource {
+ /*
+ * The private link resource group id.
+ */
+ @JsonProperty(value = "properties", access = JsonProperty.Access.WRITE_ONLY)
+ private PrivateLinkResourceProperties properties;
+
+ /** Creates an instance of PrivateLinkResourceInner class. */
+ public PrivateLinkResourceInner() {
+ }
+
+ /**
+ * Get the properties property: The private link resource group id.
+ *
+ * @return the properties value.
+ */
+ public PrivateLinkResourceProperties properties() {
+ return this.properties;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (properties() != null) {
+ properties().validate();
+ }
+ }
+}
diff --git a/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/models/QueryPerformanceInsightResetDataResultInner.java b/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/models/QueryPerformanceInsightResetDataResultInner.java
new file mode 100644
index 000000000000..632136ffe65b
--- /dev/null
+++ b/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/models/QueryPerformanceInsightResetDataResultInner.java
@@ -0,0 +1,77 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.mysqlflexibleserver.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.resourcemanager.mysqlflexibleserver.models.QueryPerformanceInsightResetDataResultState;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/** Result of Query Performance Insight data reset. */
+@Fluent
+public final class QueryPerformanceInsightResetDataResultInner {
+ /*
+ * Indicates result of the operation.
+ */
+ @JsonProperty(value = "status")
+ private QueryPerformanceInsightResetDataResultState status;
+
+ /*
+ * operation message.
+ */
+ @JsonProperty(value = "message")
+ private String message;
+
+ /** Creates an instance of QueryPerformanceInsightResetDataResultInner class. */
+ public QueryPerformanceInsightResetDataResultInner() {
+ }
+
+ /**
+ * Get the status property: Indicates result of the operation.
+ *
+ * @return the status value.
+ */
+ public QueryPerformanceInsightResetDataResultState status() {
+ return this.status;
+ }
+
+ /**
+ * Set the status property: Indicates result of the operation.
+ *
+ * @param status the status value to set.
+ * @return the QueryPerformanceInsightResetDataResultInner object itself.
+ */
+ public QueryPerformanceInsightResetDataResultInner withStatus(QueryPerformanceInsightResetDataResultState status) {
+ this.status = status;
+ return this;
+ }
+
+ /**
+ * Get the message property: operation message.
+ *
+ * @return the message value.
+ */
+ public String message() {
+ return this.message;
+ }
+
+ /**
+ * Set the message property: operation message.
+ *
+ * @param message the message value to set.
+ * @return the QueryPerformanceInsightResetDataResultInner object itself.
+ */
+ public QueryPerformanceInsightResetDataResultInner withMessage(String message) {
+ this.message = message;
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ }
+}
diff --git a/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/models/QueryStatisticInner.java b/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/models/QueryStatisticInner.java
new file mode 100644
index 000000000000..9597848dad88
--- /dev/null
+++ b/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/models/QueryStatisticInner.java
@@ -0,0 +1,275 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.mysqlflexibleserver.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.management.ProxyResource;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import java.time.OffsetDateTime;
+import java.util.List;
+
+/** Represents a Query Statistic. */
+@Fluent
+public final class QueryStatisticInner extends ProxyResource {
+ /*
+ * The properties of a query statistic.
+ */
+ @JsonProperty(value = "properties")
+ private QueryStatisticProperties innerProperties;
+
+ /** Creates an instance of QueryStatisticInner class. */
+ public QueryStatisticInner() {
+ }
+
+ /**
+ * Get the innerProperties property: The properties of a query statistic.
+ *
+ * @return the innerProperties value.
+ */
+ private QueryStatisticProperties innerProperties() {
+ return this.innerProperties;
+ }
+
+ /**
+ * Get the queryId property: Database query identifier.
+ *
+ * @return the queryId value.
+ */
+ public String queryId() {
+ return this.innerProperties() == null ? null : this.innerProperties().queryId();
+ }
+
+ /**
+ * Set the queryId property: Database query identifier.
+ *
+ * @param queryId the queryId value to set.
+ * @return the QueryStatisticInner object itself.
+ */
+ public QueryStatisticInner withQueryId(String queryId) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new QueryStatisticProperties();
+ }
+ this.innerProperties().withQueryId(queryId);
+ return this;
+ }
+
+ /**
+ * Get the startTime property: Observation start time.
+ *
+ * @return the startTime value.
+ */
+ public OffsetDateTime startTime() {
+ return this.innerProperties() == null ? null : this.innerProperties().startTime();
+ }
+
+ /**
+ * Set the startTime property: Observation start time.
+ *
+ * @param startTime the startTime value to set.
+ * @return the QueryStatisticInner object itself.
+ */
+ public QueryStatisticInner withStartTime(OffsetDateTime startTime) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new QueryStatisticProperties();
+ }
+ this.innerProperties().withStartTime(startTime);
+ return this;
+ }
+
+ /**
+ * Get the endTime property: Observation end time.
+ *
+ * @return the endTime value.
+ */
+ public OffsetDateTime endTime() {
+ return this.innerProperties() == null ? null : this.innerProperties().endTime();
+ }
+
+ /**
+ * Set the endTime property: Observation end time.
+ *
+ * @param endTime the endTime value to set.
+ * @return the QueryStatisticInner object itself.
+ */
+ public QueryStatisticInner withEndTime(OffsetDateTime endTime) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new QueryStatisticProperties();
+ }
+ this.innerProperties().withEndTime(endTime);
+ return this;
+ }
+
+ /**
+ * Get the aggregationFunction property: Aggregation function name.
+ *
+ * @return the aggregationFunction value.
+ */
+ public String aggregationFunction() {
+ return this.innerProperties() == null ? null : this.innerProperties().aggregationFunction();
+ }
+
+ /**
+ * Set the aggregationFunction property: Aggregation function name.
+ *
+ * @param aggregationFunction the aggregationFunction value to set.
+ * @return the QueryStatisticInner object itself.
+ */
+ public QueryStatisticInner withAggregationFunction(String aggregationFunction) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new QueryStatisticProperties();
+ }
+ this.innerProperties().withAggregationFunction(aggregationFunction);
+ return this;
+ }
+
+ /**
+ * Get the databaseNames property: The list of database names.
+ *
+ * @return the databaseNames value.
+ */
+ public List databaseNames() {
+ return this.innerProperties() == null ? null : this.innerProperties().databaseNames();
+ }
+
+ /**
+ * Set the databaseNames property: The list of database names.
+ *
+ * @param databaseNames the databaseNames value to set.
+ * @return the QueryStatisticInner object itself.
+ */
+ public QueryStatisticInner withDatabaseNames(List databaseNames) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new QueryStatisticProperties();
+ }
+ this.innerProperties().withDatabaseNames(databaseNames);
+ return this;
+ }
+
+ /**
+ * Get the queryExecutionCount property: Number of query executions in this time interval.
+ *
+ * @return the queryExecutionCount value.
+ */
+ public Long queryExecutionCount() {
+ return this.innerProperties() == null ? null : this.innerProperties().queryExecutionCount();
+ }
+
+ /**
+ * Set the queryExecutionCount property: Number of query executions in this time interval.
+ *
+ * @param queryExecutionCount the queryExecutionCount value to set.
+ * @return the QueryStatisticInner object itself.
+ */
+ public QueryStatisticInner withQueryExecutionCount(Long queryExecutionCount) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new QueryStatisticProperties();
+ }
+ this.innerProperties().withQueryExecutionCount(queryExecutionCount);
+ return this;
+ }
+
+ /**
+ * Get the metricName property: Metric name.
+ *
+ * @return the metricName value.
+ */
+ public String metricName() {
+ return this.innerProperties() == null ? null : this.innerProperties().metricName();
+ }
+
+ /**
+ * Set the metricName property: Metric name.
+ *
+ * @param metricName the metricName value to set.
+ * @return the QueryStatisticInner object itself.
+ */
+ public QueryStatisticInner withMetricName(String metricName) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new QueryStatisticProperties();
+ }
+ this.innerProperties().withMetricName(metricName);
+ return this;
+ }
+
+ /**
+ * Get the metricDisplayName property: Metric display name.
+ *
+ * @return the metricDisplayName value.
+ */
+ public String metricDisplayName() {
+ return this.innerProperties() == null ? null : this.innerProperties().metricDisplayName();
+ }
+
+ /**
+ * Set the metricDisplayName property: Metric display name.
+ *
+ * @param metricDisplayName the metricDisplayName value to set.
+ * @return the QueryStatisticInner object itself.
+ */
+ public QueryStatisticInner withMetricDisplayName(String metricDisplayName) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new QueryStatisticProperties();
+ }
+ this.innerProperties().withMetricDisplayName(metricDisplayName);
+ return this;
+ }
+
+ /**
+ * Get the metricValue property: Metric value.
+ *
+ * @return the metricValue value.
+ */
+ public Double metricValue() {
+ return this.innerProperties() == null ? null : this.innerProperties().metricValue();
+ }
+
+ /**
+ * Set the metricValue property: Metric value.
+ *
+ * @param metricValue the metricValue value to set.
+ * @return the QueryStatisticInner object itself.
+ */
+ public QueryStatisticInner withMetricValue(Double metricValue) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new QueryStatisticProperties();
+ }
+ this.innerProperties().withMetricValue(metricValue);
+ return this;
+ }
+
+ /**
+ * Get the metricValueUnit property: Metric value unit.
+ *
+ * @return the metricValueUnit value.
+ */
+ public String metricValueUnit() {
+ return this.innerProperties() == null ? null : this.innerProperties().metricValueUnit();
+ }
+
+ /**
+ * Set the metricValueUnit property: Metric value unit.
+ *
+ * @param metricValueUnit the metricValueUnit value to set.
+ * @return the QueryStatisticInner object itself.
+ */
+ public QueryStatisticInner withMetricValueUnit(String metricValueUnit) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new QueryStatisticProperties();
+ }
+ this.innerProperties().withMetricValueUnit(metricValueUnit);
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (innerProperties() != null) {
+ innerProperties().validate();
+ }
+ }
+}
diff --git a/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/models/QueryStatisticProperties.java b/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/models/QueryStatisticProperties.java
new file mode 100644
index 000000000000..a682aa881222
--- /dev/null
+++ b/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/models/QueryStatisticProperties.java
@@ -0,0 +1,286 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.mysqlflexibleserver.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;
+
+ /** Creates an instance of QueryStatisticProperties class. */
+ public QueryStatisticProperties() {
+ }
+
+ /**
+ * 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/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/models/QueryTextInner.java b/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/models/QueryTextInner.java
new file mode 100644
index 000000000000..fa1bd783c891
--- /dev/null
+++ b/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/models/QueryTextInner.java
@@ -0,0 +1,89 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.mysqlflexibleserver.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.management.ProxyResource;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/** Represents a Query Text. */
+@Fluent
+public final class QueryTextInner extends ProxyResource {
+ /*
+ * The properties of a query text.
+ */
+ @JsonProperty(value = "properties")
+ private QueryTextProperties innerProperties;
+
+ /** Creates an instance of QueryTextInner class. */
+ public QueryTextInner() {
+ }
+
+ /**
+ * Get the innerProperties property: The properties of a query text.
+ *
+ * @return the innerProperties value.
+ */
+ private QueryTextProperties innerProperties() {
+ return this.innerProperties;
+ }
+
+ /**
+ * Get the queryId property: Query identifier unique to the server.
+ *
+ * @return the queryId value.
+ */
+ public String queryId() {
+ return this.innerProperties() == null ? null : this.innerProperties().queryId();
+ }
+
+ /**
+ * Set the queryId property: Query identifier unique to the server.
+ *
+ * @param queryId the queryId value to set.
+ * @return the QueryTextInner object itself.
+ */
+ public QueryTextInner withQueryId(String queryId) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new QueryTextProperties();
+ }
+ this.innerProperties().withQueryId(queryId);
+ return this;
+ }
+
+ /**
+ * Get the queryText property: Query text.
+ *
+ * @return the queryText value.
+ */
+ public String queryText() {
+ return this.innerProperties() == null ? null : this.innerProperties().queryText();
+ }
+
+ /**
+ * Set the queryText property: Query text.
+ *
+ * @param queryText the queryText value to set.
+ * @return the QueryTextInner object itself.
+ */
+ public QueryTextInner withQueryText(String queryText) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new QueryTextProperties();
+ }
+ this.innerProperties().withQueryText(queryText);
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (innerProperties() != null) {
+ innerProperties().validate();
+ }
+ }
+}
diff --git a/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/models/QueryTextProperties.java b/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/models/QueryTextProperties.java
new file mode 100644
index 000000000000..76c98a6d2b1b
--- /dev/null
+++ b/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/models/QueryTextProperties.java
@@ -0,0 +1,76 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.mysqlflexibleserver.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;
+
+ /** Creates an instance of QueryTextProperties class. */
+ public QueryTextProperties() {
+ }
+
+ /**
+ * 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/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/models/RecommendationActionInner.java b/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/models/RecommendationActionInner.java
new file mode 100644
index 000000000000..35aa44965762
--- /dev/null
+++ b/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/models/RecommendationActionInner.java
@@ -0,0 +1,229 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.mysqlflexibleserver.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.management.ProxyResource;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import java.time.OffsetDateTime;
+import java.util.Map;
+
+/** Represents a Recommendation Action. */
+@Fluent
+public final class RecommendationActionInner extends ProxyResource {
+ /*
+ * The properties of a recommendation action.
+ */
+ @JsonProperty(value = "properties")
+ private RecommendationActionProperties innerProperties;
+
+ /** Creates an instance of RecommendationActionInner class. */
+ public RecommendationActionInner() {
+ }
+
+ /**
+ * Get the innerProperties property: The properties of a recommendation action.
+ *
+ * @return the innerProperties value.
+ */
+ private RecommendationActionProperties innerProperties() {
+ return this.innerProperties;
+ }
+
+ /**
+ * Get the advisorName property: Advisor name.
+ *
+ * @return the advisorName value.
+ */
+ public String advisorName() {
+ return this.innerProperties() == null ? null : this.innerProperties().advisorName();
+ }
+
+ /**
+ * Set the advisorName property: Advisor name.
+ *
+ * @param advisorName the advisorName value to set.
+ * @return the RecommendationActionInner object itself.
+ */
+ public RecommendationActionInner withAdvisorName(String advisorName) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new RecommendationActionProperties();
+ }
+ this.innerProperties().withAdvisorName(advisorName);
+ return this;
+ }
+
+ /**
+ * Get the sessionId property: Recommendation action session identifier.
+ *
+ * @return the sessionId value.
+ */
+ public String sessionId() {
+ return this.innerProperties() == null ? null : this.innerProperties().sessionId();
+ }
+
+ /**
+ * Set the sessionId property: Recommendation action session identifier.
+ *
+ * @param sessionId the sessionId value to set.
+ * @return the RecommendationActionInner object itself.
+ */
+ public RecommendationActionInner withSessionId(String sessionId) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new RecommendationActionProperties();
+ }
+ this.innerProperties().withSessionId(sessionId);
+ return this;
+ }
+
+ /**
+ * Get the actionId property: Recommendation action identifier.
+ *
+ * @return the actionId value.
+ */
+ public Integer actionId() {
+ return this.innerProperties() == null ? null : this.innerProperties().actionId();
+ }
+
+ /**
+ * Set the actionId property: Recommendation action identifier.
+ *
+ * @param actionId the actionId value to set.
+ * @return the RecommendationActionInner object itself.
+ */
+ public RecommendationActionInner withActionId(Integer actionId) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new RecommendationActionProperties();
+ }
+ this.innerProperties().withActionId(actionId);
+ return this;
+ }
+
+ /**
+ * Get the createdTime property: Recommendation action creation time.
+ *
+ * @return the createdTime value.
+ */
+ public OffsetDateTime createdTime() {
+ return this.innerProperties() == null ? null : this.innerProperties().createdTime();
+ }
+
+ /**
+ * Set the createdTime property: Recommendation action creation time.
+ *
+ * @param createdTime the createdTime value to set.
+ * @return the RecommendationActionInner object itself.
+ */
+ public RecommendationActionInner withCreatedTime(OffsetDateTime createdTime) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new RecommendationActionProperties();
+ }
+ this.innerProperties().withCreatedTime(createdTime);
+ return this;
+ }
+
+ /**
+ * Get the expirationTime property: Recommendation action expiration time.
+ *
+ * @return the expirationTime value.
+ */
+ public OffsetDateTime expirationTime() {
+ return this.innerProperties() == null ? null : this.innerProperties().expirationTime();
+ }
+
+ /**
+ * Set the expirationTime property: Recommendation action expiration time.
+ *
+ * @param expirationTime the expirationTime value to set.
+ * @return the RecommendationActionInner object itself.
+ */
+ public RecommendationActionInner withExpirationTime(OffsetDateTime expirationTime) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new RecommendationActionProperties();
+ }
+ this.innerProperties().withExpirationTime(expirationTime);
+ return this;
+ }
+
+ /**
+ * Get the reason property: Recommendation action reason.
+ *
+ * @return the reason value.
+ */
+ public String reason() {
+ return this.innerProperties() == null ? null : this.innerProperties().reason();
+ }
+
+ /**
+ * Set the reason property: Recommendation action reason.
+ *
+ * @param reason the reason value to set.
+ * @return the RecommendationActionInner object itself.
+ */
+ public RecommendationActionInner withReason(String reason) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new RecommendationActionProperties();
+ }
+ this.innerProperties().withReason(reason);
+ return this;
+ }
+
+ /**
+ * Get the recommendationType property: Recommendation action type.
+ *
+ * @return the recommendationType value.
+ */
+ public String recommendationType() {
+ return this.innerProperties() == null ? null : this.innerProperties().recommendationType();
+ }
+
+ /**
+ * Set the recommendationType property: Recommendation action type.
+ *
+ * @param recommendationType the recommendationType value to set.
+ * @return the RecommendationActionInner object itself.
+ */
+ public RecommendationActionInner withRecommendationType(String recommendationType) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new RecommendationActionProperties();
+ }
+ this.innerProperties().withRecommendationType(recommendationType);
+ return this;
+ }
+
+ /**
+ * Get the details property: Recommendation action details.
+ *
+ * @return the details value.
+ */
+ public Map details() {
+ return this.innerProperties() == null ? null : this.innerProperties().details();
+ }
+
+ /**
+ * Set the details property: Recommendation action details.
+ *
+ * @param details the details value to set.
+ * @return the RecommendationActionInner object itself.
+ */
+ public RecommendationActionInner withDetails(Map details) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new RecommendationActionProperties();
+ }
+ this.innerProperties().withDetails(details);
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (innerProperties() != null) {
+ innerProperties().validate();
+ }
+ }
+}
diff --git a/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/models/RecommendationActionProperties.java b/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/models/RecommendationActionProperties.java
new file mode 100644
index 000000000000..a8fde2981ecf
--- /dev/null
+++ b/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/models/RecommendationActionProperties.java
@@ -0,0 +1,236 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.mysqlflexibleserver.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;
+
+ /** Creates an instance of RecommendationActionProperties class. */
+ public RecommendationActionProperties() {
+ }
+
+ /**
+ * 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/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/models/RecommendedActionSessionsOperationStatusInner.java b/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/models/RecommendedActionSessionsOperationStatusInner.java
new file mode 100644
index 000000000000..9c589e7917ec
--- /dev/null
+++ b/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/models/RecommendedActionSessionsOperationStatusInner.java
@@ -0,0 +1,103 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.mysqlflexibleserver.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import java.time.OffsetDateTime;
+
+/** Recommendation action session operation status. */
+@Fluent
+public final class RecommendedActionSessionsOperationStatusInner {
+ /*
+ * Operation identifier.
+ */
+ @JsonProperty(value = "name")
+ private String name;
+
+ /*
+ * Operation start time.
+ */
+ @JsonProperty(value = "startTime")
+ private OffsetDateTime startTime;
+
+ /*
+ * Operation status.
+ */
+ @JsonProperty(value = "status")
+ private String status;
+
+ /** Creates an instance of RecommendedActionSessionsOperationStatusInner class. */
+ public RecommendedActionSessionsOperationStatusInner() {
+ }
+
+ /**
+ * Get the name property: Operation identifier.
+ *
+ * @return the name value.
+ */
+ public String name() {
+ return this.name;
+ }
+
+ /**
+ * Set the name property: Operation identifier.
+ *
+ * @param name the name value to set.
+ * @return the RecommendedActionSessionsOperationStatusInner object itself.
+ */
+ public RecommendedActionSessionsOperationStatusInner withName(String name) {
+ this.name = name;
+ return this;
+ }
+
+ /**
+ * Get the startTime property: Operation start time.
+ *
+ * @return the startTime value.
+ */
+ public OffsetDateTime startTime() {
+ return this.startTime;
+ }
+
+ /**
+ * Set the startTime property: Operation start time.
+ *
+ * @param startTime the startTime value to set.
+ * @return the RecommendedActionSessionsOperationStatusInner object itself.
+ */
+ public RecommendedActionSessionsOperationStatusInner withStartTime(OffsetDateTime startTime) {
+ this.startTime = startTime;
+ return this;
+ }
+
+ /**
+ * Get the status property: Operation status.
+ *
+ * @return the status value.
+ */
+ public String status() {
+ return this.status;
+ }
+
+ /**
+ * Set the status property: Operation status.
+ *
+ * @param status the status value to set.
+ * @return the RecommendedActionSessionsOperationStatusInner object itself.
+ */
+ public RecommendedActionSessionsOperationStatusInner withStatus(String status) {
+ this.status = status;
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ }
+}
diff --git a/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/models/RecoverableServerProperties.java b/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/models/RecoverableServerProperties.java
new file mode 100644
index 000000000000..f4dcb70141a3
--- /dev/null
+++ b/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/models/RecoverableServerProperties.java
@@ -0,0 +1,114 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.mysqlflexibleserver.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 MySQL version
+ */
+ @JsonProperty(value = "version", access = JsonProperty.Access.WRITE_ONLY)
+ private String version;
+
+ /** Creates an instance of RecoverableServerProperties class. */
+ public RecoverableServerProperties() {
+ }
+
+ /**
+ * 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 MySQL 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/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/models/RecoverableServerResourceInner.java b/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/models/RecoverableServerResourceInner.java
new file mode 100644
index 000000000000..925a22de78d5
--- /dev/null
+++ b/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/models/RecoverableServerResourceInner.java
@@ -0,0 +1,97 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.mysqlflexibleserver.fluent.models;
+
+import com.azure.core.annotation.Immutable;
+import com.azure.core.management.ProxyResource;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/** A recoverable server resource. */
+@Immutable
+public final class RecoverableServerResourceInner extends ProxyResource {
+ /*
+ * Resource properties.
+ */
+ @JsonProperty(value = "properties")
+ private RecoverableServerProperties innerProperties;
+
+ /** Creates an instance of RecoverableServerResourceInner class. */
+ public RecoverableServerResourceInner() {
+ }
+
+ /**
+ * Get the innerProperties property: Resource properties.
+ *
+ * @return the innerProperties value.
+ */
+ private RecoverableServerProperties innerProperties() {
+ return this.innerProperties;
+ }
+
+ /**
+ * Get the lastAvailableBackupDateTime property: The last available backup date time.
+ *
+ * @return the lastAvailableBackupDateTime value.
+ */
+ public String lastAvailableBackupDateTime() {
+ return this.innerProperties() == null ? null : this.innerProperties().lastAvailableBackupDateTime();
+ }
+
+ /**
+ * Get the serviceLevelObjective property: The service level objective.
+ *
+ * @return the serviceLevelObjective value.
+ */
+ public String serviceLevelObjective() {
+ return this.innerProperties() == null ? null : this.innerProperties().serviceLevelObjective();
+ }
+
+ /**
+ * Get the edition property: Edition of the performance tier.
+ *
+ * @return the edition value.
+ */
+ public String edition() {
+ return this.innerProperties() == null ? null : this.innerProperties().edition();
+ }
+
+ /**
+ * Get the vCore property: vCore associated with the service level objective.
+ *
+ * @return the vCore value.
+ */
+ public Integer vCore() {
+ return this.innerProperties() == null ? null : this.innerProperties().vCore();
+ }
+
+ /**
+ * Get the hardwareGeneration property: Hardware generation associated with the service level objective.
+ *
+ * @return the hardwareGeneration value.
+ */
+ public String hardwareGeneration() {
+ return this.innerProperties() == null ? null : this.innerProperties().hardwareGeneration();
+ }
+
+ /**
+ * Get the version property: The MySQL version.
+ *
+ * @return the version value.
+ */
+ public String version() {
+ return this.innerProperties() == null ? null : this.innerProperties().version();
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (innerProperties() != null) {
+ innerProperties().validate();
+ }
+ }
+}
diff --git a/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/models/SecurityAlertPolicyProperties.java b/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/models/SecurityAlertPolicyProperties.java
new file mode 100644
index 000000000000..425a8e263235
--- /dev/null
+++ b/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/models/SecurityAlertPolicyProperties.java
@@ -0,0 +1,225 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.mysqlflexibleserver.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.util.logging.ClientLogger;
+import com.azure.resourcemanager.mysqlflexibleserver.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;
+
+ /** Creates an instance of SecurityAlertPolicyProperties class. */
+ public SecurityAlertPolicyProperties() {
+ }
+
+ /**
+ * 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/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/models/ServerAdministratorProperties.java b/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/models/ServerAdministratorProperties.java
new file mode 100644
index 000000000000..01644ba524f4
--- /dev/null
+++ b/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/models/ServerAdministratorProperties.java
@@ -0,0 +1,157 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.mysqlflexibleserver.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.util.logging.ClientLogger;
+import com.azure.resourcemanager.mysqlflexibleserver.models.AdministratorType;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import java.util.UUID;
+
+/** The properties of an server Administrator. */
+@Fluent
+public final class ServerAdministratorProperties {
+ /*
+ * The type of administrator.
+ */
+ @JsonProperty(value = "administratorType", required = true)
+ private AdministratorType administratorType;
+
+ /*
+ * The server administrator login account name.
+ */
+ @JsonProperty(value = "login", required = true)
+ private String login;
+
+ /*
+ * The server administrator Sid (Secure ID).
+ */
+ @JsonProperty(value = "sid", required = true)
+ private UUID sid;
+
+ /*
+ * The server Active Directory Administrator tenant id.
+ */
+ @JsonProperty(value = "tenantId", required = true)
+ private UUID tenantId;
+
+ /** Creates an instance of ServerAdministratorProperties class. */
+ public ServerAdministratorProperties() {
+ }
+
+ /**
+ * Get the administratorType property: The type of administrator.
+ *
+ * @return the administratorType value.
+ */
+ public AdministratorType administratorType() {
+ return this.administratorType;
+ }
+
+ /**
+ * Set the administratorType property: The type of administrator.
+ *
+ * @param administratorType the administratorType value to set.
+ * @return the ServerAdministratorProperties object itself.
+ */
+ public ServerAdministratorProperties withAdministratorType(AdministratorType administratorType) {
+ this.administratorType = administratorType;
+ return this;
+ }
+
+ /**
+ * Get the login property: The server administrator login account name.
+ *
+ * @return the login value.
+ */
+ public String login() {
+ return this.login;
+ }
+
+ /**
+ * Set the login property: The server administrator login account name.
+ *
+ * @param login the login value to set.
+ * @return the ServerAdministratorProperties object itself.
+ */
+ public ServerAdministratorProperties withLogin(String login) {
+ this.login = login;
+ return this;
+ }
+
+ /**
+ * Get the sid property: The server administrator Sid (Secure ID).
+ *
+ * @return the sid value.
+ */
+ public UUID sid() {
+ return this.sid;
+ }
+
+ /**
+ * Set the sid property: The server administrator Sid (Secure ID).
+ *
+ * @param sid the sid value to set.
+ * @return the ServerAdministratorProperties object itself.
+ */
+ public ServerAdministratorProperties withSid(UUID sid) {
+ this.sid = sid;
+ return this;
+ }
+
+ /**
+ * Get the tenantId property: The server Active Directory Administrator tenant id.
+ *
+ * @return the tenantId value.
+ */
+ public UUID tenantId() {
+ return this.tenantId;
+ }
+
+ /**
+ * Set the tenantId property: The server Active Directory Administrator tenant id.
+ *
+ * @param tenantId the tenantId value to set.
+ * @return the ServerAdministratorProperties object itself.
+ */
+ public ServerAdministratorProperties withTenantId(UUID tenantId) {
+ this.tenantId = tenantId;
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (administratorType() == null) {
+ throw LOGGER
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ "Missing required property administratorType in model ServerAdministratorProperties"));
+ }
+ if (login() == null) {
+ throw LOGGER
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ "Missing required property login in model ServerAdministratorProperties"));
+ }
+ if (sid() == null) {
+ throw LOGGER
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ "Missing required property sid in model ServerAdministratorProperties"));
+ }
+ if (tenantId() == null) {
+ throw LOGGER
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ "Missing required property tenantId in model ServerAdministratorProperties"));
+ }
+ }
+
+ private static final ClientLogger LOGGER = new ClientLogger(ServerAdministratorProperties.class);
+}
diff --git a/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/models/ServerAdministratorResourceInner.java b/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/models/ServerAdministratorResourceInner.java
new file mode 100644
index 000000000000..2cec40c411b7
--- /dev/null
+++ b/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/models/ServerAdministratorResourceInner.java
@@ -0,0 +1,137 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.mysqlflexibleserver.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.management.ProxyResource;
+import com.azure.resourcemanager.mysqlflexibleserver.models.AdministratorType;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import java.util.UUID;
+
+/** Represents a and external administrator to be created. */
+@Fluent
+public final class ServerAdministratorResourceInner extends ProxyResource {
+ /*
+ * Properties of the server AAD administrator.
+ */
+ @JsonProperty(value = "properties")
+ private ServerAdministratorProperties innerProperties;
+
+ /** Creates an instance of ServerAdministratorResourceInner class. */
+ public ServerAdministratorResourceInner() {
+ }
+
+ /**
+ * Get the innerProperties property: Properties of the server AAD administrator.
+ *
+ * @return the innerProperties value.
+ */
+ private ServerAdministratorProperties innerProperties() {
+ return this.innerProperties;
+ }
+
+ /**
+ * Get the administratorType property: The type of administrator.
+ *
+ * @return the administratorType value.
+ */
+ public AdministratorType administratorType() {
+ return this.innerProperties() == null ? null : this.innerProperties().administratorType();
+ }
+
+ /**
+ * Set the administratorType property: The type of administrator.
+ *
+ * @param administratorType the administratorType value to set.
+ * @return the ServerAdministratorResourceInner object itself.
+ */
+ public ServerAdministratorResourceInner withAdministratorType(AdministratorType administratorType) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new ServerAdministratorProperties();
+ }
+ this.innerProperties().withAdministratorType(administratorType);
+ return this;
+ }
+
+ /**
+ * Get the login property: The server administrator login account name.
+ *
+ * @return the login value.
+ */
+ public String login() {
+ return this.innerProperties() == null ? null : this.innerProperties().login();
+ }
+
+ /**
+ * Set the login property: The server administrator login account name.
+ *
+ * @param login the login value to set.
+ * @return the ServerAdministratorResourceInner object itself.
+ */
+ public ServerAdministratorResourceInner withLogin(String login) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new ServerAdministratorProperties();
+ }
+ this.innerProperties().withLogin(login);
+ return this;
+ }
+
+ /**
+ * Get the sid property: The server administrator Sid (Secure ID).
+ *
+ * @return the sid value.
+ */
+ public UUID sid() {
+ return this.innerProperties() == null ? null : this.innerProperties().sid();
+ }
+
+ /**
+ * Set the sid property: The server administrator Sid (Secure ID).
+ *
+ * @param sid the sid value to set.
+ * @return the ServerAdministratorResourceInner object itself.
+ */
+ public ServerAdministratorResourceInner withSid(UUID sid) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new ServerAdministratorProperties();
+ }
+ this.innerProperties().withSid(sid);
+ return this;
+ }
+
+ /**
+ * Get the tenantId property: The server Active Directory Administrator tenant id.
+ *
+ * @return the tenantId value.
+ */
+ public UUID tenantId() {
+ return this.innerProperties() == null ? null : this.innerProperties().tenantId();
+ }
+
+ /**
+ * Set the tenantId property: The server Active Directory Administrator tenant id.
+ *
+ * @param tenantId the tenantId value to set.
+ * @return the ServerAdministratorResourceInner object itself.
+ */
+ public ServerAdministratorResourceInner withTenantId(UUID tenantId) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new ServerAdministratorProperties();
+ }
+ this.innerProperties().withTenantId(tenantId);
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (innerProperties() != null) {
+ innerProperties().validate();
+ }
+ }
+}
diff --git a/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/models/ServerBackupInner.java b/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/models/ServerBackupInner.java
deleted file mode 100644
index 207507edf997..000000000000
--- a/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/models/ServerBackupInner.java
+++ /dev/null
@@ -1,129 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.mysqlflexibleserver.fluent.models;
-
-import com.azure.core.annotation.Fluent;
-import com.azure.core.management.ProxyResource;
-import com.azure.core.management.SystemData;
-import com.fasterxml.jackson.annotation.JsonProperty;
-import java.time.OffsetDateTime;
-
-/** Server backup properties. */
-@Fluent
-public final class ServerBackupInner extends ProxyResource {
- /*
- * The properties of a server backup.
- */
- @JsonProperty(value = "properties")
- private ServerBackupProperties innerProperties;
-
- /*
- * The system metadata relating to this resource.
- */
- @JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY)
- private SystemData systemData;
-
- /** Creates an instance of ServerBackupInner class. */
- public ServerBackupInner() {
- }
-
- /**
- * Get the innerProperties property: The properties of a server backup.
- *
- * @return the innerProperties value.
- */
- private ServerBackupProperties innerProperties() {
- return this.innerProperties;
- }
-
- /**
- * Get the systemData property: The system metadata relating to this resource.
- *
- * @return the systemData value.
- */
- public SystemData systemData() {
- return this.systemData;
- }
-
- /**
- * Get the backupType property: Backup type.
- *
- * @return the backupType value.
- */
- public String backupType() {
- return this.innerProperties() == null ? null : this.innerProperties().backupType();
- }
-
- /**
- * Set the backupType property: Backup type.
- *
- * @param backupType the backupType value to set.
- * @return the ServerBackupInner object itself.
- */
- public ServerBackupInner withBackupType(String backupType) {
- if (this.innerProperties() == null) {
- this.innerProperties = new ServerBackupProperties();
- }
- this.innerProperties().withBackupType(backupType);
- return this;
- }
-
- /**
- * Get the completedTime property: Backup completed time (ISO8601 format).
- *
- * @return the completedTime value.
- */
- public OffsetDateTime completedTime() {
- return this.innerProperties() == null ? null : this.innerProperties().completedTime();
- }
-
- /**
- * Set the completedTime property: Backup completed time (ISO8601 format).
- *
- * @param completedTime the completedTime value to set.
- * @return the ServerBackupInner object itself.
- */
- public ServerBackupInner withCompletedTime(OffsetDateTime completedTime) {
- if (this.innerProperties() == null) {
- this.innerProperties = new ServerBackupProperties();
- }
- this.innerProperties().withCompletedTime(completedTime);
- return this;
- }
-
- /**
- * Get the source property: Backup source.
- *
- * @return the source value.
- */
- public String source() {
- return this.innerProperties() == null ? null : this.innerProperties().source();
- }
-
- /**
- * Set the source property: Backup source.
- *
- * @param source the source value to set.
- * @return the ServerBackupInner object itself.
- */
- public ServerBackupInner withSource(String source) {
- if (this.innerProperties() == null) {
- this.innerProperties = new ServerBackupProperties();
- }
- this.innerProperties().withSource(source);
- return this;
- }
-
- /**
- * Validates the instance.
- *
- * @throws IllegalArgumentException thrown if the instance is not valid.
- */
- public void validate() {
- if (innerProperties() != null) {
- innerProperties().validate();
- }
- }
-}
diff --git a/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/models/ServerBackupProperties.java b/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/models/ServerBackupProperties.java
deleted file mode 100644
index 5b5e549bc5a3..000000000000
--- a/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/models/ServerBackupProperties.java
+++ /dev/null
@@ -1,103 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.mysqlflexibleserver.fluent.models;
-
-import com.azure.core.annotation.Fluent;
-import com.fasterxml.jackson.annotation.JsonProperty;
-import java.time.OffsetDateTime;
-
-/** The properties of a server backup. */
-@Fluent
-public final class ServerBackupProperties {
- /*
- * Backup type.
- */
- @JsonProperty(value = "backupType")
- private String backupType;
-
- /*
- * Backup completed time (ISO8601 format).
- */
- @JsonProperty(value = "completedTime")
- private OffsetDateTime completedTime;
-
- /*
- * Backup source
- */
- @JsonProperty(value = "source")
- private String source;
-
- /** Creates an instance of ServerBackupProperties class. */
- public ServerBackupProperties() {
- }
-
- /**
- * Get the backupType property: Backup type.
- *
- * @return the backupType value.
- */
- public String backupType() {
- return this.backupType;
- }
-
- /**
- * Set the backupType property: Backup type.
- *
- * @param backupType the backupType value to set.
- * @return the ServerBackupProperties object itself.
- */
- public ServerBackupProperties withBackupType(String backupType) {
- this.backupType = backupType;
- return this;
- }
-
- /**
- * Get the completedTime property: Backup completed time (ISO8601 format).
- *
- * @return the completedTime value.
- */
- public OffsetDateTime completedTime() {
- return this.completedTime;
- }
-
- /**
- * Set the completedTime property: Backup completed time (ISO8601 format).
- *
- * @param completedTime the completedTime value to set.
- * @return the ServerBackupProperties object itself.
- */
- public ServerBackupProperties withCompletedTime(OffsetDateTime completedTime) {
- this.completedTime = completedTime;
- return this;
- }
-
- /**
- * Get the source property: Backup source.
- *
- * @return the source value.
- */
- public String source() {
- return this.source;
- }
-
- /**
- * Set the source property: Backup source.
- *
- * @param source the source value to set.
- * @return the ServerBackupProperties object itself.
- */
- public ServerBackupProperties 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/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/models/ServerInner.java b/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/models/ServerInner.java
index c413157dccf5..3ddb54efdb8e 100644
--- a/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/models/ServerInner.java
+++ b/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/models/ServerInner.java
@@ -6,31 +6,29 @@
import com.azure.core.annotation.Fluent;
import com.azure.core.management.Resource;
-import com.azure.core.management.SystemData;
-import com.azure.resourcemanager.mysqlflexibleserver.models.Backup;
-import com.azure.resourcemanager.mysqlflexibleserver.models.CreateMode;
-import com.azure.resourcemanager.mysqlflexibleserver.models.DataEncryption;
-import com.azure.resourcemanager.mysqlflexibleserver.models.HighAvailability;
-import com.azure.resourcemanager.mysqlflexibleserver.models.Identity;
-import com.azure.resourcemanager.mysqlflexibleserver.models.MaintenanceWindow;
-import com.azure.resourcemanager.mysqlflexibleserver.models.Network;
-import com.azure.resourcemanager.mysqlflexibleserver.models.ReplicationRole;
+import com.azure.resourcemanager.mysqlflexibleserver.models.InfrastructureEncryption;
+import com.azure.resourcemanager.mysqlflexibleserver.models.MinimalTlsVersionEnum;
+import com.azure.resourcemanager.mysqlflexibleserver.models.PublicNetworkAccessEnum;
+import com.azure.resourcemanager.mysqlflexibleserver.models.ResourceIdentity;
+import com.azure.resourcemanager.mysqlflexibleserver.models.ServerPrivateEndpointConnection;
import com.azure.resourcemanager.mysqlflexibleserver.models.ServerState;
import com.azure.resourcemanager.mysqlflexibleserver.models.ServerVersion;
import com.azure.resourcemanager.mysqlflexibleserver.models.Sku;
-import com.azure.resourcemanager.mysqlflexibleserver.models.Storage;
+import com.azure.resourcemanager.mysqlflexibleserver.models.SslEnforcementEnum;
+import com.azure.resourcemanager.mysqlflexibleserver.models.StorageProfile;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.time.OffsetDateTime;
+import java.util.List;
import java.util.Map;
/** Represents a server. */
@Fluent
public final class ServerInner extends Resource {
/*
- * The cmk identity for the server.
+ * The Azure Active Directory identity of the server.
*/
@JsonProperty(value = "identity")
- private Identity identity;
+ private ResourceIdentity identity;
/*
* The SKU (pricing tier) of the server.
@@ -44,32 +42,26 @@ public final class ServerInner extends Resource {
@JsonProperty(value = "properties")
private ServerProperties innerProperties;
- /*
- * The system metadata relating to this resource.
- */
- @JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY)
- private SystemData systemData;
-
/** Creates an instance of ServerInner class. */
public ServerInner() {
}
/**
- * Get the identity property: The cmk identity for the server.
+ * Get the identity property: The Azure Active Directory identity of the server.
*
* @return the identity value.
*/
- public Identity identity() {
+ public ResourceIdentity identity() {
return this.identity;
}
/**
- * Set the identity property: The cmk identity for the server.
+ * Set the identity property: The Azure Active Directory identity of the server.
*
* @param identity the identity value to set.
* @return the ServerInner object itself.
*/
- public ServerInner withIdentity(Identity identity) {
+ public ServerInner withIdentity(ResourceIdentity identity) {
this.identity = identity;
return this;
}
@@ -103,15 +95,6 @@ private ServerProperties innerProperties() {
return this.innerProperties;
}
- /**
- * Get the systemData property: The system metadata relating to this resource.
- *
- * @return the systemData value.
- */
- public SystemData systemData() {
- return this.systemData;
- }
-
/** {@inheritDoc} */
@Override
public ServerInner withLocation(String location) {
@@ -151,31 +134,6 @@ public ServerInner withAdministratorLogin(String administratorLogin) {
return this;
}
- /**
- * Get the administratorLoginPassword property: The password of the administrator login (required for server
- * creation).
- *
- * @return the administratorLoginPassword value.
- */
- public String administratorLoginPassword() {
- return this.innerProperties() == null ? null : this.innerProperties().administratorLoginPassword();
- }
-
- /**
- * Set the administratorLoginPassword property: The password of the administrator login (required for server
- * creation).
- *
- * @param administratorLoginPassword the administratorLoginPassword value to set.
- * @return the ServerInner object itself.
- */
- public ServerInner withAdministratorLoginPassword(String administratorLoginPassword) {
- if (this.innerProperties() == null) {
- this.innerProperties = new ServerProperties();
- }
- this.innerProperties().withAdministratorLoginPassword(administratorLoginPassword);
- return this;
- }
-
/**
* Get the version property: Server version.
*
@@ -200,287 +158,279 @@ public ServerInner withVersion(ServerVersion version) {
}
/**
- * Get the availabilityZone property: availability Zone information of the server.
+ * Get the sslEnforcement property: Enable ssl enforcement or not when connect to server.
*
- * @return the availabilityZone value.
+ * @return the sslEnforcement value.
*/
- public String availabilityZone() {
- return this.innerProperties() == null ? null : this.innerProperties().availabilityZone();
+ public SslEnforcementEnum sslEnforcement() {
+ return this.innerProperties() == null ? null : this.innerProperties().sslEnforcement();
}
/**
- * Set the availabilityZone property: availability Zone information of the server.
+ * Set the sslEnforcement property: Enable ssl enforcement or not when connect to server.
*
- * @param availabilityZone the availabilityZone value to set.
+ * @param sslEnforcement the sslEnforcement value to set.
* @return the ServerInner object itself.
*/
- public ServerInner withAvailabilityZone(String availabilityZone) {
+ public ServerInner withSslEnforcement(SslEnforcementEnum sslEnforcement) {
if (this.innerProperties() == null) {
this.innerProperties = new ServerProperties();
}
- this.innerProperties().withAvailabilityZone(availabilityZone);
+ this.innerProperties().withSslEnforcement(sslEnforcement);
return this;
}
/**
- * Get the createMode property: The mode to create a new MySQL server.
+ * Get the minimalTlsVersion property: Enforce a minimal Tls version for the server.
*
- * @return the createMode value.
+ * @return the minimalTlsVersion value.
*/
- public CreateMode createMode() {
- return this.innerProperties() == null ? null : this.innerProperties().createMode();
+ public MinimalTlsVersionEnum minimalTlsVersion() {
+ return this.innerProperties() == null ? null : this.innerProperties().minimalTlsVersion();
}
/**
- * Set the createMode property: The mode to create a new MySQL server.
+ * Set the minimalTlsVersion property: Enforce a minimal Tls version for the server.
*
- * @param createMode the createMode value to set.
+ * @param minimalTlsVersion the minimalTlsVersion value to set.
* @return the ServerInner object itself.
*/
- public ServerInner withCreateMode(CreateMode createMode) {
+ public ServerInner withMinimalTlsVersion(MinimalTlsVersionEnum minimalTlsVersion) {
if (this.innerProperties() == null) {
this.innerProperties = new ServerProperties();
}
- this.innerProperties().withCreateMode(createMode);
+ this.innerProperties().withMinimalTlsVersion(minimalTlsVersion);
return this;
}
/**
- * Get the sourceServerResourceId property: The source MySQL server id.
+ * Get the byokEnforcement property: Status showing whether the server data encryption is enabled with
+ * customer-managed keys.
*
- * @return the sourceServerResourceId value.
+ * @return the byokEnforcement value.
*/
- public String sourceServerResourceId() {
- return this.innerProperties() == null ? null : this.innerProperties().sourceServerResourceId();
+ public String byokEnforcement() {
+ return this.innerProperties() == null ? null : this.innerProperties().byokEnforcement();
}
/**
- * Set the sourceServerResourceId property: The source MySQL server id.
+ * Get the infrastructureEncryption property: Status showing whether the server enabled infrastructure encryption.
*
- * @param sourceServerResourceId the sourceServerResourceId value to set.
- * @return the ServerInner object itself.
+ * @return the infrastructureEncryption value.
*/
- public ServerInner withSourceServerResourceId(String sourceServerResourceId) {
- if (this.innerProperties() == null) {
- this.innerProperties = new ServerProperties();
- }
- this.innerProperties().withSourceServerResourceId(sourceServerResourceId);
- return this;
- }
-
- /**
- * Get the restorePointInTime property: Restore point creation time (ISO8601 format), specifying the time to restore
- * from.
- *
- * @return the restorePointInTime value.
- */
- public OffsetDateTime restorePointInTime() {
- return this.innerProperties() == null ? null : this.innerProperties().restorePointInTime();
+ public InfrastructureEncryption infrastructureEncryption() {
+ return this.innerProperties() == null ? null : this.innerProperties().infrastructureEncryption();
}
/**
- * Set the restorePointInTime property: Restore point creation time (ISO8601 format), specifying the time to restore
- * from.
+ * Set the infrastructureEncryption property: Status showing whether the server enabled infrastructure encryption.
*
- * @param restorePointInTime the restorePointInTime value to set.
+ * @param infrastructureEncryption the infrastructureEncryption value to set.
* @return the ServerInner object itself.
*/
- public ServerInner withRestorePointInTime(OffsetDateTime restorePointInTime) {
+ public ServerInner withInfrastructureEncryption(InfrastructureEncryption infrastructureEncryption) {
if (this.innerProperties() == null) {
this.innerProperties = new ServerProperties();
}
- this.innerProperties().withRestorePointInTime(restorePointInTime);
+ this.innerProperties().withInfrastructureEncryption(infrastructureEncryption);
return this;
}
/**
- * Get the replicationRole property: The replication role.
+ * Get the userVisibleState property: A state of a server that is visible to user.
*
- * @return the replicationRole value.
+ * @return the userVisibleState value.
*/
- public ReplicationRole replicationRole() {
- return this.innerProperties() == null ? null : this.innerProperties().replicationRole();
+ public ServerState userVisibleState() {
+ return this.innerProperties() == null ? null : this.innerProperties().userVisibleState();
}
/**
- * Set the replicationRole property: The replication role.
+ * Set the userVisibleState property: A state of a server that is visible to user.
*
- * @param replicationRole the replicationRole value to set.
+ * @param userVisibleState the userVisibleState value to set.
* @return the ServerInner object itself.
*/
- public ServerInner withReplicationRole(ReplicationRole replicationRole) {
+ public ServerInner withUserVisibleState(ServerState userVisibleState) {
if (this.innerProperties() == null) {
this.innerProperties = new ServerProperties();
}
- this.innerProperties().withReplicationRole(replicationRole);
+ this.innerProperties().withUserVisibleState(userVisibleState);
return this;
}
/**
- * Get the replicaCapacity property: The maximum number of replicas that a primary server can have.
- *
- * @return the replicaCapacity value.
- */
- public Integer replicaCapacity() {
- return this.innerProperties() == null ? null : this.innerProperties().replicaCapacity();
- }
-
- /**
- * Get the dataEncryption property: The Data Encryption for CMK.
+ * Get the fullyQualifiedDomainName property: The fully qualified domain name of a server.
*
- * @return the dataEncryption value.
+ * @return the fullyQualifiedDomainName value.
*/
- public DataEncryption dataEncryption() {
- return this.innerProperties() == null ? null : this.innerProperties().dataEncryption();
+ public String fullyQualifiedDomainName() {
+ return this.innerProperties() == null ? null : this.innerProperties().fullyQualifiedDomainName();
}
/**
- * Set the dataEncryption property: The Data Encryption for CMK.
+ * Set the fullyQualifiedDomainName property: The fully qualified domain name of a server.
*
- * @param dataEncryption the dataEncryption value to set.
+ * @param fullyQualifiedDomainName the fullyQualifiedDomainName value to set.
* @return the ServerInner object itself.
*/
- public ServerInner withDataEncryption(DataEncryption dataEncryption) {
+ public ServerInner withFullyQualifiedDomainName(String fullyQualifiedDomainName) {
if (this.innerProperties() == null) {
this.innerProperties = new ServerProperties();
}
- this.innerProperties().withDataEncryption(dataEncryption);
+ this.innerProperties().withFullyQualifiedDomainName(fullyQualifiedDomainName);
return this;
}
/**
- * Get the state property: The state of a server.
+ * Get the earliestRestoreDate property: Earliest restore point creation time (ISO8601 format).
*
- * @return the state value.
+ * @return the earliestRestoreDate value.
*/
- public ServerState state() {
- return this.innerProperties() == null ? null : this.innerProperties().state();
+ public OffsetDateTime earliestRestoreDate() {
+ return this.innerProperties() == null ? null : this.innerProperties().earliestRestoreDate();
}
/**
- * Get the fullyQualifiedDomainName property: The fully qualified domain name of a server.
+ * Set the earliestRestoreDate property: Earliest restore point creation time (ISO8601 format).
*
- * @return the fullyQualifiedDomainName value.
+ * @param earliestRestoreDate the earliestRestoreDate value to set.
+ * @return the ServerInner object itself.
*/
- public String fullyQualifiedDomainName() {
- return this.innerProperties() == null ? null : this.innerProperties().fullyQualifiedDomainName();
+ public ServerInner withEarliestRestoreDate(OffsetDateTime earliestRestoreDate) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new ServerProperties();
+ }
+ this.innerProperties().withEarliestRestoreDate(earliestRestoreDate);
+ return this;
}
/**
- * Get the storage property: Storage related properties of a server.
+ * Get the storageProfile property: Storage profile of a server.
*
- * @return the storage value.
+ * @return the storageProfile value.
*/
- public Storage storage() {
- return this.innerProperties() == null ? null : this.innerProperties().storage();
+ public StorageProfile storageProfile() {
+ return this.innerProperties() == null ? null : this.innerProperties().storageProfile();
}
/**
- * Set the storage property: Storage related properties of a server.
+ * Set the storageProfile property: Storage profile of a server.
*
- * @param storage the storage value to set.
+ * @param storageProfile the storageProfile value to set.
* @return the ServerInner object itself.
*/
- public ServerInner withStorage(Storage storage) {
+ public ServerInner withStorageProfile(StorageProfile storageProfile) {
if (this.innerProperties() == null) {
this.innerProperties = new ServerProperties();
}
- this.innerProperties().withStorage(storage);
+ this.innerProperties().withStorageProfile(storageProfile);
return this;
}
/**
- * Get the backup property: Backup related properties of a server.
+ * Get the replicationRole property: The replication role of the server.
*
- * @return the backup value.
+ * @return the replicationRole value.
*/
- public Backup backup() {
- return this.innerProperties() == null ? null : this.innerProperties().backup();
+ public String replicationRole() {
+ return this.innerProperties() == null ? null : this.innerProperties().replicationRole();
}
/**
- * Set the backup property: Backup related properties of a server.
+ * Set the replicationRole property: The replication role of the server.
*
- * @param backup the backup value to set.
+ * @param replicationRole the replicationRole value to set.
* @return the ServerInner object itself.
*/
- public ServerInner withBackup(Backup backup) {
+ public ServerInner withReplicationRole(String replicationRole) {
if (this.innerProperties() == null) {
this.innerProperties = new ServerProperties();
}
- this.innerProperties().withBackup(backup);
+ this.innerProperties().withReplicationRole(replicationRole);
return this;
}
/**
- * Get the highAvailability property: High availability related properties of a server.
+ * Get the masterServerId property: The master server id of a replica server.
*
- * @return the highAvailability value.
+ * @return the masterServerId value.
*/
- public HighAvailability highAvailability() {
- return this.innerProperties() == null ? null : this.innerProperties().highAvailability();
+ public String masterServerId() {
+ return this.innerProperties() == null ? null : this.innerProperties().masterServerId();
}
/**
- * Set the highAvailability property: High availability related properties of a server.
+ * Set the masterServerId property: The master server id of a replica server.
*
- * @param highAvailability the highAvailability value to set.
+ * @param masterServerId the masterServerId value to set.
* @return the ServerInner object itself.
*/
- public ServerInner withHighAvailability(HighAvailability highAvailability) {
+ public ServerInner withMasterServerId(String masterServerId) {
if (this.innerProperties() == null) {
this.innerProperties = new ServerProperties();
}
- this.innerProperties().withHighAvailability(highAvailability);
+ this.innerProperties().withMasterServerId(masterServerId);
return this;
}
/**
- * Get the network property: Network related properties of a server.
+ * Get the replicaCapacity property: The maximum number of replicas that a master server can have.
*
- * @return the network value.
+ * @return the replicaCapacity value.
*/
- public Network network() {
- return this.innerProperties() == null ? null : this.innerProperties().network();
+ public Integer replicaCapacity() {
+ return this.innerProperties() == null ? null : this.innerProperties().replicaCapacity();
}
/**
- * Set the network property: Network related properties of a server.
+ * Set the replicaCapacity property: The maximum number of replicas that a master server can have.
*
- * @param network the network value to set.
+ * @param replicaCapacity the replicaCapacity value to set.
* @return the ServerInner object itself.
*/
- public ServerInner withNetwork(Network network) {
+ public ServerInner withReplicaCapacity(Integer replicaCapacity) {
if (this.innerProperties() == null) {
this.innerProperties = new ServerProperties();
}
- this.innerProperties().withNetwork(network);
+ this.innerProperties().withReplicaCapacity(replicaCapacity);
return this;
}
/**
- * Get the maintenanceWindow property: Maintenance window of a server.
+ * 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 maintenanceWindow value.
+ * @return the publicNetworkAccess value.
*/
- public MaintenanceWindow maintenanceWindow() {
- return this.innerProperties() == null ? null : this.innerProperties().maintenanceWindow();
+ public PublicNetworkAccessEnum publicNetworkAccess() {
+ return this.innerProperties() == null ? null : this.innerProperties().publicNetworkAccess();
}
/**
- * Set the maintenanceWindow property: Maintenance window of a server.
+ * 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 maintenanceWindow the maintenanceWindow value to set.
+ * @param publicNetworkAccess the publicNetworkAccess value to set.
* @return the ServerInner object itself.
*/
- public ServerInner withMaintenanceWindow(MaintenanceWindow maintenanceWindow) {
+ public ServerInner withPublicNetworkAccess(PublicNetworkAccessEnum publicNetworkAccess) {
if (this.innerProperties() == null) {
this.innerProperties = new ServerProperties();
}
- this.innerProperties().withMaintenanceWindow(maintenanceWindow);
+ this.innerProperties().withPublicNetworkAccess(publicNetworkAccess);
return this;
}
+ /**
+ * Get the privateEndpointConnections property: List of private endpoint connections on a server.
+ *
+ * @return the privateEndpointConnections value.
+ */
+ public List privateEndpointConnections() {
+ return this.innerProperties() == null ? null : this.innerProperties().privateEndpointConnections();
+ }
+
/**
* Validates the instance.
*
diff --git a/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/models/ServerKeyInner.java b/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/models/ServerKeyInner.java
new file mode 100644
index 000000000000..0a1bf6b687f5
--- /dev/null
+++ b/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/models/ServerKeyInner.java
@@ -0,0 +1,115 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.mysqlflexibleserver.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.management.ProxyResource;
+import com.azure.resourcemanager.mysqlflexibleserver.models.ServerKeyType;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import java.time.OffsetDateTime;
+
+/** A MySQL Server key. */
+@Fluent
+public final class ServerKeyInner extends ProxyResource {
+ /*
+ * Kind of encryption protector used to protect the key.
+ */
+ @JsonProperty(value = "kind", access = JsonProperty.Access.WRITE_ONLY)
+ private String kind;
+
+ /*
+ * Properties of the ServerKey Resource.
+ */
+ @JsonProperty(value = "properties")
+ private ServerKeyProperties innerProperties;
+
+ /** Creates an instance of ServerKeyInner class. */
+ public ServerKeyInner() {
+ }
+
+ /**
+ * Get the kind property: Kind of encryption protector used to protect the key.
+ *
+ * @return the kind value.
+ */
+ public String kind() {
+ return this.kind;
+ }
+
+ /**
+ * Get the innerProperties property: Properties of the ServerKey Resource.
+ *
+ * @return the innerProperties value.
+ */
+ private ServerKeyProperties innerProperties() {
+ return this.innerProperties;
+ }
+
+ /**
+ * Get the serverKeyType property: The key type like 'AzureKeyVault'.
+ *
+ * @return the serverKeyType value.
+ */
+ public ServerKeyType serverKeyType() {
+ return this.innerProperties() == null ? null : this.innerProperties().serverKeyType();
+ }
+
+ /**
+ * Set the serverKeyType property: The key type like 'AzureKeyVault'.
+ *
+ * @param serverKeyType the serverKeyType value to set.
+ * @return the ServerKeyInner object itself.
+ */
+ public ServerKeyInner withServerKeyType(ServerKeyType serverKeyType) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new ServerKeyProperties();
+ }
+ this.innerProperties().withServerKeyType(serverKeyType);
+ return this;
+ }
+
+ /**
+ * Get the uri property: The URI of the key.
+ *
+ * @return the uri value.
+ */
+ public String uri() {
+ return this.innerProperties() == null ? null : this.innerProperties().uri();
+ }
+
+ /**
+ * Set the uri property: The URI of the key.
+ *
+ * @param uri the uri value to set.
+ * @return the ServerKeyInner object itself.
+ */
+ public ServerKeyInner withUri(String uri) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new ServerKeyProperties();
+ }
+ this.innerProperties().withUri(uri);
+ return this;
+ }
+
+ /**
+ * Get the creationDate property: The key creation date.
+ *
+ * @return the creationDate value.
+ */
+ public OffsetDateTime creationDate() {
+ return this.innerProperties() == null ? null : this.innerProperties().creationDate();
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (innerProperties() != null) {
+ innerProperties().validate();
+ }
+ }
+}
diff --git a/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/models/ServerKeyProperties.java b/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/models/ServerKeyProperties.java
new file mode 100644
index 000000000000..0e9a0bb1d06a
--- /dev/null
+++ b/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/models/ServerKeyProperties.java
@@ -0,0 +1,102 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.mysqlflexibleserver.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.util.logging.ClientLogger;
+import com.azure.resourcemanager.mysqlflexibleserver.models.ServerKeyType;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import java.time.OffsetDateTime;
+
+/** Properties for a key execution. */
+@Fluent
+public final class ServerKeyProperties {
+ /*
+ * The key type like 'AzureKeyVault'.
+ */
+ @JsonProperty(value = "serverKeyType", required = true)
+ private ServerKeyType serverKeyType;
+
+ /*
+ * The URI of the key.
+ */
+ @JsonProperty(value = "uri")
+ private String uri;
+
+ /*
+ * The key creation date.
+ */
+ @JsonProperty(value = "creationDate", access = JsonProperty.Access.WRITE_ONLY)
+ private OffsetDateTime creationDate;
+
+ /** Creates an instance of ServerKeyProperties class. */
+ public ServerKeyProperties() {
+ }
+
+ /**
+ * Get the serverKeyType property: The key type like 'AzureKeyVault'.
+ *
+ * @return the serverKeyType value.
+ */
+ public ServerKeyType serverKeyType() {
+ return this.serverKeyType;
+ }
+
+ /**
+ * Set the serverKeyType property: The key type like 'AzureKeyVault'.
+ *
+ * @param serverKeyType the serverKeyType value to set.
+ * @return the ServerKeyProperties object itself.
+ */
+ public ServerKeyProperties withServerKeyType(ServerKeyType serverKeyType) {
+ this.serverKeyType = serverKeyType;
+ return this;
+ }
+
+ /**
+ * Get the uri property: The URI of the key.
+ *
+ * @return the uri value.
+ */
+ public String uri() {
+ return this.uri;
+ }
+
+ /**
+ * Set the uri property: The URI of the key.
+ *
+ * @param uri the uri value to set.
+ * @return the ServerKeyProperties object itself.
+ */
+ public ServerKeyProperties withUri(String uri) {
+ this.uri = uri;
+ return this;
+ }
+
+ /**
+ * Get the creationDate property: The key creation date.
+ *
+ * @return the creationDate value.
+ */
+ public OffsetDateTime creationDate() {
+ return this.creationDate;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (serverKeyType() == null) {
+ throw LOGGER
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ "Missing required property serverKeyType in model ServerKeyProperties"));
+ }
+ }
+
+ private static final ClientLogger LOGGER = new ClientLogger(ServerKeyProperties.class);
+}
diff --git a/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/models/ServerProperties.java b/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/models/ServerProperties.java
index 42bb3aaf094b..2baa48e14789 100644
--- a/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/models/ServerProperties.java
+++ b/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/models/ServerProperties.java
@@ -5,18 +5,17 @@
package com.azure.resourcemanager.mysqlflexibleserver.fluent.models;
import com.azure.core.annotation.Fluent;
-import com.azure.resourcemanager.mysqlflexibleserver.models.Backup;
-import com.azure.resourcemanager.mysqlflexibleserver.models.CreateMode;
-import com.azure.resourcemanager.mysqlflexibleserver.models.DataEncryption;
-import com.azure.resourcemanager.mysqlflexibleserver.models.HighAvailability;
-import com.azure.resourcemanager.mysqlflexibleserver.models.MaintenanceWindow;
-import com.azure.resourcemanager.mysqlflexibleserver.models.Network;
-import com.azure.resourcemanager.mysqlflexibleserver.models.ReplicationRole;
+import com.azure.resourcemanager.mysqlflexibleserver.models.InfrastructureEncryption;
+import com.azure.resourcemanager.mysqlflexibleserver.models.MinimalTlsVersionEnum;
+import com.azure.resourcemanager.mysqlflexibleserver.models.PublicNetworkAccessEnum;
+import com.azure.resourcemanager.mysqlflexibleserver.models.ServerPrivateEndpointConnection;
import com.azure.resourcemanager.mysqlflexibleserver.models.ServerState;
import com.azure.resourcemanager.mysqlflexibleserver.models.ServerVersion;
-import com.azure.resourcemanager.mysqlflexibleserver.models.Storage;
+import com.azure.resourcemanager.mysqlflexibleserver.models.SslEnforcementEnum;
+import com.azure.resourcemanager.mysqlflexibleserver.models.StorageProfile;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.time.OffsetDateTime;
+import java.util.List;
/** The properties of a server. */
@Fluent
@@ -28,12 +27,6 @@ public final class ServerProperties {
@JsonProperty(value = "administratorLogin")
private String administratorLogin;
- /*
- * The password of the administrator login (required for server creation).
- */
- @JsonProperty(value = "administratorLoginPassword")
- private String administratorLoginPassword;
-
/*
* Server version.
*/
@@ -41,88 +34,83 @@ public final class ServerProperties {
private ServerVersion version;
/*
- * availability Zone information of the server.
+ * Enable ssl enforcement or not when connect to server.
*/
- @JsonProperty(value = "availabilityZone")
- private String availabilityZone;
+ @JsonProperty(value = "sslEnforcement")
+ private SslEnforcementEnum sslEnforcement;
/*
- * The mode to create a new MySQL server.
+ * Enforce a minimal Tls version for the server.
*/
- @JsonProperty(value = "createMode")
- private CreateMode createMode;
+ @JsonProperty(value = "minimalTlsVersion")
+ private MinimalTlsVersionEnum minimalTlsVersion;
/*
- * The source MySQL server id.
+ * Status showing whether the server data encryption is enabled with customer-managed keys.
*/
- @JsonProperty(value = "sourceServerResourceId")
- private String sourceServerResourceId;
+ @JsonProperty(value = "byokEnforcement", access = JsonProperty.Access.WRITE_ONLY)
+ private String byokEnforcement;
/*
- * Restore point creation time (ISO8601 format), specifying the time to restore from.
+ * Status showing whether the server enabled infrastructure encryption.
*/
- @JsonProperty(value = "restorePointInTime")
- private OffsetDateTime restorePointInTime;
+ @JsonProperty(value = "infrastructureEncryption")
+ private InfrastructureEncryption infrastructureEncryption;
/*
- * The replication role.
+ * A state of a server that is visible to user.
*/
- @JsonProperty(value = "replicationRole")
- private ReplicationRole replicationRole;
+ @JsonProperty(value = "userVisibleState")
+ private ServerState userVisibleState;
/*
- * The maximum number of replicas that a primary server can have.
- */
- @JsonProperty(value = "replicaCapacity", access = JsonProperty.Access.WRITE_ONLY)
- private Integer replicaCapacity;
-
- /*
- * The Data Encryption for CMK.
+ * The fully qualified domain name of a server.
*/
- @JsonProperty(value = "dataEncryption")
- private DataEncryption dataEncryption;
+ @JsonProperty(value = "fullyQualifiedDomainName")
+ private String fullyQualifiedDomainName;
/*
- * The state of a server.
+ * Earliest restore point creation time (ISO8601 format)
*/
- @JsonProperty(value = "state", access = JsonProperty.Access.WRITE_ONLY)
- private ServerState state;
+ @JsonProperty(value = "earliestRestoreDate")
+ private OffsetDateTime earliestRestoreDate;
/*
- * The fully qualified domain name of a server.
+ * Storage profile of a server.
*/
- @JsonProperty(value = "fullyQualifiedDomainName", access = JsonProperty.Access.WRITE_ONLY)
- private String fullyQualifiedDomainName;
+ @JsonProperty(value = "storageProfile")
+ private StorageProfile storageProfile;
/*
- * Storage related properties of a server.
+ * The replication role of the server.
*/
- @JsonProperty(value = "storage")
- private Storage storage;
+ @JsonProperty(value = "replicationRole")
+ private String replicationRole;
/*
- * Backup related properties of a server.
+ * The master server id of a replica server.
*/
- @JsonProperty(value = "backup")
- private Backup backup;
+ @JsonProperty(value = "masterServerId")
+ private String masterServerId;
/*
- * High availability related properties of a server.
+ * The maximum number of replicas that a master server can have.
*/
- @JsonProperty(value = "highAvailability")
- private HighAvailability highAvailability;
+ @JsonProperty(value = "replicaCapacity")
+ private Integer replicaCapacity;
/*
- * Network related properties of a server.
+ * 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 = "network")
- private Network network;
+ @JsonProperty(value = "publicNetworkAccess")
+ private PublicNetworkAccessEnum publicNetworkAccess;
/*
- * Maintenance window of a server.
+ * List of private endpoint connections on a server
*/
- @JsonProperty(value = "maintenanceWindow")
- private MaintenanceWindow maintenanceWindow;
+ @JsonProperty(value = "privateEndpointConnections", access = JsonProperty.Access.WRITE_ONLY)
+ private List privateEndpointConnections;
/** Creates an instance of ServerProperties class. */
public ServerProperties() {
@@ -150,28 +138,6 @@ public ServerProperties withAdministratorLogin(String administratorLogin) {
return this;
}
- /**
- * Get the administratorLoginPassword property: The password of the administrator login (required for server
- * creation).
- *
- * @return the administratorLoginPassword value.
- */
- public String administratorLoginPassword() {
- return this.administratorLoginPassword;
- }
-
- /**
- * Set the administratorLoginPassword property: The password of the administrator login (required for server
- * creation).
- *
- * @param administratorLoginPassword the administratorLoginPassword value to set.
- * @return the ServerProperties object itself.
- */
- public ServerProperties withAdministratorLoginPassword(String administratorLoginPassword) {
- this.administratorLoginPassword = administratorLoginPassword;
- return this;
- }
-
/**
* Get the version property: Server version.
*
@@ -193,277 +159,257 @@ public ServerProperties withVersion(ServerVersion version) {
}
/**
- * Get the availabilityZone property: availability Zone information of the server.
+ * Get the sslEnforcement property: Enable ssl enforcement or not when connect to server.
*
- * @return the availabilityZone value.
+ * @return the sslEnforcement value.
*/
- public String availabilityZone() {
- return this.availabilityZone;
+ public SslEnforcementEnum sslEnforcement() {
+ return this.sslEnforcement;
}
/**
- * Set the availabilityZone property: availability Zone information of the server.
+ * Set the sslEnforcement property: Enable ssl enforcement or not when connect to server.
*
- * @param availabilityZone the availabilityZone value to set.
+ * @param sslEnforcement the sslEnforcement value to set.
* @return the ServerProperties object itself.
*/
- public ServerProperties withAvailabilityZone(String availabilityZone) {
- this.availabilityZone = availabilityZone;
+ public ServerProperties withSslEnforcement(SslEnforcementEnum sslEnforcement) {
+ this.sslEnforcement = sslEnforcement;
return this;
}
/**
- * Get the createMode property: The mode to create a new MySQL server.
+ * Get the minimalTlsVersion property: Enforce a minimal Tls version for the server.
*
- * @return the createMode value.
+ * @return the minimalTlsVersion value.
*/
- public CreateMode createMode() {
- return this.createMode;
+ public MinimalTlsVersionEnum minimalTlsVersion() {
+ return this.minimalTlsVersion;
}
/**
- * Set the createMode property: The mode to create a new MySQL server.
+ * Set the minimalTlsVersion property: Enforce a minimal Tls version for the server.
*
- * @param createMode the createMode value to set.
+ * @param minimalTlsVersion the minimalTlsVersion value to set.
* @return the ServerProperties object itself.
*/
- public ServerProperties withCreateMode(CreateMode createMode) {
- this.createMode = createMode;
+ public ServerProperties withMinimalTlsVersion(MinimalTlsVersionEnum minimalTlsVersion) {
+ this.minimalTlsVersion = minimalTlsVersion;
return this;
}
/**
- * Get the sourceServerResourceId property: The source MySQL server id.
- *
- * @return the sourceServerResourceId value.
- */
- public String sourceServerResourceId() {
- return this.sourceServerResourceId;
- }
-
- /**
- * Set the sourceServerResourceId property: The source MySQL server id.
+ * Get the byokEnforcement property: Status showing whether the server data encryption is enabled with
+ * customer-managed keys.
*
- * @param sourceServerResourceId the sourceServerResourceId value to set.
- * @return the ServerProperties object itself.
+ * @return the byokEnforcement value.
*/
- public ServerProperties withSourceServerResourceId(String sourceServerResourceId) {
- this.sourceServerResourceId = sourceServerResourceId;
- return this;
+ public String byokEnforcement() {
+ return this.byokEnforcement;
}
/**
- * Get the restorePointInTime property: Restore point creation time (ISO8601 format), specifying the time to restore
- * from.
+ * Get the infrastructureEncryption property: Status showing whether the server enabled infrastructure encryption.
*
- * @return the restorePointInTime value.
+ * @return the infrastructureEncryption value.
*/
- public OffsetDateTime restorePointInTime() {
- return this.restorePointInTime;
+ public InfrastructureEncryption infrastructureEncryption() {
+ return this.infrastructureEncryption;
}
/**
- * Set the restorePointInTime property: Restore point creation time (ISO8601 format), specifying the time to restore
- * from.
+ * Set the infrastructureEncryption property: Status showing whether the server enabled infrastructure encryption.
*
- * @param restorePointInTime the restorePointInTime value to set.
+ * @param infrastructureEncryption the infrastructureEncryption value to set.
* @return the ServerProperties object itself.
*/
- public ServerProperties withRestorePointInTime(OffsetDateTime restorePointInTime) {
- this.restorePointInTime = restorePointInTime;
+ public ServerProperties withInfrastructureEncryption(InfrastructureEncryption infrastructureEncryption) {
+ this.infrastructureEncryption = infrastructureEncryption;
return this;
}
/**
- * Get the replicationRole property: The replication role.
+ * Get the userVisibleState property: A state of a server that is visible to user.
*
- * @return the replicationRole value.
+ * @return the userVisibleState value.
*/
- public ReplicationRole replicationRole() {
- return this.replicationRole;
+ public ServerState userVisibleState() {
+ return this.userVisibleState;
}
/**
- * Set the replicationRole property: The replication role.
+ * Set the userVisibleState property: A state of a server that is visible to user.
*
- * @param replicationRole the replicationRole value to set.
+ * @param userVisibleState the userVisibleState value to set.
* @return the ServerProperties object itself.
*/
- public ServerProperties withReplicationRole(ReplicationRole replicationRole) {
- this.replicationRole = replicationRole;
+ public ServerProperties withUserVisibleState(ServerState userVisibleState) {
+ this.userVisibleState = userVisibleState;
return this;
}
/**
- * Get the replicaCapacity property: The maximum number of replicas that a primary server can have.
- *
- * @return the replicaCapacity value.
- */
- public Integer replicaCapacity() {
- return this.replicaCapacity;
- }
-
- /**
- * Get the dataEncryption property: The Data Encryption for CMK.
+ * Get the fullyQualifiedDomainName property: The fully qualified domain name of a server.
*
- * @return the dataEncryption value.
+ * @return the fullyQualifiedDomainName value.
*/
- public DataEncryption dataEncryption() {
- return this.dataEncryption;
+ public String fullyQualifiedDomainName() {
+ return this.fullyQualifiedDomainName;
}
/**
- * Set the dataEncryption property: The Data Encryption for CMK.
+ * Set the fullyQualifiedDomainName property: The fully qualified domain name of a server.
*
- * @param dataEncryption the dataEncryption value to set.
+ * @param fullyQualifiedDomainName the fullyQualifiedDomainName value to set.
* @return the ServerProperties object itself.
*/
- public ServerProperties withDataEncryption(DataEncryption dataEncryption) {
- this.dataEncryption = dataEncryption;
+ public ServerProperties withFullyQualifiedDomainName(String fullyQualifiedDomainName) {
+ this.fullyQualifiedDomainName = fullyQualifiedDomainName;
return this;
}
/**
- * Get the state property: The state of a server.
+ * Get the earliestRestoreDate property: Earliest restore point creation time (ISO8601 format).
*
- * @return the state value.
+ * @return the earliestRestoreDate value.
*/
- public ServerState state() {
- return this.state;
+ public OffsetDateTime earliestRestoreDate() {
+ return this.earliestRestoreDate;
}
/**
- * Get the fullyQualifiedDomainName property: The fully qualified domain name of a server.
+ * Set the earliestRestoreDate property: Earliest restore point creation time (ISO8601 format).
*
- * @return the fullyQualifiedDomainName value.
+ * @param earliestRestoreDate the earliestRestoreDate value to set.
+ * @return the ServerProperties object itself.
*/
- public String fullyQualifiedDomainName() {
- return this.fullyQualifiedDomainName;
+ public ServerProperties withEarliestRestoreDate(OffsetDateTime earliestRestoreDate) {
+ this.earliestRestoreDate = earliestRestoreDate;
+ return this;
}
/**
- * Get the storage property: Storage related properties of a server.
+ * Get the storageProfile property: Storage profile of a server.
*
- * @return the storage value.
+ * @return the storageProfile value.
*/
- public Storage storage() {
- return this.storage;
+ public StorageProfile storageProfile() {
+ return this.storageProfile;
}
/**
- * Set the storage property: Storage related properties of a server.
+ * Set the storageProfile property: Storage profile of a server.
*
- * @param storage the storage value to set.
+ * @param storageProfile the storageProfile value to set.
* @return the ServerProperties object itself.
*/
- public ServerProperties withStorage(Storage storage) {
- this.storage = storage;
+ public ServerProperties withStorageProfile(StorageProfile storageProfile) {
+ this.storageProfile = storageProfile;
return this;
}
/**
- * Get the backup property: Backup related properties of a server.
+ * Get the replicationRole property: The replication role of the server.
*
- * @return the backup value.
+ * @return the replicationRole value.
*/
- public Backup backup() {
- return this.backup;
+ public String replicationRole() {
+ return this.replicationRole;
}
/**
- * Set the backup property: Backup related properties of a server.
+ * Set the replicationRole property: The replication role of the server.
*
- * @param backup the backup value to set.
+ * @param replicationRole the replicationRole value to set.
* @return the ServerProperties object itself.
*/
- public ServerProperties withBackup(Backup backup) {
- this.backup = backup;
+ public ServerProperties withReplicationRole(String replicationRole) {
+ this.replicationRole = replicationRole;
return this;
}
/**
- * Get the highAvailability property: High availability related properties of a server.
+ * Get the masterServerId property: The master server id of a replica server.
*
- * @return the highAvailability value.
+ * @return the masterServerId value.
*/
- public HighAvailability highAvailability() {
- return this.highAvailability;
+ public String masterServerId() {
+ return this.masterServerId;
}
/**
- * Set the highAvailability property: High availability related properties of a server.
+ * Set the masterServerId property: The master server id of a replica server.
*
- * @param highAvailability the highAvailability value to set.
+ * @param masterServerId the masterServerId value to set.
* @return the ServerProperties object itself.
*/
- public ServerProperties withHighAvailability(HighAvailability highAvailability) {
- this.highAvailability = highAvailability;
+ public ServerProperties withMasterServerId(String masterServerId) {
+ this.masterServerId = masterServerId;
return this;
}
/**
- * Get the network property: Network related properties of a server.
+ * Get the replicaCapacity property: The maximum number of replicas that a master server can have.
*
- * @return the network value.
+ * @return the replicaCapacity value.
*/
- public Network network() {
- return this.network;
+ public Integer replicaCapacity() {
+ return this.replicaCapacity;
}
/**
- * Set the network property: Network related properties of a server.
+ * Set the replicaCapacity property: The maximum number of replicas that a master server can have.
*
- * @param network the network value to set.
+ * @param replicaCapacity the replicaCapacity value to set.
* @return the ServerProperties object itself.
*/
- public ServerProperties withNetwork(Network network) {
- this.network = network;
+ public ServerProperties withReplicaCapacity(Integer replicaCapacity) {
+ this.replicaCapacity = replicaCapacity;
return this;
}
/**
- * Get the maintenanceWindow property: Maintenance window of a server.
+ * 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 maintenanceWindow value.
+ * @return the publicNetworkAccess value.
*/
- public MaintenanceWindow maintenanceWindow() {
- return this.maintenanceWindow;
+ public PublicNetworkAccessEnum publicNetworkAccess() {
+ return this.publicNetworkAccess;
}
/**
- * Set the maintenanceWindow property: Maintenance window of a server.
+ * 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 maintenanceWindow the maintenanceWindow value to set.
+ * @param publicNetworkAccess the publicNetworkAccess value to set.
* @return the ServerProperties object itself.
*/
- public ServerProperties withMaintenanceWindow(MaintenanceWindow maintenanceWindow) {
- this.maintenanceWindow = maintenanceWindow;
+ 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 (dataEncryption() != null) {
- dataEncryption().validate();
- }
- if (storage() != null) {
- storage().validate();
- }
- if (backup() != null) {
- backup().validate();
- }
- if (highAvailability() != null) {
- highAvailability().validate();
- }
- if (network() != null) {
- network().validate();
+ if (storageProfile() != null) {
+ storageProfile().validate();
}
- if (maintenanceWindow() != null) {
- maintenanceWindow().validate();
+ if (privateEndpointConnections() != null) {
+ privateEndpointConnections().forEach(e -> e.validate());
}
}
}
diff --git a/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/models/ServerPropertiesForUpdate.java b/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/models/ServerPropertiesForUpdate.java
deleted file mode 100644
index ef4edd8f530d..000000000000
--- a/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/models/ServerPropertiesForUpdate.java
+++ /dev/null
@@ -1,254 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.mysqlflexibleserver.fluent.models;
-
-import com.azure.core.annotation.Fluent;
-import com.azure.resourcemanager.mysqlflexibleserver.models.Backup;
-import com.azure.resourcemanager.mysqlflexibleserver.models.DataEncryption;
-import com.azure.resourcemanager.mysqlflexibleserver.models.HighAvailability;
-import com.azure.resourcemanager.mysqlflexibleserver.models.MaintenanceWindow;
-import com.azure.resourcemanager.mysqlflexibleserver.models.ReplicationRole;
-import com.azure.resourcemanager.mysqlflexibleserver.models.ServerVersion;
-import com.azure.resourcemanager.mysqlflexibleserver.models.Storage;
-import com.fasterxml.jackson.annotation.JsonProperty;
-
-/** The properties that can be updated for a server. */
-@Fluent
-public final class ServerPropertiesForUpdate {
- /*
- * The password of the administrator login.
- */
- @JsonProperty(value = "administratorLoginPassword")
- private String administratorLoginPassword;
-
- /*
- * Server version.
- */
- @JsonProperty(value = "version")
- private ServerVersion version;
-
- /*
- * Storage related properties of a server.
- */
- @JsonProperty(value = "storage")
- private Storage storage;
-
- /*
- * Backup related properties of a server.
- */
- @JsonProperty(value = "backup")
- private Backup backup;
-
- /*
- * High availability related properties of a server.
- */
- @JsonProperty(value = "highAvailability")
- private HighAvailability highAvailability;
-
- /*
- * Maintenance window of a server.
- */
- @JsonProperty(value = "maintenanceWindow")
- private MaintenanceWindow maintenanceWindow;
-
- /*
- * The replication role of the server.
- */
- @JsonProperty(value = "replicationRole")
- private ReplicationRole replicationRole;
-
- /*
- * The Data Encryption for CMK.
- */
- @JsonProperty(value = "dataEncryption")
- private DataEncryption dataEncryption;
-
- /** Creates an instance of ServerPropertiesForUpdate class. */
- public ServerPropertiesForUpdate() {
- }
-
- /**
- * 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 ServerPropertiesForUpdate object itself.
- */
- public ServerPropertiesForUpdate withAdministratorLoginPassword(String administratorLoginPassword) {
- this.administratorLoginPassword = administratorLoginPassword;
- 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 ServerPropertiesForUpdate object itself.
- */
- public ServerPropertiesForUpdate withVersion(ServerVersion version) {
- this.version = version;
- return this;
- }
-
- /**
- * Get the storage property: Storage related properties of a server.
- *
- * @return the storage value.
- */
- public Storage storage() {
- return this.storage;
- }
-
- /**
- * Set the storage property: Storage related properties of a server.
- *
- * @param storage the storage value to set.
- * @return the ServerPropertiesForUpdate object itself.
- */
- public ServerPropertiesForUpdate withStorage(Storage storage) {
- this.storage = storage;
- return this;
- }
-
- /**
- * Get the backup property: Backup related properties of a server.
- *
- * @return the backup value.
- */
- public Backup backup() {
- return this.backup;
- }
-
- /**
- * Set the backup property: Backup related properties of a server.
- *
- * @param backup the backup value to set.
- * @return the ServerPropertiesForUpdate object itself.
- */
- public ServerPropertiesForUpdate withBackup(Backup backup) {
- this.backup = backup;
- return this;
- }
-
- /**
- * Get the highAvailability property: High availability related properties of a server.
- *
- * @return the highAvailability value.
- */
- public HighAvailability highAvailability() {
- return this.highAvailability;
- }
-
- /**
- * Set the highAvailability property: High availability related properties of a server.
- *
- * @param highAvailability the highAvailability value to set.
- * @return the ServerPropertiesForUpdate object itself.
- */
- public ServerPropertiesForUpdate withHighAvailability(HighAvailability highAvailability) {
- this.highAvailability = highAvailability;
- return this;
- }
-
- /**
- * Get the maintenanceWindow property: Maintenance window of a server.
- *
- * @return the maintenanceWindow value.
- */
- public MaintenanceWindow maintenanceWindow() {
- return this.maintenanceWindow;
- }
-
- /**
- * Set the maintenanceWindow property: Maintenance window of a server.
- *
- * @param maintenanceWindow the maintenanceWindow value to set.
- * @return the ServerPropertiesForUpdate object itself.
- */
- public ServerPropertiesForUpdate withMaintenanceWindow(MaintenanceWindow maintenanceWindow) {
- this.maintenanceWindow = maintenanceWindow;
- return this;
- }
-
- /**
- * Get the replicationRole property: The replication role of the server.
- *
- * @return the replicationRole value.
- */
- public ReplicationRole replicationRole() {
- return this.replicationRole;
- }
-
- /**
- * Set the replicationRole property: The replication role of the server.
- *
- * @param replicationRole the replicationRole value to set.
- * @return the ServerPropertiesForUpdate object itself.
- */
- public ServerPropertiesForUpdate withReplicationRole(ReplicationRole replicationRole) {
- this.replicationRole = replicationRole;
- return this;
- }
-
- /**
- * Get the dataEncryption property: The Data Encryption for CMK.
- *
- * @return the dataEncryption value.
- */
- public DataEncryption dataEncryption() {
- return this.dataEncryption;
- }
-
- /**
- * Set the dataEncryption property: The Data Encryption for CMK.
- *
- * @param dataEncryption the dataEncryption value to set.
- * @return the ServerPropertiesForUpdate object itself.
- */
- public ServerPropertiesForUpdate withDataEncryption(DataEncryption dataEncryption) {
- this.dataEncryption = dataEncryption;
- return this;
- }
-
- /**
- * Validates the instance.
- *
- * @throws IllegalArgumentException thrown if the instance is not valid.
- */
- public void validate() {
- if (storage() != null) {
- storage().validate();
- }
- if (backup() != null) {
- backup().validate();
- }
- if (highAvailability() != null) {
- highAvailability().validate();
- }
- if (maintenanceWindow() != null) {
- maintenanceWindow().validate();
- }
- if (dataEncryption() != null) {
- dataEncryption().validate();
- }
- }
-}
diff --git a/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/models/ServerSecurityAlertPolicyInner.java b/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/models/ServerSecurityAlertPolicyInner.java
new file mode 100644
index 000000000000..94a4cf003c93
--- /dev/null
+++ b/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/models/ServerSecurityAlertPolicyInner.java
@@ -0,0 +1,212 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.mysqlflexibleserver.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.management.ProxyResource;
+import com.azure.resourcemanager.mysqlflexibleserver.models.ServerSecurityAlertPolicyState;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import java.util.List;
+
+/** A server security alert policy. */
+@Fluent
+public final class ServerSecurityAlertPolicyInner extends ProxyResource {
+ /*
+ * Resource properties.
+ */
+ @JsonProperty(value = "properties")
+ private SecurityAlertPolicyProperties innerProperties;
+
+ /** Creates an instance of ServerSecurityAlertPolicyInner class. */
+ public ServerSecurityAlertPolicyInner() {
+ }
+
+ /**
+ * Get the innerProperties property: Resource properties.
+ *
+ * @return the innerProperties value.
+ */
+ private SecurityAlertPolicyProperties innerProperties() {
+ return this.innerProperties;
+ }
+
+ /**
+ * 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.innerProperties() == null ? null : this.innerProperties().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 ServerSecurityAlertPolicyInner object itself.
+ */
+ public ServerSecurityAlertPolicyInner withState(ServerSecurityAlertPolicyState state) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new SecurityAlertPolicyProperties();
+ }
+ this.innerProperties().withState(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.innerProperties() == null ? null : this.innerProperties().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 ServerSecurityAlertPolicyInner object itself.
+ */
+ public ServerSecurityAlertPolicyInner withDisabledAlerts(List disabledAlerts) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new SecurityAlertPolicyProperties();
+ }
+ this.innerProperties().withDisabledAlerts(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.innerProperties() == null ? null : this.innerProperties().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 ServerSecurityAlertPolicyInner object itself.
+ */
+ public ServerSecurityAlertPolicyInner withEmailAddresses(List emailAddresses) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new SecurityAlertPolicyProperties();
+ }
+ this.innerProperties().withEmailAddresses(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.innerProperties() == null ? null : this.innerProperties().emailAccountAdmins();
+ }
+
+ /**
+ * Set the emailAccountAdmins property: Specifies that the alert is sent to the account administrators.
+ *
+ * @param emailAccountAdmins the emailAccountAdmins value to set.
+ * @return the ServerSecurityAlertPolicyInner object itself.
+ */
+ public ServerSecurityAlertPolicyInner withEmailAccountAdmins(Boolean emailAccountAdmins) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new SecurityAlertPolicyProperties();
+ }
+ this.innerProperties().withEmailAccountAdmins(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.innerProperties() == null ? null : this.innerProperties().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 ServerSecurityAlertPolicyInner object itself.
+ */
+ public ServerSecurityAlertPolicyInner withStorageEndpoint(String storageEndpoint) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new SecurityAlertPolicyProperties();
+ }
+ this.innerProperties().withStorageEndpoint(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.innerProperties() == null ? null : this.innerProperties().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 ServerSecurityAlertPolicyInner object itself.
+ */
+ public ServerSecurityAlertPolicyInner withStorageAccountAccessKey(String storageAccountAccessKey) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new SecurityAlertPolicyProperties();
+ }
+ this.innerProperties().withStorageAccountAccessKey(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.innerProperties() == null ? null : this.innerProperties().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 ServerSecurityAlertPolicyInner object itself.
+ */
+ public ServerSecurityAlertPolicyInner withRetentionDays(Integer retentionDays) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new SecurityAlertPolicyProperties();
+ }
+ this.innerProperties().withRetentionDays(retentionDays);
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (innerProperties() != null) {
+ innerProperties().validate();
+ }
+ }
+}
diff --git a/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/models/ServerUpdateParametersProperties.java b/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/models/ServerUpdateParametersProperties.java
new file mode 100644
index 000000000000..47496de4f9a0
--- /dev/null
+++ b/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/models/ServerUpdateParametersProperties.java
@@ -0,0 +1,217 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.mysqlflexibleserver.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.resourcemanager.mysqlflexibleserver.models.MinimalTlsVersionEnum;
+import com.azure.resourcemanager.mysqlflexibleserver.models.PublicNetworkAccessEnum;
+import com.azure.resourcemanager.mysqlflexibleserver.models.ServerVersion;
+import com.azure.resourcemanager.mysqlflexibleserver.models.SslEnforcementEnum;
+import com.azure.resourcemanager.mysqlflexibleserver.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;
+
+ /** Creates an instance of ServerUpdateParametersProperties class. */
+ public ServerUpdateParametersProperties() {
+ }
+
+ /**
+ * 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/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/models/ServerUpgradeParametersProperties.java b/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/models/ServerUpgradeParametersProperties.java
new file mode 100644
index 000000000000..165b7688135e
--- /dev/null
+++ b/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/models/ServerUpgradeParametersProperties.java
@@ -0,0 +1,50 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.mysqlflexibleserver.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/** The properties that can be updated for a server. */
+@Fluent
+public final class ServerUpgradeParametersProperties {
+ /*
+ * Represents an server storage profile.
+ */
+ @JsonProperty(value = "targetServerVersion")
+ private String targetServerVersion;
+
+ /** Creates an instance of ServerUpgradeParametersProperties class. */
+ public ServerUpgradeParametersProperties() {
+ }
+
+ /**
+ * Get the targetServerVersion property: Represents an server storage profile.
+ *
+ * @return the targetServerVersion value.
+ */
+ public String targetServerVersion() {
+ return this.targetServerVersion;
+ }
+
+ /**
+ * Set the targetServerVersion property: Represents an server storage profile.
+ *
+ * @param targetServerVersion the targetServerVersion value to set.
+ * @return the ServerUpgradeParametersProperties object itself.
+ */
+ public ServerUpgradeParametersProperties withTargetServerVersion(String targetServerVersion) {
+ this.targetServerVersion = targetServerVersion;
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ }
+}
diff --git a/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/models/TopQueryStatisticsInputProperties.java b/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/models/TopQueryStatisticsInputProperties.java
new file mode 100644
index 000000000000..fa2bab52fdb4
--- /dev/null
+++ b/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/models/TopQueryStatisticsInputProperties.java
@@ -0,0 +1,214 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.mysqlflexibleserver.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;
+
+ /** Creates an instance of TopQueryStatisticsInputProperties class. */
+ public TopQueryStatisticsInputProperties() {
+ }
+
+ /**
+ * 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/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/models/VirtualNetworkRuleInner.java b/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/models/VirtualNetworkRuleInner.java
new file mode 100644
index 000000000000..587f74a54b24
--- /dev/null
+++ b/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/models/VirtualNetworkRuleInner.java
@@ -0,0 +1,101 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.mysqlflexibleserver.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.management.ProxyResource;
+import com.azure.resourcemanager.mysqlflexibleserver.models.VirtualNetworkRuleState;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/** A virtual network rule. */
+@Fluent
+public final class VirtualNetworkRuleInner extends ProxyResource {
+ /*
+ * Resource properties.
+ */
+ @JsonProperty(value = "properties")
+ private VirtualNetworkRuleProperties innerProperties;
+
+ /** Creates an instance of VirtualNetworkRuleInner class. */
+ public VirtualNetworkRuleInner() {
+ }
+
+ /**
+ * Get the innerProperties property: Resource properties.
+ *
+ * @return the innerProperties value.
+ */
+ private VirtualNetworkRuleProperties innerProperties() {
+ return this.innerProperties;
+ }
+
+ /**
+ * Get the virtualNetworkSubnetId property: The ARM resource id of the virtual network subnet.
+ *
+ * @return the virtualNetworkSubnetId value.
+ */
+ public String virtualNetworkSubnetId() {
+ return this.innerProperties() == null ? null : this.innerProperties().virtualNetworkSubnetId();
+ }
+
+ /**
+ * Set the virtualNetworkSubnetId property: The ARM resource id of the virtual network subnet.
+ *
+ * @param virtualNetworkSubnetId the virtualNetworkSubnetId value to set.
+ * @return the VirtualNetworkRuleInner object itself.
+ */
+ public VirtualNetworkRuleInner withVirtualNetworkSubnetId(String virtualNetworkSubnetId) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new VirtualNetworkRuleProperties();
+ }
+ this.innerProperties().withVirtualNetworkSubnetId(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.innerProperties() == null ? null : this.innerProperties().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 VirtualNetworkRuleInner object itself.
+ */
+ public VirtualNetworkRuleInner withIgnoreMissingVnetServiceEndpoint(Boolean ignoreMissingVnetServiceEndpoint) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new VirtualNetworkRuleProperties();
+ }
+ this.innerProperties().withIgnoreMissingVnetServiceEndpoint(ignoreMissingVnetServiceEndpoint);
+ return this;
+ }
+
+ /**
+ * Get the state property: Virtual Network Rule State.
+ *
+ * @return the state value.
+ */
+ public VirtualNetworkRuleState state() {
+ return this.innerProperties() == null ? null : this.innerProperties().state();
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (innerProperties() != null) {
+ innerProperties().validate();
+ }
+ }
+}
diff --git a/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/models/VirtualNetworkRuleProperties.java b/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/models/VirtualNetworkRuleProperties.java
new file mode 100644
index 000000000000..3c327e9a9a88
--- /dev/null
+++ b/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/models/VirtualNetworkRuleProperties.java
@@ -0,0 +1,103 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.mysqlflexibleserver.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.util.logging.ClientLogger;
+import com.azure.resourcemanager.mysqlflexibleserver.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;
+
+ /** Creates an instance of VirtualNetworkRuleProperties class. */
+ public VirtualNetworkRuleProperties() {
+ }
+
+ /**
+ * 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/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/models/VirtualNetworkSubnetUsageResultInner.java b/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/models/VirtualNetworkSubnetUsageResultInner.java
deleted file mode 100644
index 270ee1a27a02..000000000000
--- a/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/models/VirtualNetworkSubnetUsageResultInner.java
+++ /dev/null
@@ -1,74 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.mysqlflexibleserver.fluent.models;
-
-import com.azure.core.annotation.Immutable;
-import com.azure.resourcemanager.mysqlflexibleserver.models.DelegatedSubnetUsage;
-import com.fasterxml.jackson.annotation.JsonProperty;
-import java.util.List;
-
-/** Virtual network subnet usage data. */
-@Immutable
-public final class VirtualNetworkSubnetUsageResultInner {
- /*
- * The location name.
- */
- @JsonProperty(value = "location", access = JsonProperty.Access.WRITE_ONLY)
- private String location;
-
- /*
- * The subscription id.
- */
- @JsonProperty(value = "subscriptionId", access = JsonProperty.Access.WRITE_ONLY)
- private String subscriptionId;
-
- /*
- * A list of delegated subnet usage
- */
- @JsonProperty(value = "delegatedSubnetsUsage", access = JsonProperty.Access.WRITE_ONLY)
- private List delegatedSubnetsUsage;
-
- /** Creates an instance of VirtualNetworkSubnetUsageResultInner class. */
- public VirtualNetworkSubnetUsageResultInner() {
- }
-
- /**
- * Get the location property: The location name.
- *
- * @return the location value.
- */
- public String location() {
- return this.location;
- }
-
- /**
- * Get the subscriptionId property: The subscription id.
- *
- * @return the subscriptionId value.
- */
- public String subscriptionId() {
- return this.subscriptionId;
- }
-
- /**
- * Get the delegatedSubnetsUsage property: A list of delegated subnet usage.
- *
- * @return the delegatedSubnetsUsage value.
- */
- public List delegatedSubnetsUsage() {
- return this.delegatedSubnetsUsage;
- }
-
- /**
- * Validates the instance.
- *
- * @throws IllegalArgumentException thrown if the instance is not valid.
- */
- public void validate() {
- if (delegatedSubnetsUsage() != null) {
- delegatedSubnetsUsage().forEach(e -> e.validate());
- }
- }
-}
diff --git a/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/models/WaitStatisticInner.java b/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/models/WaitStatisticInner.java
new file mode 100644
index 000000000000..c1eacc2c1618
--- /dev/null
+++ b/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/models/WaitStatisticInner.java
@@ -0,0 +1,251 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.mysqlflexibleserver.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.management.ProxyResource;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import java.time.OffsetDateTime;
+
+/** Represents a Wait Statistic. */
+@Fluent
+public final class WaitStatisticInner extends ProxyResource {
+ /*
+ * The properties of a wait statistic.
+ */
+ @JsonProperty(value = "properties")
+ private WaitStatisticProperties innerProperties;
+
+ /** Creates an instance of WaitStatisticInner class. */
+ public WaitStatisticInner() {
+ }
+
+ /**
+ * Get the innerProperties property: The properties of a wait statistic.
+ *
+ * @return the innerProperties value.
+ */
+ private WaitStatisticProperties innerProperties() {
+ return this.innerProperties;
+ }
+
+ /**
+ * Get the startTime property: Observation start time.
+ *
+ * @return the startTime value.
+ */
+ public OffsetDateTime startTime() {
+ return this.innerProperties() == null ? null : this.innerProperties().startTime();
+ }
+
+ /**
+ * Set the startTime property: Observation start time.
+ *
+ * @param startTime the startTime value to set.
+ * @return the WaitStatisticInner object itself.
+ */
+ public WaitStatisticInner withStartTime(OffsetDateTime startTime) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new WaitStatisticProperties();
+ }
+ this.innerProperties().withStartTime(startTime);
+ return this;
+ }
+
+ /**
+ * Get the endTime property: Observation end time.
+ *
+ * @return the endTime value.
+ */
+ public OffsetDateTime endTime() {
+ return this.innerProperties() == null ? null : this.innerProperties().endTime();
+ }
+
+ /**
+ * Set the endTime property: Observation end time.
+ *
+ * @param endTime the endTime value to set.
+ * @return the WaitStatisticInner object itself.
+ */
+ public WaitStatisticInner withEndTime(OffsetDateTime endTime) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new WaitStatisticProperties();
+ }
+ this.innerProperties().withEndTime(endTime);
+ return this;
+ }
+
+ /**
+ * Get the eventName property: Wait event name.
+ *
+ * @return the eventName value.
+ */
+ public String eventName() {
+ return this.innerProperties() == null ? null : this.innerProperties().eventName();
+ }
+
+ /**
+ * Set the eventName property: Wait event name.
+ *
+ * @param eventName the eventName value to set.
+ * @return the WaitStatisticInner object itself.
+ */
+ public WaitStatisticInner withEventName(String eventName) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new WaitStatisticProperties();
+ }
+ this.innerProperties().withEventName(eventName);
+ return this;
+ }
+
+ /**
+ * Get the eventTypeName property: Wait event type name.
+ *
+ * @return the eventTypeName value.
+ */
+ public String eventTypeName() {
+ return this.innerProperties() == null ? null : this.innerProperties().eventTypeName();
+ }
+
+ /**
+ * Set the eventTypeName property: Wait event type name.
+ *
+ * @param eventTypeName the eventTypeName value to set.
+ * @return the WaitStatisticInner object itself.
+ */
+ public WaitStatisticInner withEventTypeName(String eventTypeName) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new WaitStatisticProperties();
+ }
+ this.innerProperties().withEventTypeName(eventTypeName);
+ return this;
+ }
+
+ /**
+ * Get the queryId property: Database query identifier.
+ *
+ * @return the queryId value.
+ */
+ public Long queryId() {
+ return this.innerProperties() == null ? null : this.innerProperties().queryId();
+ }
+
+ /**
+ * Set the queryId property: Database query identifier.
+ *
+ * @param queryId the queryId value to set.
+ * @return the WaitStatisticInner object itself.
+ */
+ public WaitStatisticInner withQueryId(Long queryId) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new WaitStatisticProperties();
+ }
+ this.innerProperties().withQueryId(queryId);
+ return this;
+ }
+
+ /**
+ * Get the databaseName property: Database Name.
+ *
+ * @return the databaseName value.
+ */
+ public String databaseName() {
+ return this.innerProperties() == null ? null : this.innerProperties().databaseName();
+ }
+
+ /**
+ * Set the databaseName property: Database Name.
+ *
+ * @param databaseName the databaseName value to set.
+ * @return the WaitStatisticInner object itself.
+ */
+ public WaitStatisticInner withDatabaseName(String databaseName) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new WaitStatisticProperties();
+ }
+ this.innerProperties().withDatabaseName(databaseName);
+ return this;
+ }
+
+ /**
+ * Get the userId property: Database user identifier.
+ *
+ * @return the userId value.
+ */
+ public Long userId() {
+ return this.innerProperties() == null ? null : this.innerProperties().userId();
+ }
+
+ /**
+ * Set the userId property: Database user identifier.
+ *
+ * @param userId the userId value to set.
+ * @return the WaitStatisticInner object itself.
+ */
+ public WaitStatisticInner withUserId(Long userId) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new WaitStatisticProperties();
+ }
+ this.innerProperties().withUserId(userId);
+ return this;
+ }
+
+ /**
+ * Get the count property: Wait event count observed in this time interval.
+ *
+ * @return the count value.
+ */
+ public Long count() {
+ return this.innerProperties() == null ? null : this.innerProperties().count();
+ }
+
+ /**
+ * Set the count property: Wait event count observed in this time interval.
+ *
+ * @param count the count value to set.
+ * @return the WaitStatisticInner object itself.
+ */
+ public WaitStatisticInner withCount(Long count) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new WaitStatisticProperties();
+ }
+ this.innerProperties().withCount(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.innerProperties() == null ? null : this.innerProperties().totalTimeInMs();
+ }
+
+ /**
+ * Set the totalTimeInMs property: Total time of wait in milliseconds in this time interval.
+ *
+ * @param totalTimeInMs the totalTimeInMs value to set.
+ * @return the WaitStatisticInner object itself.
+ */
+ public WaitStatisticInner withTotalTimeInMs(Double totalTimeInMs) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new WaitStatisticProperties();
+ }
+ this.innerProperties().withTotalTimeInMs(totalTimeInMs);
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (innerProperties() != null) {
+ innerProperties().validate();
+ }
+ }
+}
diff --git a/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/models/WaitStatisticProperties.java b/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/models/WaitStatisticProperties.java
new file mode 100644
index 000000000000..afc2ac8daaed
--- /dev/null
+++ b/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/models/WaitStatisticProperties.java
@@ -0,0 +1,259 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.mysqlflexibleserver.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;
+
+ /** Creates an instance of WaitStatisticProperties class. */
+ public WaitStatisticProperties() {
+ }
+
+ /**
+ * 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/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/models/WaitStatisticsInputProperties.java b/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/models/WaitStatisticsInputProperties.java
new file mode 100644
index 000000000000..6ab129db0fb0
--- /dev/null
+++ b/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/fluent/models/WaitStatisticsInputProperties.java
@@ -0,0 +1,124 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.mysqlflexibleserver.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;
+
+ /** Creates an instance of WaitStatisticsInputProperties class. */
+ public WaitStatisticsInputProperties() {
+ }
+
+ /**
+ * 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/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/implementation/GetPrivateDnsZoneSuffixResponseImpl.java b/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/implementation/AdvisorImpl.java
similarity index 50%
rename from sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/implementation/GetPrivateDnsZoneSuffixResponseImpl.java
rename to sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/implementation/AdvisorImpl.java
index 3dc69782ccc0..335b04c3a52e 100644
--- a/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/implementation/GetPrivateDnsZoneSuffixResponseImpl.java
+++ b/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/implementation/AdvisorImpl.java
@@ -4,26 +4,36 @@
package com.azure.resourcemanager.mysqlflexibleserver.implementation;
-import com.azure.resourcemanager.mysqlflexibleserver.fluent.models.GetPrivateDnsZoneSuffixResponseInner;
-import com.azure.resourcemanager.mysqlflexibleserver.models.GetPrivateDnsZoneSuffixResponse;
+import com.azure.resourcemanager.mysqlflexibleserver.fluent.models.AdvisorInner;
+import com.azure.resourcemanager.mysqlflexibleserver.models.Advisor;
-public final class GetPrivateDnsZoneSuffixResponseImpl implements GetPrivateDnsZoneSuffixResponse {
- private GetPrivateDnsZoneSuffixResponseInner innerObject;
+public final class AdvisorImpl implements Advisor {
+ private AdvisorInner innerObject;
private final com.azure.resourcemanager.mysqlflexibleserver.MySqlManager serviceManager;
- GetPrivateDnsZoneSuffixResponseImpl(
- GetPrivateDnsZoneSuffixResponseInner innerObject,
- com.azure.resourcemanager.mysqlflexibleserver.MySqlManager serviceManager) {
+ AdvisorImpl(AdvisorInner innerObject, com.azure.resourcemanager.mysqlflexibleserver.MySqlManager serviceManager) {
this.innerObject = innerObject;
this.serviceManager = serviceManager;
}
- public String privateDnsZoneSuffix() {
- return this.innerModel().privateDnsZoneSuffix();
+ public String id() {
+ return this.innerModel().id();
}
- public GetPrivateDnsZoneSuffixResponseInner innerModel() {
+ public String name() {
+ return this.innerModel().name();
+ }
+
+ public String type() {
+ return this.innerModel().type();
+ }
+
+ public Object properties() {
+ return this.innerModel().properties();
+ }
+
+ public AdvisorInner innerModel() {
return this.innerObject;
}
diff --git a/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/implementation/AdvisorsClientImpl.java b/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/implementation/AdvisorsClientImpl.java
new file mode 100644
index 000000000000..2c9bc4d5d805
--- /dev/null
+++ b/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/implementation/AdvisorsClientImpl.java
@@ -0,0 +1,506 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.mysqlflexibleserver.implementation;
+
+import com.azure.core.annotation.ExpectedResponses;
+import com.azure.core.annotation.Get;
+import com.azure.core.annotation.HeaderParam;
+import com.azure.core.annotation.Headers;
+import com.azure.core.annotation.Host;
+import com.azure.core.annotation.HostParam;
+import com.azure.core.annotation.PathParam;
+import com.azure.core.annotation.QueryParam;
+import com.azure.core.annotation.ReturnType;
+import com.azure.core.annotation.ServiceInterface;
+import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.annotation.UnexpectedResponseExceptionType;
+import com.azure.core.http.rest.PagedFlux;
+import com.azure.core.http.rest.PagedIterable;
+import com.azure.core.http.rest.PagedResponse;
+import com.azure.core.http.rest.PagedResponseBase;
+import com.azure.core.http.rest.Response;
+import com.azure.core.http.rest.RestProxy;
+import com.azure.core.management.exception.ManagementException;
+import com.azure.core.util.Context;
+import com.azure.core.util.FluxUtil;
+import com.azure.resourcemanager.mysqlflexibleserver.fluent.AdvisorsClient;
+import com.azure.resourcemanager.mysqlflexibleserver.fluent.models.AdvisorInner;
+import com.azure.resourcemanager.mysqlflexibleserver.models.AdvisorsResultList;
+import reactor.core.publisher.Mono;
+
+/** An instance of this class provides access to all the operations defined in AdvisorsClient. */
+public final class AdvisorsClientImpl implements AdvisorsClient {
+ /** The proxy service used to perform REST calls. */
+ private final AdvisorsService service;
+
+ /** The service client containing this operation class. */
+ private final MySqlManagementClientImpl client;
+
+ /**
+ * Initializes an instance of AdvisorsClientImpl.
+ *
+ * @param client the instance of the service client containing this operation class.
+ */
+ AdvisorsClientImpl(MySqlManagementClientImpl client) {
+ this.service = RestProxy.create(AdvisorsService.class, client.getHttpPipeline(), client.getSerializerAdapter());
+ this.client = client;
+ }
+
+ /**
+ * The interface defining all the services for MySqlManagementClientAdvisors to be used by the proxy service to
+ * perform REST calls.
+ */
+ @Host("{$host}")
+ @ServiceInterface(name = "MySqlManagementClien")
+ public interface AdvisorsService {
+ @Headers({"Content-Type: application/json"})
+ @Get(
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMySQL/servers/{serverName}/advisors/{advisorName}")
+ @ExpectedResponses({200})
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> get(
+ @HostParam("$host") String endpoint,
+ @QueryParam("api-version") String apiVersion,
+ @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("serverName") String serverName,
+ @PathParam("advisorName") String advisorName,
+ @HeaderParam("Accept") String accept,
+ Context context);
+
+ @Headers({"Content-Type: application/json"})
+ @Get(
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMySQL/servers/{serverName}/advisors")
+ @ExpectedResponses({200})
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> listByServer(
+ @HostParam("$host") String endpoint,
+ @QueryParam("api-version") String apiVersion,
+ @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("serverName") String serverName,
+ @HeaderParam("Accept") String accept,
+ Context context);
+
+ @Headers({"Content-Type: application/json"})
+ @Get("{nextLink}")
+ @ExpectedResponses({200})
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> listByServerNext(
+ @PathParam(value = "nextLink", encoded = true) String nextLink,
+ @HostParam("$host") String endpoint,
+ @HeaderParam("Accept") String accept,
+ Context context);
+ }
+
+ /**
+ * Get a recommendation action advisor.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param serverName The name of the server.
+ * @param advisorName The advisor name for recommendation action.
+ * @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 along with {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> getWithResponseAsync(
+ String resourceGroupName, String serverName, String advisorName) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (serverName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter serverName is required and cannot be null."));
+ }
+ if (advisorName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter advisorName is required and cannot be null."));
+ }
+ final String apiVersion = "2018-06-01";
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(
+ context ->
+ service
+ .get(
+ this.client.getEndpoint(),
+ apiVersion,
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ serverName,
+ advisorName,
+ accept,
+ context))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * Get a recommendation action advisor.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param serverName The name of the server.
+ * @param advisorName The advisor name for recommendation action.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a recommendation action advisor along with {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> getWithResponseAsync(
+ String resourceGroupName, String serverName, String advisorName, Context context) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (serverName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter serverName is required and cannot be null."));
+ }
+ if (advisorName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter advisorName is required and cannot be null."));
+ }
+ final String apiVersion = "2018-06-01";
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service
+ .get(
+ this.client.getEndpoint(),
+ apiVersion,
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ serverName,
+ advisorName,
+ accept,
+ context);
+ }
+
+ /**
+ * Get a recommendation action advisor.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param serverName The name of the server.
+ * @param advisorName The advisor name for recommendation action.
+ * @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 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(res -> Mono.justOrEmpty(res.getValue()));
+ }
+
+ /**
+ * Get a recommendation action advisor.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param serverName The name of the server.
+ * @param advisorName The advisor name for recommendation action.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a recommendation action advisor along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Response getWithResponse(
+ String resourceGroupName, String serverName, String advisorName, Context context) {
+ return getWithResponseAsync(resourceGroupName, serverName, advisorName, context).block();
+ }
+
+ /**
+ * Get a recommendation action advisor.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param serverName The name of the server.
+ * @param advisorName The advisor name for recommendation action.
+ * @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.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public AdvisorInner get(String resourceGroupName, String serverName, String advisorName) {
+ return getWithResponse(resourceGroupName, serverName, advisorName, Context.NONE).getValue();
+ }
+
+ /**
+ * List recommendation action advisors.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param serverName The name of the server.
+ * @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 along with {@link PagedResponse} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listByServerSinglePageAsync(String resourceGroupName, String serverName) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (serverName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter serverName is required and cannot be null."));
+ }
+ final String apiVersion = "2018-06-01";
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(
+ context ->
+ service
+ .listByServer(
+ this.client.getEndpoint(),
+ apiVersion,
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ serverName,
+ accept,
+ context))
+ .>map(
+ res ->
+ new PagedResponseBase<>(
+ res.getRequest(),
+ res.getStatusCode(),
+ res.getHeaders(),
+ res.getValue().value(),
+ res.getValue().nextLink(),
+ null))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * List recommendation action advisors.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param serverName The name of the server.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a 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, Context context) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (serverName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter serverName is required and cannot be null."));
+ }
+ final String apiVersion = "2018-06-01";
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service
+ .listByServer(
+ this.client.getEndpoint(),
+ apiVersion,
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ serverName,
+ accept,
+ context)
+ .map(
+ res ->
+ new PagedResponseBase<>(
+ res.getRequest(),
+ res.getStatusCode(),
+ res.getHeaders(),
+ res.getValue().value(),
+ res.getValue().nextLink(),
+ null));
+ }
+
+ /**
+ * List recommendation action advisors.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param serverName The name of the server.
+ * @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 as paginated response with {@link PagedFlux}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ private PagedFlux listByServerAsync(String resourceGroupName, String serverName) {
+ return new PagedFlux<>(
+ () -> listByServerSinglePageAsync(resourceGroupName, serverName),
+ nextLink -> listByServerNextSinglePageAsync(nextLink));
+ }
+
+ /**
+ * List recommendation action advisors.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param serverName The name of the server.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a list of query statistics as paginated response with {@link PagedFlux}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ private PagedFlux listByServerAsync(String resourceGroupName, String serverName, Context context) {
+ return new PagedFlux<>(
+ () -> listByServerSinglePageAsync(resourceGroupName, serverName, context),
+ nextLink -> listByServerNextSinglePageAsync(nextLink, context));
+ }
+
+ /**
+ * List recommendation action advisors.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param serverName The name of the server.
+ * @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 as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ public PagedIterable listByServer(String resourceGroupName, String serverName) {
+ return new PagedIterable<>(listByServerAsync(resourceGroupName, serverName));
+ }
+
+ /**
+ * List recommendation action advisors.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param serverName The name of the server.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a list of query statistics as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ public PagedIterable listByServer(String resourceGroupName, String serverName, Context context) {
+ return new PagedIterable<>(listByServerAsync(resourceGroupName, serverName, context));
+ }
+
+ /**
+ * Get the next page of items.
+ *
+ * @param nextLink The URL to get the next list of items
+ * The nextLink parameter.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @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) {
+ if (nextLink == null) {
+ return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null."));
+ }
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(context -> service.listByServerNext(nextLink, this.client.getEndpoint(), accept, context))
+ .>map(
+ res ->
+ new PagedResponseBase<>(
+ res.getRequest(),
+ res.getStatusCode(),
+ res.getHeaders(),
+ res.getValue().value(),
+ res.getValue().nextLink(),
+ null))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * Get the next page of items.
+ *
+ * @param nextLink The URL to get the next list of items
+ * The nextLink parameter.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @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) {
+ if (nextLink == null) {
+ return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null."));
+ }
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service
+ .listByServerNext(nextLink, this.client.getEndpoint(), accept, context)
+ .map(
+ res ->
+ new PagedResponseBase<>(
+ res.getRequest(),
+ res.getStatusCode(),
+ res.getHeaders(),
+ res.getValue().value(),
+ res.getValue().nextLink(),
+ null));
+ }
+}
diff --git a/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/implementation/AdvisorsImpl.java b/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/implementation/AdvisorsImpl.java
new file mode 100644
index 000000000000..5b68a914a1ce
--- /dev/null
+++ b/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/implementation/AdvisorsImpl.java
@@ -0,0 +1,71 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.mysqlflexibleserver.implementation;
+
+import com.azure.core.http.rest.PagedIterable;
+import com.azure.core.http.rest.Response;
+import com.azure.core.http.rest.SimpleResponse;
+import com.azure.core.util.Context;
+import com.azure.core.util.logging.ClientLogger;
+import com.azure.resourcemanager.mysqlflexibleserver.fluent.AdvisorsClient;
+import com.azure.resourcemanager.mysqlflexibleserver.fluent.models.AdvisorInner;
+import com.azure.resourcemanager.mysqlflexibleserver.models.Advisor;
+import com.azure.resourcemanager.mysqlflexibleserver.models.Advisors;
+
+public final class AdvisorsImpl implements Advisors {
+ private static final ClientLogger LOGGER = new ClientLogger(AdvisorsImpl.class);
+
+ private final AdvisorsClient innerClient;
+
+ private final com.azure.resourcemanager.mysqlflexibleserver.MySqlManager serviceManager;
+
+ public AdvisorsImpl(
+ AdvisorsClient innerClient, com.azure.resourcemanager.mysqlflexibleserver.MySqlManager serviceManager) {
+ this.innerClient = innerClient;
+ this.serviceManager = serviceManager;
+ }
+
+ public Response getWithResponse(
+ String resourceGroupName, String serverName, String advisorName, Context context) {
+ Response inner =
+ this.serviceClient().getWithResponse(resourceGroupName, serverName, advisorName, context);
+ if (inner != null) {
+ return new SimpleResponse<>(
+ inner.getRequest(),
+ inner.getStatusCode(),
+ inner.getHeaders(),
+ new AdvisorImpl(inner.getValue(), this.manager()));
+ } else {
+ return null;
+ }
+ }
+
+ public Advisor get(String resourceGroupName, String serverName, String advisorName) {
+ AdvisorInner inner = this.serviceClient().get(resourceGroupName, serverName, advisorName);
+ if (inner != null) {
+ return new AdvisorImpl(inner, this.manager());
+ } else {
+ return null;
+ }
+ }
+
+ public PagedIterable listByServer(String resourceGroupName, String serverName) {
+ PagedIterable inner = this.serviceClient().listByServer(resourceGroupName, serverName);
+ return Utils.mapPage(inner, inner1 -> new AdvisorImpl(inner1, this.manager()));
+ }
+
+ public PagedIterable listByServer(String resourceGroupName, String serverName, Context context) {
+ PagedIterable inner = this.serviceClient().listByServer(resourceGroupName, serverName, context);
+ return Utils.mapPage(inner, inner1 -> new AdvisorImpl(inner1, this.manager()));
+ }
+
+ private AdvisorsClient serviceClient() {
+ return this.innerClient;
+ }
+
+ private com.azure.resourcemanager.mysqlflexibleserver.MySqlManager manager() {
+ return this.serviceManager;
+ }
+}
diff --git a/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/implementation/AzureADAdministratorImpl.java b/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/implementation/AzureADAdministratorImpl.java
deleted file mode 100644
index bd4a5569be38..000000000000
--- a/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/implementation/AzureADAdministratorImpl.java
+++ /dev/null
@@ -1,182 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.mysqlflexibleserver.implementation;
-
-import com.azure.core.management.SystemData;
-import com.azure.core.util.Context;
-import com.azure.resourcemanager.mysqlflexibleserver.fluent.models.AzureADAdministratorInner;
-import com.azure.resourcemanager.mysqlflexibleserver.models.AdministratorName;
-import com.azure.resourcemanager.mysqlflexibleserver.models.AdministratorType;
-import com.azure.resourcemanager.mysqlflexibleserver.models.AzureADAdministrator;
-
-public final class AzureADAdministratorImpl
- implements AzureADAdministrator, AzureADAdministrator.Definition, AzureADAdministrator.Update {
- private AzureADAdministratorInner innerObject;
-
- private final com.azure.resourcemanager.mysqlflexibleserver.MySqlManager serviceManager;
-
- public String id() {
- return this.innerModel().id();
- }
-
- public String name() {
- return this.innerModel().name();
- }
-
- public String type() {
- return this.innerModel().type();
- }
-
- public SystemData systemData() {
- return this.innerModel().systemData();
- }
-
- public AdministratorType administratorType() {
- return this.innerModel().administratorType();
- }
-
- public String login() {
- return this.innerModel().login();
- }
-
- public String sid() {
- return this.innerModel().sid();
- }
-
- public String tenantId() {
- return this.innerModel().tenantId();
- }
-
- public String identityResourceId() {
- return this.innerModel().identityResourceId();
- }
-
- public String resourceGroupName() {
- return resourceGroupName;
- }
-
- public AzureADAdministratorInner innerModel() {
- return this.innerObject;
- }
-
- private com.azure.resourcemanager.mysqlflexibleserver.MySqlManager manager() {
- return this.serviceManager;
- }
-
- private String resourceGroupName;
-
- private String serverName;
-
- private AdministratorName administratorName;
-
- public AzureADAdministratorImpl withExistingFlexibleServer(String resourceGroupName, String serverName) {
- this.resourceGroupName = resourceGroupName;
- this.serverName = serverName;
- return this;
- }
-
- public AzureADAdministrator create() {
- this.innerObject =
- serviceManager
- .serviceClient()
- .getAzureADAdministrators()
- .createOrUpdate(resourceGroupName, serverName, administratorName, this.innerModel(), Context.NONE);
- return this;
- }
-
- public AzureADAdministrator create(Context context) {
- this.innerObject =
- serviceManager
- .serviceClient()
- .getAzureADAdministrators()
- .createOrUpdate(resourceGroupName, serverName, administratorName, this.innerModel(), context);
- return this;
- }
-
- AzureADAdministratorImpl(
- AdministratorName name, com.azure.resourcemanager.mysqlflexibleserver.MySqlManager serviceManager) {
- this.innerObject = new AzureADAdministratorInner();
- this.serviceManager = serviceManager;
- this.administratorName = name;
- }
-
- public AzureADAdministratorImpl update() {
- return this;
- }
-
- public AzureADAdministrator apply() {
- this.innerObject =
- serviceManager
- .serviceClient()
- .getAzureADAdministrators()
- .createOrUpdate(resourceGroupName, serverName, administratorName, this.innerModel(), Context.NONE);
- return this;
- }
-
- public AzureADAdministrator apply(Context context) {
- this.innerObject =
- serviceManager
- .serviceClient()
- .getAzureADAdministrators()
- .createOrUpdate(resourceGroupName, serverName, administratorName, this.innerModel(), context);
- return this;
- }
-
- AzureADAdministratorImpl(
- AzureADAdministratorInner innerObject,
- com.azure.resourcemanager.mysqlflexibleserver.MySqlManager serviceManager) {
- this.innerObject = innerObject;
- this.serviceManager = serviceManager;
- this.resourceGroupName = Utils.getValueFromIdByName(innerObject.id(), "resourceGroups");
- this.serverName = Utils.getValueFromIdByName(innerObject.id(), "flexibleServers");
- this.administratorName =
- AdministratorName.fromString(Utils.getValueFromIdByName(innerObject.id(), "administrators"));
- }
-
- public AzureADAdministrator refresh() {
- this.innerObject =
- serviceManager
- .serviceClient()
- .getAzureADAdministrators()
- .getWithResponse(resourceGroupName, serverName, administratorName, Context.NONE)
- .getValue();
- return this;
- }
-
- public AzureADAdministrator refresh(Context context) {
- this.innerObject =
- serviceManager
- .serviceClient()
- .getAzureADAdministrators()
- .getWithResponse(resourceGroupName, serverName, administratorName, context)
- .getValue();
- return this;
- }
-
- public AzureADAdministratorImpl withAdministratorType(AdministratorType administratorType) {
- this.innerModel().withAdministratorType(administratorType);
- return this;
- }
-
- public AzureADAdministratorImpl withLogin(String login) {
- this.innerModel().withLogin(login);
- return this;
- }
-
- public AzureADAdministratorImpl withSid(String sid) {
- this.innerModel().withSid(sid);
- return this;
- }
-
- public AzureADAdministratorImpl withTenantId(String tenantId) {
- this.innerModel().withTenantId(tenantId);
- return this;
- }
-
- public AzureADAdministratorImpl withIdentityResourceId(String identityResourceId) {
- this.innerModel().withIdentityResourceId(identityResourceId);
- return this;
- }
-}
diff --git a/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/implementation/AzureADAdministratorsImpl.java b/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/implementation/AzureADAdministratorsImpl.java
deleted file mode 100644
index 5055e5c2c409..000000000000
--- a/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/implementation/AzureADAdministratorsImpl.java
+++ /dev/null
@@ -1,205 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.mysqlflexibleserver.implementation;
-
-import com.azure.core.http.rest.PagedIterable;
-import com.azure.core.http.rest.Response;
-import com.azure.core.http.rest.SimpleResponse;
-import com.azure.core.util.Context;
-import com.azure.core.util.logging.ClientLogger;
-import com.azure.resourcemanager.mysqlflexibleserver.fluent.AzureADAdministratorsClient;
-import com.azure.resourcemanager.mysqlflexibleserver.fluent.models.AzureADAdministratorInner;
-import com.azure.resourcemanager.mysqlflexibleserver.models.AdministratorName;
-import com.azure.resourcemanager.mysqlflexibleserver.models.AzureADAdministrator;
-import com.azure.resourcemanager.mysqlflexibleserver.models.AzureADAdministrators;
-
-public final class AzureADAdministratorsImpl implements AzureADAdministrators {
- private static final ClientLogger LOGGER = new ClientLogger(AzureADAdministratorsImpl.class);
-
- private final AzureADAdministratorsClient innerClient;
-
- private final com.azure.resourcemanager.mysqlflexibleserver.MySqlManager serviceManager;
-
- public AzureADAdministratorsImpl(
- AzureADAdministratorsClient innerClient,
- com.azure.resourcemanager.mysqlflexibleserver.MySqlManager serviceManager) {
- this.innerClient = innerClient;
- this.serviceManager = serviceManager;
- }
-
- public void delete(String resourceGroupName, String serverName, AdministratorName administratorName) {
- this.serviceClient().delete(resourceGroupName, serverName, administratorName);
- }
-
- public void delete(
- String resourceGroupName, String serverName, AdministratorName administratorName, Context context) {
- this.serviceClient().delete(resourceGroupName, serverName, administratorName, context);
- }
-
- public Response getWithResponse(
- String resourceGroupName, String serverName, AdministratorName administratorName, Context context) {
- Response inner =
- this.serviceClient().getWithResponse(resourceGroupName, serverName, administratorName, context);
- if (inner != null) {
- return new SimpleResponse<>(
- inner.getRequest(),
- inner.getStatusCode(),
- inner.getHeaders(),
- new AzureADAdministratorImpl(inner.getValue(), this.manager()));
- } else {
- return null;
- }
- }
-
- public AzureADAdministrator get(String resourceGroupName, String serverName, AdministratorName administratorName) {
- AzureADAdministratorInner inner = this.serviceClient().get(resourceGroupName, serverName, administratorName);
- if (inner != null) {
- return new AzureADAdministratorImpl(inner, this.manager());
- } else {
- return null;
- }
- }
-
- public PagedIterable listByServer(String resourceGroupName, String serverName) {
- PagedIterable inner =
- this.serviceClient().listByServer(resourceGroupName, serverName);
- return Utils.mapPage(inner, inner1 -> new AzureADAdministratorImpl(inner1, this.manager()));
- }
-
- public PagedIterable listByServer(
- String resourceGroupName, String serverName, Context context) {
- PagedIterable inner =
- this.serviceClient().listByServer(resourceGroupName, serverName, context);
- return Utils.mapPage(inner, inner1 -> new AzureADAdministratorImpl(inner1, this.manager()));
- }
-
- public AzureADAdministrator getById(String id) {
- String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups");
- if (resourceGroupName == null) {
- throw LOGGER
- .logExceptionAsError(
- new IllegalArgumentException(
- String
- .format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id)));
- }
- String serverName = Utils.getValueFromIdByName(id, "flexibleServers");
- if (serverName == null) {
- throw LOGGER
- .logExceptionAsError(
- new IllegalArgumentException(
- String
- .format("The resource ID '%s' is not valid. Missing path segment 'flexibleServers'.", id)));
- }
- String administratorNameLocal = Utils.getValueFromIdByName(id, "administrators");
- if (administratorNameLocal == null) {
- throw LOGGER
- .logExceptionAsError(
- new IllegalArgumentException(
- String
- .format("The resource ID '%s' is not valid. Missing path segment 'administrators'.", id)));
- }
- AdministratorName administratorName = AdministratorName.fromString(administratorNameLocal);
- return this.getWithResponse(resourceGroupName, serverName, administratorName, Context.NONE).getValue();
- }
-
- public Response getByIdWithResponse(String id, Context context) {
- String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups");
- if (resourceGroupName == null) {
- throw LOGGER
- .logExceptionAsError(
- new IllegalArgumentException(
- String
- .format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id)));
- }
- String serverName = Utils.getValueFromIdByName(id, "flexibleServers");
- if (serverName == null) {
- throw LOGGER
- .logExceptionAsError(
- new IllegalArgumentException(
- String
- .format("The resource ID '%s' is not valid. Missing path segment 'flexibleServers'.", id)));
- }
- String administratorNameLocal = Utils.getValueFromIdByName(id, "administrators");
- if (administratorNameLocal == null) {
- throw LOGGER
- .logExceptionAsError(
- new IllegalArgumentException(
- String
- .format("The resource ID '%s' is not valid. Missing path segment 'administrators'.", id)));
- }
- AdministratorName administratorName = AdministratorName.fromString(administratorNameLocal);
- return this.getWithResponse(resourceGroupName, serverName, administratorName, context);
- }
-
- public void deleteById(String id) {
- String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups");
- if (resourceGroupName == null) {
- throw LOGGER
- .logExceptionAsError(
- new IllegalArgumentException(
- String
- .format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id)));
- }
- String serverName = Utils.getValueFromIdByName(id, "flexibleServers");
- if (serverName == null) {
- throw LOGGER
- .logExceptionAsError(
- new IllegalArgumentException(
- String
- .format("The resource ID '%s' is not valid. Missing path segment 'flexibleServers'.", id)));
- }
- String administratorNameLocal = Utils.getValueFromIdByName(id, "administrators");
- if (administratorNameLocal == null) {
- throw LOGGER
- .logExceptionAsError(
- new IllegalArgumentException(
- String
- .format("The resource ID '%s' is not valid. Missing path segment 'administrators'.", id)));
- }
- AdministratorName administratorName = AdministratorName.fromString(administratorNameLocal);
- this.delete(resourceGroupName, serverName, administratorName, Context.NONE);
- }
-
- public void deleteByIdWithResponse(String id, Context context) {
- String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups");
- if (resourceGroupName == null) {
- throw LOGGER
- .logExceptionAsError(
- new IllegalArgumentException(
- String
- .format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id)));
- }
- String serverName = Utils.getValueFromIdByName(id, "flexibleServers");
- if (serverName == null) {
- throw LOGGER
- .logExceptionAsError(
- new IllegalArgumentException(
- String
- .format("The resource ID '%s' is not valid. Missing path segment 'flexibleServers'.", id)));
- }
- String administratorNameLocal = Utils.getValueFromIdByName(id, "administrators");
- if (administratorNameLocal == null) {
- throw LOGGER
- .logExceptionAsError(
- new IllegalArgumentException(
- String
- .format("The resource ID '%s' is not valid. Missing path segment 'administrators'.", id)));
- }
- AdministratorName administratorName = AdministratorName.fromString(administratorNameLocal);
- this.delete(resourceGroupName, serverName, administratorName, context);
- }
-
- private AzureADAdministratorsClient serviceClient() {
- return this.innerClient;
- }
-
- private com.azure.resourcemanager.mysqlflexibleserver.MySqlManager manager() {
- return this.serviceManager;
- }
-
- public AzureADAdministratorImpl define(AdministratorName name) {
- return new AzureADAdministratorImpl(name, this.manager());
- }
-}
diff --git a/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/implementation/BackupsImpl.java b/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/implementation/BackupsImpl.java
deleted file mode 100644
index d01ef6eb0006..000000000000
--- a/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/implementation/BackupsImpl.java
+++ /dev/null
@@ -1,96 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.mysqlflexibleserver.implementation;
-
-import com.azure.core.http.rest.PagedIterable;
-import com.azure.core.http.rest.Response;
-import com.azure.core.http.rest.SimpleResponse;
-import com.azure.core.util.Context;
-import com.azure.core.util.logging.ClientLogger;
-import com.azure.resourcemanager.mysqlflexibleserver.fluent.BackupsClient;
-import com.azure.resourcemanager.mysqlflexibleserver.fluent.models.ServerBackupInner;
-import com.azure.resourcemanager.mysqlflexibleserver.models.Backups;
-import com.azure.resourcemanager.mysqlflexibleserver.models.ServerBackup;
-
-public final class BackupsImpl implements Backups {
- private static final ClientLogger LOGGER = new ClientLogger(BackupsImpl.class);
-
- private final BackupsClient innerClient;
-
- private final com.azure.resourcemanager.mysqlflexibleserver.MySqlManager serviceManager;
-
- public BackupsImpl(
- BackupsClient innerClient, com.azure.resourcemanager.mysqlflexibleserver.MySqlManager serviceManager) {
- this.innerClient = innerClient;
- this.serviceManager = serviceManager;
- }
-
- public Response putWithResponse(
- String resourceGroupName, String serverName, String backupName, Context context) {
- Response inner =
- this.serviceClient().putWithResponse(resourceGroupName, serverName, backupName, context);
- if (inner != null) {
- return new SimpleResponse<>(
- inner.getRequest(),
- inner.getStatusCode(),
- inner.getHeaders(),
- new ServerBackupImpl(inner.getValue(), this.manager()));
- } else {
- return null;
- }
- }
-
- public ServerBackup put(String resourceGroupName, String serverName, String backupName) {
- ServerBackupInner inner = this.serviceClient().put(resourceGroupName, serverName, backupName);
- if (inner != null) {
- return new ServerBackupImpl(inner, this.manager());
- } else {
- return null;
- }
- }
-
- public Response getWithResponse(
- String resourceGroupName, String serverName, String backupName, Context context) {
- Response inner =
- this.serviceClient().getWithResponse(resourceGroupName, serverName, backupName, context);
- if (inner != null) {
- return new SimpleResponse<>(
- inner.getRequest(),
- inner.getStatusCode(),
- inner.getHeaders(),
- new ServerBackupImpl(inner.getValue(), this.manager()));
- } else {
- return null;
- }
- }
-
- public ServerBackup get(String resourceGroupName, String serverName, String backupName) {
- ServerBackupInner inner = this.serviceClient().get(resourceGroupName, serverName, backupName);
- if (inner != null) {
- return new ServerBackupImpl(inner, this.manager());
- } else {
- return null;
- }
- }
-
- public PagedIterable listByServer(String resourceGroupName, String serverName) {
- PagedIterable inner = this.serviceClient().listByServer(resourceGroupName, serverName);
- return Utils.mapPage(inner, inner1 -> new ServerBackupImpl(inner1, this.manager()));
- }
-
- public PagedIterable listByServer(String resourceGroupName, String serverName, Context context) {
- PagedIterable inner =
- this.serviceClient().listByServer(resourceGroupName, serverName, context);
- return Utils.mapPage(inner, inner1 -> new ServerBackupImpl(inner1, this.manager()));
- }
-
- private BackupsClient serviceClient() {
- return this.innerClient;
- }
-
- private com.azure.resourcemanager.mysqlflexibleserver.MySqlManager manager() {
- return this.serviceManager;
- }
-}
diff --git a/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/implementation/CapabilityPropertiesImpl.java b/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/implementation/CapabilityPropertiesImpl.java
deleted file mode 100644
index 65bd56073caf..000000000000
--- a/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/implementation/CapabilityPropertiesImpl.java
+++ /dev/null
@@ -1,63 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.mysqlflexibleserver.implementation;
-
-import com.azure.resourcemanager.mysqlflexibleserver.fluent.models.CapabilityPropertiesInner;
-import com.azure.resourcemanager.mysqlflexibleserver.models.CapabilityProperties;
-import com.azure.resourcemanager.mysqlflexibleserver.models.ServerEditionCapability;
-import java.util.Collections;
-import java.util.List;
-
-public final class CapabilityPropertiesImpl implements CapabilityProperties {
- private CapabilityPropertiesInner innerObject;
-
- private final com.azure.resourcemanager.mysqlflexibleserver.MySqlManager serviceManager;
-
- CapabilityPropertiesImpl(
- CapabilityPropertiesInner innerObject,
- com.azure.resourcemanager.mysqlflexibleserver.MySqlManager serviceManager) {
- this.innerObject = innerObject;
- this.serviceManager = serviceManager;
- }
-
- public String zone() {
- return this.innerModel().zone();
- }
-
- public List supportedHAMode() {
- List inner = this.innerModel().supportedHAMode();
- if (inner != null) {
- return Collections.unmodifiableList(inner);
- } else {
- return Collections.emptyList();
- }
- }
-
- public List supportedGeoBackupRegions() {
- List inner = this.innerModel().supportedGeoBackupRegions();
- if (inner != null) {
- return Collections.unmodifiableList(inner);
- } else {
- return Collections.emptyList();
- }
- }
-
- public List supportedFlexibleServerEditions() {
- List inner = this.innerModel().supportedFlexibleServerEditions();
- if (inner != null) {
- return Collections.unmodifiableList(inner);
- } else {
- return Collections.emptyList();
- }
- }
-
- public CapabilityPropertiesInner innerModel() {
- return this.innerObject;
- }
-
- private com.azure.resourcemanager.mysqlflexibleserver.MySqlManager manager() {
- return this.serviceManager;
- }
-}
diff --git a/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/implementation/CheckNameAvailabilitiesClientImpl.java b/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/implementation/CheckNameAvailabilitiesClientImpl.java
index a39962596e67..cc1be2f4b63d 100644
--- a/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/implementation/CheckNameAvailabilitiesClientImpl.java
+++ b/sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/implementation/CheckNameAvailabilitiesClientImpl.java
@@ -55,26 +55,22 @@ public final class CheckNameAvailabilitiesClientImpl implements CheckNameAvailab
@ServiceInterface(name = "MySqlManagementClien")
public interface CheckNameAvailabilitiesService {
@Headers({"Content-Type: application/json"})
- @Post(
- "/subscriptions/{subscriptionId}/providers/Microsoft.DBforMySQL/locations/{locationName}"
- + "/checkNameAvailability")
+ @Post("/subscriptions/{subscriptionId}/providers/Microsoft.DBforMySQL/checkNameAvailability")
@ExpectedResponses({200})
@UnexpectedResponseExceptionType(ManagementException.class)
Mono> execute(
@HostParam("$host") String endpoint,
@QueryParam("api-version") String apiVersion,
@PathParam("subscriptionId") String subscriptionId,
- @PathParam("locationName") String locationName,
@BodyParam("application/json") NameAvailabilityRequest nameAvailabilityRequest,
@HeaderParam("Accept") String accept,
Context context);
}
/**
- * Check the availability of name for server.
+ * Check the availability of name for resource.
*
- * @param locationName The name of the location.
- * @param nameAvailabilityRequest The required parameters for checking if server name is available.
+ * @param nameAvailabilityRequest The required parameters for checking if resource name is available.
* @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.
@@ -83,7 +79,7 @@ Mono> execute(
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> executeWithResponseAsync(
- String locationName, NameAvailabilityRequest nameAvailabilityRequest) {
+ NameAvailabilityRequest nameAvailabilityRequest) {
if (this.client.getEndpoint() == null) {
return Mono
.error(
@@ -96,9 +92,6 @@ private Mono> executeWithResponseAsync(
new IllegalArgumentException(
"Parameter this.client.getSubscriptionId() is required and cannot be null."));
}
- if (locationName == null) {
- return Mono.error(new IllegalArgumentException("Parameter locationName is required and cannot be null."));
- }
if (nameAvailabilityRequest == null) {
return Mono
.error(
@@ -106,6 +99,7 @@ private Mono> executeWithResponseAsync(
} else {
nameAvailabilityRequest.validate();
}
+ final String apiVersion = "2017-12-01";
final String accept = "application/json";
return FluxUtil
.withContext(
@@ -113,9 +107,8 @@ private Mono> executeWithResponseAsync(
service
.execute(
this.client.getEndpoint(),
- this.client.getApiVersion(),
+ apiVersion,
this.client.getSubscriptionId(),
- locationName,
nameAvailabilityRequest,
accept,
context))
@@ -123,10 +116,9 @@ private Mono> executeWithResponseAsync(
}
/**
- * Check the availability of name for server.
+ * Check the availability of name for resource.
*
- * @param locationName The name of the location.
- * @param nameAvailabilityRequest The required parameters for checking if server name is available.
+ * @param nameAvailabilityRequest The required parameters for checking if resource name is available.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
@@ -136,7 +128,7 @@ private Mono> executeWithResponseAsync(
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> executeWithResponseAsync(
- String locationName, NameAvailabilityRequest nameAvailabilityRequest, Context context) {
+ NameAvailabilityRequest nameAvailabilityRequest, Context context) {
if (this.client.getEndpoint() == null) {
return Mono
.error(
@@ -149,9 +141,6 @@ private Mono> executeWithResponseAsync(
new IllegalArgumentException(
"Parameter this.client.getSubscriptionId() is required and cannot be null."));
}
- if (locationName == null) {
- return Mono.error(new IllegalArgumentException("Parameter locationName is required and cannot be null."));
- }
if (nameAvailabilityRequest == null) {
return Mono
.error(
@@ -159,41 +148,37 @@ private Mono> executeWithResponseAsync(
} else {
nameAvailabilityRequest.validate();
}
+ final String apiVersion = "2017-12-01";
final String accept = "application/json";
context = this.client.mergeContext(context);
return service
.execute(
this.client.getEndpoint(),
- this.client.getApiVersion(),
+ apiVersion,
this.client.getSubscriptionId(),
- locationName,
nameAvailabilityRequest,
accept,
context);
}
/**
- * Check the availability of name for server.
+ * Check the availability of name for resource.
*
- * @param locationName The name of the location.
- * @param nameAvailabilityRequest The required parameters for checking if server name is available.
+ * @param nameAvailabilityRequest The required parameters for checking if resource name is available.
* @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 on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- private Mono