diff --git a/mysql/resource-manager/v2017_12_01/pom.xml b/mysql/resource-manager/v2017_12_01/pom.xml index 49d1456b4151..4fe405ccd981 100644 --- a/mysql/resource-manager/v2017_12_01/pom.xml +++ b/mysql/resource-manager/v2017_12_01/pom.xml @@ -1,133 +1,133 @@ - - - 4.0.0 - com.microsoft.azure.mysql.v2017_12_01 - - com.microsoft.azure - azure-arm-parent - 0.0.2-beta - ../../../pom.xml - - azure-mgmt-mysql - 1.0.0-beta-2 - jar - Microsoft Azure SDK for DBforMySQL Management - This package contains Microsoft DBforMySQL Management SDK. - https://github.com/Azure/azure-libraries-for-java - - - The MIT License (MIT) - http://opensource.org/licenses/MIT - repo - - - - scm:git:https://github.com/Azure/azure-libraries-for-java - scm:git:git@github.com:Azure/azure-libraries-for-java.git - HEAD - - - UTF-8 - - - - - microsoft - Microsoft - - - - - com.microsoft.azure - azure-client-runtime - - - com.microsoft.azure - azure-arm-client-runtime - - - junit - junit - test - - - com.microsoft.azure - azure-client-authentication - test - - - com.microsoft.azure - azure-mgmt-resources - test - - - com.microsoft.azure - azure-arm-client-runtime - test-jar - test - - - - - - org.apache.maven.plugins - maven-jar-plugin - - - - true - true - - - - - - org.codehaus.mojo - build-helper-maven-plugin - - - org.apache.maven.plugins - maven-compiler-plugin - 3.1 - - 1.7 - 1.7 - - - com.microsoft.azure.management.apigeneration.LangDefinitionProcessor - - - true - true - - true - true - - - - - org.apache.maven.plugins - maven-javadoc-plugin - 2.8 - - *.implementation.*;*.utils.*;com.microsoft.schemas._2003._10.serialization;*.blob.core.search - - - /** -
* Copyright (c) Microsoft Corporation. All rights reserved. -
* Licensed under the MIT License. See License.txt in the project root for -
* license information. -
*/ - ]]> -
-
-
-
-
-
+ + + 4.0.0 + com.microsoft.azure.mysql.v2017_12_01 + + com.microsoft.azure + azure-arm-parent + 0.0.2-beta + ../../../pom.xml + + azure-mgmt-dbformysql + 1.0.0-beta + jar + Microsoft Azure SDK for DBforMySQL Management + This package contains Microsoft DBforMySQL Management SDK. + https://github.com/Azure/azure-libraries-for-java + + + The MIT License (MIT) + http://opensource.org/licenses/MIT + repo + + + + scm:git:https://github.com/Azure/azure-libraries-for-java + scm:git:git@github.com:Azure/azure-libraries-for-java.git + HEAD + + + UTF-8 + + + + + microsoft + Microsoft + + + + + com.microsoft.azure + azure-client-runtime + + + com.microsoft.azure + azure-arm-client-runtime + + + junit + junit + test + + + com.microsoft.azure + azure-client-authentication + test + + + com.microsoft.azure + azure-mgmt-resources + test + + + com.microsoft.azure + azure-arm-client-runtime + test-jar + test + + + + + + org.apache.maven.plugins + maven-jar-plugin + + + + true + true + + + + + + org.codehaus.mojo + build-helper-maven-plugin + + + org.apache.maven.plugins + maven-compiler-plugin + 3.1 + + 1.7 + 1.7 + + + com.microsoft.azure.management.apigeneration.LangDefinitionProcessor + + + true + true + + true + true + + + + + org.apache.maven.plugins + maven-javadoc-plugin + 2.8 + + *.implementation.*;*.utils.*;com.microsoft.schemas._2003._10.serialization;*.blob.core.search + + + /** +
* Copyright (c) Microsoft Corporation. All rights reserved. +
* Licensed under the MIT License. See License.txt in the project root for +
* license information. +
*/ + ]]> +
+
+
+
+
+
diff --git a/mysql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/mysql/v2017_12_01/Configuration.java b/mysql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/mysql/v2017_12_01/Configuration.java index 35d08c3c3083..aa631ca3c1af 100644 --- a/mysql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/mysql/v2017_12_01/Configuration.java +++ b/mysql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/mysql/v2017_12_01/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.implementation.MySQLManager; +import com.microsoft.azure.management.mysql.v2017_12_01.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/src/main/java/com/microsoft/azure/management/mysql/v2017_12_01/Database.java b/mysql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/mysql/v2017_12_01/Database.java index f9dea559a588..a4a5dbb67f4f 100644 --- a/mysql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/mysql/v2017_12_01/Database.java +++ b/mysql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/mysql/v2017_12_01/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.implementation.MySQLManager; +import com.microsoft.azure.management.mysql.v2017_12_01.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/src/main/java/com/microsoft/azure/management/mysql/v2017_12_01/FirewallRule.java b/mysql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/mysql/v2017_12_01/FirewallRule.java index d10361964e54..c268452e720e 100644 --- a/mysql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/mysql/v2017_12_01/FirewallRule.java +++ b/mysql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/mysql/v2017_12_01/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.implementation.MySQLManager; +import com.microsoft.azure.management.mysql.v2017_12_01.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/src/main/java/com/microsoft/azure/management/mysql/v2017_12_01/LogFile.java b/mysql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/mysql/v2017_12_01/LogFile.java index 2c5660a1f181..80bda1150c71 100644 --- a/mysql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/mysql/v2017_12_01/LogFile.java +++ b/mysql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/mysql/v2017_12_01/LogFile.java @@ -11,13 +11,13 @@ import com.microsoft.azure.arm.model.HasInner; import com.microsoft.azure.management.mysql.v2017_12_01.implementation.LogFileInner; import com.microsoft.azure.arm.resources.models.HasManager; -import com.microsoft.azure.management.mysql.v2017_12_01.implementation.MySQLManager; +import com.microsoft.azure.management.mysql.v2017_12_01.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/src/main/java/com/microsoft/azure/management/mysql/v2017_12_01/NameAvailability.java b/mysql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/mysql/v2017_12_01/NameAvailability.java index 940e9b205ea1..da6405d218e7 100644 --- a/mysql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/mysql/v2017_12_01/NameAvailability.java +++ b/mysql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/mysql/v2017_12_01/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.implementation.MySQLManager; +import com.microsoft.azure.management.mysql.v2017_12_01.implementation.DBforMySQLManager; import com.microsoft.azure.management.mysql.v2017_12_01.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/src/main/java/com/microsoft/azure/management/mysql/v2017_12_01/NameAvailabilityRequest.java b/mysql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/mysql/v2017_12_01/NameAvailabilityRequest.java index 22279d753458..b6195ccd9cd9 100644 --- a/mysql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/mysql/v2017_12_01/NameAvailabilityRequest.java +++ b/mysql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/mysql/v2017_12_01/NameAvailabilityRequest.java @@ -27,7 +27,7 @@ public class NameAvailabilityRequest { private String type; /** - * Get the name value. + * Get resource name to verify. * * @return the name value */ @@ -36,7 +36,7 @@ public String name() { } /** - * Set the name value. + * Set resource name to verify. * * @param name the name value to set * @return the NameAvailabilityRequest object itself. @@ -47,7 +47,7 @@ public NameAvailabilityRequest withName(String name) { } /** - * Get the type value. + * Get resource type used for verification. * * @return the type value */ @@ -56,7 +56,7 @@ public String type() { } /** - * Set the type value. + * Set resource type used for verification. * * @param type the type value to set * @return the NameAvailabilityRequest object itself. diff --git a/mysql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/mysql/v2017_12_01/OperationDisplay.java b/mysql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/mysql/v2017_12_01/OperationDisplay.java index c197d348d055..d0915a31cc4c 100644 --- a/mysql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/mysql/v2017_12_01/OperationDisplay.java +++ b/mysql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/mysql/v2017_12_01/OperationDisplay.java @@ -39,7 +39,7 @@ public class OperationDisplay { private String description; /** - * Get the provider value. + * Get operation resource provider name. * * @return the provider value */ @@ -48,7 +48,7 @@ public String provider() { } /** - * Get the resource value. + * Get resource on which the operation is performed. * * @return the resource value */ @@ -57,7 +57,7 @@ public String resource() { } /** - * Get the operation value. + * Get localized friendly name for the operation. * * @return the operation value */ @@ -66,7 +66,7 @@ public String operation() { } /** - * Get the description value. + * Get operation description. * * @return the description value */ diff --git a/mysql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/mysql/v2017_12_01/OperationListResult.java b/mysql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/mysql/v2017_12_01/OperationListResult.java index 68a5fc6ed1eb..06136872812d 100644 --- a/mysql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/mysql/v2017_12_01/OperationListResult.java +++ b/mysql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/mysql/v2017_12_01/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.implementation.MySQLManager; +import com.microsoft.azure.management.mysql.v2017_12_01.implementation.DBforMySQLManager; import com.microsoft.azure.management.mysql.v2017_12_01.implementation.OperationListResultInner; import com.microsoft.azure.management.mysql.v2017_12_01.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/src/main/java/com/microsoft/azure/management/mysql/v2017_12_01/PerformanceTierProperties.java b/mysql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/mysql/v2017_12_01/PerformanceTierProperties.java index a2b0de5ba9e7..0b9c68c5bb29 100644 --- a/mysql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/mysql/v2017_12_01/PerformanceTierProperties.java +++ b/mysql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/mysql/v2017_12_01/PerformanceTierProperties.java @@ -11,13 +11,13 @@ import com.microsoft.azure.arm.model.HasInner; import com.microsoft.azure.management.mysql.v2017_12_01.implementation.PerformanceTierPropertiesInner; import com.microsoft.azure.arm.resources.models.HasManager; -import com.microsoft.azure.management.mysql.v2017_12_01.implementation.MySQLManager; +import com.microsoft.azure.management.mysql.v2017_12_01.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/src/main/java/com/microsoft/azure/management/mysql/v2017_12_01/PerformanceTierServiceLevelObjectives.java b/mysql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/mysql/v2017_12_01/PerformanceTierServiceLevelObjectives.java index a719da8ff1a4..8cc00860c64c 100644 --- a/mysql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/mysql/v2017_12_01/PerformanceTierServiceLevelObjectives.java +++ b/mysql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/mysql/v2017_12_01/PerformanceTierServiceLevelObjectives.java @@ -63,7 +63,7 @@ public class PerformanceTierServiceLevelObjectives { private Integer minStorageMB; /** - * Get the id value. + * Get iD for the service level objective. * * @return the id value */ @@ -72,7 +72,7 @@ public String id() { } /** - * Set the id value. + * Set iD for the service level objective. * * @param id the id value to set * @return the PerformanceTierServiceLevelObjectives object itself. @@ -83,7 +83,7 @@ public PerformanceTierServiceLevelObjectives withId(String id) { } /** - * Get the edition value. + * Get edition of the performance tier. * * @return the edition value */ @@ -92,7 +92,7 @@ public String edition() { } /** - * Set the edition value. + * Set edition of the performance tier. * * @param edition the edition value to set * @return the PerformanceTierServiceLevelObjectives object itself. @@ -103,7 +103,7 @@ public PerformanceTierServiceLevelObjectives withEdition(String edition) { } /** - * Get the vCore value. + * Get vCore associated with the service level objective. * * @return the vCore value */ @@ -112,7 +112,7 @@ public Integer vCore() { } /** - * Set the vCore value. + * Set vCore associated with the service level objective. * * @param vCore the vCore value to set * @return the PerformanceTierServiceLevelObjectives object itself. @@ -123,7 +123,7 @@ public PerformanceTierServiceLevelObjectives withVCore(Integer vCore) { } /** - * Get the hardwareGeneration value. + * Get hardware generation associated with the service level objective. * * @return the hardwareGeneration value */ @@ -132,7 +132,7 @@ public String hardwareGeneration() { } /** - * Set the hardwareGeneration value. + * Set hardware generation associated with the service level objective. * * @param hardwareGeneration the hardwareGeneration value to set * @return the PerformanceTierServiceLevelObjectives object itself. @@ -143,7 +143,7 @@ public PerformanceTierServiceLevelObjectives withHardwareGeneration(String hardw } /** - * Get the maxBackupRetentionDays value. + * Get maximum Backup retention in days for the performance tier edition. * * @return the maxBackupRetentionDays value */ @@ -152,7 +152,7 @@ public Integer maxBackupRetentionDays() { } /** - * Set the maxBackupRetentionDays value. + * Set maximum Backup retention in days for the performance tier edition. * * @param maxBackupRetentionDays the maxBackupRetentionDays value to set * @return the PerformanceTierServiceLevelObjectives object itself. @@ -163,7 +163,7 @@ public PerformanceTierServiceLevelObjectives withMaxBackupRetentionDays(Integer } /** - * Get the minBackupRetentionDays value. + * Get minimum Backup retention in days for the performance tier edition. * * @return the minBackupRetentionDays value */ @@ -172,7 +172,7 @@ public Integer minBackupRetentionDays() { } /** - * Set the minBackupRetentionDays value. + * Set minimum Backup retention in days for the performance tier edition. * * @param minBackupRetentionDays the minBackupRetentionDays value to set * @return the PerformanceTierServiceLevelObjectives object itself. @@ -183,7 +183,7 @@ public PerformanceTierServiceLevelObjectives withMinBackupRetentionDays(Integer } /** - * Get the maxStorageMB value. + * Get max storage allowed for a server. * * @return the maxStorageMB value */ @@ -192,7 +192,7 @@ public Integer maxStorageMB() { } /** - * Set the maxStorageMB value. + * Set max storage allowed for a server. * * @param maxStorageMB the maxStorageMB value to set * @return the PerformanceTierServiceLevelObjectives object itself. @@ -203,7 +203,7 @@ public PerformanceTierServiceLevelObjectives withMaxStorageMB(Integer maxStorage } /** - * Get the minStorageMB value. + * Get max storage allowed for a server. * * @return the minStorageMB value */ @@ -212,7 +212,7 @@ public Integer minStorageMB() { } /** - * Set the minStorageMB value. + * Set max storage allowed for a server. * * @param minStorageMB the minStorageMB value to set * @return the PerformanceTierServiceLevelObjectives object itself. diff --git a/mysql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/mysql/v2017_12_01/Server.java b/mysql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/mysql/v2017_12_01/Server.java index c0c40f82e305..a3eae254544b 100644 --- a/mysql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/mysql/v2017_12_01/Server.java +++ b/mysql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/mysql/v2017_12_01/Server.java @@ -10,21 +10,21 @@ import com.microsoft.azure.arm.model.HasInner; import com.microsoft.azure.arm.resources.models.Resource; +import com.microsoft.azure.arm.resources.models.GroupableResourceCore; import com.microsoft.azure.arm.resources.models.HasResourceGroup; import com.microsoft.azure.arm.model.Refreshable; import com.microsoft.azure.arm.model.Updatable; import com.microsoft.azure.arm.model.Appliable; import com.microsoft.azure.arm.model.Creatable; -import com.microsoft.azure.arm.resources.models.GroupableResourceCore; import com.microsoft.azure.arm.resources.models.HasManager; -import com.microsoft.azure.management.mysql.v2017_12_01.implementation.MySQLManager; +import com.microsoft.azure.management.mysql.v2017_12_01.implementation.DBforMySQLManager; import org.joda.time.DateTime; import com.microsoft.azure.management.mysql.v2017_12_01.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/src/main/java/com/microsoft/azure/management/mysql/v2017_12_01/ServerForCreate.java b/mysql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/mysql/v2017_12_01/ServerForCreate.java index 4ef72f6453f4..b4a67a5b4bdc 100644 --- a/mysql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/mysql/v2017_12_01/ServerForCreate.java +++ b/mysql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/mysql/v2017_12_01/ServerForCreate.java @@ -40,7 +40,7 @@ public class ServerForCreate { private Map tags; /** - * Get the sku value. + * Get the SKU (pricing tier) of the server. * * @return the sku value */ @@ -49,7 +49,7 @@ public Sku sku() { } /** - * Set the sku value. + * Set the SKU (pricing tier) of the server. * * @param sku the sku value to set * @return the ServerForCreate object itself. @@ -60,7 +60,7 @@ public ServerForCreate withSku(Sku sku) { } /** - * Get the properties value. + * Get properties of the server. * * @return the properties value */ @@ -69,7 +69,7 @@ public ServerPropertiesForCreate properties() { } /** - * Set the properties value. + * Set properties of the server. * * @param properties the properties value to set * @return the ServerForCreate object itself. @@ -80,7 +80,7 @@ public ServerForCreate withProperties(ServerPropertiesForCreate properties) { } /** - * Get the location value. + * Get the location the resource resides in. * * @return the location value */ @@ -89,7 +89,7 @@ public String location() { } /** - * Set the location value. + * Set the location the resource resides in. * * @param location the location value to set * @return the ServerForCreate object itself. @@ -100,7 +100,7 @@ public ServerForCreate withLocation(String location) { } /** - * Get the tags value. + * Get application-specific metadata in the form of key-value pairs. * * @return the tags value */ @@ -109,7 +109,7 @@ public Map tags() { } /** - * Set the tags value. + * Set application-specific metadata in the form of key-value pairs. * * @param tags the tags value to set * @return the ServerForCreate object itself. diff --git a/mysql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/mysql/v2017_12_01/ServerPropertiesForCreate.java b/mysql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/mysql/v2017_12_01/ServerPropertiesForCreate.java index 685629d54dc9..1e38852db96f 100644 --- a/mysql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/mysql/v2017_12_01/ServerPropertiesForCreate.java +++ b/mysql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/mysql/v2017_12_01/ServerPropertiesForCreate.java @@ -44,7 +44,7 @@ public class ServerPropertiesForCreate { private StorageProfile storageProfile; /** - * Get the version value. + * Get server version. Possible values include: '5.6', '5.7'. * * @return the version value */ @@ -53,7 +53,7 @@ public ServerVersion version() { } /** - * Set the version value. + * Set server version. Possible values include: '5.6', '5.7'. * * @param version the version value to set * @return the ServerPropertiesForCreate object itself. @@ -64,7 +64,7 @@ public ServerPropertiesForCreate withVersion(ServerVersion version) { } /** - * Get the sslEnforcement value. + * Get enable ssl enforcement or not when connect to server. Possible values include: 'Enabled', 'Disabled'. * * @return the sslEnforcement value */ @@ -73,7 +73,7 @@ public SslEnforcementEnum sslEnforcement() { } /** - * Set the sslEnforcement value. + * Set enable ssl enforcement or not when connect to server. Possible values include: 'Enabled', 'Disabled'. * * @param sslEnforcement the sslEnforcement value to set * @return the ServerPropertiesForCreate object itself. @@ -84,7 +84,7 @@ public ServerPropertiesForCreate withSslEnforcement(SslEnforcementEnum sslEnforc } /** - * Get the storageProfile value. + * Get storage profile of a server. * * @return the storageProfile value */ @@ -93,7 +93,7 @@ public StorageProfile storageProfile() { } /** - * Set the storageProfile value. + * Set storage profile of a server. * * @param storageProfile the storageProfile value to set * @return the ServerPropertiesForCreate object itself. diff --git a/mysql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/mysql/v2017_12_01/ServerPropertiesForDefaultCreate.java b/mysql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/mysql/v2017_12_01/ServerPropertiesForDefaultCreate.java index d4b59c980cc7..386249e8c535 100644 --- a/mysql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/mysql/v2017_12_01/ServerPropertiesForDefaultCreate.java +++ b/mysql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/mysql/v2017_12_01/ServerPropertiesForDefaultCreate.java @@ -32,7 +32,7 @@ public class ServerPropertiesForDefaultCreate extends ServerPropertiesForCreate private String administratorLoginPassword; /** - * Get the administratorLogin value. + * Get the administrator's login name of a server. Can only be specified when the server is being created (and is required for creation). * * @return the administratorLogin value */ @@ -41,7 +41,7 @@ public String administratorLogin() { } /** - * Set the administratorLogin value. + * Set the administrator's login name of a server. Can only be specified when the server is being created (and is required for creation). * * @param administratorLogin the administratorLogin value to set * @return the ServerPropertiesForDefaultCreate object itself. @@ -52,7 +52,7 @@ public ServerPropertiesForDefaultCreate withAdministratorLogin(String administra } /** - * Get the administratorLoginPassword value. + * Get the password of the administrator login. * * @return the administratorLoginPassword value */ @@ -61,7 +61,7 @@ public String administratorLoginPassword() { } /** - * Set the administratorLoginPassword value. + * Set the password of the administrator login. * * @param administratorLoginPassword the administratorLoginPassword value to set * @return the ServerPropertiesForDefaultCreate object itself. diff --git a/mysql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/mysql/v2017_12_01/ServerPropertiesForGeoRestore.java b/mysql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/mysql/v2017_12_01/ServerPropertiesForGeoRestore.java index a12d83dd1b43..a4025fcc0e0b 100644 --- a/mysql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/mysql/v2017_12_01/ServerPropertiesForGeoRestore.java +++ b/mysql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/mysql/v2017_12_01/ServerPropertiesForGeoRestore.java @@ -26,7 +26,7 @@ public class ServerPropertiesForGeoRestore extends ServerPropertiesForCreate { private String sourceServerId; /** - * Get the sourceServerId value. + * Get the source server id to restore from. * * @return the sourceServerId value */ @@ -35,7 +35,7 @@ public String sourceServerId() { } /** - * Set the sourceServerId value. + * Set the source server id to restore from. * * @param sourceServerId the sourceServerId value to set * @return the ServerPropertiesForGeoRestore object itself. diff --git a/mysql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/mysql/v2017_12_01/ServerPropertiesForRestore.java b/mysql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/mysql/v2017_12_01/ServerPropertiesForRestore.java index b57510819747..02e447b2bcff 100644 --- a/mysql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/mysql/v2017_12_01/ServerPropertiesForRestore.java +++ b/mysql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/mysql/v2017_12_01/ServerPropertiesForRestore.java @@ -33,7 +33,7 @@ public class ServerPropertiesForRestore extends ServerPropertiesForCreate { private DateTime restorePointInTime; /** - * Get the sourceServerId value. + * Get the source server id to restore from. * * @return the sourceServerId value */ @@ -42,7 +42,7 @@ public String sourceServerId() { } /** - * Set the sourceServerId value. + * Set the source server id to restore from. * * @param sourceServerId the sourceServerId value to set * @return the ServerPropertiesForRestore object itself. @@ -53,7 +53,7 @@ public ServerPropertiesForRestore withSourceServerId(String sourceServerId) { } /** - * Get the restorePointInTime value. + * Get restore point creation time (ISO8601 format), specifying the time to restore from. * * @return the restorePointInTime value */ @@ -62,7 +62,7 @@ public DateTime restorePointInTime() { } /** - * Set the restorePointInTime value. + * Set restore point creation time (ISO8601 format), specifying the time to restore from. * * @param restorePointInTime the restorePointInTime value to set * @return the ServerPropertiesForRestore object itself. diff --git a/mysql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/mysql/v2017_12_01/ServerSecurityAlertPolicies.java b/mysql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/mysql/v2017_12_01/ServerSecurityAlertPolicies.java new file mode 100644 index 000000000000..88ca822773cd --- /dev/null +++ b/mysql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/mysql/v2017_12_01/ServerSecurityAlertPolicies.java @@ -0,0 +1,30 @@ +/** + * 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; + +import com.microsoft.azure.arm.collection.SupportsCreating; +import rx.Observable; +import com.microsoft.azure.management.mysql.v2017_12_01.implementation.ServerSecurityAlertPoliciesInner; +import com.microsoft.azure.arm.model.HasInner; + +/** + * Type representing ServerSecurityAlertPolicies. + */ +public interface ServerSecurityAlertPolicies extends SupportsCreating, HasInner { + /** + * Get a server's security alert policy. + * + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. + * @param serverName The name of the server. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable for the request + */ + Observable getAsync(String resourceGroupName, String serverName); + +} diff --git a/mysql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/mysql/v2017_12_01/ServerSecurityAlertPolicy.java b/mysql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/mysql/v2017_12_01/ServerSecurityAlertPolicy.java new file mode 100644 index 000000000000..e9ff4d63c9d1 --- /dev/null +++ b/mysql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/mysql/v2017_12_01/ServerSecurityAlertPolicy.java @@ -0,0 +1,251 @@ +/** + * 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; + +import com.microsoft.azure.arm.model.HasInner; +import com.microsoft.azure.management.mysql.v2017_12_01.implementation.ServerSecurityAlertPolicyInner; +import com.microsoft.azure.arm.model.Indexable; +import com.microsoft.azure.arm.model.Refreshable; +import com.microsoft.azure.arm.model.Updatable; +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.implementation.DBforMySQLManager; +import java.util.List; + +/** + * Type representing ServerSecurityAlertPolicy. + */ +public interface ServerSecurityAlertPolicy extends HasInner, Indexable, Refreshable, Updatable, HasManager { + /** + * @return the disabledAlerts value. + */ + List disabledAlerts(); + + /** + * @return the emailAccountAdmins value. + */ + Boolean emailAccountAdmins(); + + /** + * @return the emailAddresses value. + */ + List emailAddresses(); + + /** + * @return the id value. + */ + String id(); + + /** + * @return the name value. + */ + String name(); + + /** + * @return the retentionDays value. + */ + Integer retentionDays(); + + /** + * @return the state value. + */ + ServerSecurityAlertPolicyState state(); + + /** + * @return the storageAccountAccessKey value. + */ + String storageAccountAccessKey(); + + /** + * @return the storageEndpoint value. + */ + String storageEndpoint(); + + /** + * @return the type value. + */ + String type(); + + /** + * The entirety of the ServerSecurityAlertPolicy definition. + */ + interface Definition extends DefinitionStages.Blank, DefinitionStages.WithServer, DefinitionStages.WithState, DefinitionStages.WithCreate { + } + + /** + * Grouping of ServerSecurityAlertPolicy definition stages. + */ + interface DefinitionStages { + /** + * The first stage of a ServerSecurityAlertPolicy definition. + */ + interface Blank extends WithServer { + } + + /** + * The stage of the serversecurityalertpolicy definition allowing to specify Server. + */ + interface WithServer { + /** + * Specifies resourceGroupName, serverName. + */ + WithState withExistingServer(String resourceGroupName, String serverName); + } + + /** + * The stage of the serversecurityalertpolicy definition allowing to specify State. + */ + interface WithState { + /** + * Specifies state. + */ + WithCreate withState(ServerSecurityAlertPolicyState state); + } + + /** + * The stage of the serversecurityalertpolicy definition allowing to specify DisabledAlerts. + */ + interface WithDisabledAlerts { + /** + * Specifies disabledAlerts. + */ + WithCreate withDisabledAlerts(List disabledAlerts); + } + + /** + * The stage of the serversecurityalertpolicy definition allowing to specify EmailAccountAdmins. + */ + interface WithEmailAccountAdmins { + /** + * Specifies emailAccountAdmins. + */ + WithCreate withEmailAccountAdmins(Boolean emailAccountAdmins); + } + + /** + * The stage of the serversecurityalertpolicy definition allowing to specify EmailAddresses. + */ + interface WithEmailAddresses { + /** + * Specifies emailAddresses. + */ + WithCreate withEmailAddresses(List emailAddresses); + } + + /** + * The stage of the serversecurityalertpolicy definition allowing to specify RetentionDays. + */ + interface WithRetentionDays { + /** + * Specifies retentionDays. + */ + WithCreate withRetentionDays(Integer retentionDays); + } + + /** + * The stage of the serversecurityalertpolicy definition allowing to specify StorageAccountAccessKey. + */ + interface WithStorageAccountAccessKey { + /** + * Specifies storageAccountAccessKey. + */ + WithCreate withStorageAccountAccessKey(String storageAccountAccessKey); + } + + /** + * The stage of the serversecurityalertpolicy definition allowing to specify StorageEndpoint. + */ + interface WithStorageEndpoint { + /** + * Specifies storageEndpoint. + */ + WithCreate withStorageEndpoint(String storageEndpoint); + } + + /** + * The stage of the definition which contains all the minimum required inputs for + * the resource to be created (via {@link WithCreate#create()}), but also allows + * for any other optional settings to be specified. + */ + interface WithCreate extends Creatable, DefinitionStages.WithDisabledAlerts, DefinitionStages.WithEmailAccountAdmins, DefinitionStages.WithEmailAddresses, DefinitionStages.WithRetentionDays, DefinitionStages.WithStorageAccountAccessKey, DefinitionStages.WithStorageEndpoint { + } + } + /** + * The template for a ServerSecurityAlertPolicy update operation, containing all the settings that can be modified. + */ + interface Update extends Appliable, UpdateStages.WithDisabledAlerts, UpdateStages.WithEmailAccountAdmins, UpdateStages.WithEmailAddresses, UpdateStages.WithRetentionDays, UpdateStages.WithStorageAccountAccessKey, UpdateStages.WithStorageEndpoint { + } + + /** + * Grouping of ServerSecurityAlertPolicy update stages. + */ + interface UpdateStages { + /** + * The stage of the serversecurityalertpolicy update allowing to specify DisabledAlerts. + */ + interface WithDisabledAlerts { + /** + * Specifies disabledAlerts. + */ + Update withDisabledAlerts(List disabledAlerts); + } + + /** + * The stage of the serversecurityalertpolicy update allowing to specify EmailAccountAdmins. + */ + interface WithEmailAccountAdmins { + /** + * Specifies emailAccountAdmins. + */ + Update withEmailAccountAdmins(Boolean emailAccountAdmins); + } + + /** + * The stage of the serversecurityalertpolicy update allowing to specify EmailAddresses. + */ + interface WithEmailAddresses { + /** + * Specifies emailAddresses. + */ + Update withEmailAddresses(List emailAddresses); + } + + /** + * The stage of the serversecurityalertpolicy update allowing to specify RetentionDays. + */ + interface WithRetentionDays { + /** + * Specifies retentionDays. + */ + Update withRetentionDays(Integer retentionDays); + } + + /** + * The stage of the serversecurityalertpolicy update allowing to specify StorageAccountAccessKey. + */ + interface WithStorageAccountAccessKey { + /** + * Specifies storageAccountAccessKey. + */ + Update withStorageAccountAccessKey(String storageAccountAccessKey); + } + + /** + * The stage of the serversecurityalertpolicy update allowing to specify StorageEndpoint. + */ + interface WithStorageEndpoint { + /** + * Specifies storageEndpoint. + */ + Update withStorageEndpoint(String storageEndpoint); + } + + } +} diff --git a/mysql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/mysql/v2017_12_01/ServerSecurityAlertPolicyState.java b/mysql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/mysql/v2017_12_01/ServerSecurityAlertPolicyState.java new file mode 100644 index 000000000000..8397f1abfc4d --- /dev/null +++ b/mysql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/mysql/v2017_12_01/ServerSecurityAlertPolicyState.java @@ -0,0 +1,53 @@ +/** + * 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; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +/** + * Defines values for ServerSecurityAlertPolicyState. + */ +public enum ServerSecurityAlertPolicyState { + /** Enum value Enabled. */ + ENABLED("Enabled"), + + /** Enum value Disabled. */ + DISABLED("Disabled"); + + /** The actual serialized value for a ServerSecurityAlertPolicyState instance. */ + private String value; + + ServerSecurityAlertPolicyState(String value) { + this.value = value; + } + + /** + * Parses a serialized value to a ServerSecurityAlertPolicyState instance. + * + * @param value the serialized value to parse. + * @return the parsed ServerSecurityAlertPolicyState object, or null if unable to parse. + */ + @JsonCreator + public static ServerSecurityAlertPolicyState fromString(String value) { + ServerSecurityAlertPolicyState[] items = ServerSecurityAlertPolicyState.values(); + for (ServerSecurityAlertPolicyState item : items) { + if (item.toString().equalsIgnoreCase(value)) { + return item; + } + } + return null; + } + + @JsonValue + @Override + public String toString() { + return this.value; + } +} diff --git a/mysql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/mysql/v2017_12_01/ServerUpdateParameters.java b/mysql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/mysql/v2017_12_01/ServerUpdateParameters.java index 37e51b203614..351e3725fd0c 100644 --- a/mysql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/mysql/v2017_12_01/ServerUpdateParameters.java +++ b/mysql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/mysql/v2017_12_01/ServerUpdateParameters.java @@ -55,7 +55,7 @@ public class ServerUpdateParameters { private Map tags; /** - * Get the sku value. + * Get the SKU (pricing tier) of the server. * * @return the sku value */ @@ -64,7 +64,7 @@ public Sku sku() { } /** - * Set the sku value. + * Set the SKU (pricing tier) of the server. * * @param sku the sku value to set * @return the ServerUpdateParameters object itself. @@ -75,7 +75,7 @@ public ServerUpdateParameters withSku(Sku sku) { } /** - * Get the storageProfile value. + * Get storage profile of a server. * * @return the storageProfile value */ @@ -84,7 +84,7 @@ public StorageProfile storageProfile() { } /** - * Set the storageProfile value. + * Set storage profile of a server. * * @param storageProfile the storageProfile value to set * @return the ServerUpdateParameters object itself. @@ -95,7 +95,7 @@ public ServerUpdateParameters withStorageProfile(StorageProfile storageProfile) } /** - * Get the administratorLoginPassword value. + * Get the password of the administrator login. * * @return the administratorLoginPassword value */ @@ -104,7 +104,7 @@ public String administratorLoginPassword() { } /** - * Set the administratorLoginPassword value. + * Set the password of the administrator login. * * @param administratorLoginPassword the administratorLoginPassword value to set * @return the ServerUpdateParameters object itself. @@ -115,7 +115,7 @@ public ServerUpdateParameters withAdministratorLoginPassword(String administrato } /** - * Get the version value. + * Get the version of a server. Possible values include: '5.6', '5.7'. * * @return the version value */ @@ -124,7 +124,7 @@ public ServerVersion version() { } /** - * Set the version value. + * Set the version of a server. Possible values include: '5.6', '5.7'. * * @param version the version value to set * @return the ServerUpdateParameters object itself. @@ -135,7 +135,7 @@ public ServerUpdateParameters withVersion(ServerVersion version) { } /** - * Get the sslEnforcement value. + * Get enable ssl enforcement or not when connect to server. Possible values include: 'Enabled', 'Disabled'. * * @return the sslEnforcement value */ @@ -144,7 +144,7 @@ public SslEnforcementEnum sslEnforcement() { } /** - * Set the sslEnforcement value. + * Set enable ssl enforcement or not when connect to server. Possible values include: 'Enabled', 'Disabled'. * * @param sslEnforcement the sslEnforcement value to set * @return the ServerUpdateParameters object itself. @@ -155,7 +155,7 @@ public ServerUpdateParameters withSslEnforcement(SslEnforcementEnum sslEnforceme } /** - * Get the tags value. + * Get application-specific metadata in the form of key-value pairs. * * @return the tags value */ @@ -164,7 +164,7 @@ public Map tags() { } /** - * Set the tags value. + * Set application-specific metadata in the form of key-value pairs. * * @param tags the tags value to set * @return the ServerUpdateParameters object itself. diff --git a/mysql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/mysql/v2017_12_01/Sku.java b/mysql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/mysql/v2017_12_01/Sku.java index e231feb959cb..ee3b91e483d4 100644 --- a/mysql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/mysql/v2017_12_01/Sku.java +++ b/mysql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/mysql/v2017_12_01/Sku.java @@ -47,7 +47,7 @@ public class Sku { private String family; /** - * Get the name value. + * Get the name of the sku, typically, tier + family + cores, e.g. B_Gen4_1, GP_Gen5_8. * * @return the name value */ @@ -56,7 +56,7 @@ public String name() { } /** - * Set the name value. + * Set the name of the sku, typically, tier + family + cores, e.g. B_Gen4_1, GP_Gen5_8. * * @param name the name value to set * @return the Sku object itself. @@ -67,7 +67,7 @@ public Sku withName(String name) { } /** - * Get the tier value. + * Get the tier of the particular SKU, e.g. Basic. Possible values include: 'Basic', 'GeneralPurpose', 'MemoryOptimized'. * * @return the tier value */ @@ -76,7 +76,7 @@ public SkuTier tier() { } /** - * Set the tier value. + * Set the tier of the particular SKU, e.g. Basic. Possible values include: 'Basic', 'GeneralPurpose', 'MemoryOptimized'. * * @param tier the tier value to set * @return the Sku object itself. @@ -87,7 +87,7 @@ public Sku withTier(SkuTier tier) { } /** - * Get the capacity value. + * Get the scale up/out capacity, representing server's compute units. * * @return the capacity value */ @@ -96,7 +96,7 @@ public Integer capacity() { } /** - * Set the capacity value. + * Set the scale up/out capacity, representing server's compute units. * * @param capacity the capacity value to set * @return the Sku object itself. @@ -107,7 +107,7 @@ public Sku withCapacity(Integer capacity) { } /** - * Get the size value. + * Get the size code, to be interpreted by resource as appropriate. * * @return the size value */ @@ -116,7 +116,7 @@ public String size() { } /** - * Set the size value. + * Set the size code, to be interpreted by resource as appropriate. * * @param size the size value to set * @return the Sku object itself. @@ -127,7 +127,7 @@ public Sku withSize(String size) { } /** - * Get the family value. + * Get the family of hardware. * * @return the family value */ @@ -136,7 +136,7 @@ public String family() { } /** - * Set the family value. + * Set the family of hardware. * * @param family the family value to set * @return the Sku object itself. diff --git a/mysql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/mysql/v2017_12_01/StorageProfile.java b/mysql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/mysql/v2017_12_01/StorageProfile.java index 292c97c9855b..c6af125b895e 100644 --- a/mysql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/mysql/v2017_12_01/StorageProfile.java +++ b/mysql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/mysql/v2017_12_01/StorageProfile.java @@ -34,7 +34,7 @@ public class StorageProfile { private Integer storageMB; /** - * Get the backupRetentionDays value. + * Get backup retention days for the server. * * @return the backupRetentionDays value */ @@ -43,7 +43,7 @@ public Integer backupRetentionDays() { } /** - * Set the backupRetentionDays value. + * Set backup retention days for the server. * * @param backupRetentionDays the backupRetentionDays value to set * @return the StorageProfile object itself. @@ -54,7 +54,7 @@ public StorageProfile withBackupRetentionDays(Integer backupRetentionDays) { } /** - * Get the geoRedundantBackup value. + * Get enable Geo-redundant or not for server backup. Possible values include: 'Enabled', 'Disabled'. * * @return the geoRedundantBackup value */ @@ -63,7 +63,7 @@ public GeoRedundantBackup geoRedundantBackup() { } /** - * Set the geoRedundantBackup value. + * Set enable Geo-redundant or not for server backup. Possible values include: 'Enabled', 'Disabled'. * * @param geoRedundantBackup the geoRedundantBackup value to set * @return the StorageProfile object itself. @@ -74,7 +74,7 @@ public StorageProfile withGeoRedundantBackup(GeoRedundantBackup geoRedundantBack } /** - * Get the storageMB value. + * Get max storage allowed for a server. * * @return the storageMB value */ @@ -83,7 +83,7 @@ public Integer storageMB() { } /** - * Set the storageMB value. + * Set max storage allowed for a server. * * @param storageMB the storageMB value to set * @return the StorageProfile object itself. diff --git a/mysql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/mysql/v2017_12_01/VirtualNetworkRule.java b/mysql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/mysql/v2017_12_01/VirtualNetworkRule.java index 09ea47ce10f6..a4ebe84f5b56 100644 --- a/mysql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/mysql/v2017_12_01/VirtualNetworkRule.java +++ b/mysql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/mysql/v2017_12_01/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.implementation.MySQLManager; +import com.microsoft.azure.management.mysql.v2017_12_01.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/src/main/java/com/microsoft/azure/management/mysql/v2017_12_01/implementation/CheckNameAvailabilitysImpl.java b/mysql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/mysql/v2017_12_01/implementation/CheckNameAvailabilitysImpl.java index ee246d82bd1a..ddbe8bda6c29 100644 --- a/mysql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/mysql/v2017_12_01/implementation/CheckNameAvailabilitysImpl.java +++ b/mysql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/mysql/v2017_12_01/implementation/CheckNameAvailabilitysImpl.java @@ -17,14 +17,14 @@ import com.microsoft.azure.management.mysql.v2017_12_01.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/src/main/java/com/microsoft/azure/management/mysql/v2017_12_01/implementation/ConfigurationImpl.java b/mysql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/mysql/v2017_12_01/implementation/ConfigurationImpl.java index 99f8393864a4..d365c327547e 100644 --- a/mysql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/mysql/v2017_12_01/implementation/ConfigurationImpl.java +++ b/mysql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/mysql/v2017_12_01/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/src/main/java/com/microsoft/azure/management/mysql/v2017_12_01/implementation/DBforMySQLManager.java b/mysql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/mysql/v2017_12_01/implementation/DBforMySQLManager.java new file mode 100644 index 000000000000..6509cffd2091 --- /dev/null +++ b/mysql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/mysql/v2017_12_01/implementation/DBforMySQLManager.java @@ -0,0 +1,207 @@ +/** + * 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.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.Servers; +import com.microsoft.azure.management.mysql.v2017_12_01.FirewallRules; +import com.microsoft.azure.management.mysql.v2017_12_01.VirtualNetworkRules; +import com.microsoft.azure.management.mysql.v2017_12_01.Databases; +import com.microsoft.azure.management.mysql.v2017_12_01.Configurations; +import com.microsoft.azure.management.mysql.v2017_12_01.LogFiles; +import com.microsoft.azure.management.mysql.v2017_12_01.LocationBasedPerformanceTiers; +import com.microsoft.azure.management.mysql.v2017_12_01.CheckNameAvailabilitys; +import com.microsoft.azure.management.mysql.v2017_12_01.ServerSecurityAlertPolicies; +import com.microsoft.azure.management.mysql.v2017_12_01.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 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 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/src/main/java/com/microsoft/azure/management/mysql/v2017_12_01/implementation/DatabaseImpl.java b/mysql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/mysql/v2017_12_01/implementation/DatabaseImpl.java index 4357d7376d33..9a95d0482957 100644 --- a/mysql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/mysql/v2017_12_01/implementation/DatabaseImpl.java +++ b/mysql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/mysql/v2017_12_01/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/src/main/java/com/microsoft/azure/management/mysql/v2017_12_01/implementation/FirewallRuleImpl.java b/mysql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/mysql/v2017_12_01/implementation/FirewallRuleImpl.java index 9e0e865f1c24..dd2146517e4d 100644 --- a/mysql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/mysql/v2017_12_01/implementation/FirewallRuleImpl.java +++ b/mysql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/mysql/v2017_12_01/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/src/main/java/com/microsoft/azure/management/mysql/v2017_12_01/implementation/LocationBasedPerformanceTiersImpl.java b/mysql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/mysql/v2017_12_01/implementation/LocationBasedPerformanceTiersImpl.java index 0f0fbd7f0a39..819f546d0094 100644 --- a/mysql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/mysql/v2017_12_01/implementation/LocationBasedPerformanceTiersImpl.java +++ b/mysql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/mysql/v2017_12_01/implementation/LocationBasedPerformanceTiersImpl.java @@ -17,14 +17,14 @@ import com.microsoft.azure.management.mysql.v2017_12_01.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/src/main/java/com/microsoft/azure/management/mysql/v2017_12_01/implementation/LogFileImpl.java b/mysql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/mysql/v2017_12_01/implementation/LogFileImpl.java index dc549c092fa8..87012d3b5fa4 100644 --- a/mysql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/mysql/v2017_12_01/implementation/LogFileImpl.java +++ b/mysql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/mysql/v2017_12_01/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/src/main/java/com/microsoft/azure/management/mysql/v2017_12_01/implementation/LogFileInner.java b/mysql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/mysql/v2017_12_01/implementation/LogFileInner.java index c499d0d08e64..b3a818532f2a 100644 --- a/mysql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/mysql/v2017_12_01/implementation/LogFileInner.java +++ b/mysql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/mysql/v2017_12_01/implementation/LogFileInner.java @@ -49,7 +49,7 @@ public class LogFileInner extends ProxyResource { private String url; /** - * Get the sizeInKB value. + * Get size of the log file. * * @return the sizeInKB value */ @@ -58,7 +58,7 @@ public Long sizeInKB() { } /** - * Set the sizeInKB value. + * Set size of the log file. * * @param sizeInKB the sizeInKB value to set * @return the LogFileInner object itself. @@ -69,7 +69,7 @@ public LogFileInner withSizeInKB(Long sizeInKB) { } /** - * Get the createdTime value. + * Get creation timestamp of the log file. * * @return the createdTime value */ @@ -78,7 +78,7 @@ public DateTime createdTime() { } /** - * Get the lastModifiedTime value. + * Get last modified timestamp of the log file. * * @return the lastModifiedTime value */ @@ -87,7 +87,7 @@ public DateTime lastModifiedTime() { } /** - * Get the logFileType value. + * Get type of the log file. * * @return the logFileType value */ @@ -96,7 +96,7 @@ public String logFileType() { } /** - * Set the logFileType value. + * Set type of the log file. * * @param logFileType the logFileType value to set * @return the LogFileInner object itself. @@ -107,7 +107,7 @@ public LogFileInner withLogFileType(String logFileType) { } /** - * Get the url value. + * Get the url to download the log file from. * * @return the url value */ @@ -116,7 +116,7 @@ public String url() { } /** - * Set the url value. + * Set the url to download the log file from. * * @param url the url value to set * @return the LogFileInner object itself. diff --git a/mysql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/mysql/v2017_12_01/implementation/LogFilesImpl.java b/mysql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/mysql/v2017_12_01/implementation/LogFilesImpl.java index 75c9feab0f78..313911884539 100644 --- a/mysql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/mysql/v2017_12_01/implementation/LogFilesImpl.java +++ b/mysql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/mysql/v2017_12_01/implementation/LogFilesImpl.java @@ -17,14 +17,14 @@ import com.microsoft.azure.management.mysql.v2017_12_01.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/src/main/java/com/microsoft/azure/management/mysql/v2017_12_01/implementation/MySQLManagementClientImpl.java b/mysql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/mysql/v2017_12_01/implementation/MySQLManagementClientImpl.java index 0ea84085f65f..ab3b4ed49ab0 100644 --- a/mysql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/mysql/v2017_12_01/implementation/MySQLManagementClientImpl.java +++ b/mysql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/mysql/v2017_12_01/implementation/MySQLManagementClientImpl.java @@ -236,6 +236,19 @@ public CheckNameAvailabilitysInner checkNameAvailabilitys() { return this.checkNameAvailabilitys; } + /** + * The ServerSecurityAlertPoliciesInner object to access its operations. + */ + private ServerSecurityAlertPoliciesInner serverSecurityAlertPolicies; + + /** + * Gets the ServerSecurityAlertPoliciesInner object to access its operations. + * @return the ServerSecurityAlertPoliciesInner object. + */ + public ServerSecurityAlertPoliciesInner serverSecurityAlertPolicies() { + return this.serverSecurityAlertPolicies; + } + /** * The OperationsInner object to access its operations. */ @@ -292,6 +305,7 @@ protected void initialize() { this.logFiles = new LogFilesInner(restClient().retrofit(), this); this.locationBasedPerformanceTiers = new LocationBasedPerformanceTiersInner(restClient().retrofit(), this); this.checkNameAvailabilitys = new CheckNameAvailabilitysInner(restClient().retrofit(), this); + this.serverSecurityAlertPolicies = new ServerSecurityAlertPoliciesInner(restClient().retrofit(), this); this.operations = new OperationsInner(restClient().retrofit(), this); this.azureClient = new AzureClient(this); } diff --git a/mysql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/mysql/v2017_12_01/implementation/NameAvailabilityImpl.java b/mysql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/mysql/v2017_12_01/implementation/NameAvailabilityImpl.java index b2ff4f5f0f4c..976e715ffb3e 100644 --- a/mysql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/mysql/v2017_12_01/implementation/NameAvailabilityImpl.java +++ b/mysql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/mysql/v2017_12_01/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/src/main/java/com/microsoft/azure/management/mysql/v2017_12_01/implementation/NameAvailabilityInner.java b/mysql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/mysql/v2017_12_01/implementation/NameAvailabilityInner.java index 18cb924faef9..691a37a96650 100644 --- a/mysql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/mysql/v2017_12_01/implementation/NameAvailabilityInner.java +++ b/mysql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/mysql/v2017_12_01/implementation/NameAvailabilityInner.java @@ -33,7 +33,7 @@ public class NameAvailabilityInner { private String reason; /** - * Get the message value. + * Get error Message. * * @return the message value */ @@ -42,7 +42,7 @@ public String message() { } /** - * Set the message value. + * Set error Message. * * @param message the message value to set * @return the NameAvailabilityInner object itself. @@ -53,7 +53,7 @@ public NameAvailabilityInner withMessage(String message) { } /** - * Get the nameAvailable value. + * Get indicates whether the resource name is available. * * @return the nameAvailable value */ @@ -62,7 +62,7 @@ public Boolean nameAvailable() { } /** - * Set the nameAvailable value. + * Set indicates whether the resource name is available. * * @param nameAvailable the nameAvailable value to set * @return the NameAvailabilityInner object itself. @@ -73,7 +73,7 @@ public NameAvailabilityInner withNameAvailable(Boolean nameAvailable) { } /** - * Get the reason value. + * Get reason for name being unavailable. * * @return the reason value */ @@ -82,7 +82,7 @@ public String reason() { } /** - * Set the reason value. + * Set reason for name being unavailable. * * @param reason the reason value to set * @return the NameAvailabilityInner object itself. diff --git a/mysql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/mysql/v2017_12_01/implementation/OperationInner.java b/mysql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/mysql/v2017_12_01/implementation/OperationInner.java index a0118cebddc0..5dd089ee8f49 100644 --- a/mysql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/mysql/v2017_12_01/implementation/OperationInner.java +++ b/mysql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/mysql/v2017_12_01/implementation/OperationInner.java @@ -44,7 +44,7 @@ public class OperationInner { private Map properties; /** - * Get the name value. + * Get the name of the operation being performed on this particular object. * * @return the name value */ @@ -53,7 +53,7 @@ public String name() { } /** - * Get the display value. + * Get the localized display information for this particular operation or action. * * @return the display value */ @@ -62,7 +62,7 @@ public OperationDisplay display() { } /** - * Get the origin value. + * Get the intended executor of the operation. Possible values include: 'NotSpecified', 'user', 'system'. * * @return the origin value */ @@ -71,7 +71,7 @@ public OperationOrigin origin() { } /** - * Get the properties value. + * Get additional descriptions for the operation. * * @return the properties value */ diff --git a/mysql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/mysql/v2017_12_01/implementation/OperationListResultImpl.java b/mysql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/mysql/v2017_12_01/implementation/OperationListResultImpl.java index 153dbb72e6e7..564ad1d27aa0 100644 --- a/mysql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/mysql/v2017_12_01/implementation/OperationListResultImpl.java +++ b/mysql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/mysql/v2017_12_01/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/src/main/java/com/microsoft/azure/management/mysql/v2017_12_01/implementation/OperationListResultInner.java b/mysql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/mysql/v2017_12_01/implementation/OperationListResultInner.java index 86c2f3564c12..dc0b0ac0cb1a 100644 --- a/mysql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/mysql/v2017_12_01/implementation/OperationListResultInner.java +++ b/mysql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/mysql/v2017_12_01/implementation/OperationListResultInner.java @@ -22,7 +22,7 @@ public class OperationListResultInner { private List value; /** - * Get the value value. + * Get the list of resource provider operations. * * @return the value value */ @@ -31,7 +31,7 @@ public List value() { } /** - * Set the value value. + * Set the list of resource provider operations. * * @param value the value value to set * @return the OperationListResultInner object itself. diff --git a/mysql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/mysql/v2017_12_01/implementation/OperationsImpl.java b/mysql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/mysql/v2017_12_01/implementation/OperationsImpl.java index e90794fcd6f1..513d63f49845 100644 --- a/mysql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/mysql/v2017_12_01/implementation/OperationsImpl.java +++ b/mysql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/mysql/v2017_12_01/implementation/OperationsImpl.java @@ -16,14 +16,14 @@ import com.microsoft.azure.management.mysql.v2017_12_01.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/src/main/java/com/microsoft/azure/management/mysql/v2017_12_01/implementation/PerformanceTierPropertiesImpl.java b/mysql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/mysql/v2017_12_01/implementation/PerformanceTierPropertiesImpl.java index 1ad8d1758f7d..5be0833686ca 100644 --- a/mysql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/mysql/v2017_12_01/implementation/PerformanceTierPropertiesImpl.java +++ b/mysql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/mysql/v2017_12_01/implementation/PerformanceTierPropertiesImpl.java @@ -15,15 +15,15 @@ import com.microsoft.azure.management.mysql.v2017_12_01.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/src/main/java/com/microsoft/azure/management/mysql/v2017_12_01/implementation/PerformanceTierPropertiesInner.java b/mysql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/mysql/v2017_12_01/implementation/PerformanceTierPropertiesInner.java index bc79e1cad03e..f46e2f076e61 100644 --- a/mysql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/mysql/v2017_12_01/implementation/PerformanceTierPropertiesInner.java +++ b/mysql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/mysql/v2017_12_01/implementation/PerformanceTierPropertiesInner.java @@ -29,7 +29,7 @@ public class PerformanceTierPropertiesInner { private List serviceLevelObjectives; /** - * Get the id value. + * Get iD of the performance tier. * * @return the id value */ @@ -38,7 +38,7 @@ public String id() { } /** - * Set the id value. + * Set iD of the performance tier. * * @param id the id value to set * @return the PerformanceTierPropertiesInner object itself. @@ -49,7 +49,7 @@ public PerformanceTierPropertiesInner withId(String id) { } /** - * Get the serviceLevelObjectives value. + * Get service level objectives associated with the performance tier. * * @return the serviceLevelObjectives value */ @@ -58,7 +58,7 @@ public List serviceLevelObjectives() { } /** - * Set the serviceLevelObjectives value. + * Set service level objectives associated with the performance tier. * * @param serviceLevelObjectives the serviceLevelObjectives value to set * @return the PerformanceTierPropertiesInner object itself. diff --git a/mysql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/mysql/v2017_12_01/implementation/ServerImpl.java b/mysql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/mysql/v2017_12_01/implementation/ServerImpl.java index e00f0eda134f..8ddacd31fed4 100644 --- a/mysql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/mysql/v2017_12_01/implementation/ServerImpl.java +++ b/mysql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/mysql/v2017_12_01/implementation/ServerImpl.java @@ -22,10 +22,10 @@ import com.microsoft.azure.management.mysql.v2017_12_01.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/src/main/java/com/microsoft/azure/management/mysql/v2017_12_01/implementation/ServerInner.java b/mysql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/mysql/v2017_12_01/implementation/ServerInner.java index 6b5b3b38eb95..a73e7b72e4d3 100644 --- a/mysql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/mysql/v2017_12_01/implementation/ServerInner.java +++ b/mysql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/mysql/v2017_12_01/implementation/ServerInner.java @@ -75,7 +75,7 @@ public class ServerInner extends Resource { private StorageProfile storageProfile; /** - * Get the sku value. + * Get the SKU (pricing tier) of the server. * * @return the sku value */ @@ -84,7 +84,7 @@ public Sku sku() { } /** - * Set the sku value. + * Set the SKU (pricing tier) of the server. * * @param sku the sku value to set * @return the ServerInner object itself. @@ -95,7 +95,7 @@ public ServerInner withSku(Sku sku) { } /** - * Get the administratorLogin value. + * Get the administrator's login name of a server. Can only be specified when the server is being created (and is required for creation). * * @return the administratorLogin value */ @@ -104,7 +104,7 @@ public String administratorLogin() { } /** - * Set the administratorLogin value. + * Set the administrator's login name of a server. Can only be specified when the server is being created (and is required for creation). * * @param administratorLogin the administratorLogin value to set * @return the ServerInner object itself. @@ -115,7 +115,7 @@ public ServerInner withAdministratorLogin(String administratorLogin) { } /** - * Get the version value. + * Get server version. Possible values include: '5.6', '5.7'. * * @return the version value */ @@ -124,7 +124,7 @@ public ServerVersion version() { } /** - * Set the version value. + * Set server version. Possible values include: '5.6', '5.7'. * * @param version the version value to set * @return the ServerInner object itself. @@ -135,7 +135,7 @@ public ServerInner withVersion(ServerVersion version) { } /** - * Get the sslEnforcement value. + * Get enable ssl enforcement or not when connect to server. Possible values include: 'Enabled', 'Disabled'. * * @return the sslEnforcement value */ @@ -144,7 +144,7 @@ public SslEnforcementEnum sslEnforcement() { } /** - * Set the sslEnforcement value. + * Set enable ssl enforcement or not when connect to server. Possible values include: 'Enabled', 'Disabled'. * * @param sslEnforcement the sslEnforcement value to set * @return the ServerInner object itself. @@ -155,7 +155,7 @@ public ServerInner withSslEnforcement(SslEnforcementEnum sslEnforcement) { } /** - * Get the userVisibleState value. + * Get a state of a server that is visible to user. Possible values include: 'Ready', 'Dropping', 'Disabled'. * * @return the userVisibleState value */ @@ -164,7 +164,7 @@ public ServerState userVisibleState() { } /** - * Set the userVisibleState value. + * Set a state of a server that is visible to user. Possible values include: 'Ready', 'Dropping', 'Disabled'. * * @param userVisibleState the userVisibleState value to set * @return the ServerInner object itself. @@ -175,7 +175,7 @@ public ServerInner withUserVisibleState(ServerState userVisibleState) { } /** - * Get the fullyQualifiedDomainName value. + * Get the fully qualified domain name of a server. * * @return the fullyQualifiedDomainName value */ @@ -184,7 +184,7 @@ public String fullyQualifiedDomainName() { } /** - * Set the fullyQualifiedDomainName value. + * Set the fully qualified domain name of a server. * * @param fullyQualifiedDomainName the fullyQualifiedDomainName value to set * @return the ServerInner object itself. @@ -195,7 +195,7 @@ public ServerInner withFullyQualifiedDomainName(String fullyQualifiedDomainName) } /** - * Get the earliestRestoreDate value. + * Get earliest restore point creation time (ISO8601 format). * * @return the earliestRestoreDate value */ @@ -204,7 +204,7 @@ public DateTime earliestRestoreDate() { } /** - * Set the earliestRestoreDate value. + * Set earliest restore point creation time (ISO8601 format). * * @param earliestRestoreDate the earliestRestoreDate value to set * @return the ServerInner object itself. @@ -215,7 +215,7 @@ public ServerInner withEarliestRestoreDate(DateTime earliestRestoreDate) { } /** - * Get the storageProfile value. + * Get storage profile of a server. * * @return the storageProfile value */ @@ -224,7 +224,7 @@ public StorageProfile storageProfile() { } /** - * Set the storageProfile value. + * Set storage profile of a server. * * @param storageProfile the storageProfile value to set * @return the ServerInner object itself. diff --git a/mysql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/mysql/v2017_12_01/implementation/ServerSecurityAlertPoliciesImpl.java b/mysql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/mysql/v2017_12_01/implementation/ServerSecurityAlertPoliciesImpl.java new file mode 100644 index 000000000000..e4ca6be5c793 --- /dev/null +++ b/mysql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/mysql/v2017_12_01/implementation/ServerSecurityAlertPoliciesImpl.java @@ -0,0 +1,55 @@ +/** + * 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.implementation; + +import com.microsoft.azure.arm.model.implementation.WrapperImpl; +import com.microsoft.azure.management.mysql.v2017_12_01.ServerSecurityAlertPolicies; +import rx.Observable; +import rx.functions.Func1; +import com.microsoft.azure.management.mysql.v2017_12_01.ServerSecurityAlertPolicy; + +class ServerSecurityAlertPoliciesImpl extends WrapperImpl implements ServerSecurityAlertPolicies { + private final DBforMySQLManager manager; + + ServerSecurityAlertPoliciesImpl(DBforMySQLManager manager) { + super(manager.inner().serverSecurityAlertPolicies()); + this.manager = manager; + } + + public DBforMySQLManager manager() { + return this.manager; + } + + @Override + public ServerSecurityAlertPolicyImpl define(String name) { + return wrapModel(name); + } + + private ServerSecurityAlertPolicyImpl wrapModel(ServerSecurityAlertPolicyInner inner) { + return new ServerSecurityAlertPolicyImpl(inner, manager()); + } + + private ServerSecurityAlertPolicyImpl wrapModel(String name) { + return new ServerSecurityAlertPolicyImpl(name, this.manager()); + } + + @Override + public Observable getAsync(String resourceGroupName, String serverName) { + ServerSecurityAlertPoliciesInner client = this.inner(); + return client.getAsync(resourceGroupName, serverName) + .map(new Func1() { + @Override + public ServerSecurityAlertPolicy call(ServerSecurityAlertPolicyInner inner) { + return wrapModel(inner); + } + }); + } + +} diff --git a/mysql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/mysql/v2017_12_01/implementation/ServerSecurityAlertPoliciesInner.java b/mysql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/mysql/v2017_12_01/implementation/ServerSecurityAlertPoliciesInner.java new file mode 100644 index 000000000000..f094b7f277e2 --- /dev/null +++ b/mysql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/mysql/v2017_12_01/implementation/ServerSecurityAlertPoliciesInner.java @@ -0,0 +1,332 @@ +/** + * 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.implementation; + +import retrofit2.Retrofit; +import com.google.common.reflect.TypeToken; +import com.microsoft.azure.CloudException; +import com.microsoft.rest.ServiceCallback; +import com.microsoft.rest.ServiceFuture; +import com.microsoft.rest.ServiceResponse; +import com.microsoft.rest.Validator; +import java.io.IOException; +import okhttp3.ResponseBody; +import retrofit2.http.Body; +import retrofit2.http.GET; +import retrofit2.http.Header; +import retrofit2.http.Headers; +import retrofit2.http.Path; +import retrofit2.http.PUT; +import retrofit2.http.Query; +import retrofit2.Response; +import rx.functions.Func1; +import rx.Observable; + +/** + * An instance of this class provides access to all the operations defined + * in ServerSecurityAlertPolicies. + */ +public class ServerSecurityAlertPoliciesInner { + /** The Retrofit service to perform REST calls. */ + private ServerSecurityAlertPoliciesService service; + /** The service client containing this operation class. */ + private MySQLManagementClientImpl client; + + /** + * Initializes an instance of ServerSecurityAlertPoliciesInner. + * + * @param retrofit the Retrofit instance built from a Retrofit Builder. + * @param client the instance of the service client containing this operation class. + */ + public ServerSecurityAlertPoliciesInner(Retrofit retrofit, MySQLManagementClientImpl client) { + this.service = retrofit.create(ServerSecurityAlertPoliciesService.class); + this.client = client; + } + + /** + * The interface defining all the services for ServerSecurityAlertPolicies to be + * used by Retrofit to perform actually REST calls. + */ + interface ServerSecurityAlertPoliciesService { + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.mysql.v2017_12_01.ServerSecurityAlertPolicies get" }) + @GET("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMySQL/servers/{serverName}/securityAlertPolicies/{securityAlertPolicyName}") + Observable> get(@Path("resourceGroupName") String resourceGroupName, @Path("serverName") String serverName, @Path("securityAlertPolicyName") String securityAlertPolicyName, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.mysql.v2017_12_01.ServerSecurityAlertPolicies createOrUpdate" }) + @PUT("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMySQL/servers/{serverName}/securityAlertPolicies/{securityAlertPolicyName}") + Observable> createOrUpdate(@Path("resourceGroupName") String resourceGroupName, @Path("serverName") String serverName, @Path("securityAlertPolicyName") String securityAlertPolicyName, @Path("subscriptionId") String subscriptionId, @Body ServerSecurityAlertPolicyInner parameters, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.mysql.v2017_12_01.ServerSecurityAlertPolicies beginCreateOrUpdate" }) + @PUT("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMySQL/servers/{serverName}/securityAlertPolicies/{securityAlertPolicyName}") + Observable> beginCreateOrUpdate(@Path("resourceGroupName") String resourceGroupName, @Path("serverName") String serverName, @Path("securityAlertPolicyName") String securityAlertPolicyName, @Path("subscriptionId") String subscriptionId, @Body ServerSecurityAlertPolicyInner parameters, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + + } + + /** + * Get a server's security alert policy. + * + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. + * @param serverName The name of the server. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws CloudException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the ServerSecurityAlertPolicyInner object if successful. + */ + public ServerSecurityAlertPolicyInner get(String resourceGroupName, String serverName) { + return getWithServiceResponseAsync(resourceGroupName, serverName).toBlocking().single().body(); + } + + /** + * Get a server's security alert policy. + * + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. + * @param serverName The name of the server. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture getAsync(String resourceGroupName, String serverName, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(getWithServiceResponseAsync(resourceGroupName, serverName), serviceCallback); + } + + /** + * Get a server's security alert policy. + * + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. + * @param serverName The name of the server. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the ServerSecurityAlertPolicyInner object + */ + public Observable getAsync(String resourceGroupName, String serverName) { + return getWithServiceResponseAsync(resourceGroupName, serverName).map(new Func1, ServerSecurityAlertPolicyInner>() { + @Override + public ServerSecurityAlertPolicyInner call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * Get a server's security alert policy. + * + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. + * @param serverName The name of the server. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the ServerSecurityAlertPolicyInner object + */ + public Observable> getWithServiceResponseAsync(String resourceGroupName, String serverName) { + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + if (serverName == null) { + throw new IllegalArgumentException("Parameter serverName is required and cannot be null."); + } + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (this.client.apiVersion() == null) { + throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); + } + final String securityAlertPolicyName = "Default"; + return service.get(resourceGroupName, serverName, securityAlertPolicyName, this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>() { + @Override + public Observable> call(Response response) { + try { + ServiceResponse clientResponse = getDelegate(response); + return Observable.just(clientResponse); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse getDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) + .registerError(CloudException.class) + .build(response); + } + + /** + * Creates or updates a threat detection policy. + * + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. + * @param serverName The name of the server. + * @param parameters The server security alert policy. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws CloudException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the ServerSecurityAlertPolicyInner object if successful. + */ + public ServerSecurityAlertPolicyInner createOrUpdate(String resourceGroupName, String serverName, ServerSecurityAlertPolicyInner parameters) { + return createOrUpdateWithServiceResponseAsync(resourceGroupName, serverName, parameters).toBlocking().last().body(); + } + + /** + * Creates or updates a threat detection policy. + * + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. + * @param serverName The name of the server. + * @param parameters The server security alert policy. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture createOrUpdateAsync(String resourceGroupName, String serverName, ServerSecurityAlertPolicyInner parameters, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(createOrUpdateWithServiceResponseAsync(resourceGroupName, serverName, parameters), serviceCallback); + } + + /** + * Creates or updates a threat detection policy. + * + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. + * @param serverName The name of the server. + * @param parameters The server security alert policy. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable for the request + */ + public Observable createOrUpdateAsync(String resourceGroupName, String serverName, ServerSecurityAlertPolicyInner parameters) { + return createOrUpdateWithServiceResponseAsync(resourceGroupName, serverName, parameters).map(new Func1, ServerSecurityAlertPolicyInner>() { + @Override + public ServerSecurityAlertPolicyInner call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * Creates or updates a threat detection policy. + * + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. + * @param serverName The name of the server. + * @param parameters The server security alert policy. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable for the request + */ + public Observable> createOrUpdateWithServiceResponseAsync(String resourceGroupName, String serverName, ServerSecurityAlertPolicyInner parameters) { + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + if (serverName == null) { + throw new IllegalArgumentException("Parameter serverName is required and cannot be null."); + } + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (parameters == null) { + throw new IllegalArgumentException("Parameter parameters is required and cannot be null."); + } + if (this.client.apiVersion() == null) { + throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); + } + Validator.validate(parameters); + final String securityAlertPolicyName = "Default"; + Observable> observable = service.createOrUpdate(resourceGroupName, serverName, securityAlertPolicyName, this.client.subscriptionId(), parameters, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()); + return client.getAzureClient().getPutOrPatchResultAsync(observable, new TypeToken() { }.getType()); + } + + /** + * Creates or updates a threat detection policy. + * + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. + * @param serverName The name of the server. + * @param parameters The server security alert policy. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws CloudException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the ServerSecurityAlertPolicyInner object if successful. + */ + public ServerSecurityAlertPolicyInner beginCreateOrUpdate(String resourceGroupName, String serverName, ServerSecurityAlertPolicyInner parameters) { + return beginCreateOrUpdateWithServiceResponseAsync(resourceGroupName, serverName, parameters).toBlocking().single().body(); + } + + /** + * Creates or updates a threat detection policy. + * + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. + * @param serverName The name of the server. + * @param parameters The server security alert policy. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture beginCreateOrUpdateAsync(String resourceGroupName, String serverName, ServerSecurityAlertPolicyInner parameters, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(beginCreateOrUpdateWithServiceResponseAsync(resourceGroupName, serverName, parameters), serviceCallback); + } + + /** + * Creates or updates a threat detection policy. + * + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. + * @param serverName The name of the server. + * @param parameters The server security alert policy. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the ServerSecurityAlertPolicyInner object + */ + public Observable beginCreateOrUpdateAsync(String resourceGroupName, String serverName, ServerSecurityAlertPolicyInner parameters) { + return beginCreateOrUpdateWithServiceResponseAsync(resourceGroupName, serverName, parameters).map(new Func1, ServerSecurityAlertPolicyInner>() { + @Override + public ServerSecurityAlertPolicyInner call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * Creates or updates a threat detection policy. + * + * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. + * @param serverName The name of the server. + * @param parameters The server security alert policy. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the ServerSecurityAlertPolicyInner object + */ + public Observable> beginCreateOrUpdateWithServiceResponseAsync(String resourceGroupName, String serverName, ServerSecurityAlertPolicyInner parameters) { + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + if (serverName == null) { + throw new IllegalArgumentException("Parameter serverName is required and cannot be null."); + } + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (parameters == null) { + throw new IllegalArgumentException("Parameter parameters is required and cannot be null."); + } + if (this.client.apiVersion() == null) { + throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); + } + Validator.validate(parameters); + final String securityAlertPolicyName = "Default"; + return service.beginCreateOrUpdate(resourceGroupName, serverName, securityAlertPolicyName, this.client.subscriptionId(), parameters, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>() { + @Override + public Observable> call(Response response) { + try { + ServiceResponse clientResponse = beginCreateOrUpdateDelegate(response); + return Observable.just(clientResponse); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse beginCreateOrUpdateDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) + .register(202, new TypeToken() { }.getType()) + .registerError(CloudException.class) + .build(response); + } + +} diff --git a/mysql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/mysql/v2017_12_01/implementation/ServerSecurityAlertPolicyImpl.java b/mysql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/mysql/v2017_12_01/implementation/ServerSecurityAlertPolicyImpl.java new file mode 100644 index 000000000000..806d581b86b5 --- /dev/null +++ b/mysql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/mysql/v2017_12_01/implementation/ServerSecurityAlertPolicyImpl.java @@ -0,0 +1,171 @@ +/** + * 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.implementation; + +import com.microsoft.azure.management.mysql.v2017_12_01.ServerSecurityAlertPolicy; +import com.microsoft.azure.arm.model.implementation.CreatableUpdatableImpl; +import rx.Observable; +import com.microsoft.azure.management.mysql.v2017_12_01.ServerSecurityAlertPolicyState; +import java.util.List; + +class ServerSecurityAlertPolicyImpl extends CreatableUpdatableImpl implements ServerSecurityAlertPolicy, ServerSecurityAlertPolicy.Definition, ServerSecurityAlertPolicy.Update { + private final DBforMySQLManager manager; + private String resourceGroupName; + private String serverName; + + ServerSecurityAlertPolicyImpl(String name, DBforMySQLManager manager) { + super(name, new ServerSecurityAlertPolicyInner()); + this.manager = manager; + // Set resource name + this.serverName = name; + // + } + + ServerSecurityAlertPolicyImpl(ServerSecurityAlertPolicyInner inner, DBforMySQLManager manager) { + super(inner.name(), inner); + this.manager = manager; + // Set resource name + this.serverName = inner.name(); + // resource ancestor names + this.resourceGroupName = IdParsingUtils.getValueFromIdByName(inner.id(), "resourceGroups"); + this.serverName = IdParsingUtils.getValueFromIdByName(inner.id(), "servers"); + // + } + + @Override + public DBforMySQLManager manager() { + return this.manager; + } + + @Override + public Observable createResourceAsync() { + ServerSecurityAlertPoliciesInner client = this.manager().inner().serverSecurityAlertPolicies(); + return client.createOrUpdateAsync(this.resourceGroupName, this.serverName, this.inner()) + .map(innerToFluentMap(this)); + } + + @Override + public Observable updateResourceAsync() { + ServerSecurityAlertPoliciesInner client = this.manager().inner().serverSecurityAlertPolicies(); + return client.createOrUpdateAsync(this.resourceGroupName, this.serverName, this.inner()) + .map(innerToFluentMap(this)); + } + + @Override + protected Observable getInnerAsync() { + ServerSecurityAlertPoliciesInner client = this.manager().inner().serverSecurityAlertPolicies(); + return client.getAsync(this.resourceGroupName, this.serverName); + } + + @Override + public boolean isInCreateMode() { + return this.inner().id() == null; + } + + + @Override + public List disabledAlerts() { + return this.inner().disabledAlerts(); + } + + @Override + public Boolean emailAccountAdmins() { + return this.inner().emailAccountAdmins(); + } + + @Override + public List emailAddresses() { + return this.inner().emailAddresses(); + } + + @Override + public String id() { + return this.inner().id(); + } + + @Override + public String name() { + return this.inner().name(); + } + + @Override + public Integer retentionDays() { + return this.inner().retentionDays(); + } + + @Override + public ServerSecurityAlertPolicyState state() { + return this.inner().state(); + } + + @Override + public String storageAccountAccessKey() { + return this.inner().storageAccountAccessKey(); + } + + @Override + public String storageEndpoint() { + return this.inner().storageEndpoint(); + } + + @Override + public String type() { + return this.inner().type(); + } + + @Override + public ServerSecurityAlertPolicyImpl withExistingServer(String resourceGroupName, String serverName) { + this.resourceGroupName = resourceGroupName; + this.serverName = serverName; + return this; + } + + @Override + public ServerSecurityAlertPolicyImpl withState(ServerSecurityAlertPolicyState state) { + this.inner().withState(state); + return this; + } + + @Override + public ServerSecurityAlertPolicyImpl withDisabledAlerts(List disabledAlerts) { + this.inner().withDisabledAlerts(disabledAlerts); + return this; + } + + @Override + public ServerSecurityAlertPolicyImpl withEmailAccountAdmins(Boolean emailAccountAdmins) { + this.inner().withEmailAccountAdmins(emailAccountAdmins); + return this; + } + + @Override + public ServerSecurityAlertPolicyImpl withEmailAddresses(List emailAddresses) { + this.inner().withEmailAddresses(emailAddresses); + return this; + } + + @Override + public ServerSecurityAlertPolicyImpl withRetentionDays(Integer retentionDays) { + this.inner().withRetentionDays(retentionDays); + return this; + } + + @Override + public ServerSecurityAlertPolicyImpl withStorageAccountAccessKey(String storageAccountAccessKey) { + this.inner().withStorageAccountAccessKey(storageAccountAccessKey); + return this; + } + + @Override + public ServerSecurityAlertPolicyImpl withStorageEndpoint(String storageEndpoint) { + this.inner().withStorageEndpoint(storageEndpoint); + return this; + } + +} diff --git a/mysql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/mysql/v2017_12_01/implementation/ServerSecurityAlertPolicyInner.java b/mysql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/mysql/v2017_12_01/implementation/ServerSecurityAlertPolicyInner.java new file mode 100644 index 000000000000..9a1faa4cee79 --- /dev/null +++ b/mysql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/mysql/v2017_12_01/implementation/ServerSecurityAlertPolicyInner.java @@ -0,0 +1,209 @@ +/** + * 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.implementation; + +import com.microsoft.azure.management.mysql.v2017_12_01.ServerSecurityAlertPolicyState; +import java.util.List; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.microsoft.rest.serializer.JsonFlatten; +import com.microsoft.azure.ProxyResource; + +/** + * A server security alert policy. + */ +@JsonFlatten +public class ServerSecurityAlertPolicyInner extends ProxyResource { + /** + * Specifies the state of the policy, whether it is enabled or disabled. + * Possible values include: 'Enabled', 'Disabled'. + */ + @JsonProperty(value = "properties.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 = "properties.disabledAlerts") + private List disabledAlerts; + + /** + * Specifies an array of e-mail addresses to which the alert is sent. + */ + @JsonProperty(value = "properties.emailAddresses") + private List emailAddresses; + + /** + * Specifies that the alert is sent to the account administrators. + */ + @JsonProperty(value = "properties.emailAccountAdmins") + private Boolean emailAccountAdmins; + + /** + * Specifies the blob storage endpoint (e.g. + * https://MyAccount.blob.core.windows.net). This blob storage will hold + * all Threat Detection audit logs. + */ + @JsonProperty(value = "properties.storageEndpoint") + private String storageEndpoint; + + /** + * Specifies the identifier key of the Threat Detection audit storage + * account. + */ + @JsonProperty(value = "properties.storageAccountAccessKey") + private String storageAccountAccessKey; + + /** + * Specifies the number of days to keep in the Threat Detection audit logs. + */ + @JsonProperty(value = "properties.retentionDays") + private Integer retentionDays; + + /** + * Get specifies the state of the policy, whether it is enabled or disabled. Possible values include: 'Enabled', 'Disabled'. + * + * @return the state value + */ + public ServerSecurityAlertPolicyState state() { + return this.state; + } + + /** + * Set specifies the state of the policy, whether it is enabled or disabled. Possible values include: 'Enabled', 'Disabled'. + * + * @param state the state value to set + * @return the ServerSecurityAlertPolicyInner object itself. + */ + public ServerSecurityAlertPolicyInner withState(ServerSecurityAlertPolicyState state) { + this.state = state; + return this; + } + + /** + * Get 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 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) { + this.disabledAlerts = disabledAlerts; + return this; + } + + /** + * Get specifies an array of e-mail addresses to which the alert is sent. + * + * @return the emailAddresses value + */ + public List emailAddresses() { + return this.emailAddresses; + } + + /** + * Set 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) { + this.emailAddresses = emailAddresses; + return this; + } + + /** + * Get specifies that the alert is sent to the account administrators. + * + * @return the emailAccountAdmins value + */ + public Boolean emailAccountAdmins() { + return this.emailAccountAdmins; + } + + /** + * Set 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) { + this.emailAccountAdmins = emailAccountAdmins; + return this; + } + + /** + * Get 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 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) { + this.storageEndpoint = storageEndpoint; + return this; + } + + /** + * Get specifies the identifier key of the Threat Detection audit storage account. + * + * @return the storageAccountAccessKey value + */ + public String storageAccountAccessKey() { + return this.storageAccountAccessKey; + } + + /** + * Set 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) { + this.storageAccountAccessKey = storageAccountAccessKey; + return this; + } + + /** + * Get specifies the number of days to keep in the Threat Detection audit logs. + * + * @return the retentionDays value + */ + public Integer retentionDays() { + return this.retentionDays; + } + + /** + * Set 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) { + this.retentionDays = retentionDays; + return this; + } + +} diff --git a/mysql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/mysql/v2017_12_01/implementation/ServersImpl.java b/mysql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/mysql/v2017_12_01/implementation/ServersImpl.java index ac02769eccec..76d546f9b07d 100644 --- a/mysql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/mysql/v2017_12_01/implementation/ServersImpl.java +++ b/mysql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/mysql/v2017_12_01/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/src/main/java/com/microsoft/azure/management/mysql/v2017_12_01/implementation/VirtualNetworkRuleImpl.java b/mysql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/mysql/v2017_12_01/implementation/VirtualNetworkRuleImpl.java index 54c335414517..10be4d85df90 100644 --- a/mysql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/mysql/v2017_12_01/implementation/VirtualNetworkRuleImpl.java +++ b/mysql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/mysql/v2017_12_01/implementation/VirtualNetworkRuleImpl.java @@ -14,12 +14,12 @@ import com.microsoft.azure.management.mysql.v2017_12_01.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; } @@ -42,29 +42,10 @@ private VirtualNetworkRuleImpl wrapModel(String name) { return new VirtualNetworkRuleImpl(name, this.manager()); } - private Observable> listByServerNextInnerPageAsync(String nextLink) { - if (nextLink == null) { - Observable.empty(); - } - VirtualNetworkRulesInner client = this.inner(); - return client.listByServerNextAsync(nextLink) - .flatMap(new Func1, Observable>>() { - @Override - public Observable> call(Page page) { - return Observable.just(page).concatWith(listByServerNextInnerPageAsync(page.nextPageLink())); - } - }); - } @Override public Observable listByServerAsync(final String resourceGroupName, final String serverName) { VirtualNetworkRulesInner client = this.inner(); return client.listByServerAsync(resourceGroupName, serverName) - .flatMap(new Func1, Observable>>() { - @Override - public Observable> call(Page page) { - return listByServerNextInnerPageAsync(page.nextPageLink()); - } - }) .flatMapIterable(new Func1, Iterable>() { @Override public Iterable call(Page page) {