diff --git a/sdk/mariadb/mgmt-v2018_06_01/pom.xml b/sdk/mariadb/mgmt-v2018_06_01/pom.xml
index cadfcbe4b573..bdd75e9fd37c 100644
--- a/sdk/mariadb/mgmt-v2018_06_01/pom.xml
+++ b/sdk/mariadb/mgmt-v2018_06_01/pom.xml
@@ -11,11 +11,11 @@
com.microsoft.azure
azure-arm-parent
- 1.2.0
- ../../parents/azure-arm-parent
+ 1.1.0
+ ../../../pom.management.xml
azure-mgmt-mariadb
- 1.0.0-beta-1
+ 1.0.0-beta
jar
Microsoft Azure SDK for MariaDB Management
This package contains Microsoft MariaDB Management SDK.
@@ -71,6 +71,8 @@
azure-arm-client-runtime
test-jar
test
+
+ 1.6.5
diff --git a/sdk/mariadb/mgmt-v2018_06_01/src/main/java/com/microsoft/azure/management/mariadb/v2018_06_01/Advisor.java b/sdk/mariadb/mgmt-v2018_06_01/src/main/java/com/microsoft/azure/management/mariadb/v2018_06_01/Advisor.java
new file mode 100644
index 000000000000..d69cb7a1b039
--- /dev/null
+++ b/sdk/mariadb/mgmt-v2018_06_01/src/main/java/com/microsoft/azure/management/mariadb/v2018_06_01/Advisor.java
@@ -0,0 +1,42 @@
+/**
+ * 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.mariadb.v2018_06_01;
+
+import com.microsoft.azure.arm.model.HasInner;
+import com.microsoft.azure.management.mariadb.v2018_06_01.implementation.AdvisorInner;
+import com.microsoft.azure.arm.model.Indexable;
+import com.microsoft.azure.arm.model.Refreshable;
+import com.microsoft.azure.arm.resources.models.HasManager;
+import com.microsoft.azure.management.mariadb.v2018_06_01.implementation.MariaDBManager;
+
+/**
+ * Type representing Advisor.
+ */
+public interface Advisor extends HasInner, Indexable, Refreshable, HasManager {
+ /**
+ * @return the id value.
+ */
+ String id();
+
+ /**
+ * @return the name value.
+ */
+ String name();
+
+ /**
+ * @return the properties value.
+ */
+ Object properties();
+
+ /**
+ * @return the type value.
+ */
+ String type();
+
+}
diff --git a/sdk/mariadb/mgmt-v2018_06_01/src/main/java/com/microsoft/azure/management/mariadb/v2018_06_01/Advisors.java b/sdk/mariadb/mgmt-v2018_06_01/src/main/java/com/microsoft/azure/management/mariadb/v2018_06_01/Advisors.java
new file mode 100644
index 000000000000..49b6865bfdc4
--- /dev/null
+++ b/sdk/mariadb/mgmt-v2018_06_01/src/main/java/com/microsoft/azure/management/mariadb/v2018_06_01/Advisors.java
@@ -0,0 +1,40 @@
+/**
+ * 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.mariadb.v2018_06_01;
+
+import rx.Observable;
+import com.microsoft.azure.management.mariadb.v2018_06_01.implementation.AdvisorsInner;
+import com.microsoft.azure.arm.model.HasInner;
+
+/**
+ * Type representing Advisors.
+ */
+public interface Advisors extends HasInner {
+ /**
+ * Get a recommendation action advisor.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param serverName The name of the server.
+ * @param advisorName The advisor name for recommendation action.
+ * @throws IllegalArgumentException thrown if parameters fail the validation
+ * @return the observable for the request
+ */
+ Observable getAsync(String resourceGroupName, String serverName, String advisorName);
+
+ /**
+ * List recommendation action advisors.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param serverName The name of the server.
+ * @throws IllegalArgumentException thrown if parameters fail the validation
+ * @return the observable for the request
+ */
+ Observable listByServerAsync(final String resourceGroupName, final String serverName);
+
+}
diff --git a/sdk/mariadb/mgmt-v2018_06_01/src/main/java/com/microsoft/azure/management/mariadb/v2018_06_01/AzureEntityResource.java b/sdk/mariadb/mgmt-v2018_06_01/src/main/java/com/microsoft/azure/management/mariadb/v2018_06_01/AzureEntityResource.java
new file mode 100644
index 000000000000..6ce81fd6ddd9
--- /dev/null
+++ b/sdk/mariadb/mgmt-v2018_06_01/src/main/java/com/microsoft/azure/management/mariadb/v2018_06_01/AzureEntityResource.java
@@ -0,0 +1,34 @@
+/**
+ * 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.mariadb.v2018_06_01;
+
+import com.fasterxml.jackson.annotation.JsonProperty;
+import com.microsoft.azure.ProxyResource;
+
+/**
+ * The resource model definition for a Azure Resource Manager resource with an
+ * etag.
+ */
+public class AzureEntityResource extends ProxyResource {
+ /**
+ * Resource Etag.
+ */
+ @JsonProperty(value = "etag", access = JsonProperty.Access.WRITE_ONLY)
+ private String etag;
+
+ /**
+ * Get resource Etag.
+ *
+ * @return the etag value
+ */
+ public String etag() {
+ return this.etag;
+ }
+
+}
diff --git a/sdk/mariadb/mgmt-v2018_06_01/src/main/java/com/microsoft/azure/management/mariadb/v2018_06_01/Configuration.java b/sdk/mariadb/mgmt-v2018_06_01/src/main/java/com/microsoft/azure/management/mariadb/v2018_06_01/Configuration.java
index b4ae224811e1..5a2c736ee9bb 100644
--- a/sdk/mariadb/mgmt-v2018_06_01/src/main/java/com/microsoft/azure/management/mariadb/v2018_06_01/Configuration.java
+++ b/sdk/mariadb/mgmt-v2018_06_01/src/main/java/com/microsoft/azure/management/mariadb/v2018_06_01/Configuration.java
@@ -89,7 +89,7 @@ interface Blank extends WithServer {
interface WithServer {
/**
* Specifies resourceGroupName, serverName.
- * @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 resourceGroupName The name of the resource group. The name is case insensitive
* @param serverName The name of the server
* @return the next definition stage
*/
diff --git a/sdk/mariadb/mgmt-v2018_06_01/src/main/java/com/microsoft/azure/management/mariadb/v2018_06_01/Configurations.java b/sdk/mariadb/mgmt-v2018_06_01/src/main/java/com/microsoft/azure/management/mariadb/v2018_06_01/Configurations.java
index 4467a872d5d2..d31ade11bd17 100644
--- a/sdk/mariadb/mgmt-v2018_06_01/src/main/java/com/microsoft/azure/management/mariadb/v2018_06_01/Configurations.java
+++ b/sdk/mariadb/mgmt-v2018_06_01/src/main/java/com/microsoft/azure/management/mariadb/v2018_06_01/Configurations.java
@@ -20,7 +20,7 @@ public interface Configurations extends SupportsCreating details;
+
+ /**
+ * The error additional info.
+ */
+ @JsonProperty(value = "additionalInfo", access = JsonProperty.Access.WRITE_ONLY)
+ private List additionalInfo;
+
+ /**
+ * Get the error code.
+ *
+ * @return the code value
+ */
+ public String code() {
+ return this.code;
+ }
+
+ /**
+ * Get the error message.
+ *
+ * @return the message value
+ */
+ public String message() {
+ return this.message;
+ }
+
+ /**
+ * Get the error target.
+ *
+ * @return the target value
+ */
+ public String target() {
+ return this.target;
+ }
+
+ /**
+ * Get the error details.
+ *
+ * @return the details value
+ */
+ public List details() {
+ return this.details;
+ }
+
+ /**
+ * Get the error additional info.
+ *
+ * @return the additionalInfo value
+ */
+ public List additionalInfo() {
+ return this.additionalInfo;
+ }
+
+}
diff --git a/sdk/mariadb/mgmt-v2018_06_01/src/main/java/com/microsoft/azure/management/mariadb/v2018_06_01/FirewallRule.java b/sdk/mariadb/mgmt-v2018_06_01/src/main/java/com/microsoft/azure/management/mariadb/v2018_06_01/FirewallRule.java
index 37417631f90b..ae33fc6f463a 100644
--- a/sdk/mariadb/mgmt-v2018_06_01/src/main/java/com/microsoft/azure/management/mariadb/v2018_06_01/FirewallRule.java
+++ b/sdk/mariadb/mgmt-v2018_06_01/src/main/java/com/microsoft/azure/management/mariadb/v2018_06_01/FirewallRule.java
@@ -69,7 +69,7 @@ interface Blank extends WithServer {
interface WithServer {
/**
* Specifies resourceGroupName, serverName.
- * @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 resourceGroupName The name of the resource group. The name is case insensitive
* @param serverName The name of the server
* @return the next definition stage
*/
diff --git a/sdk/mariadb/mgmt-v2018_06_01/src/main/java/com/microsoft/azure/management/mariadb/v2018_06_01/FirewallRules.java b/sdk/mariadb/mgmt-v2018_06_01/src/main/java/com/microsoft/azure/management/mariadb/v2018_06_01/FirewallRules.java
index 96126962df35..15fa1ae33b2c 100644
--- a/sdk/mariadb/mgmt-v2018_06_01/src/main/java/com/microsoft/azure/management/mariadb/v2018_06_01/FirewallRules.java
+++ b/sdk/mariadb/mgmt-v2018_06_01/src/main/java/com/microsoft/azure/management/mariadb/v2018_06_01/FirewallRules.java
@@ -21,7 +21,7 @@ public interface FirewallRules extends SupportsCreating {
/**
* List all the performance tiers at specified location in a given subscription.
*
diff --git a/sdk/mariadb/mgmt-v2018_06_01/src/main/java/com/microsoft/azure/management/mariadb/v2018_06_01/LocationBasedRecommendedActionSessionsOperationStatus.java b/sdk/mariadb/mgmt-v2018_06_01/src/main/java/com/microsoft/azure/management/mariadb/v2018_06_01/LocationBasedRecommendedActionSessionsOperationStatus.java
new file mode 100644
index 000000000000..78730a9826ee
--- /dev/null
+++ b/sdk/mariadb/mgmt-v2018_06_01/src/main/java/com/microsoft/azure/management/mariadb/v2018_06_01/LocationBasedRecommendedActionSessionsOperationStatus.java
@@ -0,0 +1,29 @@
+/**
+ * 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.mariadb.v2018_06_01;
+
+import rx.Observable;
+import com.microsoft.azure.management.mariadb.v2018_06_01.implementation.LocationBasedRecommendedActionSessionsOperationStatusInner;
+import com.microsoft.azure.arm.model.HasInner;
+
+/**
+ * Type representing LocationBasedRecommendedActionSessionsOperationStatus.
+ */
+public interface LocationBasedRecommendedActionSessionsOperationStatus extends HasInner {
+ /**
+ * Recommendation action session operation status.
+ *
+ * @param locationName The name of the location.
+ * @param operationId The operation identifier.
+ * @throws IllegalArgumentException thrown if parameters fail the validation
+ * @return the observable for the request
+ */
+ Observable getAsync(String locationName, String operationId);
+
+}
diff --git a/sdk/mariadb/mgmt-v2018_06_01/src/main/java/com/microsoft/azure/management/mariadb/v2018_06_01/LocationBasedRecommendedActionSessionsResults.java b/sdk/mariadb/mgmt-v2018_06_01/src/main/java/com/microsoft/azure/management/mariadb/v2018_06_01/LocationBasedRecommendedActionSessionsResults.java
new file mode 100644
index 000000000000..2ac6ae3515ed
--- /dev/null
+++ b/sdk/mariadb/mgmt-v2018_06_01/src/main/java/com/microsoft/azure/management/mariadb/v2018_06_01/LocationBasedRecommendedActionSessionsResults.java
@@ -0,0 +1,29 @@
+/**
+ * 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.mariadb.v2018_06_01;
+
+import rx.Observable;
+import com.microsoft.azure.management.mariadb.v2018_06_01.implementation.LocationBasedRecommendedActionSessionsResultsInner;
+import com.microsoft.azure.arm.model.HasInner;
+
+/**
+ * Type representing LocationBasedRecommendedActionSessionsResults.
+ */
+public interface LocationBasedRecommendedActionSessionsResults extends HasInner {
+ /**
+ * Recommendation action session operation result.
+ *
+ * @param locationName The name of the location.
+ * @param operationId The operation identifier.
+ * @throws IllegalArgumentException thrown if parameters fail the validation
+ * @return the observable for the request
+ */
+ Observable listAsync(final String locationName, final String operationId);
+
+}
diff --git a/sdk/mariadb/mgmt-v2018_06_01/src/main/java/com/microsoft/azure/management/mariadb/v2018_06_01/LogFiles.java b/sdk/mariadb/mgmt-v2018_06_01/src/main/java/com/microsoft/azure/management/mariadb/v2018_06_01/LogFiles.java
index 346784cc5b88..8c97546611b8 100644
--- a/sdk/mariadb/mgmt-v2018_06_01/src/main/java/com/microsoft/azure/management/mariadb/v2018_06_01/LogFiles.java
+++ b/sdk/mariadb/mgmt-v2018_06_01/src/main/java/com/microsoft/azure/management/mariadb/v2018_06_01/LogFiles.java
@@ -19,7 +19,7 @@ public interface LogFiles extends HasInner {
/**
* List all the log files in a given server.
*
- * @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 resourceGroupName The name of the resource group. The name is case insensitive.
* @param serverName The name of the server.
* @throws IllegalArgumentException thrown if parameters fail the validation
* @return the observable for the request
diff --git a/sdk/mariadb/mgmt-v2018_06_01/src/main/java/com/microsoft/azure/management/mariadb/v2018_06_01/PrivateEndpointConnection.java b/sdk/mariadb/mgmt-v2018_06_01/src/main/java/com/microsoft/azure/management/mariadb/v2018_06_01/PrivateEndpointConnection.java
new file mode 100644
index 000000000000..53b94a9bca71
--- /dev/null
+++ b/sdk/mariadb/mgmt-v2018_06_01/src/main/java/com/microsoft/azure/management/mariadb/v2018_06_01/PrivateEndpointConnection.java
@@ -0,0 +1,151 @@
+/**
+ * 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.mariadb.v2018_06_01;
+
+import com.microsoft.azure.arm.model.HasInner;
+import com.microsoft.azure.management.mariadb.v2018_06_01.implementation.PrivateEndpointConnectionInner;
+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.mariadb.v2018_06_01.implementation.MariaDBManager;
+
+/**
+ * Type representing PrivateEndpointConnection.
+ */
+public interface PrivateEndpointConnection extends HasInner, Indexable, Refreshable, Updatable, HasManager {
+ /**
+ * @return the id value.
+ */
+ String id();
+
+ /**
+ * @return the name value.
+ */
+ String name();
+
+ /**
+ * @return the privateEndpoint value.
+ */
+ PrivateEndpointProperty privateEndpoint();
+
+ /**
+ * @return the privateLinkServiceConnectionState value.
+ */
+ PrivateLinkServiceConnectionStateProperty privateLinkServiceConnectionState();
+
+ /**
+ * @return the provisioningState value.
+ */
+ String provisioningState();
+
+ /**
+ * @return the type value.
+ */
+ String type();
+
+ /**
+ * The entirety of the PrivateEndpointConnection definition.
+ */
+ interface Definition extends DefinitionStages.Blank, DefinitionStages.WithServer, DefinitionStages.WithCreate {
+ }
+
+ /**
+ * Grouping of PrivateEndpointConnection definition stages.
+ */
+ interface DefinitionStages {
+ /**
+ * The first stage of a PrivateEndpointConnection definition.
+ */
+ interface Blank extends WithServer {
+ }
+
+ /**
+ * The stage of the privateendpointconnection definition allowing to specify Server.
+ */
+ interface WithServer {
+ /**
+ * Specifies resourceGroupName, serverName.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive
+ * @param serverName The name of the server
+ * @return the next definition stage
+ */
+ WithCreate withExistingServer(String resourceGroupName, String serverName);
+ }
+
+ /**
+ * The stage of the privateendpointconnection definition allowing to specify PrivateEndpoint.
+ */
+ interface WithPrivateEndpoint {
+ /**
+ * Specifies privateEndpoint.
+ * @param privateEndpoint Private endpoint which the connection belongs to
+ * @return the next definition stage
+ */
+ WithCreate withPrivateEndpoint(PrivateEndpointProperty privateEndpoint);
+ }
+
+ /**
+ * The stage of the privateendpointconnection definition allowing to specify PrivateLinkServiceConnectionState.
+ */
+ interface WithPrivateLinkServiceConnectionState {
+ /**
+ * Specifies privateLinkServiceConnectionState.
+ * @param privateLinkServiceConnectionState Connection state of the private endpoint connection
+ * @return the next definition stage
+ */
+ WithCreate withPrivateLinkServiceConnectionState(PrivateLinkServiceConnectionStateProperty privateLinkServiceConnectionState);
+ }
+
+ /**
+ * 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.WithPrivateEndpoint, DefinitionStages.WithPrivateLinkServiceConnectionState {
+ }
+ }
+ /**
+ * The template for a PrivateEndpointConnection update operation, containing all the settings that can be modified.
+ */
+ interface Update extends Appliable, UpdateStages.WithPrivateEndpoint, UpdateStages.WithPrivateLinkServiceConnectionState {
+ }
+
+ /**
+ * Grouping of PrivateEndpointConnection update stages.
+ */
+ interface UpdateStages {
+ /**
+ * The stage of the privateendpointconnection update allowing to specify PrivateEndpoint.
+ */
+ interface WithPrivateEndpoint {
+ /**
+ * Specifies privateEndpoint.
+ * @param privateEndpoint Private endpoint which the connection belongs to
+ * @return the next update stage
+ */
+ Update withPrivateEndpoint(PrivateEndpointProperty privateEndpoint);
+ }
+
+ /**
+ * The stage of the privateendpointconnection update allowing to specify PrivateLinkServiceConnectionState.
+ */
+ interface WithPrivateLinkServiceConnectionState {
+ /**
+ * Specifies privateLinkServiceConnectionState.
+ * @param privateLinkServiceConnectionState Connection state of the private endpoint connection
+ * @return the next update stage
+ */
+ Update withPrivateLinkServiceConnectionState(PrivateLinkServiceConnectionStateProperty privateLinkServiceConnectionState);
+ }
+
+ }
+}
diff --git a/sdk/mariadb/mgmt-v2018_06_01/src/main/java/com/microsoft/azure/management/mariadb/v2018_06_01/PrivateEndpointConnections.java b/sdk/mariadb/mgmt-v2018_06_01/src/main/java/com/microsoft/azure/management/mariadb/v2018_06_01/PrivateEndpointConnections.java
new file mode 100644
index 000000000000..af4975590aef
--- /dev/null
+++ b/sdk/mariadb/mgmt-v2018_06_01/src/main/java/com/microsoft/azure/management/mariadb/v2018_06_01/PrivateEndpointConnections.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.mariadb.v2018_06_01;
+
+import com.microsoft.azure.arm.collection.SupportsCreating;
+import rx.Completable;
+import rx.Observable;
+import com.microsoft.azure.management.mariadb.v2018_06_01.implementation.PrivateEndpointConnectionsInner;
+import com.microsoft.azure.arm.model.HasInner;
+
+/**
+ * Type representing PrivateEndpointConnections.
+ */
+public interface PrivateEndpointConnections extends SupportsCreating, HasInner {
+ /**
+ * Gets a private endpoint connection.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param serverName The name of the server.
+ * @param privateEndpointConnectionName The name of the private endpoint connection.
+ * @throws IllegalArgumentException thrown if parameters fail the validation
+ * @return the observable for the request
+ */
+ Observable getAsync(String resourceGroupName, String serverName, String privateEndpointConnectionName);
+
+ /**
+ * Gets all private endpoint connections on a server.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param serverName The name of the server.
+ * @throws IllegalArgumentException thrown if parameters fail the validation
+ * @return the observable for the request
+ */
+ Observable listByServerAsync(final String resourceGroupName, final String serverName);
+
+ /**
+ * Deletes a private endpoint connection with a given name.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param serverName The name of the server.
+ * @param privateEndpointConnectionName the String value
+ * @throws IllegalArgumentException thrown if parameters fail the validation
+ * @return the observable for the request
+ */
+ Completable deleteAsync(String resourceGroupName, String serverName, String privateEndpointConnectionName);
+
+}
diff --git a/sdk/mariadb/mgmt-v2018_06_01/src/main/java/com/microsoft/azure/management/mariadb/v2018_06_01/PrivateEndpointProperty.java b/sdk/mariadb/mgmt-v2018_06_01/src/main/java/com/microsoft/azure/management/mariadb/v2018_06_01/PrivateEndpointProperty.java
new file mode 100644
index 000000000000..7a5b5bc81b79
--- /dev/null
+++ b/sdk/mariadb/mgmt-v2018_06_01/src/main/java/com/microsoft/azure/management/mariadb/v2018_06_01/PrivateEndpointProperty.java
@@ -0,0 +1,43 @@
+/**
+ * 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.mariadb.v2018_06_01;
+
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/**
+ * The PrivateEndpointProperty model.
+ */
+public class PrivateEndpointProperty {
+ /**
+ * Resource id of the private endpoint.
+ */
+ @JsonProperty(value = "id")
+ private String id;
+
+ /**
+ * Get resource id of the private endpoint.
+ *
+ * @return the id value
+ */
+ public String id() {
+ return this.id;
+ }
+
+ /**
+ * Set resource id of the private endpoint.
+ *
+ * @param id the id value to set
+ * @return the PrivateEndpointProperty object itself.
+ */
+ public PrivateEndpointProperty withId(String id) {
+ this.id = id;
+ return this;
+ }
+
+}
diff --git a/sdk/mariadb/mgmt-v2018_06_01/src/main/java/com/microsoft/azure/management/mariadb/v2018_06_01/PrivateEndpointProvisioningState.java b/sdk/mariadb/mgmt-v2018_06_01/src/main/java/com/microsoft/azure/management/mariadb/v2018_06_01/PrivateEndpointProvisioningState.java
new file mode 100644
index 000000000000..0e07967f0368
--- /dev/null
+++ b/sdk/mariadb/mgmt-v2018_06_01/src/main/java/com/microsoft/azure/management/mariadb/v2018_06_01/PrivateEndpointProvisioningState.java
@@ -0,0 +1,50 @@
+/**
+ * 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.mariadb.v2018_06_01;
+
+import java.util.Collection;
+import com.fasterxml.jackson.annotation.JsonCreator;
+import com.microsoft.rest.ExpandableStringEnum;
+
+/**
+ * Defines values for PrivateEndpointProvisioningState.
+ */
+public final class PrivateEndpointProvisioningState extends ExpandableStringEnum {
+ /** Static value Approving for PrivateEndpointProvisioningState. */
+ public static final PrivateEndpointProvisioningState APPROVING = fromString("Approving");
+
+ /** Static value Ready for PrivateEndpointProvisioningState. */
+ public static final PrivateEndpointProvisioningState READY = fromString("Ready");
+
+ /** Static value Dropping for PrivateEndpointProvisioningState. */
+ public static final PrivateEndpointProvisioningState DROPPING = fromString("Dropping");
+
+ /** Static value Failed for PrivateEndpointProvisioningState. */
+ public static final PrivateEndpointProvisioningState FAILED = fromString("Failed");
+
+ /** Static value Rejecting for PrivateEndpointProvisioningState. */
+ public static final PrivateEndpointProvisioningState REJECTING = fromString("Rejecting");
+
+ /**
+ * Creates or finds a PrivateEndpointProvisioningState from its string representation.
+ * @param name a name to look for
+ * @return the corresponding PrivateEndpointProvisioningState
+ */
+ @JsonCreator
+ public static PrivateEndpointProvisioningState fromString(String name) {
+ return fromString(name, PrivateEndpointProvisioningState.class);
+ }
+
+ /**
+ * @return known PrivateEndpointProvisioningState values
+ */
+ public static Collection values() {
+ return values(PrivateEndpointProvisioningState.class);
+ }
+}
diff --git a/sdk/mariadb/mgmt-v2018_06_01/src/main/java/com/microsoft/azure/management/mariadb/v2018_06_01/PrivateLinkResource.java b/sdk/mariadb/mgmt-v2018_06_01/src/main/java/com/microsoft/azure/management/mariadb/v2018_06_01/PrivateLinkResource.java
new file mode 100644
index 000000000000..0a5c5c4889e7
--- /dev/null
+++ b/sdk/mariadb/mgmt-v2018_06_01/src/main/java/com/microsoft/azure/management/mariadb/v2018_06_01/PrivateLinkResource.java
@@ -0,0 +1,42 @@
+/**
+ * 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.mariadb.v2018_06_01;
+
+import com.microsoft.azure.arm.model.HasInner;
+import com.microsoft.azure.management.mariadb.v2018_06_01.implementation.PrivateLinkResourceInner;
+import com.microsoft.azure.arm.model.Indexable;
+import com.microsoft.azure.arm.model.Refreshable;
+import com.microsoft.azure.arm.resources.models.HasManager;
+import com.microsoft.azure.management.mariadb.v2018_06_01.implementation.MariaDBManager;
+
+/**
+ * Type representing PrivateLinkResource.
+ */
+public interface PrivateLinkResource extends HasInner, Indexable, Refreshable, HasManager {
+ /**
+ * @return the id value.
+ */
+ String id();
+
+ /**
+ * @return the name value.
+ */
+ String name();
+
+ /**
+ * @return the properties value.
+ */
+ PrivateLinkResourceProperties properties();
+
+ /**
+ * @return the type value.
+ */
+ String type();
+
+}
diff --git a/sdk/mariadb/mgmt-v2018_06_01/src/main/java/com/microsoft/azure/management/mariadb/v2018_06_01/PrivateLinkResourceProperties.java b/sdk/mariadb/mgmt-v2018_06_01/src/main/java/com/microsoft/azure/management/mariadb/v2018_06_01/PrivateLinkResourceProperties.java
new file mode 100644
index 000000000000..68a446218a4f
--- /dev/null
+++ b/sdk/mariadb/mgmt-v2018_06_01/src/main/java/com/microsoft/azure/management/mariadb/v2018_06_01/PrivateLinkResourceProperties.java
@@ -0,0 +1,48 @@
+/**
+ * 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.mariadb.v2018_06_01;
+
+import java.util.List;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/**
+ * Properties of a private link resource.
+ */
+public class PrivateLinkResourceProperties {
+ /**
+ * The private link resource group id.
+ */
+ @JsonProperty(value = "groupId", access = JsonProperty.Access.WRITE_ONLY)
+ private String groupId;
+
+ /**
+ * The private link resource required member names.
+ */
+ @JsonProperty(value = "requiredMembers", access = JsonProperty.Access.WRITE_ONLY)
+ private List requiredMembers;
+
+ /**
+ * Get the private link resource group id.
+ *
+ * @return the groupId value
+ */
+ public String groupId() {
+ return this.groupId;
+ }
+
+ /**
+ * Get the private link resource required member names.
+ *
+ * @return the requiredMembers value
+ */
+ public List requiredMembers() {
+ return this.requiredMembers;
+ }
+
+}
diff --git a/sdk/mariadb/mgmt-v2018_06_01/src/main/java/com/microsoft/azure/management/mariadb/v2018_06_01/PrivateLinkResources.java b/sdk/mariadb/mgmt-v2018_06_01/src/main/java/com/microsoft/azure/management/mariadb/v2018_06_01/PrivateLinkResources.java
new file mode 100644
index 000000000000..d339457b29cb
--- /dev/null
+++ b/sdk/mariadb/mgmt-v2018_06_01/src/main/java/com/microsoft/azure/management/mariadb/v2018_06_01/PrivateLinkResources.java
@@ -0,0 +1,40 @@
+/**
+ * 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.mariadb.v2018_06_01;
+
+import rx.Observable;
+import com.microsoft.azure.management.mariadb.v2018_06_01.implementation.PrivateLinkResourcesInner;
+import com.microsoft.azure.arm.model.HasInner;
+
+/**
+ * Type representing PrivateLinkResources.
+ */
+public interface PrivateLinkResources extends HasInner {
+ /**
+ * Gets a private link resource for MariaDB server.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param serverName The name of the server.
+ * @param groupName The name of the private link resource.
+ * @throws IllegalArgumentException thrown if parameters fail the validation
+ * @return the observable for the request
+ */
+ Observable getAsync(String resourceGroupName, String serverName, String groupName);
+
+ /**
+ * Gets the private link resources for MariaDB server.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param serverName The name of the server.
+ * @throws IllegalArgumentException thrown if parameters fail the validation
+ * @return the observable for the request
+ */
+ Observable listByServerAsync(final String resourceGroupName, final String serverName);
+
+}
diff --git a/sdk/mariadb/mgmt-v2018_06_01/src/main/java/com/microsoft/azure/management/mariadb/v2018_06_01/PrivateLinkServiceConnectionStateActionsRequire.java b/sdk/mariadb/mgmt-v2018_06_01/src/main/java/com/microsoft/azure/management/mariadb/v2018_06_01/PrivateLinkServiceConnectionStateActionsRequire.java
new file mode 100644
index 000000000000..b806f8561a9c
--- /dev/null
+++ b/sdk/mariadb/mgmt-v2018_06_01/src/main/java/com/microsoft/azure/management/mariadb/v2018_06_01/PrivateLinkServiceConnectionStateActionsRequire.java
@@ -0,0 +1,38 @@
+/**
+ * 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.mariadb.v2018_06_01;
+
+import java.util.Collection;
+import com.fasterxml.jackson.annotation.JsonCreator;
+import com.microsoft.rest.ExpandableStringEnum;
+
+/**
+ * Defines values for PrivateLinkServiceConnectionStateActionsRequire.
+ */
+public final class PrivateLinkServiceConnectionStateActionsRequire extends ExpandableStringEnum {
+ /** Static value None for PrivateLinkServiceConnectionStateActionsRequire. */
+ public static final PrivateLinkServiceConnectionStateActionsRequire NONE = fromString("None");
+
+ /**
+ * Creates or finds a PrivateLinkServiceConnectionStateActionsRequire from its string representation.
+ * @param name a name to look for
+ * @return the corresponding PrivateLinkServiceConnectionStateActionsRequire
+ */
+ @JsonCreator
+ public static PrivateLinkServiceConnectionStateActionsRequire fromString(String name) {
+ return fromString(name, PrivateLinkServiceConnectionStateActionsRequire.class);
+ }
+
+ /**
+ * @return known PrivateLinkServiceConnectionStateActionsRequire values
+ */
+ public static Collection values() {
+ return values(PrivateLinkServiceConnectionStateActionsRequire.class);
+ }
+}
diff --git a/sdk/mariadb/mgmt-v2018_06_01/src/main/java/com/microsoft/azure/management/mariadb/v2018_06_01/PrivateLinkServiceConnectionStateProperty.java b/sdk/mariadb/mgmt-v2018_06_01/src/main/java/com/microsoft/azure/management/mariadb/v2018_06_01/PrivateLinkServiceConnectionStateProperty.java
new file mode 100644
index 000000000000..040a0a108694
--- /dev/null
+++ b/sdk/mariadb/mgmt-v2018_06_01/src/main/java/com/microsoft/azure/management/mariadb/v2018_06_01/PrivateLinkServiceConnectionStateProperty.java
@@ -0,0 +1,84 @@
+/**
+ * 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.mariadb.v2018_06_01;
+
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/**
+ * The PrivateLinkServiceConnectionStateProperty model.
+ */
+public class PrivateLinkServiceConnectionStateProperty {
+ /**
+ * The private link service connection status.
+ */
+ @JsonProperty(value = "status", required = true)
+ private String status;
+
+ /**
+ * The private link service connection description.
+ */
+ @JsonProperty(value = "description", required = true)
+ private String description;
+
+ /**
+ * The actions required for private link service connection.
+ */
+ @JsonProperty(value = "actionsRequired", access = JsonProperty.Access.WRITE_ONLY)
+ private String actionsRequired;
+
+ /**
+ * Get the private link service connection status.
+ *
+ * @return the status value
+ */
+ public String status() {
+ return this.status;
+ }
+
+ /**
+ * Set the private link service connection status.
+ *
+ * @param status the status value to set
+ * @return the PrivateLinkServiceConnectionStateProperty object itself.
+ */
+ public PrivateLinkServiceConnectionStateProperty withStatus(String status) {
+ this.status = status;
+ return this;
+ }
+
+ /**
+ * Get the private link service connection description.
+ *
+ * @return the description value
+ */
+ public String description() {
+ return this.description;
+ }
+
+ /**
+ * Set the private link service connection description.
+ *
+ * @param description the description value to set
+ * @return the PrivateLinkServiceConnectionStateProperty object itself.
+ */
+ public PrivateLinkServiceConnectionStateProperty withDescription(String description) {
+ this.description = description;
+ return this;
+ }
+
+ /**
+ * Get the actions required for private link service connection.
+ *
+ * @return the actionsRequired value
+ */
+ public String actionsRequired() {
+ return this.actionsRequired;
+ }
+
+}
diff --git a/sdk/mariadb/mgmt-v2018_06_01/src/main/java/com/microsoft/azure/management/mariadb/v2018_06_01/PrivateLinkServiceConnectionStateStatus.java b/sdk/mariadb/mgmt-v2018_06_01/src/main/java/com/microsoft/azure/management/mariadb/v2018_06_01/PrivateLinkServiceConnectionStateStatus.java
new file mode 100644
index 000000000000..9c89af9bb6c4
--- /dev/null
+++ b/sdk/mariadb/mgmt-v2018_06_01/src/main/java/com/microsoft/azure/management/mariadb/v2018_06_01/PrivateLinkServiceConnectionStateStatus.java
@@ -0,0 +1,47 @@
+/**
+ * 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.mariadb.v2018_06_01;
+
+import java.util.Collection;
+import com.fasterxml.jackson.annotation.JsonCreator;
+import com.microsoft.rest.ExpandableStringEnum;
+
+/**
+ * Defines values for PrivateLinkServiceConnectionStateStatus.
+ */
+public final class PrivateLinkServiceConnectionStateStatus extends ExpandableStringEnum {
+ /** Static value Approved for PrivateLinkServiceConnectionStateStatus. */
+ public static final PrivateLinkServiceConnectionStateStatus APPROVED = fromString("Approved");
+
+ /** Static value Pending for PrivateLinkServiceConnectionStateStatus. */
+ public static final PrivateLinkServiceConnectionStateStatus PENDING = fromString("Pending");
+
+ /** Static value Rejected for PrivateLinkServiceConnectionStateStatus. */
+ public static final PrivateLinkServiceConnectionStateStatus REJECTED = fromString("Rejected");
+
+ /** Static value Disconnected for PrivateLinkServiceConnectionStateStatus. */
+ public static final PrivateLinkServiceConnectionStateStatus DISCONNECTED = fromString("Disconnected");
+
+ /**
+ * Creates or finds a PrivateLinkServiceConnectionStateStatus from its string representation.
+ * @param name a name to look for
+ * @return the corresponding PrivateLinkServiceConnectionStateStatus
+ */
+ @JsonCreator
+ public static PrivateLinkServiceConnectionStateStatus fromString(String name) {
+ return fromString(name, PrivateLinkServiceConnectionStateStatus.class);
+ }
+
+ /**
+ * @return known PrivateLinkServiceConnectionStateStatus values
+ */
+ public static Collection values() {
+ return values(PrivateLinkServiceConnectionStateStatus.class);
+ }
+}
diff --git a/sdk/mariadb/mgmt-v2018_06_01/src/main/java/com/microsoft/azure/management/mariadb/v2018_06_01/PublicNetworkAccessEnum.java b/sdk/mariadb/mgmt-v2018_06_01/src/main/java/com/microsoft/azure/management/mariadb/v2018_06_01/PublicNetworkAccessEnum.java
new file mode 100644
index 000000000000..499ce54bdbe6
--- /dev/null
+++ b/sdk/mariadb/mgmt-v2018_06_01/src/main/java/com/microsoft/azure/management/mariadb/v2018_06_01/PublicNetworkAccessEnum.java
@@ -0,0 +1,41 @@
+/**
+ * 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.mariadb.v2018_06_01;
+
+import java.util.Collection;
+import com.fasterxml.jackson.annotation.JsonCreator;
+import com.microsoft.rest.ExpandableStringEnum;
+
+/**
+ * Defines values for PublicNetworkAccessEnum.
+ */
+public final class PublicNetworkAccessEnum extends ExpandableStringEnum {
+ /** Static value Enabled for PublicNetworkAccessEnum. */
+ public static final PublicNetworkAccessEnum ENABLED = fromString("Enabled");
+
+ /** Static value Disabled for PublicNetworkAccessEnum. */
+ public static final PublicNetworkAccessEnum DISABLED = fromString("Disabled");
+
+ /**
+ * Creates or finds a PublicNetworkAccessEnum from its string representation.
+ * @param name a name to look for
+ * @return the corresponding PublicNetworkAccessEnum
+ */
+ @JsonCreator
+ public static PublicNetworkAccessEnum fromString(String name) {
+ return fromString(name, PublicNetworkAccessEnum.class);
+ }
+
+ /**
+ * @return known PublicNetworkAccessEnum values
+ */
+ public static Collection values() {
+ return values(PublicNetworkAccessEnum.class);
+ }
+}
diff --git a/sdk/mariadb/mgmt-v2018_06_01/src/main/java/com/microsoft/azure/management/mariadb/v2018_06_01/QueryStatistic.java b/sdk/mariadb/mgmt-v2018_06_01/src/main/java/com/microsoft/azure/management/mariadb/v2018_06_01/QueryStatistic.java
new file mode 100644
index 000000000000..26d1f415a726
--- /dev/null
+++ b/sdk/mariadb/mgmt-v2018_06_01/src/main/java/com/microsoft/azure/management/mariadb/v2018_06_01/QueryStatistic.java
@@ -0,0 +1,89 @@
+/**
+ * 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.mariadb.v2018_06_01;
+
+import com.microsoft.azure.arm.model.HasInner;
+import com.microsoft.azure.management.mariadb.v2018_06_01.implementation.QueryStatisticInner;
+import com.microsoft.azure.arm.model.Indexable;
+import com.microsoft.azure.arm.model.Refreshable;
+import com.microsoft.azure.arm.resources.models.HasManager;
+import com.microsoft.azure.management.mariadb.v2018_06_01.implementation.MariaDBManager;
+import java.util.List;
+import org.joda.time.DateTime;
+
+/**
+ * Type representing QueryStatistic.
+ */
+public interface QueryStatistic extends HasInner, Indexable, Refreshable, HasManager {
+ /**
+ * @return the aggregationFunction value.
+ */
+ String aggregationFunction();
+
+ /**
+ * @return the databaseNames value.
+ */
+ List databaseNames();
+
+ /**
+ * @return the endTime value.
+ */
+ DateTime endTime();
+
+ /**
+ * @return the id value.
+ */
+ String id();
+
+ /**
+ * @return the metricDisplayName value.
+ */
+ String metricDisplayName();
+
+ /**
+ * @return the metricName value.
+ */
+ String metricName();
+
+ /**
+ * @return the metricValue value.
+ */
+ Double metricValue();
+
+ /**
+ * @return the metricValueUnit value.
+ */
+ String metricValueUnit();
+
+ /**
+ * @return the name value.
+ */
+ String name();
+
+ /**
+ * @return the queryExecutionCount value.
+ */
+ Long queryExecutionCount();
+
+ /**
+ * @return the queryId value.
+ */
+ String queryId();
+
+ /**
+ * @return the startTime value.
+ */
+ DateTime startTime();
+
+ /**
+ * @return the type value.
+ */
+ String type();
+
+}
diff --git a/sdk/mariadb/mgmt-v2018_06_01/src/main/java/com/microsoft/azure/management/mariadb/v2018_06_01/QueryText.java b/sdk/mariadb/mgmt-v2018_06_01/src/main/java/com/microsoft/azure/management/mariadb/v2018_06_01/QueryText.java
new file mode 100644
index 000000000000..d33fed28652b
--- /dev/null
+++ b/sdk/mariadb/mgmt-v2018_06_01/src/main/java/com/microsoft/azure/management/mariadb/v2018_06_01/QueryText.java
@@ -0,0 +1,47 @@
+/**
+ * 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.mariadb.v2018_06_01;
+
+import com.microsoft.azure.arm.model.HasInner;
+import com.microsoft.azure.management.mariadb.v2018_06_01.implementation.QueryTextInner;
+import com.microsoft.azure.arm.model.Indexable;
+import com.microsoft.azure.arm.model.Refreshable;
+import com.microsoft.azure.arm.resources.models.HasManager;
+import com.microsoft.azure.management.mariadb.v2018_06_01.implementation.MariaDBManager;
+
+/**
+ * Type representing QueryText.
+ */
+public interface QueryText extends HasInner, Indexable, Refreshable, HasManager {
+ /**
+ * @return the id value.
+ */
+ String id();
+
+ /**
+ * @return the name value.
+ */
+ String name();
+
+ /**
+ * @return the queryId value.
+ */
+ String queryId();
+
+ /**
+ * @return the queryText value.
+ */
+ String queryText();
+
+ /**
+ * @return the type value.
+ */
+ String type();
+
+}
diff --git a/sdk/mariadb/mgmt-v2018_06_01/src/main/java/com/microsoft/azure/management/mariadb/v2018_06_01/QueryTexts.java b/sdk/mariadb/mgmt-v2018_06_01/src/main/java/com/microsoft/azure/management/mariadb/v2018_06_01/QueryTexts.java
new file mode 100644
index 000000000000..9cf438c9cc2d
--- /dev/null
+++ b/sdk/mariadb/mgmt-v2018_06_01/src/main/java/com/microsoft/azure/management/mariadb/v2018_06_01/QueryTexts.java
@@ -0,0 +1,41 @@
+/**
+ * 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.mariadb.v2018_06_01;
+
+import rx.Observable;
+import com.microsoft.azure.management.mariadb.v2018_06_01.implementation.QueryTextsInner;
+import com.microsoft.azure.arm.model.HasInner;
+
+/**
+ * Type representing QueryTexts.
+ */
+public interface QueryTexts extends HasInner {
+ /**
+ * Retrieve the Query-Store query texts for the queryId.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param serverName The name of the server.
+ * @param queryId The Query-Store query identifier.
+ * @throws IllegalArgumentException thrown if parameters fail the validation
+ * @return the observable for the request
+ */
+ Observable getAsync(String resourceGroupName, String serverName, String queryId);
+
+ /**
+ * Retrieve the Query-Store query texts for specified queryIds.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param serverName The name of the server.
+ * @param queryIds The query identifiers
+ * @throws IllegalArgumentException thrown if parameters fail the validation
+ * @return the observable for the request
+ */
+ Observable listByServerAsync(final String resourceGroupName, final String serverName, final List queryIds);
+
+}
diff --git a/sdk/mariadb/mgmt-v2018_06_01/src/main/java/com/microsoft/azure/management/mariadb/v2018_06_01/RecommendationAction.java b/sdk/mariadb/mgmt-v2018_06_01/src/main/java/com/microsoft/azure/management/mariadb/v2018_06_01/RecommendationAction.java
new file mode 100644
index 000000000000..4818d3f35896
--- /dev/null
+++ b/sdk/mariadb/mgmt-v2018_06_01/src/main/java/com/microsoft/azure/management/mariadb/v2018_06_01/RecommendationAction.java
@@ -0,0 +1,79 @@
+/**
+ * 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.mariadb.v2018_06_01;
+
+import com.microsoft.azure.arm.model.HasInner;
+import com.microsoft.azure.management.mariadb.v2018_06_01.implementation.RecommendationActionInner;
+import com.microsoft.azure.arm.model.Indexable;
+import com.microsoft.azure.arm.model.Refreshable;
+import com.microsoft.azure.arm.resources.models.HasManager;
+import com.microsoft.azure.management.mariadb.v2018_06_01.implementation.MariaDBManager;
+import org.joda.time.DateTime;
+import java.util.Map;
+
+/**
+ * Type representing RecommendationAction.
+ */
+public interface RecommendationAction extends HasInner, Indexable, Refreshable, HasManager {
+ /**
+ * @return the actionId value.
+ */
+ Integer actionId();
+
+ /**
+ * @return the advisorName value.
+ */
+ String advisorName();
+
+ /**
+ * @return the createdTime value.
+ */
+ DateTime createdTime();
+
+ /**
+ * @return the details value.
+ */
+ Map details();
+
+ /**
+ * @return the expirationTime value.
+ */
+ DateTime expirationTime();
+
+ /**
+ * @return the id value.
+ */
+ String id();
+
+ /**
+ * @return the name value.
+ */
+ String name();
+
+ /**
+ * @return the reason value.
+ */
+ String reason();
+
+ /**
+ * @return the recommendationType value.
+ */
+ String recommendationType();
+
+ /**
+ * @return the sessionId value.
+ */
+ String sessionId();
+
+ /**
+ * @return the type value.
+ */
+ String type();
+
+}
diff --git a/sdk/mariadb/mgmt-v2018_06_01/src/main/java/com/microsoft/azure/management/mariadb/v2018_06_01/RecommendedActionSessionsOperationStatus.java b/sdk/mariadb/mgmt-v2018_06_01/src/main/java/com/microsoft/azure/management/mariadb/v2018_06_01/RecommendedActionSessionsOperationStatus.java
new file mode 100644
index 000000000000..1eaa07415c94
--- /dev/null
+++ b/sdk/mariadb/mgmt-v2018_06_01/src/main/java/com/microsoft/azure/management/mariadb/v2018_06_01/RecommendedActionSessionsOperationStatus.java
@@ -0,0 +1,36 @@
+/**
+ * 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.mariadb.v2018_06_01;
+
+import com.microsoft.azure.arm.model.HasInner;
+import com.microsoft.azure.arm.resources.models.HasManager;
+import com.microsoft.azure.management.mariadb.v2018_06_01.implementation.MariaDBManager;
+import com.microsoft.azure.management.mariadb.v2018_06_01.implementation.RecommendedActionSessionsOperationStatusInner;
+import org.joda.time.DateTime;
+
+/**
+ * Type representing RecommendedActionSessionsOperationStatus.
+ */
+public interface RecommendedActionSessionsOperationStatus extends HasInner, HasManager {
+ /**
+ * @return the name value.
+ */
+ String name();
+
+ /**
+ * @return the startTime value.
+ */
+ DateTime startTime();
+
+ /**
+ * @return the status value.
+ */
+ String status();
+
+}
diff --git a/sdk/mariadb/mgmt-v2018_06_01/src/main/java/com/microsoft/azure/management/mariadb/v2018_06_01/RecommendedActions.java b/sdk/mariadb/mgmt-v2018_06_01/src/main/java/com/microsoft/azure/management/mariadb/v2018_06_01/RecommendedActions.java
new file mode 100644
index 000000000000..6ee33d79afe7
--- /dev/null
+++ b/sdk/mariadb/mgmt-v2018_06_01/src/main/java/com/microsoft/azure/management/mariadb/v2018_06_01/RecommendedActions.java
@@ -0,0 +1,42 @@
+/**
+ * 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.mariadb.v2018_06_01;
+
+import rx.Observable;
+import com.microsoft.azure.management.mariadb.v2018_06_01.implementation.RecommendedActionsInner;
+import com.microsoft.azure.arm.model.HasInner;
+
+/**
+ * Type representing RecommendedActions.
+ */
+public interface RecommendedActions extends HasInner {
+ /**
+ * Retrieve recommended actions from the advisor.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param serverName The name of the server.
+ * @param advisorName The advisor name for recommendation action.
+ * @param recommendedActionName The recommended action name.
+ * @throws IllegalArgumentException thrown if parameters fail the validation
+ * @return the observable for the request
+ */
+ Observable getAsync(String resourceGroupName, String serverName, String advisorName, String recommendedActionName);
+
+ /**
+ * Retrieve recommended actions from the advisor.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param serverName The name of the server.
+ * @param advisorName The advisor name for recommendation action.
+ * @throws IllegalArgumentException thrown if parameters fail the validation
+ * @return the observable for the request
+ */
+ Observable listByServerAsync(final String resourceGroupName, final String serverName, final String advisorName);
+
+}
diff --git a/sdk/mariadb/mgmt-v2018_06_01/src/main/java/com/microsoft/azure/management/mariadb/v2018_06_01/Replicas.java b/sdk/mariadb/mgmt-v2018_06_01/src/main/java/com/microsoft/azure/management/mariadb/v2018_06_01/Replicas.java
index b40a82aefbab..098662ebc1db 100644
--- a/sdk/mariadb/mgmt-v2018_06_01/src/main/java/com/microsoft/azure/management/mariadb/v2018_06_01/Replicas.java
+++ b/sdk/mariadb/mgmt-v2018_06_01/src/main/java/com/microsoft/azure/management/mariadb/v2018_06_01/Replicas.java
@@ -19,7 +19,7 @@ public interface Replicas extends HasInner {
/**
* List all the replicas for a given server.
*
- * @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 resourceGroupName The name of the resource group. The name is case insensitive.
* @param serverName The name of the server.
* @throws IllegalArgumentException thrown if parameters fail the validation
* @return the observable for the request
diff --git a/sdk/mariadb/mgmt-v2018_06_01/src/main/java/com/microsoft/azure/management/mariadb/v2018_06_01/Server.java b/sdk/mariadb/mgmt-v2018_06_01/src/main/java/com/microsoft/azure/management/mariadb/v2018_06_01/Server.java
index 0deb5434c620..3ce6c827edb4 100644
--- a/sdk/mariadb/mgmt-v2018_06_01/src/main/java/com/microsoft/azure/management/mariadb/v2018_06_01/Server.java
+++ b/sdk/mariadb/mgmt-v2018_06_01/src/main/java/com/microsoft/azure/management/mariadb/v2018_06_01/Server.java
@@ -19,6 +19,7 @@
import com.microsoft.azure.arm.resources.models.HasManager;
import com.microsoft.azure.management.mariadb.v2018_06_01.implementation.MariaDBManager;
import org.joda.time.DateTime;
+import java.util.List;
import com.microsoft.azure.management.mariadb.v2018_06_01.implementation.ServerInner;
/**
@@ -45,6 +46,16 @@ public interface Server extends HasInner, Resource, GroupableResour
*/
String masterServerId();
+ /**
+ * @return the privateEndpointConnections value.
+ */
+ List privateEndpointConnections();
+
+ /**
+ * @return the publicNetworkAccess value.
+ */
+ PublicNetworkAccessEnum publicNetworkAccess();
+
/**
* @return the replicaCapacity value.
*/
@@ -137,7 +148,7 @@ interface WithCreate extends Creatable, Resource.DefinitionWithTags, Resource.UpdateWithTags, UpdateStages.WithAdministratorLoginPassword, UpdateStages.WithReplicationRole, UpdateStages.WithSku, UpdateStages.WithSslEnforcement, UpdateStages.WithStorageProfile, UpdateStages.WithVersion {
+ interface Update extends Appliable, Resource.UpdateWithTags, UpdateStages.WithAdministratorLoginPassword, UpdateStages.WithPublicNetworkAccess, UpdateStages.WithReplicationRole, UpdateStages.WithSku, UpdateStages.WithSslEnforcement, UpdateStages.WithStorageProfile, UpdateStages.WithVersion {
}
/**
@@ -156,6 +167,18 @@ interface WithAdministratorLoginPassword {
Update withAdministratorLoginPassword(String administratorLoginPassword);
}
+ /**
+ * The stage of the server update allowing to specify PublicNetworkAccess.
+ */
+ interface WithPublicNetworkAccess {
+ /**
+ * Specifies publicNetworkAccess.
+ * @param publicNetworkAccess Whether or not public network access is allowed for this server. Value is optional but if passed in, must be 'Enabled' or 'Disabled'. Possible values include: 'Enabled', 'Disabled'
+ * @return the next update stage
+ */
+ Update withPublicNetworkAccess(PublicNetworkAccessEnum publicNetworkAccess);
+ }
+
/**
* The stage of the server update allowing to specify ReplicationRole.
*/
diff --git a/sdk/mariadb/mgmt-v2018_06_01/src/main/java/com/microsoft/azure/management/mariadb/v2018_06_01/ServerPrivateEndpointConnection.java b/sdk/mariadb/mgmt-v2018_06_01/src/main/java/com/microsoft/azure/management/mariadb/v2018_06_01/ServerPrivateEndpointConnection.java
new file mode 100644
index 000000000000..118e865cc1e0
--- /dev/null
+++ b/sdk/mariadb/mgmt-v2018_06_01/src/main/java/com/microsoft/azure/management/mariadb/v2018_06_01/ServerPrivateEndpointConnection.java
@@ -0,0 +1,47 @@
+/**
+ * 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.mariadb.v2018_06_01;
+
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/**
+ * A private endpoint connection under a server.
+ */
+public class ServerPrivateEndpointConnection {
+ /**
+ * Resource Id of the private endpoint connection.
+ */
+ @JsonProperty(value = "id", access = JsonProperty.Access.WRITE_ONLY)
+ private String id;
+
+ /**
+ * Private endpoint connection properties.
+ */
+ @JsonProperty(value = "properties", access = JsonProperty.Access.WRITE_ONLY)
+ private ServerPrivateEndpointConnectionProperties properties;
+
+ /**
+ * Get resource Id of the private endpoint connection.
+ *
+ * @return the id value
+ */
+ public String id() {
+ return this.id;
+ }
+
+ /**
+ * Get private endpoint connection properties.
+ *
+ * @return the properties value
+ */
+ public ServerPrivateEndpointConnectionProperties properties() {
+ return this.properties;
+ }
+
+}
diff --git a/sdk/mariadb/mgmt-v2018_06_01/src/main/java/com/microsoft/azure/management/mariadb/v2018_06_01/ServerPrivateEndpointConnectionProperties.java b/sdk/mariadb/mgmt-v2018_06_01/src/main/java/com/microsoft/azure/management/mariadb/v2018_06_01/ServerPrivateEndpointConnectionProperties.java
new file mode 100644
index 000000000000..428af77a22e1
--- /dev/null
+++ b/sdk/mariadb/mgmt-v2018_06_01/src/main/java/com/microsoft/azure/management/mariadb/v2018_06_01/ServerPrivateEndpointConnectionProperties.java
@@ -0,0 +1,85 @@
+/**
+ * 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.mariadb.v2018_06_01;
+
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/**
+ * Properties of a private endpoint connection.
+ */
+public class ServerPrivateEndpointConnectionProperties {
+ /**
+ * Private endpoint which the connection belongs to.
+ */
+ @JsonProperty(value = "privateEndpoint")
+ private PrivateEndpointProperty privateEndpoint;
+
+ /**
+ * Connection state of the private endpoint connection.
+ */
+ @JsonProperty(value = "privateLinkServiceConnectionState")
+ private ServerPrivateLinkServiceConnectionStateProperty privateLinkServiceConnectionState;
+
+ /**
+ * State of the private endpoint connection. Possible values include:
+ * 'Approving', 'Ready', 'Dropping', 'Failed', 'Rejecting'.
+ */
+ @JsonProperty(value = "provisioningState", access = JsonProperty.Access.WRITE_ONLY)
+ private PrivateEndpointProvisioningState provisioningState;
+
+ /**
+ * Get private endpoint which the connection belongs to.
+ *
+ * @return the privateEndpoint value
+ */
+ public PrivateEndpointProperty privateEndpoint() {
+ return this.privateEndpoint;
+ }
+
+ /**
+ * Set private endpoint which the connection belongs to.
+ *
+ * @param privateEndpoint the privateEndpoint value to set
+ * @return the ServerPrivateEndpointConnectionProperties object itself.
+ */
+ public ServerPrivateEndpointConnectionProperties withPrivateEndpoint(PrivateEndpointProperty privateEndpoint) {
+ this.privateEndpoint = privateEndpoint;
+ return this;
+ }
+
+ /**
+ * Get connection state of the private endpoint connection.
+ *
+ * @return the privateLinkServiceConnectionState value
+ */
+ public ServerPrivateLinkServiceConnectionStateProperty privateLinkServiceConnectionState() {
+ return this.privateLinkServiceConnectionState;
+ }
+
+ /**
+ * Set connection state of the private endpoint connection.
+ *
+ * @param privateLinkServiceConnectionState the privateLinkServiceConnectionState value to set
+ * @return the ServerPrivateEndpointConnectionProperties object itself.
+ */
+ public ServerPrivateEndpointConnectionProperties withPrivateLinkServiceConnectionState(ServerPrivateLinkServiceConnectionStateProperty privateLinkServiceConnectionState) {
+ this.privateLinkServiceConnectionState = privateLinkServiceConnectionState;
+ return this;
+ }
+
+ /**
+ * Get state of the private endpoint connection. Possible values include: 'Approving', 'Ready', 'Dropping', 'Failed', 'Rejecting'.
+ *
+ * @return the provisioningState value
+ */
+ public PrivateEndpointProvisioningState provisioningState() {
+ return this.provisioningState;
+ }
+
+}
diff --git a/sdk/mariadb/mgmt-v2018_06_01/src/main/java/com/microsoft/azure/management/mariadb/v2018_06_01/ServerPrivateLinkServiceConnectionStateProperty.java b/sdk/mariadb/mgmt-v2018_06_01/src/main/java/com/microsoft/azure/management/mariadb/v2018_06_01/ServerPrivateLinkServiceConnectionStateProperty.java
new file mode 100644
index 000000000000..0df856bd7964
--- /dev/null
+++ b/sdk/mariadb/mgmt-v2018_06_01/src/main/java/com/microsoft/azure/management/mariadb/v2018_06_01/ServerPrivateLinkServiceConnectionStateProperty.java
@@ -0,0 +1,86 @@
+/**
+ * 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.mariadb.v2018_06_01;
+
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/**
+ * The ServerPrivateLinkServiceConnectionStateProperty model.
+ */
+public class ServerPrivateLinkServiceConnectionStateProperty {
+ /**
+ * The private link service connection status. Possible values include:
+ * 'Approved', 'Pending', 'Rejected', 'Disconnected'.
+ */
+ @JsonProperty(value = "status", required = true)
+ private PrivateLinkServiceConnectionStateStatus status;
+
+ /**
+ * The private link service connection description.
+ */
+ @JsonProperty(value = "description", required = true)
+ private String description;
+
+ /**
+ * The actions required for private link service connection. Possible
+ * values include: 'None'.
+ */
+ @JsonProperty(value = "actionsRequired", access = JsonProperty.Access.WRITE_ONLY)
+ private PrivateLinkServiceConnectionStateActionsRequire actionsRequired;
+
+ /**
+ * Get the private link service connection status. Possible values include: 'Approved', 'Pending', 'Rejected', 'Disconnected'.
+ *
+ * @return the status value
+ */
+ public PrivateLinkServiceConnectionStateStatus status() {
+ return this.status;
+ }
+
+ /**
+ * Set the private link service connection status. Possible values include: 'Approved', 'Pending', 'Rejected', 'Disconnected'.
+ *
+ * @param status the status value to set
+ * @return the ServerPrivateLinkServiceConnectionStateProperty object itself.
+ */
+ public ServerPrivateLinkServiceConnectionStateProperty withStatus(PrivateLinkServiceConnectionStateStatus status) {
+ this.status = status;
+ return this;
+ }
+
+ /**
+ * Get the private link service connection description.
+ *
+ * @return the description value
+ */
+ public String description() {
+ return this.description;
+ }
+
+ /**
+ * Set the private link service connection description.
+ *
+ * @param description the description value to set
+ * @return the ServerPrivateLinkServiceConnectionStateProperty object itself.
+ */
+ public ServerPrivateLinkServiceConnectionStateProperty withDescription(String description) {
+ this.description = description;
+ return this;
+ }
+
+ /**
+ * Get the actions required for private link service connection. Possible values include: 'None'.
+ *
+ * @return the actionsRequired value
+ */
+ public PrivateLinkServiceConnectionStateActionsRequire actionsRequired() {
+ return this.actionsRequired;
+ }
+
+}
diff --git a/sdk/mariadb/mgmt-v2018_06_01/src/main/java/com/microsoft/azure/management/mariadb/v2018_06_01/ServerPropertiesForCreate.java b/sdk/mariadb/mgmt-v2018_06_01/src/main/java/com/microsoft/azure/management/mariadb/v2018_06_01/ServerPropertiesForCreate.java
index ac0b6a154a77..add5323ecb52 100644
--- a/sdk/mariadb/mgmt-v2018_06_01/src/main/java/com/microsoft/azure/management/mariadb/v2018_06_01/ServerPropertiesForCreate.java
+++ b/sdk/mariadb/mgmt-v2018_06_01/src/main/java/com/microsoft/azure/management/mariadb/v2018_06_01/ServerPropertiesForCreate.java
@@ -16,7 +16,7 @@
/**
* The properties used to create a new server.
*/
-@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "createMode")
+@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "createMode", defaultImpl = ServerPropertiesForCreate.class)
@JsonTypeName("ServerPropertiesForCreate")
@JsonSubTypes({
@JsonSubTypes.Type(name = "Default", value = ServerPropertiesForDefaultCreate.class),
@@ -38,6 +38,14 @@ public class ServerPropertiesForCreate {
@JsonProperty(value = "sslEnforcement")
private SslEnforcementEnum sslEnforcement;
+ /**
+ * Whether or not public network access is allowed for this server. Value
+ * is optional but if passed in, must be 'Enabled' or 'Disabled'. Possible
+ * values include: 'Enabled', 'Disabled'.
+ */
+ @JsonProperty(value = "publicNetworkAccess")
+ private PublicNetworkAccessEnum publicNetworkAccess;
+
/**
* Storage profile of a server.
*/
@@ -84,6 +92,26 @@ public ServerPropertiesForCreate withSslEnforcement(SslEnforcementEnum sslEnforc
return this;
}
+ /**
+ * Get whether or not public network access is allowed for this server. Value is optional but if passed in, must be 'Enabled' or 'Disabled'. Possible values include: 'Enabled', 'Disabled'.
+ *
+ * @return the publicNetworkAccess value
+ */
+ public PublicNetworkAccessEnum publicNetworkAccess() {
+ return this.publicNetworkAccess;
+ }
+
+ /**
+ * Set whether or not public network access is allowed for this server. Value is optional but if passed in, must be 'Enabled' or 'Disabled'. Possible values include: 'Enabled', 'Disabled'.
+ *
+ * @param publicNetworkAccess the publicNetworkAccess value to set
+ * @return the ServerPropertiesForCreate object itself.
+ */
+ public ServerPropertiesForCreate withPublicNetworkAccess(PublicNetworkAccessEnum publicNetworkAccess) {
+ this.publicNetworkAccess = publicNetworkAccess;
+ return this;
+ }
+
/**
* Get storage profile of a server.
*
diff --git a/sdk/mariadb/mgmt-v2018_06_01/src/main/java/com/microsoft/azure/management/mariadb/v2018_06_01/ServerPropertiesForDefaultCreate.java b/sdk/mariadb/mgmt-v2018_06_01/src/main/java/com/microsoft/azure/management/mariadb/v2018_06_01/ServerPropertiesForDefaultCreate.java
index 06c98e671474..1e7a56aa14f8 100644
--- a/sdk/mariadb/mgmt-v2018_06_01/src/main/java/com/microsoft/azure/management/mariadb/v2018_06_01/ServerPropertiesForDefaultCreate.java
+++ b/sdk/mariadb/mgmt-v2018_06_01/src/main/java/com/microsoft/azure/management/mariadb/v2018_06_01/ServerPropertiesForDefaultCreate.java
@@ -15,7 +15,7 @@
/**
* The properties used to create a new server.
*/
-@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "createMode")
+@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "createMode", defaultImpl = ServerPropertiesForDefaultCreate.class)
@JsonTypeName("Default")
public class ServerPropertiesForDefaultCreate extends ServerPropertiesForCreate {
/**
diff --git a/sdk/mariadb/mgmt-v2018_06_01/src/main/java/com/microsoft/azure/management/mariadb/v2018_06_01/ServerPropertiesForGeoRestore.java b/sdk/mariadb/mgmt-v2018_06_01/src/main/java/com/microsoft/azure/management/mariadb/v2018_06_01/ServerPropertiesForGeoRestore.java
index 841db628f501..40389070b768 100644
--- a/sdk/mariadb/mgmt-v2018_06_01/src/main/java/com/microsoft/azure/management/mariadb/v2018_06_01/ServerPropertiesForGeoRestore.java
+++ b/sdk/mariadb/mgmt-v2018_06_01/src/main/java/com/microsoft/azure/management/mariadb/v2018_06_01/ServerPropertiesForGeoRestore.java
@@ -16,7 +16,7 @@
* The properties used to create a new server by restoring to a different
* region from a geo replicated backup.
*/
-@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "createMode")
+@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "createMode", defaultImpl = ServerPropertiesForGeoRestore.class)
@JsonTypeName("GeoRestore")
public class ServerPropertiesForGeoRestore extends ServerPropertiesForCreate {
/**
diff --git a/sdk/mariadb/mgmt-v2018_06_01/src/main/java/com/microsoft/azure/management/mariadb/v2018_06_01/ServerPropertiesForReplica.java b/sdk/mariadb/mgmt-v2018_06_01/src/main/java/com/microsoft/azure/management/mariadb/v2018_06_01/ServerPropertiesForReplica.java
index 2cc3741ea975..64109362dca3 100644
--- a/sdk/mariadb/mgmt-v2018_06_01/src/main/java/com/microsoft/azure/management/mariadb/v2018_06_01/ServerPropertiesForReplica.java
+++ b/sdk/mariadb/mgmt-v2018_06_01/src/main/java/com/microsoft/azure/management/mariadb/v2018_06_01/ServerPropertiesForReplica.java
@@ -15,7 +15,7 @@
/**
* The properties to create a new replica.
*/
-@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "createMode")
+@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "createMode", defaultImpl = ServerPropertiesForReplica.class)
@JsonTypeName("Replica")
public class ServerPropertiesForReplica extends ServerPropertiesForCreate {
/**
diff --git a/sdk/mariadb/mgmt-v2018_06_01/src/main/java/com/microsoft/azure/management/mariadb/v2018_06_01/ServerPropertiesForRestore.java b/sdk/mariadb/mgmt-v2018_06_01/src/main/java/com/microsoft/azure/management/mariadb/v2018_06_01/ServerPropertiesForRestore.java
index 6235e5bc2dba..a8e958e5d3c9 100644
--- a/sdk/mariadb/mgmt-v2018_06_01/src/main/java/com/microsoft/azure/management/mariadb/v2018_06_01/ServerPropertiesForRestore.java
+++ b/sdk/mariadb/mgmt-v2018_06_01/src/main/java/com/microsoft/azure/management/mariadb/v2018_06_01/ServerPropertiesForRestore.java
@@ -16,7 +16,7 @@
/**
* The properties used to create a new server by restoring from a backup.
*/
-@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "createMode")
+@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "createMode", defaultImpl = ServerPropertiesForRestore.class)
@JsonTypeName("PointInTimeRestore")
public class ServerPropertiesForRestore extends ServerPropertiesForCreate {
/**
diff --git a/sdk/mariadb/mgmt-v2018_06_01/src/main/java/com/microsoft/azure/management/mariadb/v2018_06_01/ServerSecurityAlertPolicies.java b/sdk/mariadb/mgmt-v2018_06_01/src/main/java/com/microsoft/azure/management/mariadb/v2018_06_01/ServerSecurityAlertPolicies.java
index 80527a8cd225..6fd393896086 100644
--- a/sdk/mariadb/mgmt-v2018_06_01/src/main/java/com/microsoft/azure/management/mariadb/v2018_06_01/ServerSecurityAlertPolicies.java
+++ b/sdk/mariadb/mgmt-v2018_06_01/src/main/java/com/microsoft/azure/management/mariadb/v2018_06_01/ServerSecurityAlertPolicies.java
@@ -20,7 +20,7 @@ public interface ServerSecurityAlertPolicies extends SupportsCreating, HasManager privateEndpointConnections();
+
+ /**
+ * @return the publicNetworkAccess value.
+ */
+ PublicNetworkAccessEnum publicNetworkAccess();
+
/**
* @return the replicaCapacity value.
*/
diff --git a/sdk/mariadb/mgmt-v2018_06_01/src/main/java/com/microsoft/azure/management/mariadb/v2018_06_01/ServerUpdateParameters.java b/sdk/mariadb/mgmt-v2018_06_01/src/main/java/com/microsoft/azure/management/mariadb/v2018_06_01/ServerUpdateParameters.java
index b23087b7e7a6..997509f403eb 100644
--- a/sdk/mariadb/mgmt-v2018_06_01/src/main/java/com/microsoft/azure/management/mariadb/v2018_06_01/ServerUpdateParameters.java
+++ b/sdk/mariadb/mgmt-v2018_06_01/src/main/java/com/microsoft/azure/management/mariadb/v2018_06_01/ServerUpdateParameters.java
@@ -48,6 +48,14 @@ public class ServerUpdateParameters {
@JsonProperty(value = "properties.sslEnforcement")
private SslEnforcementEnum sslEnforcement;
+ /**
+ * Whether or not public network access is allowed for this server. Value
+ * is optional but if passed in, must be 'Enabled' or 'Disabled'. Possible
+ * values include: 'Enabled', 'Disabled'.
+ */
+ @JsonProperty(value = "properties.publicNetworkAccess")
+ private PublicNetworkAccessEnum publicNetworkAccess;
+
/**
* The replication role of the server.
*/
@@ -160,6 +168,26 @@ public ServerUpdateParameters withSslEnforcement(SslEnforcementEnum sslEnforceme
return this;
}
+ /**
+ * Get whether or not public network access is allowed for this server. Value is optional but if passed in, must be 'Enabled' or 'Disabled'. Possible values include: 'Enabled', 'Disabled'.
+ *
+ * @return the publicNetworkAccess value
+ */
+ public PublicNetworkAccessEnum publicNetworkAccess() {
+ return this.publicNetworkAccess;
+ }
+
+ /**
+ * Set whether or not public network access is allowed for this server. Value is optional but if passed in, must be 'Enabled' or 'Disabled'. Possible values include: 'Enabled', 'Disabled'.
+ *
+ * @param publicNetworkAccess the publicNetworkAccess value to set
+ * @return the ServerUpdateParameters object itself.
+ */
+ public ServerUpdateParameters withPublicNetworkAccess(PublicNetworkAccessEnum publicNetworkAccess) {
+ this.publicNetworkAccess = publicNetworkAccess;
+ return this;
+ }
+
/**
* Get the replication role of the server.
*
diff --git a/sdk/mariadb/mgmt-v2018_06_01/src/main/java/com/microsoft/azure/management/mariadb/v2018_06_01/Servers.java b/sdk/mariadb/mgmt-v2018_06_01/src/main/java/com/microsoft/azure/management/mariadb/v2018_06_01/Servers.java
index 07e3952b9401..c7d913594fc6 100644
--- a/sdk/mariadb/mgmt-v2018_06_01/src/main/java/com/microsoft/azure/management/mariadb/v2018_06_01/Servers.java
+++ b/sdk/mariadb/mgmt-v2018_06_01/src/main/java/com/microsoft/azure/management/mariadb/v2018_06_01/Servers.java
@@ -26,7 +26,7 @@ public interface Servers extends SupportsCreating
/**
* Restarts a server.
*
- * @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 resourceGroupName The name of the resource group. The name is case insensitive.
* @param serverName The name of the server.
* @throws IllegalArgumentException thrown if parameters fail the validation
* @return the observable for the request
diff --git a/sdk/mariadb/mgmt-v2018_06_01/src/main/java/com/microsoft/azure/management/mariadb/v2018_06_01/TagsObject.java b/sdk/mariadb/mgmt-v2018_06_01/src/main/java/com/microsoft/azure/management/mariadb/v2018_06_01/TagsObject.java
new file mode 100644
index 000000000000..3f457142cead
--- /dev/null
+++ b/sdk/mariadb/mgmt-v2018_06_01/src/main/java/com/microsoft/azure/management/mariadb/v2018_06_01/TagsObject.java
@@ -0,0 +1,44 @@
+/**
+ * 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.mariadb.v2018_06_01;
+
+import java.util.Map;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/**
+ * Tags object for patch operations.
+ */
+public class TagsObject {
+ /**
+ * Resource tags.
+ */
+ @JsonProperty(value = "tags")
+ private Map tags;
+
+ /**
+ * Get resource tags.
+ *
+ * @return the tags value
+ */
+ public Map tags() {
+ return this.tags;
+ }
+
+ /**
+ * Set resource tags.
+ *
+ * @param tags the tags value to set
+ * @return the TagsObject object itself.
+ */
+ public TagsObject withTags(Map tags) {
+ this.tags = tags;
+ return this;
+ }
+
+}
diff --git a/sdk/mariadb/mgmt-v2018_06_01/src/main/java/com/microsoft/azure/management/mariadb/v2018_06_01/TopQueryStatistics.java b/sdk/mariadb/mgmt-v2018_06_01/src/main/java/com/microsoft/azure/management/mariadb/v2018_06_01/TopQueryStatistics.java
new file mode 100644
index 000000000000..94140ce1de1b
--- /dev/null
+++ b/sdk/mariadb/mgmt-v2018_06_01/src/main/java/com/microsoft/azure/management/mariadb/v2018_06_01/TopQueryStatistics.java
@@ -0,0 +1,41 @@
+/**
+ * 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.mariadb.v2018_06_01;
+
+import rx.Observable;
+import com.microsoft.azure.management.mariadb.v2018_06_01.implementation.TopQueryStatisticsInner;
+import com.microsoft.azure.arm.model.HasInner;
+
+/**
+ * Type representing TopQueryStatistics.
+ */
+public interface TopQueryStatistics extends HasInner {
+ /**
+ * Retrieve the query statistic for specified identifier.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param serverName The name of the server.
+ * @param queryStatisticId The Query Statistic identifier.
+ * @throws IllegalArgumentException thrown if parameters fail the validation
+ * @return the observable for the request
+ */
+ Observable getAsync(String resourceGroupName, String serverName, String queryStatisticId);
+
+ /**
+ * Retrieve the Query-Store top queries for specified metric and aggregation.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param serverName The name of the server.
+ * @param parameters The required parameters for retrieving top query statistics.
+ * @throws IllegalArgumentException thrown if parameters fail the validation
+ * @return the observable for the request
+ */
+ Observable listByServerAsync(final String resourceGroupName, final String serverName, final TopQueryStatisticsInput parameters);
+
+}
diff --git a/sdk/mariadb/mgmt-v2018_06_01/src/main/java/com/microsoft/azure/management/mariadb/v2018_06_01/TopQueryStatisticsInput.java b/sdk/mariadb/mgmt-v2018_06_01/src/main/java/com/microsoft/azure/management/mariadb/v2018_06_01/TopQueryStatisticsInput.java
new file mode 100644
index 000000000000..8d4b1b0fc22b
--- /dev/null
+++ b/sdk/mariadb/mgmt-v2018_06_01/src/main/java/com/microsoft/azure/management/mariadb/v2018_06_01/TopQueryStatisticsInput.java
@@ -0,0 +1,176 @@
+/**
+ * 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.mariadb.v2018_06_01;
+
+import org.joda.time.DateTime;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import com.microsoft.rest.serializer.JsonFlatten;
+
+/**
+ * Input to get top query statistics.
+ */
+@JsonFlatten
+public class TopQueryStatisticsInput {
+ /**
+ * Max number of top queries to return.
+ */
+ @JsonProperty(value = "properties.numberOfTopQueries", required = true)
+ private int numberOfTopQueries;
+
+ /**
+ * Aggregation function name.
+ */
+ @JsonProperty(value = "properties.aggregationFunction", required = true)
+ private String aggregationFunction;
+
+ /**
+ * Observed metric name.
+ */
+ @JsonProperty(value = "properties.observedMetric", required = true)
+ private String observedMetric;
+
+ /**
+ * Observation start time.
+ */
+ @JsonProperty(value = "properties.observationStartTime", required = true)
+ private DateTime observationStartTime;
+
+ /**
+ * Observation end time.
+ */
+ @JsonProperty(value = "properties.observationEndTime", required = true)
+ private DateTime observationEndTime;
+
+ /**
+ * Aggregation interval type in ISO 8601 format.
+ */
+ @JsonProperty(value = "properties.aggregationWindow", required = true)
+ private String aggregationWindow;
+
+ /**
+ * Get max number of top queries to return.
+ *
+ * @return the numberOfTopQueries value
+ */
+ public int numberOfTopQueries() {
+ return this.numberOfTopQueries;
+ }
+
+ /**
+ * Set max number of top queries to return.
+ *
+ * @param numberOfTopQueries the numberOfTopQueries value to set
+ * @return the TopQueryStatisticsInput object itself.
+ */
+ public TopQueryStatisticsInput withNumberOfTopQueries(int numberOfTopQueries) {
+ this.numberOfTopQueries = numberOfTopQueries;
+ return this;
+ }
+
+ /**
+ * Get aggregation function name.
+ *
+ * @return the aggregationFunction value
+ */
+ public String aggregationFunction() {
+ return this.aggregationFunction;
+ }
+
+ /**
+ * Set aggregation function name.
+ *
+ * @param aggregationFunction the aggregationFunction value to set
+ * @return the TopQueryStatisticsInput object itself.
+ */
+ public TopQueryStatisticsInput withAggregationFunction(String aggregationFunction) {
+ this.aggregationFunction = aggregationFunction;
+ return this;
+ }
+
+ /**
+ * Get observed metric name.
+ *
+ * @return the observedMetric value
+ */
+ public String observedMetric() {
+ return this.observedMetric;
+ }
+
+ /**
+ * Set observed metric name.
+ *
+ * @param observedMetric the observedMetric value to set
+ * @return the TopQueryStatisticsInput object itself.
+ */
+ public TopQueryStatisticsInput withObservedMetric(String observedMetric) {
+ this.observedMetric = observedMetric;
+ return this;
+ }
+
+ /**
+ * Get observation start time.
+ *
+ * @return the observationStartTime value
+ */
+ public DateTime observationStartTime() {
+ return this.observationStartTime;
+ }
+
+ /**
+ * Set observation start time.
+ *
+ * @param observationStartTime the observationStartTime value to set
+ * @return the TopQueryStatisticsInput object itself.
+ */
+ public TopQueryStatisticsInput withObservationStartTime(DateTime observationStartTime) {
+ this.observationStartTime = observationStartTime;
+ return this;
+ }
+
+ /**
+ * Get observation end time.
+ *
+ * @return the observationEndTime value
+ */
+ public DateTime observationEndTime() {
+ return this.observationEndTime;
+ }
+
+ /**
+ * Set observation end time.
+ *
+ * @param observationEndTime the observationEndTime value to set
+ * @return the TopQueryStatisticsInput object itself.
+ */
+ public TopQueryStatisticsInput withObservationEndTime(DateTime observationEndTime) {
+ this.observationEndTime = observationEndTime;
+ return this;
+ }
+
+ /**
+ * Get aggregation interval type in ISO 8601 format.
+ *
+ * @return the aggregationWindow value
+ */
+ public String aggregationWindow() {
+ return this.aggregationWindow;
+ }
+
+ /**
+ * Set aggregation interval type in ISO 8601 format.
+ *
+ * @param aggregationWindow the aggregationWindow value to set
+ * @return the TopQueryStatisticsInput object itself.
+ */
+ public TopQueryStatisticsInput withAggregationWindow(String aggregationWindow) {
+ this.aggregationWindow = aggregationWindow;
+ return this;
+ }
+
+}
diff --git a/sdk/mariadb/mgmt-v2018_06_01/src/main/java/com/microsoft/azure/management/mariadb/v2018_06_01/VirtualNetworkRule.java b/sdk/mariadb/mgmt-v2018_06_01/src/main/java/com/microsoft/azure/management/mariadb/v2018_06_01/VirtualNetworkRule.java
index 55216ecbd7a3..1ca74a61a806 100644
--- a/sdk/mariadb/mgmt-v2018_06_01/src/main/java/com/microsoft/azure/management/mariadb/v2018_06_01/VirtualNetworkRule.java
+++ b/sdk/mariadb/mgmt-v2018_06_01/src/main/java/com/microsoft/azure/management/mariadb/v2018_06_01/VirtualNetworkRule.java
@@ -74,7 +74,7 @@ interface Blank extends WithServer {
interface WithServer {
/**
* Specifies resourceGroupName, serverName.
- * @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 resourceGroupName The name of the resource group. The name is case insensitive
* @param serverName The name of the server
* @return the next definition stage
*/
diff --git a/sdk/mariadb/mgmt-v2018_06_01/src/main/java/com/microsoft/azure/management/mariadb/v2018_06_01/VirtualNetworkRules.java b/sdk/mariadb/mgmt-v2018_06_01/src/main/java/com/microsoft/azure/management/mariadb/v2018_06_01/VirtualNetworkRules.java
index b189fc33fa8b..d61087b3c43d 100644
--- a/sdk/mariadb/mgmt-v2018_06_01/src/main/java/com/microsoft/azure/management/mariadb/v2018_06_01/VirtualNetworkRules.java
+++ b/sdk/mariadb/mgmt-v2018_06_01/src/main/java/com/microsoft/azure/management/mariadb/v2018_06_01/VirtualNetworkRules.java
@@ -21,7 +21,7 @@ public interface VirtualNetworkRules extends SupportsCreating, Indexable, Refreshable, HasManager {
+ /**
+ * @return the count value.
+ */
+ Long count();
+
+ /**
+ * @return the databaseName value.
+ */
+ String databaseName();
+
+ /**
+ * @return the endTime value.
+ */
+ DateTime endTime();
+
+ /**
+ * @return the eventName value.
+ */
+ String eventName();
+
+ /**
+ * @return the eventTypeName value.
+ */
+ String eventTypeName();
+
+ /**
+ * @return the id value.
+ */
+ String id();
+
+ /**
+ * @return the name value.
+ */
+ String name();
+
+ /**
+ * @return the queryId value.
+ */
+ Long queryId();
+
+ /**
+ * @return the startTime value.
+ */
+ DateTime startTime();
+
+ /**
+ * @return the totalTimeInMs value.
+ */
+ Double totalTimeInMs();
+
+ /**
+ * @return the type value.
+ */
+ String type();
+
+ /**
+ * @return the userId value.
+ */
+ Long userId();
+
+}
diff --git a/sdk/mariadb/mgmt-v2018_06_01/src/main/java/com/microsoft/azure/management/mariadb/v2018_06_01/WaitStatistics.java b/sdk/mariadb/mgmt-v2018_06_01/src/main/java/com/microsoft/azure/management/mariadb/v2018_06_01/WaitStatistics.java
new file mode 100644
index 000000000000..98ab520f0073
--- /dev/null
+++ b/sdk/mariadb/mgmt-v2018_06_01/src/main/java/com/microsoft/azure/management/mariadb/v2018_06_01/WaitStatistics.java
@@ -0,0 +1,41 @@
+/**
+ * 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.mariadb.v2018_06_01;
+
+import rx.Observable;
+import com.microsoft.azure.management.mariadb.v2018_06_01.implementation.WaitStatisticsInner;
+import com.microsoft.azure.arm.model.HasInner;
+
+/**
+ * Type representing WaitStatistics.
+ */
+public interface WaitStatistics extends HasInner {
+ /**
+ * Retrieve wait statistics for specified identifier.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param serverName The name of the server.
+ * @param waitStatisticsId The Wait Statistic identifier.
+ * @throws IllegalArgumentException thrown if parameters fail the validation
+ * @return the observable for the request
+ */
+ Observable getAsync(String resourceGroupName, String serverName, String waitStatisticsId);
+
+ /**
+ * Retrieve wait statistics for specified aggregation window.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param serverName The name of the server.
+ * @param parameters The required parameters for retrieving wait statistics.
+ * @throws IllegalArgumentException thrown if parameters fail the validation
+ * @return the observable for the request
+ */
+ Observable listByServerAsync(final String resourceGroupName, final String serverName, final WaitStatisticsInput parameters);
+
+}
diff --git a/sdk/mariadb/mgmt-v2018_06_01/src/main/java/com/microsoft/azure/management/mariadb/v2018_06_01/WaitStatisticsInput.java b/sdk/mariadb/mgmt-v2018_06_01/src/main/java/com/microsoft/azure/management/mariadb/v2018_06_01/WaitStatisticsInput.java
new file mode 100644
index 000000000000..260b6a3dc0de
--- /dev/null
+++ b/sdk/mariadb/mgmt-v2018_06_01/src/main/java/com/microsoft/azure/management/mariadb/v2018_06_01/WaitStatisticsInput.java
@@ -0,0 +1,98 @@
+/**
+ * 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.mariadb.v2018_06_01;
+
+import org.joda.time.DateTime;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import com.microsoft.rest.serializer.JsonFlatten;
+
+/**
+ * Input to get wait statistics.
+ */
+@JsonFlatten
+public class WaitStatisticsInput {
+ /**
+ * Observation start time.
+ */
+ @JsonProperty(value = "properties.observationStartTime", required = true)
+ private DateTime observationStartTime;
+
+ /**
+ * Observation end time.
+ */
+ @JsonProperty(value = "properties.observationEndTime", required = true)
+ private DateTime observationEndTime;
+
+ /**
+ * Aggregation interval type in ISO 8601 format.
+ */
+ @JsonProperty(value = "properties.aggregationWindow", required = true)
+ private String aggregationWindow;
+
+ /**
+ * Get observation start time.
+ *
+ * @return the observationStartTime value
+ */
+ public DateTime observationStartTime() {
+ return this.observationStartTime;
+ }
+
+ /**
+ * Set observation start time.
+ *
+ * @param observationStartTime the observationStartTime value to set
+ * @return the WaitStatisticsInput object itself.
+ */
+ public WaitStatisticsInput withObservationStartTime(DateTime observationStartTime) {
+ this.observationStartTime = observationStartTime;
+ return this;
+ }
+
+ /**
+ * Get observation end time.
+ *
+ * @return the observationEndTime value
+ */
+ public DateTime observationEndTime() {
+ return this.observationEndTime;
+ }
+
+ /**
+ * Set observation end time.
+ *
+ * @param observationEndTime the observationEndTime value to set
+ * @return the WaitStatisticsInput object itself.
+ */
+ public WaitStatisticsInput withObservationEndTime(DateTime observationEndTime) {
+ this.observationEndTime = observationEndTime;
+ return this;
+ }
+
+ /**
+ * Get aggregation interval type in ISO 8601 format.
+ *
+ * @return the aggregationWindow value
+ */
+ public String aggregationWindow() {
+ return this.aggregationWindow;
+ }
+
+ /**
+ * Set aggregation interval type in ISO 8601 format.
+ *
+ * @param aggregationWindow the aggregationWindow value to set
+ * @return the WaitStatisticsInput object itself.
+ */
+ public WaitStatisticsInput withAggregationWindow(String aggregationWindow) {
+ this.aggregationWindow = aggregationWindow;
+ return this;
+ }
+
+}
diff --git a/sdk/mariadb/mgmt-v2018_06_01/src/main/java/com/microsoft/azure/management/mariadb/v2018_06_01/implementation/AdvisorImpl.java b/sdk/mariadb/mgmt-v2018_06_01/src/main/java/com/microsoft/azure/management/mariadb/v2018_06_01/implementation/AdvisorImpl.java
new file mode 100644
index 000000000000..edec0d3b2834
--- /dev/null
+++ b/sdk/mariadb/mgmt-v2018_06_01/src/main/java/com/microsoft/azure/management/mariadb/v2018_06_01/implementation/AdvisorImpl.java
@@ -0,0 +1,63 @@
+/**
+ * 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.mariadb.v2018_06_01.implementation;
+
+import com.microsoft.azure.management.mariadb.v2018_06_01.Advisor;
+import com.microsoft.azure.arm.model.implementation.IndexableRefreshableWrapperImpl;
+import rx.Observable;
+
+class AdvisorImpl extends IndexableRefreshableWrapperImpl implements Advisor {
+ private final MariaDBManager manager;
+ private String resourceGroupName;
+ private String serverName;
+ private String advisorName;
+
+ AdvisorImpl(AdvisorInner inner, MariaDBManager manager) {
+ super(null, inner);
+ this.manager = manager;
+ // set resource ancestor and positional variables
+ this.resourceGroupName = IdParsingUtils.getValueFromIdByName(inner.id(), "resourceGroups");
+ this.serverName = IdParsingUtils.getValueFromIdByName(inner.id(), "servers");
+ this.advisorName = IdParsingUtils.getValueFromIdByName(inner.id(), "advisors");
+ }
+
+ @Override
+ public MariaDBManager manager() {
+ return this.manager;
+ }
+
+ @Override
+ protected Observable getInnerAsync() {
+ AdvisorsInner client = this.manager().inner().advisors();
+ return client.getAsync(this.resourceGroupName, this.serverName, this.advisorName);
+ }
+
+
+
+ @Override
+ public String id() {
+ return this.inner().id();
+ }
+
+ @Override
+ public String name() {
+ return this.inner().name();
+ }
+
+ @Override
+ public Object properties() {
+ return this.inner().properties();
+ }
+
+ @Override
+ public String type() {
+ return this.inner().type();
+ }
+
+}
diff --git a/sdk/mariadb/mgmt-v2018_06_01/src/main/java/com/microsoft/azure/management/mariadb/v2018_06_01/implementation/AdvisorInner.java b/sdk/mariadb/mgmt-v2018_06_01/src/main/java/com/microsoft/azure/management/mariadb/v2018_06_01/implementation/AdvisorInner.java
new file mode 100644
index 000000000000..492e3fe37374
--- /dev/null
+++ b/sdk/mariadb/mgmt-v2018_06_01/src/main/java/com/microsoft/azure/management/mariadb/v2018_06_01/implementation/AdvisorInner.java
@@ -0,0 +1,44 @@
+/**
+ * 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.mariadb.v2018_06_01.implementation;
+
+import com.fasterxml.jackson.annotation.JsonProperty;
+import com.microsoft.azure.ProxyResource;
+
+/**
+ * Represents a recommendation action advisor.
+ */
+public class AdvisorInner extends ProxyResource {
+ /**
+ * The properties of a recommendation action advisor.
+ */
+ @JsonProperty(value = "properties")
+ private Object properties;
+
+ /**
+ * Get the properties of a recommendation action advisor.
+ *
+ * @return the properties value
+ */
+ public Object properties() {
+ return this.properties;
+ }
+
+ /**
+ * Set the properties of a recommendation action advisor.
+ *
+ * @param properties the properties value to set
+ * @return the AdvisorInner object itself.
+ */
+ public AdvisorInner withProperties(Object properties) {
+ this.properties = properties;
+ return this;
+ }
+
+}
diff --git a/sdk/mariadb/mgmt-v2018_06_01/src/main/java/com/microsoft/azure/management/mariadb/v2018_06_01/implementation/AdvisorsImpl.java b/sdk/mariadb/mgmt-v2018_06_01/src/main/java/com/microsoft/azure/management/mariadb/v2018_06_01/implementation/AdvisorsImpl.java
new file mode 100644
index 000000000000..425a48ed71f1
--- /dev/null
+++ b/sdk/mariadb/mgmt-v2018_06_01/src/main/java/com/microsoft/azure/management/mariadb/v2018_06_01/implementation/AdvisorsImpl.java
@@ -0,0 +1,69 @@
+/**
+ * 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.mariadb.v2018_06_01.implementation;
+
+import com.microsoft.azure.arm.model.implementation.WrapperImpl;
+import com.microsoft.azure.management.mariadb.v2018_06_01.Advisors;
+import rx.Observable;
+import rx.functions.Func1;
+import com.microsoft.azure.Page;
+import com.microsoft.azure.management.mariadb.v2018_06_01.Advisor;
+
+class AdvisorsImpl extends WrapperImpl implements Advisors {
+ private final MariaDBManager manager;
+
+ AdvisorsImpl(MariaDBManager manager) {
+ super(manager.inner().advisors());
+ this.manager = manager;
+ }
+
+ public MariaDBManager manager() {
+ return this.manager;
+ }
+
+ private AdvisorImpl wrapModel(AdvisorInner inner) {
+ return new AdvisorImpl(inner, manager());
+ }
+
+ @Override
+ public Observable listByServerAsync(final String resourceGroupName, final String serverName) {
+ AdvisorsInner client = this.inner();
+ return client.listByServerAsync(resourceGroupName, serverName)
+ .flatMapIterable(new Func1, Iterable>() {
+ @Override
+ public Iterable call(Page page) {
+ return page.items();
+ }
+ })
+ .map(new Func1() {
+ @Override
+ public Advisor call(AdvisorInner inner) {
+ return wrapModel(inner);
+ }
+ });
+ }
+
+ @Override
+ public Observable getAsync(String resourceGroupName, String serverName, String advisorName) {
+ AdvisorsInner client = this.inner();
+ return client.getAsync(resourceGroupName, serverName, advisorName)
+ .flatMap(new Func1>() {
+ @Override
+ public Observable call(AdvisorInner inner) {
+ if (inner == null) {
+ return Observable.empty();
+ } else {
+ return Observable.just((Advisor)wrapModel(inner));
+ }
+ }
+ });
+ }
+
+}
diff --git a/sdk/mariadb/mgmt-v2018_06_01/src/main/java/com/microsoft/azure/management/mariadb/v2018_06_01/implementation/AdvisorsInner.java b/sdk/mariadb/mgmt-v2018_06_01/src/main/java/com/microsoft/azure/management/mariadb/v2018_06_01/implementation/AdvisorsInner.java
new file mode 100644
index 000000000000..93d2efd8015e
--- /dev/null
+++ b/sdk/mariadb/mgmt-v2018_06_01/src/main/java/com/microsoft/azure/management/mariadb/v2018_06_01/implementation/AdvisorsInner.java
@@ -0,0 +1,401 @@
+/**
+ * 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.mariadb.v2018_06_01.implementation;
+
+import retrofit2.Retrofit;
+import com.google.common.reflect.TypeToken;
+import com.microsoft.azure.AzureServiceFuture;
+import com.microsoft.azure.CloudException;
+import com.microsoft.azure.ListOperationCallback;
+import com.microsoft.azure.Page;
+import com.microsoft.azure.PagedList;
+import com.microsoft.rest.ServiceCallback;
+import com.microsoft.rest.ServiceFuture;
+import com.microsoft.rest.ServiceResponse;
+import java.io.IOException;
+import java.util.List;
+import okhttp3.ResponseBody;
+import retrofit2.http.GET;
+import retrofit2.http.Header;
+import retrofit2.http.Headers;
+import retrofit2.http.Path;
+import retrofit2.http.Query;
+import retrofit2.http.Url;
+import retrofit2.Response;
+import rx.functions.Func1;
+import rx.Observable;
+
+/**
+ * An instance of this class provides access to all the operations defined
+ * in Advisors.
+ */
+public class AdvisorsInner {
+ /** The Retrofit service to perform REST calls. */
+ private AdvisorsService service;
+ /** The service client containing this operation class. */
+ private MariaDBManagementClientImpl client;
+
+ /**
+ * Initializes an instance of AdvisorsInner.
+ *
+ * @param retrofit the Retrofit instance built from a Retrofit Builder.
+ * @param client the instance of the service client containing this operation class.
+ */
+ public AdvisorsInner(Retrofit retrofit, MariaDBManagementClientImpl client) {
+ this.service = retrofit.create(AdvisorsService.class);
+ this.client = client;
+ }
+
+ /**
+ * The interface defining all the services for Advisors to be
+ * used by Retrofit to perform actually REST calls.
+ */
+ interface AdvisorsService {
+ @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.mariadb.v2018_06_01.Advisors get" })
+ @GET("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMariaDB/servers/{serverName}/advisors/{advisorName}")
+ Observable> get(@Path("subscriptionId") String subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("serverName") String serverName, @Path("advisorName") String advisorName, @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.mariadb.v2018_06_01.Advisors listByServer" })
+ @GET("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMariaDB/servers/{serverName}/advisors")
+ Observable> listByServer(@Path("subscriptionId") String subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("serverName") String serverName, @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.mariadb.v2018_06_01.Advisors listByServerNext" })
+ @GET
+ Observable> listByServerNext(@Url String nextUrl, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent);
+
+ }
+
+ /**
+ * Get a recommendation action advisor.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param serverName The name of the server.
+ * @param advisorName The advisor name for recommendation action.
+ * @throws IllegalArgumentException thrown if parameters fail the validation
+ * @throws 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 AdvisorInner object if successful.
+ */
+ public AdvisorInner get(String resourceGroupName, String serverName, String advisorName) {
+ return getWithServiceResponseAsync(resourceGroupName, serverName, advisorName).toBlocking().single().body();
+ }
+
+ /**
+ * Get a recommendation action advisor.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param serverName The name of the server.
+ * @param advisorName The advisor name for recommendation action.
+ * @param 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, String advisorName, final ServiceCallback serviceCallback) {
+ return ServiceFuture.fromResponse(getWithServiceResponseAsync(resourceGroupName, serverName, advisorName), serviceCallback);
+ }
+
+ /**
+ * Get a recommendation action advisor.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param serverName The name of the server.
+ * @param advisorName The advisor name for recommendation action.
+ * @throws IllegalArgumentException thrown if parameters fail the validation
+ * @return the observable to the AdvisorInner object
+ */
+ public Observable getAsync(String resourceGroupName, String serverName, String advisorName) {
+ return getWithServiceResponseAsync(resourceGroupName, serverName, advisorName).map(new Func1, AdvisorInner>() {
+ @Override
+ public AdvisorInner call(ServiceResponse response) {
+ return response.body();
+ }
+ });
+ }
+
+ /**
+ * Get a recommendation action advisor.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param serverName The name of the server.
+ * @param advisorName The advisor name for recommendation action.
+ * @throws IllegalArgumentException thrown if parameters fail the validation
+ * @return the observable to the AdvisorInner object
+ */
+ public Observable> getWithServiceResponseAsync(String resourceGroupName, String serverName, String advisorName) {
+ if (this.client.subscriptionId() == null) {
+ throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null.");
+ }
+ 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 (advisorName == null) {
+ throw new IllegalArgumentException("Parameter advisorName is required and cannot be null.");
+ }
+ if (this.client.apiVersion() == null) {
+ throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null.");
+ }
+ return service.get(this.client.subscriptionId(), resourceGroupName, serverName, advisorName, 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);
+ }
+
+ /**
+ * List recommendation action advisors.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param serverName The name of the server.
+ * @throws IllegalArgumentException thrown if parameters fail the validation
+ * @throws 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 PagedList<AdvisorInner> object if successful.
+ */
+ public PagedList listByServer(final String resourceGroupName, final String serverName) {
+ ServiceResponse> response = listByServerSinglePageAsync(resourceGroupName, serverName).toBlocking().single();
+ return new PagedList(response.body()) {
+ @Override
+ public Page nextPage(String nextPageLink) {
+ return listByServerNextSinglePageAsync(nextPageLink).toBlocking().single().body();
+ }
+ };
+ }
+
+ /**
+ * List recommendation action advisors.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param serverName The name of the server.
+ * @param 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> listByServerAsync(final String resourceGroupName, final String serverName, final ListOperationCallback serviceCallback) {
+ return AzureServiceFuture.fromPageResponse(
+ listByServerSinglePageAsync(resourceGroupName, serverName),
+ new Func1>>>() {
+ @Override
+ public Observable>> call(String nextPageLink) {
+ return listByServerNextSinglePageAsync(nextPageLink);
+ }
+ },
+ serviceCallback);
+ }
+
+ /**
+ * List recommendation action advisors.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param serverName The name of the server.
+ * @throws IllegalArgumentException thrown if parameters fail the validation
+ * @return the observable to the PagedList<AdvisorInner> object
+ */
+ public Observable> listByServerAsync(final String resourceGroupName, final String serverName) {
+ return listByServerWithServiceResponseAsync(resourceGroupName, serverName)
+ .map(new Func1>, Page>() {
+ @Override
+ public Page call(ServiceResponse> response) {
+ return response.body();
+ }
+ });
+ }
+
+ /**
+ * List recommendation action advisors.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param serverName The name of the server.
+ * @throws IllegalArgumentException thrown if parameters fail the validation
+ * @return the observable to the PagedList<AdvisorInner> object
+ */
+ public Observable>> listByServerWithServiceResponseAsync(final String resourceGroupName, final String serverName) {
+ return listByServerSinglePageAsync(resourceGroupName, serverName)
+ .concatMap(new Func1>, Observable>>>() {
+ @Override
+ public Observable>> call(ServiceResponse> page) {
+ String nextPageLink = page.body().nextPageLink();
+ if (nextPageLink == null) {
+ return Observable.just(page);
+ }
+ return Observable.just(page).concatWith(listByServerNextWithServiceResponseAsync(nextPageLink));
+ }
+ });
+ }
+
+ /**
+ * List recommendation action advisors.
+ *
+ ServiceResponse> * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ ServiceResponse> * @param serverName The name of the server.
+ * @throws IllegalArgumentException thrown if parameters fail the validation
+ * @return the PagedList<AdvisorInner> object wrapped in {@link ServiceResponse} if successful.
+ */
+ public Observable>> listByServerSinglePageAsync(final String resourceGroupName, final String serverName) {
+ if (this.client.subscriptionId() == null) {
+ throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null.");
+ }
+ 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.apiVersion() == null) {
+ throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null.");
+ }
+ return service.listByServer(this.client.subscriptionId(), resourceGroupName, serverName, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent())
+ .flatMap(new Func1, Observable>>>() {
+ @Override
+ public Observable>> call(Response response) {
+ try {
+ ServiceResponse> result = listByServerDelegate(response);
+ return Observable.just(new ServiceResponse>(result.body(), result.response()));
+ } catch (Throwable t) {
+ return Observable.error(t);
+ }
+ }
+ });
+ }
+
+ private ServiceResponse> listByServerDelegate(Response response) throws CloudException, IOException, IllegalArgumentException {
+ return this.client.restClient().responseBuilderFactory()., CloudException>newInstance(this.client.serializerAdapter())
+ .register(200, new TypeToken>() { }.getType())
+ .registerError(CloudException.class)
+ .build(response);
+ }
+
+ /**
+ * List recommendation action advisors.
+ *
+ * @param nextPageLink The NextLink from the previous successful call to List operation.
+ * @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 PagedList<AdvisorInner> object if successful.
+ */
+ public PagedList listByServerNext(final String nextPageLink) {
+ ServiceResponse> response = listByServerNextSinglePageAsync(nextPageLink).toBlocking().single();
+ return new PagedList(response.body()) {
+ @Override
+ public Page nextPage(String nextPageLink) {
+ return listByServerNextSinglePageAsync(nextPageLink).toBlocking().single().body();
+ }
+ };
+ }
+
+ /**
+ * List recommendation action advisors.
+ *
+ * @param nextPageLink The NextLink from the previous successful call to List operation.
+ * @param serviceFuture the ServiceFuture object tracking the Retrofit calls
+ * @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> listByServerNextAsync(final String nextPageLink, final ServiceFuture> serviceFuture, final ListOperationCallback serviceCallback) {
+ return AzureServiceFuture.fromPageResponse(
+ listByServerNextSinglePageAsync(nextPageLink),
+ new Func1>>>() {
+ @Override
+ public Observable>> call(String nextPageLink) {
+ return listByServerNextSinglePageAsync(nextPageLink);
+ }
+ },
+ serviceCallback);
+ }
+
+ /**
+ * List recommendation action advisors.
+ *
+ * @param nextPageLink The NextLink from the previous successful call to List operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation
+ * @return the observable to the PagedList<AdvisorInner> object
+ */
+ public Observable> listByServerNextAsync(final String nextPageLink) {
+ return listByServerNextWithServiceResponseAsync(nextPageLink)
+ .map(new Func1>, Page>() {
+ @Override
+ public Page call(ServiceResponse> response) {
+ return response.body();
+ }
+ });
+ }
+
+ /**
+ * List recommendation action advisors.
+ *
+ * @param nextPageLink The NextLink from the previous successful call to List operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation
+ * @return the observable to the PagedList<AdvisorInner> object
+ */
+ public Observable>> listByServerNextWithServiceResponseAsync(final String nextPageLink) {
+ return listByServerNextSinglePageAsync(nextPageLink)
+ .concatMap(new Func1>, Observable>>>() {
+ @Override
+ public Observable>> call(ServiceResponse> page) {
+ String nextPageLink = page.body().nextPageLink();
+ if (nextPageLink == null) {
+ return Observable.just(page);
+ }
+ return Observable.just(page).concatWith(listByServerNextWithServiceResponseAsync(nextPageLink));
+ }
+ });
+ }
+
+ /**
+ * List recommendation action advisors.
+ *
+ ServiceResponse> * @param nextPageLink The NextLink from the previous successful call to List operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation
+ * @return the PagedList<AdvisorInner> object wrapped in {@link ServiceResponse} if successful.
+ */
+ public Observable>> listByServerNextSinglePageAsync(final String nextPageLink) {
+ if (nextPageLink == null) {
+ throw new IllegalArgumentException("Parameter nextPageLink is required and cannot be null.");
+ }
+ String nextUrl = String.format("%s", nextPageLink);
+ return service.listByServerNext(nextUrl, this.client.acceptLanguage(), this.client.userAgent())
+ .flatMap(new Func1, Observable>>>() {
+ @Override
+ public Observable>> call(Response response) {
+ try {
+ ServiceResponse> result = listByServerNextDelegate(response);
+ return Observable.just(new ServiceResponse>(result.body(), result.response()));
+ } catch (Throwable t) {
+ return Observable.error(t);
+ }
+ }
+ });
+ }
+
+ private ServiceResponse> listByServerNextDelegate(Response response) throws CloudException, IOException, IllegalArgumentException {
+ return this.client.restClient().responseBuilderFactory()., CloudException>newInstance(this.client.serializerAdapter())
+ .register(200, new TypeToken>() { }.getType())
+ .registerError(CloudException.class)
+ .build(response);
+ }
+
+}
diff --git a/sdk/mariadb/mgmt-v2018_06_01/src/main/java/com/microsoft/azure/management/mariadb/v2018_06_01/implementation/ConfigurationsImpl.java b/sdk/mariadb/mgmt-v2018_06_01/src/main/java/com/microsoft/azure/management/mariadb/v2018_06_01/implementation/ConfigurationsImpl.java
index 5f908d30377c..a23cbbac9f8b 100644
--- a/sdk/mariadb/mgmt-v2018_06_01/src/main/java/com/microsoft/azure/management/mariadb/v2018_06_01/implementation/ConfigurationsImpl.java
+++ b/sdk/mariadb/mgmt-v2018_06_01/src/main/java/com/microsoft/azure/management/mariadb/v2018_06_01/implementation/ConfigurationsImpl.java
@@ -63,10 +63,14 @@ public Configuration call(ConfigurationInner inner) {
public Observable getAsync(String resourceGroupName, String serverName, String configurationName) {
ConfigurationsInner client = this.inner();
return client.getAsync(resourceGroupName, serverName, configurationName)
- .map(new Func1() {
+ .flatMap(new Func1>() {
@Override
- public Configuration call(ConfigurationInner inner) {
- return wrapModel(inner);
+ public Observable call(ConfigurationInner inner) {
+ if (inner == null) {
+ return Observable.empty();
+ } else {
+ return Observable.just((Configuration)wrapModel(inner));
+ }
}
});
}
diff --git a/sdk/mariadb/mgmt-v2018_06_01/src/main/java/com/microsoft/azure/management/mariadb/v2018_06_01/implementation/ConfigurationsInner.java b/sdk/mariadb/mgmt-v2018_06_01/src/main/java/com/microsoft/azure/management/mariadb/v2018_06_01/implementation/ConfigurationsInner.java
index 8596165868dd..2c09a7a36d2d 100644
--- a/sdk/mariadb/mgmt-v2018_06_01/src/main/java/com/microsoft/azure/management/mariadb/v2018_06_01/implementation/ConfigurationsInner.java
+++ b/sdk/mariadb/mgmt-v2018_06_01/src/main/java/com/microsoft/azure/management/mariadb/v2018_06_01/implementation/ConfigurationsInner.java
@@ -76,7 +76,7 @@ interface ConfigurationsService {
/**
* Updates a configuration of a server.
*
- * @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 resourceGroupName The name of the resource group. The name is case insensitive.
* @param serverName The name of the server.
* @param configurationName The name of the server configuration.
* @param parameters The required parameters for updating a server configuration.
@@ -92,7 +92,7 @@ public ConfigurationInner createOrUpdate(String resourceGroupName, String server
/**
* Updates a configuration of a server.
*
- * @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 resourceGroupName The name of the resource group. The name is case insensitive.
* @param serverName The name of the server.
* @param configurationName The name of the server configuration.
* @param parameters The required parameters for updating a server configuration.
@@ -107,7 +107,7 @@ public ServiceFuture createOrUpdateAsync(String resourceGrou
/**
* Updates a configuration of a server.
*
- * @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 resourceGroupName The name of the resource group. The name is case insensitive.
* @param serverName The name of the server.
* @param configurationName The name of the server configuration.
* @param parameters The required parameters for updating a server configuration.
@@ -126,7 +126,7 @@ public ConfigurationInner call(ServiceResponse response) {
/**
* Updates a configuration of a server.
*
- * @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 resourceGroupName The name of the resource group. The name is case insensitive.
* @param serverName The name of the server.
* @param configurationName The name of the server configuration.
* @param parameters The required parameters for updating a server configuration.
@@ -160,7 +160,7 @@ public Observable> createOrUpdateWithService
/**
* Updates a configuration of a server.
*
- * @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 resourceGroupName The name of the resource group. The name is case insensitive.
* @param serverName The name of the server.
* @param configurationName The name of the server configuration.
* @param parameters The required parameters for updating a server configuration.
@@ -176,7 +176,7 @@ public ConfigurationInner beginCreateOrUpdate(String resourceGroupName, String s
/**
* Updates a configuration of a server.
*
- * @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 resourceGroupName The name of the resource group. The name is case insensitive.
* @param serverName The name of the server.
* @param configurationName The name of the server configuration.
* @param parameters The required parameters for updating a server configuration.
@@ -191,7 +191,7 @@ public ServiceFuture beginCreateOrUpdateAsync(String resourc
/**
* Updates a configuration of a server.
*
- * @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 resourceGroupName The name of the resource group. The name is case insensitive.
* @param serverName The name of the server.
* @param configurationName The name of the server configuration.
* @param parameters The required parameters for updating a server configuration.
@@ -210,7 +210,7 @@ public ConfigurationInner call(ServiceResponse response) {
/**
* Updates a configuration of a server.
*
- * @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 resourceGroupName The name of the resource group. The name is case insensitive.
* @param serverName The name of the server.
* @param configurationName The name of the server configuration.
* @param parameters The required parameters for updating a server configuration.
@@ -262,7 +262,7 @@ private ServiceResponse beginCreateOrUpdateDelegate(Response
/**
* Gets information about a configuration of server.
*
- * @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 resourceGroupName The name of the resource group. The name is case insensitive.
* @param serverName The name of the server.
* @param configurationName The name of the server configuration.
* @throws IllegalArgumentException thrown if parameters fail the validation
@@ -277,7 +277,7 @@ public ConfigurationInner get(String resourceGroupName, String serverName, Strin
/**
* Gets information about a configuration of server.
*
- * @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 resourceGroupName The name of the resource group. The name is case insensitive.
* @param serverName The name of the server.
* @param configurationName The name of the server configuration.
* @param serviceCallback the async ServiceCallback to handle successful and failed responses.
@@ -291,7 +291,7 @@ public ServiceFuture getAsync(String resourceGroupName, Stri
/**
* Gets information about a configuration of server.
*
- * @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 resourceGroupName The name of the resource group. The name is case insensitive.
* @param serverName The name of the server.
* @param configurationName The name of the server configuration.
* @throws IllegalArgumentException thrown if parameters fail the validation
@@ -309,7 +309,7 @@ public ConfigurationInner call(ServiceResponse response) {
/**
* Gets information about a configuration of server.
*
- * @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 resourceGroupName The name of the resource group. The name is case insensitive.
* @param serverName The name of the server.
* @param configurationName The name of the server configuration.
* @throws IllegalArgumentException thrown if parameters fail the validation
@@ -355,7 +355,7 @@ private ServiceResponse getDelegate(Response r
/**
* List all the configurations in a given server.
*
- * @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 resourceGroupName The name of the resource group. The name is case insensitive.
* @param serverName The name of the server.
* @throws IllegalArgumentException thrown if parameters fail the validation
* @throws CloudException thrown if the request is rejected by server
@@ -369,7 +369,7 @@ public List listByServer(String resourceGroupName, String se
/**
* List all the configurations in a given server.
*
- * @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 resourceGroupName The name of the resource group. The name is case insensitive.
* @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
@@ -382,7 +382,7 @@ public ServiceFuture> listByServerAsync(String resource
/**
* List all the configurations in a given server.
*
- * @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 resourceGroupName The name of the resource group. The name is case insensitive.
* @param serverName The name of the server.
* @throws IllegalArgumentException thrown if parameters fail the validation
* @return the observable to the List<ConfigurationInner> object
@@ -399,7 +399,7 @@ public List call(ServiceResponse> r
/**
* List all the configurations in a given server.
*
- * @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 resourceGroupName The name of the resource group. The name is case insensitive.
* @param serverName The name of the server.
* @throws IllegalArgumentException thrown if parameters fail the validation
* @return the observable to the List<ConfigurationInner> object
diff --git a/sdk/mariadb/mgmt-v2018_06_01/src/main/java/com/microsoft/azure/management/mariadb/v2018_06_01/implementation/DatabasesImpl.java b/sdk/mariadb/mgmt-v2018_06_01/src/main/java/com/microsoft/azure/management/mariadb/v2018_06_01/implementation/DatabasesImpl.java
index 8127e77e7e37..60e25117c900 100644
--- a/sdk/mariadb/mgmt-v2018_06_01/src/main/java/com/microsoft/azure/management/mariadb/v2018_06_01/implementation/DatabasesImpl.java
+++ b/sdk/mariadb/mgmt-v2018_06_01/src/main/java/com/microsoft/azure/management/mariadb/v2018_06_01/implementation/DatabasesImpl.java
@@ -64,10 +64,14 @@ public Database call(DatabaseInner inner) {
public Observable getAsync(String resourceGroupName, String serverName, String databaseName) {
DatabasesInner client = this.inner();
return client.getAsync(resourceGroupName, serverName, databaseName)
- .map(new Func1() {
+ .flatMap(new Func1>() {
@Override
- public Database call(DatabaseInner inner) {
- return wrapModel(inner);
+ public Observable call(DatabaseInner inner) {
+ if (inner == null) {
+ return Observable.empty();
+ } else {
+ return Observable.just((Database)wrapModel(inner));
+ }
}
});
}
diff --git a/sdk/mariadb/mgmt-v2018_06_01/src/main/java/com/microsoft/azure/management/mariadb/v2018_06_01/implementation/DatabasesInner.java b/sdk/mariadb/mgmt-v2018_06_01/src/main/java/com/microsoft/azure/management/mariadb/v2018_06_01/implementation/DatabasesInner.java
index ea418c9d0024..343f4dafc5e7 100644
--- a/sdk/mariadb/mgmt-v2018_06_01/src/main/java/com/microsoft/azure/management/mariadb/v2018_06_01/implementation/DatabasesInner.java
+++ b/sdk/mariadb/mgmt-v2018_06_01/src/main/java/com/microsoft/azure/management/mariadb/v2018_06_01/implementation/DatabasesInner.java
@@ -85,7 +85,7 @@ interface DatabasesService {
/**
* Creates a new database or updates an existing database.
*
- * @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 resourceGroupName The name of the resource group. The name is case insensitive.
* @param serverName The name of the server.
* @param databaseName The name of the database.
* @param parameters The required parameters for creating or updating a database.
@@ -101,7 +101,7 @@ public DatabaseInner createOrUpdate(String resourceGroupName, String serverName,
/**
* Creates a new database or updates an existing database.
*
- * @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 resourceGroupName The name of the resource group. The name is case insensitive.
* @param serverName The name of the server.
* @param databaseName The name of the database.
* @param parameters The required parameters for creating or updating a database.
@@ -116,7 +116,7 @@ public ServiceFuture createOrUpdateAsync(String resourceGroupName
/**
* Creates a new database or updates an existing database.
*
- * @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 resourceGroupName The name of the resource group. The name is case insensitive.
* @param serverName The name of the server.
* @param databaseName The name of the database.
* @param parameters The required parameters for creating or updating a database.
@@ -135,7 +135,7 @@ public DatabaseInner call(ServiceResponse response) {
/**
* Creates a new database or updates an existing database.
*
- * @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 resourceGroupName The name of the resource group. The name is case insensitive.
* @param serverName The name of the server.
* @param databaseName The name of the database.
* @param parameters The required parameters for creating or updating a database.
@@ -169,7 +169,7 @@ public Observable> createOrUpdateWithServiceRespo
/**
* Creates a new database or updates an existing database.
*
- * @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 resourceGroupName The name of the resource group. The name is case insensitive.
* @param serverName The name of the server.
* @param databaseName The name of the database.
* @param parameters The required parameters for creating or updating a database.
@@ -185,7 +185,7 @@ public DatabaseInner beginCreateOrUpdate(String resourceGroupName, String server
/**
* Creates a new database or updates an existing database.
*
- * @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 resourceGroupName The name of the resource group. The name is case insensitive.
* @param serverName The name of the server.
* @param databaseName The name of the database.
* @param parameters The required parameters for creating or updating a database.
@@ -200,7 +200,7 @@ public ServiceFuture beginCreateOrUpdateAsync(String resourceGrou
/**
* Creates a new database or updates an existing database.
*
- * @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 resourceGroupName The name of the resource group. The name is case insensitive.
* @param serverName The name of the server.
* @param databaseName The name of the database.
* @param parameters The required parameters for creating or updating a database.
@@ -219,7 +219,7 @@ public DatabaseInner call(ServiceResponse response) {
/**
* Creates a new database or updates an existing database.
*
- * @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 resourceGroupName The name of the resource group. The name is case insensitive.
* @param serverName The name of the server.
* @param databaseName The name of the database.
* @param parameters The required parameters for creating or updating a database.
@@ -272,7 +272,7 @@ private ServiceResponse beginCreateOrUpdateDelegate(Response deleteAsync(String resourceGroupName, String serverNa
/**
* Deletes a database.
*
- * @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 resourceGroupName The name of the resource group. The name is case insensitive.
* @param serverName The name of the server.
* @param databaseName The name of the database.
* @throws IllegalArgumentException thrown if parameters fail the validation
@@ -318,7 +318,7 @@ public Void call(ServiceResponse response) {
/**
* Deletes a database.
*
- * @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 resourceGroupName The name of the resource group. The name is case insensitive.
* @param serverName The name of the server.
* @param databaseName The name of the database.
* @throws IllegalArgumentException thrown if parameters fail the validation
@@ -347,7 +347,7 @@ public Observable> deleteWithServiceResponseAsync(String r
/**
* Deletes a database.
*
- * @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 resourceGroupName The name of the resource group. The name is case insensitive.
* @param serverName The name of the server.
* @param databaseName The name of the database.
* @throws IllegalArgumentException thrown if parameters fail the validation
@@ -361,7 +361,7 @@ public void beginDelete(String resourceGroupName, String serverName, String data
/**
* Deletes a database.
*
- * @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 resourceGroupName The name of the resource group. The name is case insensitive.
* @param serverName The name of the server.
* @param databaseName The name of the database.
* @param serviceCallback the async ServiceCallback to handle successful and failed responses.
@@ -375,7 +375,7 @@ public ServiceFuture beginDeleteAsync(String resourceGroupName, String ser
/**
* Deletes a database.
*
- * @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 resourceGroupName The name of the resource group. The name is case insensitive.
* @param serverName The name of the server.
* @param databaseName The name of the database.
* @throws IllegalArgumentException thrown if parameters fail the validation
@@ -393,7 +393,7 @@ public Void call(ServiceResponse response) {
/**
* Deletes a database.
*
- * @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 resourceGroupName The name of the resource group. The name is case insensitive.
* @param serverName The name of the server.
* @param databaseName The name of the database.
* @throws IllegalArgumentException thrown if parameters fail the validation
@@ -441,7 +441,7 @@ private ServiceResponse beginDeleteDelegate(Response respons
/**
* Gets information about a database.
*
- * @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 resourceGroupName The name of the resource group. The name is case insensitive.
* @param serverName The name of the server.
* @param databaseName The name of the database.
* @throws IllegalArgumentException thrown if parameters fail the validation
@@ -456,7 +456,7 @@ public DatabaseInner get(String resourceGroupName, String serverName, String dat
/**
* Gets information about a database.
*
- * @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 resourceGroupName The name of the resource group. The name is case insensitive.
* @param serverName The name of the server.
* @param databaseName The name of the database.
* @param serviceCallback the async ServiceCallback to handle successful and failed responses.
@@ -470,7 +470,7 @@ public ServiceFuture getAsync(String resourceGroupName, String se
/**
* Gets information about a database.
*
- * @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 resourceGroupName The name of the resource group. The name is case insensitive.
* @param serverName The name of the server.
* @param databaseName The name of the database.
* @throws IllegalArgumentException thrown if parameters fail the validation
@@ -488,7 +488,7 @@ public DatabaseInner call(ServiceResponse response) {
/**
* Gets information about a database.
*
- * @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 resourceGroupName The name of the resource group. The name is case insensitive.
* @param serverName The name of the server.
* @param databaseName The name of the database.
* @throws IllegalArgumentException thrown if parameters fail the validation
@@ -534,7 +534,7 @@ private ServiceResponse getDelegate(Response respon
/**
* List all the databases in a given server.
*
- * @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 resourceGroupName The name of the resource group. The name is case insensitive.
* @param serverName The name of the server.
* @throws IllegalArgumentException thrown if parameters fail the validation
* @throws CloudException thrown if the request is rejected by server
@@ -548,7 +548,7 @@ public List listByServer(String resourceGroupName, String serverN
/**
* List all the databases in a given server.
*
- * @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 resourceGroupName The name of the resource group. The name is case insensitive.
* @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
@@ -561,7 +561,7 @@ public ServiceFuture> listByServerAsync(String resourceGroup
/**
* List all the databases in a given server.
*
- * @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 resourceGroupName The name of the resource group. The name is case insensitive.
* @param serverName The name of the server.
* @throws IllegalArgumentException thrown if parameters fail the validation
* @return the observable to the List<DatabaseInner> object
@@ -578,7 +578,7 @@ public List call(ServiceResponse> response) {
/**
* List all the databases in a given server.
*
- * @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 resourceGroupName The name of the resource group. The name is case insensitive.
* @param serverName The name of the server.
* @throws IllegalArgumentException thrown if parameters fail the validation
* @return the observable to the List<DatabaseInner> object
diff --git a/sdk/mariadb/mgmt-v2018_06_01/src/main/java/com/microsoft/azure/management/mariadb/v2018_06_01/implementation/FirewallRulesImpl.java b/sdk/mariadb/mgmt-v2018_06_01/src/main/java/com/microsoft/azure/management/mariadb/v2018_06_01/implementation/FirewallRulesImpl.java
index e7eff8d9b5ac..69d301af4490 100644
--- a/sdk/mariadb/mgmt-v2018_06_01/src/main/java/com/microsoft/azure/management/mariadb/v2018_06_01/implementation/FirewallRulesImpl.java
+++ b/sdk/mariadb/mgmt-v2018_06_01/src/main/java/com/microsoft/azure/management/mariadb/v2018_06_01/implementation/FirewallRulesImpl.java
@@ -64,10 +64,14 @@ public FirewallRule call(FirewallRuleInner inner) {
public Observable getAsync(String resourceGroupName, String serverName, String firewallRuleName) {
FirewallRulesInner client = this.inner();
return client.getAsync(resourceGroupName, serverName, firewallRuleName)
- .map(new Func1() {
+ .flatMap(new Func1>() {
@Override
- public FirewallRule call(FirewallRuleInner inner) {
- return wrapModel(inner);
+ public Observable call(FirewallRuleInner inner) {
+ if (inner == null) {
+ return Observable.empty();
+ } else {
+ return Observable.just((FirewallRule)wrapModel(inner));
+ }
}
});
}
diff --git a/sdk/mariadb/mgmt-v2018_06_01/src/main/java/com/microsoft/azure/management/mariadb/v2018_06_01/implementation/FirewallRulesInner.java b/sdk/mariadb/mgmt-v2018_06_01/src/main/java/com/microsoft/azure/management/mariadb/v2018_06_01/implementation/FirewallRulesInner.java
index 4f271ecf547c..49fefbbe28b9 100644
--- a/sdk/mariadb/mgmt-v2018_06_01/src/main/java/com/microsoft/azure/management/mariadb/v2018_06_01/implementation/FirewallRulesInner.java
+++ b/sdk/mariadb/mgmt-v2018_06_01/src/main/java/com/microsoft/azure/management/mariadb/v2018_06_01/implementation/FirewallRulesInner.java
@@ -85,7 +85,7 @@ interface FirewallRulesService {
/**
* Creates a new firewall rule or updates an existing firewall rule.
*
- * @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 resourceGroupName The name of the resource group. The name is case insensitive.
* @param serverName The name of the server.
* @param firewallRuleName The name of the server firewall rule.
* @param parameters The required parameters for creating or updating a firewall rule.
@@ -101,7 +101,7 @@ public FirewallRuleInner createOrUpdate(String resourceGroupName, String serverN
/**
* Creates a new firewall rule or updates an existing firewall rule.
*
- * @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 resourceGroupName The name of the resource group. The name is case insensitive.
* @param serverName The name of the server.
* @param firewallRuleName The name of the server firewall rule.
* @param parameters The required parameters for creating or updating a firewall rule.
@@ -116,7 +116,7 @@ public ServiceFuture createOrUpdateAsync(String resourceGroup
/**
* Creates a new firewall rule or updates an existing firewall rule.
*
- * @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 resourceGroupName The name of the resource group. The name is case insensitive.
* @param serverName The name of the server.
* @param firewallRuleName The name of the server firewall rule.
* @param parameters The required parameters for creating or updating a firewall rule.
@@ -135,7 +135,7 @@ public FirewallRuleInner call(ServiceResponse response) {
/**
* Creates a new firewall rule or updates an existing firewall rule.
*
- * @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 resourceGroupName The name of the resource group. The name is case insensitive.
* @param serverName The name of the server.
* @param firewallRuleName The name of the server firewall rule.
* @param parameters The required parameters for creating or updating a firewall rule.
@@ -169,7 +169,7 @@ public Observable> createOrUpdateWithServiceR
/**
* Creates a new firewall rule or updates an existing firewall rule.
*
- * @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 resourceGroupName The name of the resource group. The name is case insensitive.
* @param serverName The name of the server.
* @param firewallRuleName The name of the server firewall rule.
* @param parameters The required parameters for creating or updating a firewall rule.
@@ -185,7 +185,7 @@ public FirewallRuleInner beginCreateOrUpdate(String resourceGroupName, String se
/**
* Creates a new firewall rule or updates an existing firewall rule.
*
- * @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 resourceGroupName The name of the resource group. The name is case insensitive.
* @param serverName The name of the server.
* @param firewallRuleName The name of the server firewall rule.
* @param parameters The required parameters for creating or updating a firewall rule.
@@ -200,7 +200,7 @@ public ServiceFuture beginCreateOrUpdateAsync(String resource
/**
* Creates a new firewall rule or updates an existing firewall rule.
*
- * @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 resourceGroupName The name of the resource group. The name is case insensitive.
* @param serverName The name of the server.
* @param firewallRuleName The name of the server firewall rule.
* @param parameters The required parameters for creating or updating a firewall rule.
@@ -219,7 +219,7 @@ public FirewallRuleInner call(ServiceResponse response) {
/**
* Creates a new firewall rule or updates an existing firewall rule.
*
- * @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 resourceGroupName The name of the resource group. The name is case insensitive.
* @param serverName The name of the server.
* @param firewallRuleName The name of the server firewall rule.
* @param parameters The required parameters for creating or updating a firewall rule.
@@ -272,7 +272,7 @@ private ServiceResponse beginCreateOrUpdateDelegate(Response<
/**
* Deletes a server firewall rule.
*
- * @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 resourceGroupName The name of the resource group. The name is case insensitive.
* @param serverName The name of the server.
* @param firewallRuleName The name of the server firewall rule.
* @throws IllegalArgumentException thrown if parameters fail the validation
@@ -286,7 +286,7 @@ public void delete(String resourceGroupName, String serverName, String firewallR
/**
* Deletes a server firewall rule.
*
- * @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 resourceGroupName The name of the resource group. The name is case insensitive.
* @param serverName The name of the server.
* @param firewallRuleName The name of the server firewall rule.
* @param serviceCallback the async ServiceCallback to handle successful and failed responses.
@@ -300,7 +300,7 @@ public ServiceFuture deleteAsync(String resourceGroupName, String serverNa
/**
* Deletes a server firewall rule.
*
- * @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 resourceGroupName The name of the resource group. The name is case insensitive.
* @param serverName The name of the server.
* @param firewallRuleName The name of the server firewall rule.
* @throws IllegalArgumentException thrown if parameters fail the validation
@@ -318,7 +318,7 @@ public Void call(ServiceResponse response) {
/**
* Deletes a server firewall rule.
*
- * @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 resourceGroupName The name of the resource group. The name is case insensitive.
* @param serverName The name of the server.
* @param firewallRuleName The name of the server firewall rule.
* @throws IllegalArgumentException thrown if parameters fail the validation
@@ -347,7 +347,7 @@ public Observable> deleteWithServiceResponseAsync(String r
/**
* Deletes a server firewall rule.
*
- * @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 resourceGroupName The name of the resource group. The name is case insensitive.
* @param serverName The name of the server.
* @param firewallRuleName The name of the server firewall rule.
* @throws IllegalArgumentException thrown if parameters fail the validation
@@ -361,7 +361,7 @@ public void beginDelete(String resourceGroupName, String serverName, String fire
/**
* Deletes a server firewall rule.
*
- * @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 resourceGroupName The name of the resource group. The name is case insensitive.
* @param serverName The name of the server.
* @param firewallRuleName The name of the server firewall rule.
* @param serviceCallback the async ServiceCallback to handle successful and failed responses.
@@ -375,7 +375,7 @@ public ServiceFuture beginDeleteAsync(String resourceGroupName, String ser
/**
* Deletes a server firewall rule.
*
- * @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 resourceGroupName The name of the resource group. The name is case insensitive.
* @param serverName The name of the server.
* @param firewallRuleName The name of the server firewall rule.
* @throws IllegalArgumentException thrown if parameters fail the validation
@@ -393,7 +393,7 @@ public Void call(ServiceResponse response) {
/**
* Deletes a server firewall rule.
*
- * @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 resourceGroupName The name of the resource group. The name is case insensitive.
* @param serverName The name of the server.
* @param firewallRuleName The name of the server firewall rule.
* @throws IllegalArgumentException thrown if parameters fail the validation
@@ -441,7 +441,7 @@ private ServiceResponse beginDeleteDelegate(Response respons
/**
* Gets information about a server firewall rule.
*
- * @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 resourceGroupName The name of the resource group. The name is case insensitive.
* @param serverName The name of the server.
* @param firewallRuleName The name of the server firewall rule.
* @throws IllegalArgumentException thrown if parameters fail the validation
@@ -456,7 +456,7 @@ public FirewallRuleInner get(String resourceGroupName, String serverName, String
/**
* Gets information about a server firewall rule.
*
- * @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 resourceGroupName The name of the resource group. The name is case insensitive.
* @param serverName The name of the server.
* @param firewallRuleName The name of the server firewall rule.
* @param serviceCallback the async ServiceCallback to handle successful and failed responses.
@@ -470,7 +470,7 @@ public ServiceFuture getAsync(String resourceGroupName, Strin
/**
* Gets information about a server firewall rule.
*
- * @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 resourceGroupName The name of the resource group. The name is case insensitive.
* @param serverName The name of the server.
* @param firewallRuleName The name of the server firewall rule.
* @throws IllegalArgumentException thrown if parameters fail the validation
@@ -488,7 +488,7 @@ public FirewallRuleInner call(ServiceResponse response) {
/**
* Gets information about a server firewall rule.
*
- * @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 resourceGroupName The name of the resource group. The name is case insensitive.
* @param serverName The name of the server.
* @param firewallRuleName The name of the server firewall rule.
* @throws IllegalArgumentException thrown if parameters fail the validation
@@ -534,7 +534,7 @@ private ServiceResponse getDelegate(Response re
/**
* List all the firewall rules in a given server.
*
- * @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 resourceGroupName The name of the resource group. The name is case insensitive.
* @param serverName The name of the server.
* @throws IllegalArgumentException thrown if parameters fail the validation
* @throws CloudException thrown if the request is rejected by server
@@ -548,7 +548,7 @@ public List listByServer(String resourceGroupName, String ser
/**
* List all the firewall rules in a given server.
*
- * @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 resourceGroupName The name of the resource group. The name is case insensitive.
* @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
@@ -561,7 +561,7 @@ public ServiceFuture> listByServerAsync(String resourceG
/**
* List all the firewall rules in a given server.
*
- * @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 resourceGroupName The name of the resource group. The name is case insensitive.
* @param serverName The name of the server.
* @throws IllegalArgumentException thrown if parameters fail the validation
* @return the observable to the List<FirewallRuleInner> object
@@ -578,7 +578,7 @@ public List call(ServiceResponse> res
/**
* List all the firewall rules in a given server.
*
- * @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 resourceGroupName The name of the resource group. The name is case insensitive.
* @param serverName The name of the server.
* @throws IllegalArgumentException thrown if parameters fail the validation
* @return the observable to the List<FirewallRuleInner> object
diff --git a/sdk/mariadb/mgmt-v2018_06_01/src/main/java/com/microsoft/azure/management/mariadb/v2018_06_01/implementation/LocationBasedPerformanceTiersImpl.java b/sdk/mariadb/mgmt-v2018_06_01/src/main/java/com/microsoft/azure/management/mariadb/v2018_06_01/implementation/LocationBasedPerformanceTiersImpl.java
index 5aa1cd49cbdd..07bfdb1c86aa 100644
--- a/sdk/mariadb/mgmt-v2018_06_01/src/main/java/com/microsoft/azure/management/mariadb/v2018_06_01/implementation/LocationBasedPerformanceTiersImpl.java
+++ b/sdk/mariadb/mgmt-v2018_06_01/src/main/java/com/microsoft/azure/management/mariadb/v2018_06_01/implementation/LocationBasedPerformanceTiersImpl.java
@@ -4,7 +4,7 @@
* license information.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
- * abc
+ *
*/
package com.microsoft.azure.management.mariadb.v2018_06_01.implementation;
@@ -28,7 +28,7 @@ public MariaDBManager manager() {
return this.manager;
}
- private PerformanceTierPropertiesImpl wrapPerformanceTierPropertiesModel(PerformanceTierPropertiesInner inner) {
+ private PerformanceTierPropertiesImpl wrapModel(PerformanceTierPropertiesInner inner) {
return new PerformanceTierPropertiesImpl(inner, manager());
}
@@ -45,7 +45,7 @@ public Observable call(List() {
@Override
public PerformanceTierProperties call(PerformanceTierPropertiesInner inner) {
- return wrapPerformanceTierPropertiesModel(inner);
+ return wrapModel(inner);
}
});
}
diff --git a/sdk/mariadb/mgmt-v2018_06_01/src/main/java/com/microsoft/azure/management/mariadb/v2018_06_01/implementation/LocationBasedRecommendedActionSessionsOperationStatusImpl.java b/sdk/mariadb/mgmt-v2018_06_01/src/main/java/com/microsoft/azure/management/mariadb/v2018_06_01/implementation/LocationBasedRecommendedActionSessionsOperationStatusImpl.java
new file mode 100644
index 000000000000..90ab4598a473
--- /dev/null
+++ b/sdk/mariadb/mgmt-v2018_06_01/src/main/java/com/microsoft/azure/management/mariadb/v2018_06_01/implementation/LocationBasedRecommendedActionSessionsOperationStatusImpl.java
@@ -0,0 +1,42 @@
+/**
+ * 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.
+ * abc
+ */
+
+package com.microsoft.azure.management.mariadb.v2018_06_01.implementation;
+
+import com.microsoft.azure.arm.model.implementation.WrapperImpl;
+import com.microsoft.azure.management.mariadb.v2018_06_01.LocationBasedRecommendedActionSessionsOperationStatus;
+import rx.functions.Func1;
+import rx.Observable;
+import com.microsoft.azure.management.mariadb.v2018_06_01.RecommendedActionSessionsOperationStatus;
+
+class LocationBasedRecommendedActionSessionsOperationStatusImpl extends WrapperImpl implements LocationBasedRecommendedActionSessionsOperationStatus {
+ private final MariaDBManager manager;
+
+ LocationBasedRecommendedActionSessionsOperationStatusImpl(MariaDBManager manager) {
+ super(manager.inner().locationBasedRecommendedActionSessionsOperationStatus());
+ this.manager = manager;
+ }
+
+ public MariaDBManager manager() {
+ return this.manager;
+ }
+
+ @Override
+ public Observable getAsync(String locationName, String operationId) {
+ LocationBasedRecommendedActionSessionsOperationStatusInner client = this.inner();
+ return client.getAsync(locationName, operationId)
+ .map(new Func1() {
+ @Override
+ public RecommendedActionSessionsOperationStatus call(RecommendedActionSessionsOperationStatusInner inner) {
+ return new RecommendedActionSessionsOperationStatusImpl(inner, manager());
+ }
+ });
+ }
+
+}
diff --git a/sdk/mariadb/mgmt-v2018_06_01/src/main/java/com/microsoft/azure/management/mariadb/v2018_06_01/implementation/LocationBasedRecommendedActionSessionsOperationStatusInner.java b/sdk/mariadb/mgmt-v2018_06_01/src/main/java/com/microsoft/azure/management/mariadb/v2018_06_01/implementation/LocationBasedRecommendedActionSessionsOperationStatusInner.java
new file mode 100644
index 000000000000..76296762fe6c
--- /dev/null
+++ b/sdk/mariadb/mgmt-v2018_06_01/src/main/java/com/microsoft/azure/management/mariadb/v2018_06_01/implementation/LocationBasedRecommendedActionSessionsOperationStatusInner.java
@@ -0,0 +1,146 @@
+/**
+ * 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.mariadb.v2018_06_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 java.io.IOException;
+import okhttp3.ResponseBody;
+import retrofit2.http.GET;
+import retrofit2.http.Header;
+import retrofit2.http.Headers;
+import retrofit2.http.Path;
+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 LocationBasedRecommendedActionSessionsOperationStatus.
+ */
+public class LocationBasedRecommendedActionSessionsOperationStatusInner {
+ /** The Retrofit service to perform REST calls. */
+ private LocationBasedRecommendedActionSessionsOperationStatusService service;
+ /** The service client containing this operation class. */
+ private MariaDBManagementClientImpl client;
+
+ /**
+ * Initializes an instance of LocationBasedRecommendedActionSessionsOperationStatusInner.
+ *
+ * @param retrofit the Retrofit instance built from a Retrofit Builder.
+ * @param client the instance of the service client containing this operation class.
+ */
+ public LocationBasedRecommendedActionSessionsOperationStatusInner(Retrofit retrofit, MariaDBManagementClientImpl client) {
+ this.service = retrofit.create(LocationBasedRecommendedActionSessionsOperationStatusService.class);
+ this.client = client;
+ }
+
+ /**
+ * The interface defining all the services for LocationBasedRecommendedActionSessionsOperationStatus to be
+ * used by Retrofit to perform actually REST calls.
+ */
+ interface LocationBasedRecommendedActionSessionsOperationStatusService {
+ @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.mariadb.v2018_06_01.LocationBasedRecommendedActionSessionsOperationStatus get" })
+ @GET("subscriptions/{subscriptionId}/providers/Microsoft.DBforMariaDB/locations/{locationName}/recommendedActionSessionsAzureAsyncOperation/{operationId}")
+ Observable> get(@Path("subscriptionId") String subscriptionId, @Path("locationName") String locationName, @Path("operationId") String operationId, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent);
+
+ }
+
+ /**
+ * Recommendation action session operation status.
+ *
+ * @param locationName The name of the location.
+ * @param operationId The operation identifier.
+ * @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 RecommendedActionSessionsOperationStatusInner object if successful.
+ */
+ public RecommendedActionSessionsOperationStatusInner get(String locationName, String operationId) {
+ return getWithServiceResponseAsync(locationName, operationId).toBlocking().single().body();
+ }
+
+ /**
+ * Recommendation action session operation status.
+ *
+ * @param locationName The name of the location.
+ * @param operationId The operation identifier.
+ * @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 locationName, String operationId, final ServiceCallback serviceCallback) {
+ return ServiceFuture.fromResponse(getWithServiceResponseAsync(locationName, operationId), serviceCallback);
+ }
+
+ /**
+ * Recommendation action session operation status.
+ *
+ * @param locationName The name of the location.
+ * @param operationId The operation identifier.
+ * @throws IllegalArgumentException thrown if parameters fail the validation
+ * @return the observable to the RecommendedActionSessionsOperationStatusInner object
+ */
+ public Observable