From 3821d0780119841889bc1a70d30a7a6a9d70fcdf Mon Sep 17 00:00:00 2001
From: "openapi-bot[bot]" <37845953+openapi-bot[bot]@users.noreply.github.com>
Date: Thu, 1 Aug 2019 05:21:43 +0000
Subject: [PATCH] Generated from 217752ad6691411c3e3f17555b665f0242ef1565
(#4779)
fix: mysql model validation errors
Remove "body" for RESPONSE_SCHEMA_NOT_IN_SPEC errors
---
.../v2017_12_01_preview/pom.xml | 6 +-
.../v2017_12_01_preview/Configuration.java | 4 +-
.../mysql/v2017_12_01_preview/Database.java | 4 +-
.../v2017_12_01_preview/FirewallRule.java | 4 +-
.../mysql/v2017_12_01_preview/LogFile.java | 4 +-
.../v2017_12_01_preview/NameAvailability.java | 4 +-
.../OperationListResult.java | 4 +-
.../PerformanceTierProperties.java | 4 +-
.../mysql/v2017_12_01_preview/Server.java | 4 +-
.../ServerSecurityAlertPolicy.java | 4 +-
.../v2017_12_01_preview/ServerServer.java | 4 +-
.../VirtualNetworkRule.java | 4 +-
.../CheckNameAvailabilitysImpl.java | 6 +-
.../implementation/ConfigurationImpl.java | 8 +-
.../implementation/ConfigurationsImpl.java | 6 +-
.../implementation/DBforMySQLManager.java | 219 ++++++++++++++++++
.../implementation/DatabaseImpl.java | 8 +-
.../implementation/DatabasesImpl.java | 6 +-
.../implementation/FirewallRuleImpl.java | 8 +-
.../implementation/FirewallRulesImpl.java | 6 +-
.../LocationBasedPerformanceTiersImpl.java | 6 +-
.../implementation/LogFileImpl.java | 6 +-
.../implementation/LogFilesImpl.java | 6 +-
.../implementation/NameAvailabilityImpl.java | 6 +-
.../OperationListResultImpl.java | 6 +-
.../implementation/OperationsImpl.java | 6 +-
.../PerformanceTierPropertiesImpl.java | 6 +-
.../implementation/ReplicasImpl.java | 6 +-
.../implementation/ServerImpl.java | 4 +-
.../ServerSecurityAlertPoliciesImpl.java | 6 +-
.../ServerSecurityAlertPolicyImpl.java | 8 +-
.../implementation/ServerServerImpl.java | 6 +-
.../implementation/ServersImpl.java | 4 +-
.../VirtualNetworkRuleImpl.java | 8 +-
.../VirtualNetworkRulesImpl.java | 6 +-
35 files changed, 313 insertions(+), 94 deletions(-)
create mode 100644 mysql/resource-manager/v2017_12_01_preview/src/main/java/com/microsoft/azure/management/mysql/v2017_12_01_preview/implementation/DBforMySQLManager.java
diff --git a/mysql/resource-manager/v2017_12_01_preview/pom.xml b/mysql/resource-manager/v2017_12_01_preview/pom.xml
index 01f8d0b00b4f..385fb6973081 100644
--- a/mysql/resource-manager/v2017_12_01_preview/pom.xml
+++ b/mysql/resource-manager/v2017_12_01_preview/pom.xml
@@ -11,10 +11,10 @@
com.microsoft.azure
azure-arm-parent
- 1.1.0
- ../../../pom.management.xml
+ 0.0.3-beta
+ ../../../pom.xml
- azure-mgmt-mysql
+ azure-mgmt-dbformysql
1.0.0-beta
jar
Microsoft Azure SDK for DBforMySQL Management
diff --git a/mysql/resource-manager/v2017_12_01_preview/src/main/java/com/microsoft/azure/management/mysql/v2017_12_01_preview/Configuration.java b/mysql/resource-manager/v2017_12_01_preview/src/main/java/com/microsoft/azure/management/mysql/v2017_12_01_preview/Configuration.java
index 0613963a43d8..56cdd28c6a87 100644
--- a/mysql/resource-manager/v2017_12_01_preview/src/main/java/com/microsoft/azure/management/mysql/v2017_12_01_preview/Configuration.java
+++ b/mysql/resource-manager/v2017_12_01_preview/src/main/java/com/microsoft/azure/management/mysql/v2017_12_01_preview/Configuration.java
@@ -16,12 +16,12 @@
import com.microsoft.azure.arm.model.Appliable;
import com.microsoft.azure.arm.model.Creatable;
import com.microsoft.azure.arm.resources.models.HasManager;
-import com.microsoft.azure.management.mysql.v2017_12_01_preview.implementation.MySQLManager;
+import com.microsoft.azure.management.mysql.v2017_12_01_preview.implementation.DBforMySQLManager;
/**
* Type representing Configuration.
*/
-public interface Configuration extends HasInner, Indexable, Refreshable, Updatable, HasManager {
+public interface Configuration extends HasInner, Indexable, Refreshable, Updatable, HasManager {
/**
* @return the allowedValues value.
*/
diff --git a/mysql/resource-manager/v2017_12_01_preview/src/main/java/com/microsoft/azure/management/mysql/v2017_12_01_preview/Database.java b/mysql/resource-manager/v2017_12_01_preview/src/main/java/com/microsoft/azure/management/mysql/v2017_12_01_preview/Database.java
index eb42069f17c1..26d3cced0502 100644
--- a/mysql/resource-manager/v2017_12_01_preview/src/main/java/com/microsoft/azure/management/mysql/v2017_12_01_preview/Database.java
+++ b/mysql/resource-manager/v2017_12_01_preview/src/main/java/com/microsoft/azure/management/mysql/v2017_12_01_preview/Database.java
@@ -16,12 +16,12 @@
import com.microsoft.azure.arm.model.Appliable;
import com.microsoft.azure.arm.model.Creatable;
import com.microsoft.azure.arm.resources.models.HasManager;
-import com.microsoft.azure.management.mysql.v2017_12_01_preview.implementation.MySQLManager;
+import com.microsoft.azure.management.mysql.v2017_12_01_preview.implementation.DBforMySQLManager;
/**
* Type representing Database.
*/
-public interface Database extends HasInner, Indexable, Refreshable, Updatable, HasManager {
+public interface Database extends HasInner, Indexable, Refreshable, Updatable, HasManager {
/**
* @return the charset value.
*/
diff --git a/mysql/resource-manager/v2017_12_01_preview/src/main/java/com/microsoft/azure/management/mysql/v2017_12_01_preview/FirewallRule.java b/mysql/resource-manager/v2017_12_01_preview/src/main/java/com/microsoft/azure/management/mysql/v2017_12_01_preview/FirewallRule.java
index 6b4051bc1a40..bbbd5181704d 100644
--- a/mysql/resource-manager/v2017_12_01_preview/src/main/java/com/microsoft/azure/management/mysql/v2017_12_01_preview/FirewallRule.java
+++ b/mysql/resource-manager/v2017_12_01_preview/src/main/java/com/microsoft/azure/management/mysql/v2017_12_01_preview/FirewallRule.java
@@ -16,12 +16,12 @@
import com.microsoft.azure.arm.model.Appliable;
import com.microsoft.azure.arm.model.Creatable;
import com.microsoft.azure.arm.resources.models.HasManager;
-import com.microsoft.azure.management.mysql.v2017_12_01_preview.implementation.MySQLManager;
+import com.microsoft.azure.management.mysql.v2017_12_01_preview.implementation.DBforMySQLManager;
/**
* Type representing FirewallRule.
*/
-public interface FirewallRule extends HasInner, Indexable, Refreshable, Updatable, HasManager {
+public interface FirewallRule extends HasInner, Indexable, Refreshable, Updatable, HasManager {
/**
* @return the endIpAddress value.
*/
diff --git a/mysql/resource-manager/v2017_12_01_preview/src/main/java/com/microsoft/azure/management/mysql/v2017_12_01_preview/LogFile.java b/mysql/resource-manager/v2017_12_01_preview/src/main/java/com/microsoft/azure/management/mysql/v2017_12_01_preview/LogFile.java
index 920ac347fe73..90fab84c2da2 100644
--- a/mysql/resource-manager/v2017_12_01_preview/src/main/java/com/microsoft/azure/management/mysql/v2017_12_01_preview/LogFile.java
+++ b/mysql/resource-manager/v2017_12_01_preview/src/main/java/com/microsoft/azure/management/mysql/v2017_12_01_preview/LogFile.java
@@ -11,13 +11,13 @@
import com.microsoft.azure.arm.model.HasInner;
import com.microsoft.azure.management.mysql.v2017_12_01_preview.implementation.LogFileInner;
import com.microsoft.azure.arm.resources.models.HasManager;
-import com.microsoft.azure.management.mysql.v2017_12_01_preview.implementation.MySQLManager;
+import com.microsoft.azure.management.mysql.v2017_12_01_preview.implementation.DBforMySQLManager;
import org.joda.time.DateTime;
/**
* Type representing LogFile.
*/
-public interface LogFile extends HasInner, HasManager {
+public interface LogFile extends HasInner, HasManager {
/**
* @return the createdTime value.
*/
diff --git a/mysql/resource-manager/v2017_12_01_preview/src/main/java/com/microsoft/azure/management/mysql/v2017_12_01_preview/NameAvailability.java b/mysql/resource-manager/v2017_12_01_preview/src/main/java/com/microsoft/azure/management/mysql/v2017_12_01_preview/NameAvailability.java
index 715b44474185..387229f4d19c 100644
--- a/mysql/resource-manager/v2017_12_01_preview/src/main/java/com/microsoft/azure/management/mysql/v2017_12_01_preview/NameAvailability.java
+++ b/mysql/resource-manager/v2017_12_01_preview/src/main/java/com/microsoft/azure/management/mysql/v2017_12_01_preview/NameAvailability.java
@@ -10,13 +10,13 @@
import com.microsoft.azure.arm.model.HasInner;
import com.microsoft.azure.arm.resources.models.HasManager;
-import com.microsoft.azure.management.mysql.v2017_12_01_preview.implementation.MySQLManager;
+import com.microsoft.azure.management.mysql.v2017_12_01_preview.implementation.DBforMySQLManager;
import com.microsoft.azure.management.mysql.v2017_12_01_preview.implementation.NameAvailabilityInner;
/**
* Type representing NameAvailability.
*/
-public interface NameAvailability extends HasInner, HasManager {
+public interface NameAvailability extends HasInner, HasManager {
/**
* @return the message value.
*/
diff --git a/mysql/resource-manager/v2017_12_01_preview/src/main/java/com/microsoft/azure/management/mysql/v2017_12_01_preview/OperationListResult.java b/mysql/resource-manager/v2017_12_01_preview/src/main/java/com/microsoft/azure/management/mysql/v2017_12_01_preview/OperationListResult.java
index 24485a1ad4fe..0738d0732afc 100644
--- a/mysql/resource-manager/v2017_12_01_preview/src/main/java/com/microsoft/azure/management/mysql/v2017_12_01_preview/OperationListResult.java
+++ b/mysql/resource-manager/v2017_12_01_preview/src/main/java/com/microsoft/azure/management/mysql/v2017_12_01_preview/OperationListResult.java
@@ -10,7 +10,7 @@
import com.microsoft.azure.arm.model.HasInner;
import com.microsoft.azure.arm.resources.models.HasManager;
-import com.microsoft.azure.management.mysql.v2017_12_01_preview.implementation.MySQLManager;
+import com.microsoft.azure.management.mysql.v2017_12_01_preview.implementation.DBforMySQLManager;
import com.microsoft.azure.management.mysql.v2017_12_01_preview.implementation.OperationListResultInner;
import com.microsoft.azure.management.mysql.v2017_12_01_preview.implementation.OperationInner;
import java.util.List;
@@ -18,7 +18,7 @@
/**
* Type representing OperationListResult.
*/
-public interface OperationListResult extends HasInner, HasManager {
+public interface OperationListResult extends HasInner, HasManager {
/**
* @return the value value.
*/
diff --git a/mysql/resource-manager/v2017_12_01_preview/src/main/java/com/microsoft/azure/management/mysql/v2017_12_01_preview/PerformanceTierProperties.java b/mysql/resource-manager/v2017_12_01_preview/src/main/java/com/microsoft/azure/management/mysql/v2017_12_01_preview/PerformanceTierProperties.java
index 1905786c125f..7c173c6a8aea 100644
--- a/mysql/resource-manager/v2017_12_01_preview/src/main/java/com/microsoft/azure/management/mysql/v2017_12_01_preview/PerformanceTierProperties.java
+++ b/mysql/resource-manager/v2017_12_01_preview/src/main/java/com/microsoft/azure/management/mysql/v2017_12_01_preview/PerformanceTierProperties.java
@@ -11,13 +11,13 @@
import com.microsoft.azure.arm.model.HasInner;
import com.microsoft.azure.management.mysql.v2017_12_01_preview.implementation.PerformanceTierPropertiesInner;
import com.microsoft.azure.arm.resources.models.HasManager;
-import com.microsoft.azure.management.mysql.v2017_12_01_preview.implementation.MySQLManager;
+import com.microsoft.azure.management.mysql.v2017_12_01_preview.implementation.DBforMySQLManager;
import java.util.List;
/**
* Type representing PerformanceTierProperties.
*/
-public interface PerformanceTierProperties extends HasInner, HasManager {
+public interface PerformanceTierProperties extends HasInner, HasManager {
/**
* @return the id value.
*/
diff --git a/mysql/resource-manager/v2017_12_01_preview/src/main/java/com/microsoft/azure/management/mysql/v2017_12_01_preview/Server.java b/mysql/resource-manager/v2017_12_01_preview/src/main/java/com/microsoft/azure/management/mysql/v2017_12_01_preview/Server.java
index f6aae81db351..c96e949a40d7 100644
--- a/mysql/resource-manager/v2017_12_01_preview/src/main/java/com/microsoft/azure/management/mysql/v2017_12_01_preview/Server.java
+++ b/mysql/resource-manager/v2017_12_01_preview/src/main/java/com/microsoft/azure/management/mysql/v2017_12_01_preview/Server.java
@@ -17,14 +17,14 @@
import com.microsoft.azure.arm.model.Appliable;
import com.microsoft.azure.arm.model.Creatable;
import com.microsoft.azure.arm.resources.models.HasManager;
-import com.microsoft.azure.management.mysql.v2017_12_01_preview.implementation.MySQLManager;
+import com.microsoft.azure.management.mysql.v2017_12_01_preview.implementation.DBforMySQLManager;
import org.joda.time.DateTime;
import com.microsoft.azure.management.mysql.v2017_12_01_preview.implementation.ServerInner;
/**
* Type representing Server.
*/
-public interface Server extends HasInner, Resource, GroupableResourceCore, HasResourceGroup, Refreshable, Updatable, HasManager {
+public interface Server extends HasInner, Resource, GroupableResourceCore, HasResourceGroup, Refreshable, Updatable, HasManager {
/**
* @return the administratorLogin value.
*/
diff --git a/mysql/resource-manager/v2017_12_01_preview/src/main/java/com/microsoft/azure/management/mysql/v2017_12_01_preview/ServerSecurityAlertPolicy.java b/mysql/resource-manager/v2017_12_01_preview/src/main/java/com/microsoft/azure/management/mysql/v2017_12_01_preview/ServerSecurityAlertPolicy.java
index 2b6d105b782a..1296cd69bf25 100644
--- a/mysql/resource-manager/v2017_12_01_preview/src/main/java/com/microsoft/azure/management/mysql/v2017_12_01_preview/ServerSecurityAlertPolicy.java
+++ b/mysql/resource-manager/v2017_12_01_preview/src/main/java/com/microsoft/azure/management/mysql/v2017_12_01_preview/ServerSecurityAlertPolicy.java
@@ -16,13 +16,13 @@
import com.microsoft.azure.arm.model.Appliable;
import com.microsoft.azure.arm.model.Creatable;
import com.microsoft.azure.arm.resources.models.HasManager;
-import com.microsoft.azure.management.mysql.v2017_12_01_preview.implementation.MySQLManager;
+import com.microsoft.azure.management.mysql.v2017_12_01_preview.implementation.DBforMySQLManager;
import java.util.List;
/**
* Type representing ServerSecurityAlertPolicy.
*/
-public interface ServerSecurityAlertPolicy extends HasInner, Indexable, Refreshable, Updatable, HasManager {
+public interface ServerSecurityAlertPolicy extends HasInner, Indexable, Refreshable, Updatable, HasManager {
/**
* @return the disabledAlerts value.
*/
diff --git a/mysql/resource-manager/v2017_12_01_preview/src/main/java/com/microsoft/azure/management/mysql/v2017_12_01_preview/ServerServer.java b/mysql/resource-manager/v2017_12_01_preview/src/main/java/com/microsoft/azure/management/mysql/v2017_12_01_preview/ServerServer.java
index a279059d198d..db99214f5b14 100644
--- a/mysql/resource-manager/v2017_12_01_preview/src/main/java/com/microsoft/azure/management/mysql/v2017_12_01_preview/ServerServer.java
+++ b/mysql/resource-manager/v2017_12_01_preview/src/main/java/com/microsoft/azure/management/mysql/v2017_12_01_preview/ServerServer.java
@@ -11,14 +11,14 @@
import com.microsoft.azure.arm.model.HasInner;
import com.microsoft.azure.management.mysql.v2017_12_01_preview.implementation.ServerInner;
import com.microsoft.azure.arm.resources.models.HasManager;
-import com.microsoft.azure.management.mysql.v2017_12_01_preview.implementation.MySQLManager;
+import com.microsoft.azure.management.mysql.v2017_12_01_preview.implementation.DBforMySQLManager;
import org.joda.time.DateTime;
import java.util.Map;
/**
* Type representing ServerServer.
*/
-public interface ServerServer extends HasInner, HasManager {
+public interface ServerServer extends HasInner, HasManager {
/**
* @return the administratorLogin value.
*/
diff --git a/mysql/resource-manager/v2017_12_01_preview/src/main/java/com/microsoft/azure/management/mysql/v2017_12_01_preview/VirtualNetworkRule.java b/mysql/resource-manager/v2017_12_01_preview/src/main/java/com/microsoft/azure/management/mysql/v2017_12_01_preview/VirtualNetworkRule.java
index 8d172ecb774e..584000eb625b 100644
--- a/mysql/resource-manager/v2017_12_01_preview/src/main/java/com/microsoft/azure/management/mysql/v2017_12_01_preview/VirtualNetworkRule.java
+++ b/mysql/resource-manager/v2017_12_01_preview/src/main/java/com/microsoft/azure/management/mysql/v2017_12_01_preview/VirtualNetworkRule.java
@@ -16,12 +16,12 @@
import com.microsoft.azure.arm.model.Appliable;
import com.microsoft.azure.arm.model.Creatable;
import com.microsoft.azure.arm.resources.models.HasManager;
-import com.microsoft.azure.management.mysql.v2017_12_01_preview.implementation.MySQLManager;
+import com.microsoft.azure.management.mysql.v2017_12_01_preview.implementation.DBforMySQLManager;
/**
* Type representing VirtualNetworkRule.
*/
-public interface VirtualNetworkRule extends HasInner, Indexable, Refreshable, Updatable, HasManager {
+public interface VirtualNetworkRule extends HasInner, Indexable, Refreshable, Updatable, HasManager {
/**
* @return the id value.
*/
diff --git a/mysql/resource-manager/v2017_12_01_preview/src/main/java/com/microsoft/azure/management/mysql/v2017_12_01_preview/implementation/CheckNameAvailabilitysImpl.java b/mysql/resource-manager/v2017_12_01_preview/src/main/java/com/microsoft/azure/management/mysql/v2017_12_01_preview/implementation/CheckNameAvailabilitysImpl.java
index 1087ffa32e58..654c5ef1ff97 100644
--- a/mysql/resource-manager/v2017_12_01_preview/src/main/java/com/microsoft/azure/management/mysql/v2017_12_01_preview/implementation/CheckNameAvailabilitysImpl.java
+++ b/mysql/resource-manager/v2017_12_01_preview/src/main/java/com/microsoft/azure/management/mysql/v2017_12_01_preview/implementation/CheckNameAvailabilitysImpl.java
@@ -17,14 +17,14 @@
import com.microsoft.azure.management.mysql.v2017_12_01_preview.NameAvailabilityRequest;
class CheckNameAvailabilitysImpl extends WrapperImpl implements CheckNameAvailabilitys {
- private final MySQLManager manager;
+ private final DBforMySQLManager manager;
- CheckNameAvailabilitysImpl(MySQLManager manager) {
+ CheckNameAvailabilitysImpl(DBforMySQLManager manager) {
super(manager.inner().checkNameAvailabilitys());
this.manager = manager;
}
- public MySQLManager manager() {
+ public DBforMySQLManager manager() {
return this.manager;
}
diff --git a/mysql/resource-manager/v2017_12_01_preview/src/main/java/com/microsoft/azure/management/mysql/v2017_12_01_preview/implementation/ConfigurationImpl.java b/mysql/resource-manager/v2017_12_01_preview/src/main/java/com/microsoft/azure/management/mysql/v2017_12_01_preview/implementation/ConfigurationImpl.java
index 53d1de4f3bf0..ab6f6cefe2cf 100644
--- a/mysql/resource-manager/v2017_12_01_preview/src/main/java/com/microsoft/azure/management/mysql/v2017_12_01_preview/implementation/ConfigurationImpl.java
+++ b/mysql/resource-manager/v2017_12_01_preview/src/main/java/com/microsoft/azure/management/mysql/v2017_12_01_preview/implementation/ConfigurationImpl.java
@@ -13,12 +13,12 @@
import rx.Observable;
class ConfigurationImpl extends CreatableUpdatableImpl implements Configuration, Configuration.Definition, Configuration.Update {
- private final MySQLManager manager;
+ private final DBforMySQLManager manager;
private String resourceGroupName;
private String serverName;
private String configurationName;
- ConfigurationImpl(String name, MySQLManager manager) {
+ ConfigurationImpl(String name, DBforMySQLManager manager) {
super(name, new ConfigurationInner());
this.manager = manager;
// Set resource name
@@ -26,7 +26,7 @@ class ConfigurationImpl extends CreatableUpdatableImpl implements Configurations {
- private final MySQLManager manager;
+ private final DBforMySQLManager manager;
- ConfigurationsImpl(MySQLManager manager) {
+ ConfigurationsImpl(DBforMySQLManager manager) {
super(manager.inner().configurations());
this.manager = manager;
}
- public MySQLManager manager() {
+ public DBforMySQLManager manager() {
return this.manager;
}
diff --git a/mysql/resource-manager/v2017_12_01_preview/src/main/java/com/microsoft/azure/management/mysql/v2017_12_01_preview/implementation/DBforMySQLManager.java b/mysql/resource-manager/v2017_12_01_preview/src/main/java/com/microsoft/azure/management/mysql/v2017_12_01_preview/implementation/DBforMySQLManager.java
new file mode 100644
index 000000000000..264cf8d0cdcb
--- /dev/null
+++ b/mysql/resource-manager/v2017_12_01_preview/src/main/java/com/microsoft/azure/management/mysql/v2017_12_01_preview/implementation/DBforMySQLManager.java
@@ -0,0 +1,219 @@
+/**
+ * Copyright (c) Microsoft Corporation. All rights reserved.
+ * Licensed under the MIT License. See License.txt in the project root for
+ * license information.
+ *
+ * Code generated by Microsoft (R) AutoRest Code Generator.
+ */
+
+package com.microsoft.azure.management.mysql.v2017_12_01_preview.implementation;
+
+import com.microsoft.azure.AzureEnvironment;
+import com.microsoft.azure.AzureResponseBuilder;
+import com.microsoft.azure.credentials.AzureTokenCredentials;
+import com.microsoft.azure.management.apigeneration.Beta;
+import com.microsoft.azure.management.apigeneration.Beta.SinceVersion;
+import com.microsoft.azure.arm.resources.AzureConfigurable;
+import com.microsoft.azure.serializer.AzureJacksonAdapter;
+import com.microsoft.rest.RestClient;
+import com.microsoft.azure.management.mysql.v2017_12_01_preview.Servers;
+import com.microsoft.azure.management.mysql.v2017_12_01_preview.Replicas;
+import com.microsoft.azure.management.mysql.v2017_12_01_preview.FirewallRules;
+import com.microsoft.azure.management.mysql.v2017_12_01_preview.VirtualNetworkRules;
+import com.microsoft.azure.management.mysql.v2017_12_01_preview.Databases;
+import com.microsoft.azure.management.mysql.v2017_12_01_preview.Configurations;
+import com.microsoft.azure.management.mysql.v2017_12_01_preview.LogFiles;
+import com.microsoft.azure.management.mysql.v2017_12_01_preview.LocationBasedPerformanceTiers;
+import com.microsoft.azure.management.mysql.v2017_12_01_preview.CheckNameAvailabilitys;
+import com.microsoft.azure.management.mysql.v2017_12_01_preview.ServerSecurityAlertPolicies;
+import com.microsoft.azure.management.mysql.v2017_12_01_preview.Operations;
+import com.microsoft.azure.arm.resources.implementation.AzureConfigurableCoreImpl;
+import com.microsoft.azure.arm.resources.implementation.ManagerCore;
+
+/**
+ * Entry point to Azure DBforMySQL resource management.
+ */
+public final class DBforMySQLManager extends ManagerCore {
+ private Servers servers;
+ private Replicas replicas;
+ private FirewallRules firewallRules;
+ private VirtualNetworkRules virtualNetworkRules;
+ private Databases databases;
+ private Configurations configurations;
+ private LogFiles logFiles;
+ private LocationBasedPerformanceTiers locationBasedPerformanceTiers;
+ private CheckNameAvailabilitys checkNameAvailabilitys;
+ private ServerSecurityAlertPolicies serverSecurityAlertPolicies;
+ private Operations operations;
+ /**
+ * Get a Configurable instance that can be used to create DBforMySQLManager with optional configuration.
+ *
+ * @return the instance allowing configurations
+ */
+ public static Configurable configure() {
+ return new DBforMySQLManager.ConfigurableImpl();
+ }
+ /**
+ * Creates an instance of DBforMySQLManager that exposes DBforMySQL resource management API entry points.
+ *
+ * @param credentials the credentials to use
+ * @param subscriptionId the subscription UUID
+ * @return the DBforMySQLManager
+ */
+ public static DBforMySQLManager authenticate(AzureTokenCredentials credentials, String subscriptionId) {
+ return new DBforMySQLManager(new RestClient.Builder()
+ .withBaseUrl(credentials.environment(), AzureEnvironment.Endpoint.RESOURCE_MANAGER)
+ .withCredentials(credentials)
+ .withSerializerAdapter(new AzureJacksonAdapter())
+ .withResponseBuilderFactory(new AzureResponseBuilder.Factory())
+ .build(), subscriptionId);
+ }
+ /**
+ * Creates an instance of DBforMySQLManager that exposes DBforMySQL resource management API entry points.
+ *
+ * @param restClient the RestClient to be used for API calls.
+ * @param subscriptionId the subscription UUID
+ * @return the DBforMySQLManager
+ */
+ public static DBforMySQLManager authenticate(RestClient restClient, String subscriptionId) {
+ return new DBforMySQLManager(restClient, subscriptionId);
+ }
+ /**
+ * The interface allowing configurations to be set.
+ */
+ public interface Configurable extends AzureConfigurable {
+ /**
+ * Creates an instance of DBforMySQLManager that exposes DBforMySQL management API entry points.
+ *
+ * @param credentials the credentials to use
+ * @param subscriptionId the subscription UUID
+ * @return the interface exposing DBforMySQL management API entry points that work across subscriptions
+ */
+ DBforMySQLManager authenticate(AzureTokenCredentials credentials, String subscriptionId);
+ }
+
+ /**
+ * @return Entry point to manage Servers.
+ */
+ public Servers servers() {
+ if (this.servers == null) {
+ this.servers = new ServersImpl(this);
+ }
+ return this.servers;
+ }
+
+ /**
+ * @return Entry point to manage Replicas.
+ */
+ public Replicas replicas() {
+ if (this.replicas == null) {
+ this.replicas = new ReplicasImpl(this);
+ }
+ return this.replicas;
+ }
+
+ /**
+ * @return Entry point to manage FirewallRules.
+ */
+ public FirewallRules firewallRules() {
+ if (this.firewallRules == null) {
+ this.firewallRules = new FirewallRulesImpl(this);
+ }
+ return this.firewallRules;
+ }
+
+ /**
+ * @return Entry point to manage VirtualNetworkRules.
+ */
+ public VirtualNetworkRules virtualNetworkRules() {
+ if (this.virtualNetworkRules == null) {
+ this.virtualNetworkRules = new VirtualNetworkRulesImpl(this);
+ }
+ return this.virtualNetworkRules;
+ }
+
+ /**
+ * @return Entry point to manage Databases.
+ */
+ public Databases databases() {
+ if (this.databases == null) {
+ this.databases = new DatabasesImpl(this);
+ }
+ return this.databases;
+ }
+
+ /**
+ * @return Entry point to manage Configurations.
+ */
+ public Configurations configurations() {
+ if (this.configurations == null) {
+ this.configurations = new ConfigurationsImpl(this);
+ }
+ return this.configurations;
+ }
+
+ /**
+ * @return Entry point to manage LogFiles.
+ */
+ public LogFiles logFiles() {
+ if (this.logFiles == null) {
+ this.logFiles = new LogFilesImpl(this);
+ }
+ return this.logFiles;
+ }
+
+ /**
+ * @return Entry point to manage LocationBasedPerformanceTiers.
+ */
+ public LocationBasedPerformanceTiers locationBasedPerformanceTiers() {
+ if (this.locationBasedPerformanceTiers == null) {
+ this.locationBasedPerformanceTiers = new LocationBasedPerformanceTiersImpl(this);
+ }
+ return this.locationBasedPerformanceTiers;
+ }
+
+ /**
+ * @return Entry point to manage CheckNameAvailabilitys.
+ */
+ public CheckNameAvailabilitys checkNameAvailabilitys() {
+ if (this.checkNameAvailabilitys == null) {
+ this.checkNameAvailabilitys = new CheckNameAvailabilitysImpl(this);
+ }
+ return this.checkNameAvailabilitys;
+ }
+
+ /**
+ * @return Entry point to manage ServerSecurityAlertPolicies.
+ */
+ public ServerSecurityAlertPolicies serverSecurityAlertPolicies() {
+ if (this.serverSecurityAlertPolicies == null) {
+ this.serverSecurityAlertPolicies = new ServerSecurityAlertPoliciesImpl(this);
+ }
+ return this.serverSecurityAlertPolicies;
+ }
+
+ /**
+ * @return Entry point to manage Operations.
+ */
+ public Operations operations() {
+ if (this.operations == null) {
+ this.operations = new OperationsImpl(this);
+ }
+ return this.operations;
+ }
+
+ /**
+ * The implementation for Configurable interface.
+ */
+ private static final class ConfigurableImpl extends AzureConfigurableCoreImpl implements Configurable {
+ public DBforMySQLManager authenticate(AzureTokenCredentials credentials, String subscriptionId) {
+ return DBforMySQLManager.authenticate(buildRestClient(credentials), subscriptionId);
+ }
+ }
+ private DBforMySQLManager(RestClient restClient, String subscriptionId) {
+ super(
+ restClient,
+ subscriptionId,
+ new MySQLManagementClientImpl(restClient).withSubscriptionId(subscriptionId));
+ }
+}
diff --git a/mysql/resource-manager/v2017_12_01_preview/src/main/java/com/microsoft/azure/management/mysql/v2017_12_01_preview/implementation/DatabaseImpl.java b/mysql/resource-manager/v2017_12_01_preview/src/main/java/com/microsoft/azure/management/mysql/v2017_12_01_preview/implementation/DatabaseImpl.java
index ea3b83eff8ab..8dc65429f33d 100644
--- a/mysql/resource-manager/v2017_12_01_preview/src/main/java/com/microsoft/azure/management/mysql/v2017_12_01_preview/implementation/DatabaseImpl.java
+++ b/mysql/resource-manager/v2017_12_01_preview/src/main/java/com/microsoft/azure/management/mysql/v2017_12_01_preview/implementation/DatabaseImpl.java
@@ -13,12 +13,12 @@
import rx.Observable;
class DatabaseImpl extends CreatableUpdatableImpl implements Database, Database.Definition, Database.Update {
- private final MySQLManager manager;
+ private final DBforMySQLManager manager;
private String resourceGroupName;
private String serverName;
private String databaseName;
- DatabaseImpl(String name, MySQLManager manager) {
+ DatabaseImpl(String name, DBforMySQLManager manager) {
super(name, new DatabaseInner());
this.manager = manager;
// Set resource name
@@ -26,7 +26,7 @@ class DatabaseImpl extends CreatableUpdatableImpl implements Databases {
- private final MySQLManager manager;
+ private final DBforMySQLManager manager;
- DatabasesImpl(MySQLManager manager) {
+ DatabasesImpl(DBforMySQLManager manager) {
super(manager.inner().databases());
this.manager = manager;
}
- public MySQLManager manager() {
+ public DBforMySQLManager manager() {
return this.manager;
}
diff --git a/mysql/resource-manager/v2017_12_01_preview/src/main/java/com/microsoft/azure/management/mysql/v2017_12_01_preview/implementation/FirewallRuleImpl.java b/mysql/resource-manager/v2017_12_01_preview/src/main/java/com/microsoft/azure/management/mysql/v2017_12_01_preview/implementation/FirewallRuleImpl.java
index d058c872e600..d1e5fbb790a8 100644
--- a/mysql/resource-manager/v2017_12_01_preview/src/main/java/com/microsoft/azure/management/mysql/v2017_12_01_preview/implementation/FirewallRuleImpl.java
+++ b/mysql/resource-manager/v2017_12_01_preview/src/main/java/com/microsoft/azure/management/mysql/v2017_12_01_preview/implementation/FirewallRuleImpl.java
@@ -13,12 +13,12 @@
import rx.Observable;
class FirewallRuleImpl extends CreatableUpdatableImpl implements FirewallRule, FirewallRule.Definition, FirewallRule.Update {
- private final MySQLManager manager;
+ private final DBforMySQLManager manager;
private String resourceGroupName;
private String serverName;
private String firewallRuleName;
- FirewallRuleImpl(String name, MySQLManager manager) {
+ FirewallRuleImpl(String name, DBforMySQLManager manager) {
super(name, new FirewallRuleInner());
this.manager = manager;
// Set resource name
@@ -26,7 +26,7 @@ class FirewallRuleImpl extends CreatableUpdatableImpl implements FirewallRules {
- private final MySQLManager manager;
+ private final DBforMySQLManager manager;
- FirewallRulesImpl(MySQLManager manager) {
+ FirewallRulesImpl(DBforMySQLManager manager) {
super(manager.inner().firewallRules());
this.manager = manager;
}
- public MySQLManager manager() {
+ public DBforMySQLManager manager() {
return this.manager;
}
diff --git a/mysql/resource-manager/v2017_12_01_preview/src/main/java/com/microsoft/azure/management/mysql/v2017_12_01_preview/implementation/LocationBasedPerformanceTiersImpl.java b/mysql/resource-manager/v2017_12_01_preview/src/main/java/com/microsoft/azure/management/mysql/v2017_12_01_preview/implementation/LocationBasedPerformanceTiersImpl.java
index 4029218332b5..b36cb63f42a4 100644
--- a/mysql/resource-manager/v2017_12_01_preview/src/main/java/com/microsoft/azure/management/mysql/v2017_12_01_preview/implementation/LocationBasedPerformanceTiersImpl.java
+++ b/mysql/resource-manager/v2017_12_01_preview/src/main/java/com/microsoft/azure/management/mysql/v2017_12_01_preview/implementation/LocationBasedPerformanceTiersImpl.java
@@ -17,14 +17,14 @@
import com.microsoft.azure.management.mysql.v2017_12_01_preview.PerformanceTierProperties;
class LocationBasedPerformanceTiersImpl extends WrapperImpl implements LocationBasedPerformanceTiers {
- private final MySQLManager manager;
+ private final DBforMySQLManager manager;
- LocationBasedPerformanceTiersImpl(MySQLManager manager) {
+ LocationBasedPerformanceTiersImpl(DBforMySQLManager manager) {
super(manager.inner().locationBasedPerformanceTiers());
this.manager = manager;
}
- public MySQLManager manager() {
+ public DBforMySQLManager manager() {
return this.manager;
}
diff --git a/mysql/resource-manager/v2017_12_01_preview/src/main/java/com/microsoft/azure/management/mysql/v2017_12_01_preview/implementation/LogFileImpl.java b/mysql/resource-manager/v2017_12_01_preview/src/main/java/com/microsoft/azure/management/mysql/v2017_12_01_preview/implementation/LogFileImpl.java
index 5960746f6a21..cf5952c25423 100644
--- a/mysql/resource-manager/v2017_12_01_preview/src/main/java/com/microsoft/azure/management/mysql/v2017_12_01_preview/implementation/LogFileImpl.java
+++ b/mysql/resource-manager/v2017_12_01_preview/src/main/java/com/microsoft/azure/management/mysql/v2017_12_01_preview/implementation/LogFileImpl.java
@@ -14,15 +14,15 @@
import org.joda.time.DateTime;
class LogFileImpl extends WrapperImpl implements LogFile {
- private final MySQLManager manager;
+ private final DBforMySQLManager manager;
- LogFileImpl(LogFileInner inner, MySQLManager manager) {
+ LogFileImpl(LogFileInner inner, DBforMySQLManager manager) {
super(inner);
this.manager = manager;
}
@Override
- public MySQLManager manager() {
+ public DBforMySQLManager manager() {
return this.manager;
}
diff --git a/mysql/resource-manager/v2017_12_01_preview/src/main/java/com/microsoft/azure/management/mysql/v2017_12_01_preview/implementation/LogFilesImpl.java b/mysql/resource-manager/v2017_12_01_preview/src/main/java/com/microsoft/azure/management/mysql/v2017_12_01_preview/implementation/LogFilesImpl.java
index 2d8a043c80bb..d9f5418cfad2 100644
--- a/mysql/resource-manager/v2017_12_01_preview/src/main/java/com/microsoft/azure/management/mysql/v2017_12_01_preview/implementation/LogFilesImpl.java
+++ b/mysql/resource-manager/v2017_12_01_preview/src/main/java/com/microsoft/azure/management/mysql/v2017_12_01_preview/implementation/LogFilesImpl.java
@@ -17,14 +17,14 @@
import com.microsoft.azure.management.mysql.v2017_12_01_preview.LogFile;
class LogFilesImpl extends WrapperImpl implements LogFiles {
- private final MySQLManager manager;
+ private final DBforMySQLManager manager;
- LogFilesImpl(MySQLManager manager) {
+ LogFilesImpl(DBforMySQLManager manager) {
super(manager.inner().logFiles());
this.manager = manager;
}
- public MySQLManager manager() {
+ public DBforMySQLManager manager() {
return this.manager;
}
diff --git a/mysql/resource-manager/v2017_12_01_preview/src/main/java/com/microsoft/azure/management/mysql/v2017_12_01_preview/implementation/NameAvailabilityImpl.java b/mysql/resource-manager/v2017_12_01_preview/src/main/java/com/microsoft/azure/management/mysql/v2017_12_01_preview/implementation/NameAvailabilityImpl.java
index 500f07890f92..ed6e3e20236c 100644
--- a/mysql/resource-manager/v2017_12_01_preview/src/main/java/com/microsoft/azure/management/mysql/v2017_12_01_preview/implementation/NameAvailabilityImpl.java
+++ b/mysql/resource-manager/v2017_12_01_preview/src/main/java/com/microsoft/azure/management/mysql/v2017_12_01_preview/implementation/NameAvailabilityImpl.java
@@ -12,14 +12,14 @@
import com.microsoft.azure.arm.model.implementation.WrapperImpl;
class NameAvailabilityImpl extends WrapperImpl implements NameAvailability {
- private final MySQLManager manager;
- NameAvailabilityImpl(NameAvailabilityInner inner, MySQLManager manager) {
+ private final DBforMySQLManager manager;
+ NameAvailabilityImpl(NameAvailabilityInner inner, DBforMySQLManager manager) {
super(inner);
this.manager = manager;
}
@Override
- public MySQLManager manager() {
+ public DBforMySQLManager manager() {
return this.manager;
}
diff --git a/mysql/resource-manager/v2017_12_01_preview/src/main/java/com/microsoft/azure/management/mysql/v2017_12_01_preview/implementation/OperationListResultImpl.java b/mysql/resource-manager/v2017_12_01_preview/src/main/java/com/microsoft/azure/management/mysql/v2017_12_01_preview/implementation/OperationListResultImpl.java
index 68eb4e03ce3f..97aa26783122 100644
--- a/mysql/resource-manager/v2017_12_01_preview/src/main/java/com/microsoft/azure/management/mysql/v2017_12_01_preview/implementation/OperationListResultImpl.java
+++ b/mysql/resource-manager/v2017_12_01_preview/src/main/java/com/microsoft/azure/management/mysql/v2017_12_01_preview/implementation/OperationListResultImpl.java
@@ -13,14 +13,14 @@
import java.util.List;
class OperationListResultImpl extends WrapperImpl implements OperationListResult {
- private final MySQLManager manager;
- OperationListResultImpl(OperationListResultInner inner, MySQLManager manager) {
+ private final DBforMySQLManager manager;
+ OperationListResultImpl(OperationListResultInner inner, DBforMySQLManager manager) {
super(inner);
this.manager = manager;
}
@Override
- public MySQLManager manager() {
+ public DBforMySQLManager manager() {
return this.manager;
}
diff --git a/mysql/resource-manager/v2017_12_01_preview/src/main/java/com/microsoft/azure/management/mysql/v2017_12_01_preview/implementation/OperationsImpl.java b/mysql/resource-manager/v2017_12_01_preview/src/main/java/com/microsoft/azure/management/mysql/v2017_12_01_preview/implementation/OperationsImpl.java
index ffb86ced16f5..413391ed2812 100644
--- a/mysql/resource-manager/v2017_12_01_preview/src/main/java/com/microsoft/azure/management/mysql/v2017_12_01_preview/implementation/OperationsImpl.java
+++ b/mysql/resource-manager/v2017_12_01_preview/src/main/java/com/microsoft/azure/management/mysql/v2017_12_01_preview/implementation/OperationsImpl.java
@@ -16,14 +16,14 @@
import com.microsoft.azure.management.mysql.v2017_12_01_preview.OperationListResult;
class OperationsImpl extends WrapperImpl implements Operations {
- private final MySQLManager manager;
+ private final DBforMySQLManager manager;
- OperationsImpl(MySQLManager manager) {
+ OperationsImpl(DBforMySQLManager manager) {
super(manager.inner().operations());
this.manager = manager;
}
- public MySQLManager manager() {
+ public DBforMySQLManager manager() {
return this.manager;
}
diff --git a/mysql/resource-manager/v2017_12_01_preview/src/main/java/com/microsoft/azure/management/mysql/v2017_12_01_preview/implementation/PerformanceTierPropertiesImpl.java b/mysql/resource-manager/v2017_12_01_preview/src/main/java/com/microsoft/azure/management/mysql/v2017_12_01_preview/implementation/PerformanceTierPropertiesImpl.java
index 2cf3758e8df5..697cd6383dd2 100644
--- a/mysql/resource-manager/v2017_12_01_preview/src/main/java/com/microsoft/azure/management/mysql/v2017_12_01_preview/implementation/PerformanceTierPropertiesImpl.java
+++ b/mysql/resource-manager/v2017_12_01_preview/src/main/java/com/microsoft/azure/management/mysql/v2017_12_01_preview/implementation/PerformanceTierPropertiesImpl.java
@@ -15,15 +15,15 @@
import com.microsoft.azure.management.mysql.v2017_12_01_preview.PerformanceTierServiceLevelObjectives;
class PerformanceTierPropertiesImpl extends WrapperImpl implements PerformanceTierProperties {
- private final MySQLManager manager;
+ private final DBforMySQLManager manager;
- PerformanceTierPropertiesImpl(PerformanceTierPropertiesInner inner, MySQLManager manager) {
+ PerformanceTierPropertiesImpl(PerformanceTierPropertiesInner inner, DBforMySQLManager manager) {
super(inner);
this.manager = manager;
}
@Override
- public MySQLManager manager() {
+ public DBforMySQLManager manager() {
return this.manager;
}
diff --git a/mysql/resource-manager/v2017_12_01_preview/src/main/java/com/microsoft/azure/management/mysql/v2017_12_01_preview/implementation/ReplicasImpl.java b/mysql/resource-manager/v2017_12_01_preview/src/main/java/com/microsoft/azure/management/mysql/v2017_12_01_preview/implementation/ReplicasImpl.java
index d597c1c13596..8d8e4f7abb87 100644
--- a/mysql/resource-manager/v2017_12_01_preview/src/main/java/com/microsoft/azure/management/mysql/v2017_12_01_preview/implementation/ReplicasImpl.java
+++ b/mysql/resource-manager/v2017_12_01_preview/src/main/java/com/microsoft/azure/management/mysql/v2017_12_01_preview/implementation/ReplicasImpl.java
@@ -17,14 +17,14 @@
import com.microsoft.azure.management.mysql.v2017_12_01_preview.ServerServer;
class ReplicasImpl extends WrapperImpl implements Replicas {
- private final MySQLManager manager;
+ private final DBforMySQLManager manager;
- ReplicasImpl(MySQLManager manager) {
+ ReplicasImpl(DBforMySQLManager manager) {
super(manager.inner().replicas());
this.manager = manager;
}
- public MySQLManager manager() {
+ public DBforMySQLManager manager() {
return this.manager;
}
diff --git a/mysql/resource-manager/v2017_12_01_preview/src/main/java/com/microsoft/azure/management/mysql/v2017_12_01_preview/implementation/ServerImpl.java b/mysql/resource-manager/v2017_12_01_preview/src/main/java/com/microsoft/azure/management/mysql/v2017_12_01_preview/implementation/ServerImpl.java
index 6db3f8589272..6e5acf0f9cd4 100644
--- a/mysql/resource-manager/v2017_12_01_preview/src/main/java/com/microsoft/azure/management/mysql/v2017_12_01_preview/implementation/ServerImpl.java
+++ b/mysql/resource-manager/v2017_12_01_preview/src/main/java/com/microsoft/azure/management/mysql/v2017_12_01_preview/implementation/ServerImpl.java
@@ -22,10 +22,10 @@
import com.microsoft.azure.management.mysql.v2017_12_01_preview.ServerPropertiesForCreate;
import rx.functions.Func1;
-class ServerImpl extends GroupableResourceCoreImpl implements Server, Server.Definition, Server.Update {
+class ServerImpl extends GroupableResourceCoreImpl implements Server, Server.Definition, Server.Update {
private ServerForCreate createParameter;
private ServerUpdateParameters updateParameter;
- ServerImpl(String name, ServerInner inner, MySQLManager manager) {
+ ServerImpl(String name, ServerInner inner, DBforMySQLManager manager) {
super(name, inner, manager);
this.createParameter = new ServerForCreate();
this.updateParameter = new ServerUpdateParameters();
diff --git a/mysql/resource-manager/v2017_12_01_preview/src/main/java/com/microsoft/azure/management/mysql/v2017_12_01_preview/implementation/ServerSecurityAlertPoliciesImpl.java b/mysql/resource-manager/v2017_12_01_preview/src/main/java/com/microsoft/azure/management/mysql/v2017_12_01_preview/implementation/ServerSecurityAlertPoliciesImpl.java
index 2a2e03ec2ed8..4734a16f7670 100644
--- a/mysql/resource-manager/v2017_12_01_preview/src/main/java/com/microsoft/azure/management/mysql/v2017_12_01_preview/implementation/ServerSecurityAlertPoliciesImpl.java
+++ b/mysql/resource-manager/v2017_12_01_preview/src/main/java/com/microsoft/azure/management/mysql/v2017_12_01_preview/implementation/ServerSecurityAlertPoliciesImpl.java
@@ -16,14 +16,14 @@
import com.microsoft.azure.management.mysql.v2017_12_01_preview.ServerSecurityAlertPolicy;
class ServerSecurityAlertPoliciesImpl extends WrapperImpl implements ServerSecurityAlertPolicies {
- private final MySQLManager manager;
+ private final DBforMySQLManager manager;
- ServerSecurityAlertPoliciesImpl(MySQLManager manager) {
+ ServerSecurityAlertPoliciesImpl(DBforMySQLManager manager) {
super(manager.inner().serverSecurityAlertPolicies());
this.manager = manager;
}
- public MySQLManager manager() {
+ public DBforMySQLManager manager() {
return this.manager;
}
diff --git a/mysql/resource-manager/v2017_12_01_preview/src/main/java/com/microsoft/azure/management/mysql/v2017_12_01_preview/implementation/ServerSecurityAlertPolicyImpl.java b/mysql/resource-manager/v2017_12_01_preview/src/main/java/com/microsoft/azure/management/mysql/v2017_12_01_preview/implementation/ServerSecurityAlertPolicyImpl.java
index 62de76bcddfb..05230e0877b3 100644
--- a/mysql/resource-manager/v2017_12_01_preview/src/main/java/com/microsoft/azure/management/mysql/v2017_12_01_preview/implementation/ServerSecurityAlertPolicyImpl.java
+++ b/mysql/resource-manager/v2017_12_01_preview/src/main/java/com/microsoft/azure/management/mysql/v2017_12_01_preview/implementation/ServerSecurityAlertPolicyImpl.java
@@ -15,11 +15,11 @@
import java.util.List;
class ServerSecurityAlertPolicyImpl extends CreatableUpdatableImpl implements ServerSecurityAlertPolicy, ServerSecurityAlertPolicy.Definition, ServerSecurityAlertPolicy.Update {
- private final MySQLManager manager;
+ private final DBforMySQLManager manager;
private String resourceGroupName;
private String serverName;
- ServerSecurityAlertPolicyImpl(String name, MySQLManager manager) {
+ ServerSecurityAlertPolicyImpl(String name, DBforMySQLManager manager) {
super(name, new ServerSecurityAlertPolicyInner());
this.manager = manager;
// Set resource name
@@ -27,7 +27,7 @@ class ServerSecurityAlertPolicyImpl extends CreatableUpdatableImpl implements ServerServer {
- private final MySQLManager manager;
+ private final DBforMySQLManager manager;
- ServerServerImpl(ServerInner inner, MySQLManager manager) {
+ ServerServerImpl(ServerInner inner, DBforMySQLManager manager) {
super(inner);
this.manager = manager;
}
@Override
- public MySQLManager manager() {
+ public DBforMySQLManager manager() {
return this.manager;
}
diff --git a/mysql/resource-manager/v2017_12_01_preview/src/main/java/com/microsoft/azure/management/mysql/v2017_12_01_preview/implementation/ServersImpl.java b/mysql/resource-manager/v2017_12_01_preview/src/main/java/com/microsoft/azure/management/mysql/v2017_12_01_preview/implementation/ServersImpl.java
index 58c47c0c089a..232b2479b797 100644
--- a/mysql/resource-manager/v2017_12_01_preview/src/main/java/com/microsoft/azure/management/mysql/v2017_12_01_preview/implementation/ServersImpl.java
+++ b/mysql/resource-manager/v2017_12_01_preview/src/main/java/com/microsoft/azure/management/mysql/v2017_12_01_preview/implementation/ServersImpl.java
@@ -23,8 +23,8 @@
import com.microsoft.azure.PagedList;
import com.microsoft.azure.Page;
-class ServersImpl extends GroupableResourcesCoreImpl implements Servers {
- protected ServersImpl(MySQLManager manager) {
+class ServersImpl extends GroupableResourcesCoreImpl implements Servers {
+ protected ServersImpl(DBforMySQLManager manager) {
super(manager.inner().servers(), manager);
}
diff --git a/mysql/resource-manager/v2017_12_01_preview/src/main/java/com/microsoft/azure/management/mysql/v2017_12_01_preview/implementation/VirtualNetworkRuleImpl.java b/mysql/resource-manager/v2017_12_01_preview/src/main/java/com/microsoft/azure/management/mysql/v2017_12_01_preview/implementation/VirtualNetworkRuleImpl.java
index 7e28d666f47a..7f0b1bbab639 100644
--- a/mysql/resource-manager/v2017_12_01_preview/src/main/java/com/microsoft/azure/management/mysql/v2017_12_01_preview/implementation/VirtualNetworkRuleImpl.java
+++ b/mysql/resource-manager/v2017_12_01_preview/src/main/java/com/microsoft/azure/management/mysql/v2017_12_01_preview/implementation/VirtualNetworkRuleImpl.java
@@ -14,12 +14,12 @@
import com.microsoft.azure.management.mysql.v2017_12_01_preview.VirtualNetworkRuleState;
class VirtualNetworkRuleImpl extends CreatableUpdatableImpl implements VirtualNetworkRule, VirtualNetworkRule.Definition, VirtualNetworkRule.Update {
- private final MySQLManager manager;
+ private final DBforMySQLManager manager;
private String resourceGroupName;
private String serverName;
private String virtualNetworkRuleName;
- VirtualNetworkRuleImpl(String name, MySQLManager manager) {
+ VirtualNetworkRuleImpl(String name, DBforMySQLManager manager) {
super(name, new VirtualNetworkRuleInner());
this.manager = manager;
// Set resource name
@@ -27,7 +27,7 @@ class VirtualNetworkRuleImpl extends CreatableUpdatableImpl implements VirtualNetworkRules {
- private final MySQLManager manager;
+ private final DBforMySQLManager manager;
- VirtualNetworkRulesImpl(MySQLManager manager) {
+ VirtualNetworkRulesImpl(DBforMySQLManager manager) {
super(manager.inner().virtualNetworkRules());
this.manager = manager;
}
- public MySQLManager manager() {
+ public DBforMySQLManager manager() {
return this.manager;
}