diff --git a/postgresql/resource-manager/v2017_12_01/pom.xml b/postgresql/resource-manager/v2017_12_01/pom.xml
index 5b22fbce26a9c..522b61d741410 100644
--- a/postgresql/resource-manager/v2017_12_01/pom.xml
+++ b/postgresql/resource-manager/v2017_12_01/pom.xml
@@ -11,15 +11,15 @@
com.microsoft.azure
azure-arm-parent
- 1.0.0
+ 0.0.3-beta
../../../pom.xml
- azure-mgmt-postgresql
- 1.0.0-beta-2
+ azure-mgmt-dbforpostgresql
+ 1.0.0-beta
jar
Microsoft Azure SDK for DBforPostgreSQL Management
This package contains Microsoft DBforPostgreSQL Management SDK.
- https://github.com/Azure/azure-libraries-for-java
+ https://github.com/Azure/azure-sdk-for-java
The MIT License (MIT)
@@ -28,8 +28,8 @@
- scm:git:https://github.com/Azure/azure-libraries-for-java
- scm:git:git@github.com:Azure/azure-libraries-for-java.git
+ scm:git:https://github.com/Azure/azure-sdk-for-java
+ scm:git:git@github.com:Azure/azure-sdk-for-java.git
HEAD
diff --git a/postgresql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/postgresql/v2017_12_01/Configuration.java b/postgresql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/postgresql/v2017_12_01/Configuration.java
index f7b401c4c7ed7..dfed0ae000132 100644
--- a/postgresql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/postgresql/v2017_12_01/Configuration.java
+++ b/postgresql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/postgresql/v2017_12_01/Configuration.java
@@ -16,12 +16,12 @@
import com.microsoft.azure.arm.model.Appliable;
import com.microsoft.azure.arm.model.Creatable;
import com.microsoft.azure.arm.resources.models.HasManager;
-import com.microsoft.azure.management.postgresql.v2017_12_01.implementation.PostgreSQLManager;
+import com.microsoft.azure.management.postgresql.v2017_12_01.implementation.DBforPostgreSQLManager;
/**
* Type representing Configuration.
*/
-public interface Configuration extends HasInner, Indexable, Refreshable, Updatable, HasManager {
+public interface Configuration extends HasInner, Indexable, Refreshable, Updatable, HasManager {
/**
* @return the allowedValues value.
*/
@@ -89,6 +89,9 @@ 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 serverName The name of the server
+ * @return the next definition stage
*/
WithCreate withExistingServer(String resourceGroupName, String serverName);
}
@@ -99,6 +102,8 @@ interface WithServer {
interface WithSource {
/**
* Specifies source.
+ * @param source Source of the configuration
+ * @return the next definition stage
*/
WithCreate withSource(String source);
}
@@ -109,6 +114,8 @@ interface WithSource {
interface WithValue {
/**
* Specifies value.
+ * @param value Value of the configuration
+ * @return the next definition stage
*/
WithCreate withValue(String value);
}
@@ -137,6 +144,8 @@ interface UpdateStages {
interface WithSource {
/**
* Specifies source.
+ * @param source Source of the configuration
+ * @return the next update stage
*/
Update withSource(String source);
}
@@ -147,6 +156,8 @@ interface WithSource {
interface WithValue {
/**
* Specifies value.
+ * @param value Value of the configuration
+ * @return the next update stage
*/
Update withValue(String value);
}
diff --git a/postgresql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/postgresql/v2017_12_01/Database.java b/postgresql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/postgresql/v2017_12_01/Database.java
index 38243afa003d8..b9e98d5d67f2b 100644
--- a/postgresql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/postgresql/v2017_12_01/Database.java
+++ b/postgresql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/postgresql/v2017_12_01/Database.java
@@ -16,12 +16,12 @@
import com.microsoft.azure.arm.model.Appliable;
import com.microsoft.azure.arm.model.Creatable;
import com.microsoft.azure.arm.resources.models.HasManager;
-import com.microsoft.azure.management.postgresql.v2017_12_01.implementation.PostgreSQLManager;
+import com.microsoft.azure.management.postgresql.v2017_12_01.implementation.DBforPostgreSQLManager;
/**
* Type representing Database.
*/
-public interface Database extends HasInner, Indexable, Refreshable, Updatable, HasManager {
+public interface Database extends HasInner, Indexable, Refreshable, Updatable, HasManager {
/**
* @return the charset value.
*/
@@ -69,6 +69,9 @@ 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 serverName The name of the server
+ * @return the next definition stage
*/
WithCreate withExistingServer(String resourceGroupName, String serverName);
}
@@ -79,6 +82,8 @@ interface WithServer {
interface WithCharset {
/**
* Specifies charset.
+ * @param charset The charset of the database
+ * @return the next definition stage
*/
WithCreate withCharset(String charset);
}
@@ -89,6 +94,8 @@ interface WithCharset {
interface WithCollation {
/**
* Specifies collation.
+ * @param collation The collation of the database
+ * @return the next definition stage
*/
WithCreate withCollation(String collation);
}
@@ -117,6 +124,8 @@ interface UpdateStages {
interface WithCharset {
/**
* Specifies charset.
+ * @param charset The charset of the database
+ * @return the next update stage
*/
Update withCharset(String charset);
}
@@ -127,6 +136,8 @@ interface WithCharset {
interface WithCollation {
/**
* Specifies collation.
+ * @param collation The collation of the database
+ * @return the next update stage
*/
Update withCollation(String collation);
}
diff --git a/postgresql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/postgresql/v2017_12_01/FirewallRule.java b/postgresql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/postgresql/v2017_12_01/FirewallRule.java
index 00bbd8e5345e4..c9518fcd53d3c 100644
--- a/postgresql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/postgresql/v2017_12_01/FirewallRule.java
+++ b/postgresql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/postgresql/v2017_12_01/FirewallRule.java
@@ -16,12 +16,12 @@
import com.microsoft.azure.arm.model.Appliable;
import com.microsoft.azure.arm.model.Creatable;
import com.microsoft.azure.arm.resources.models.HasManager;
-import com.microsoft.azure.management.postgresql.v2017_12_01.implementation.PostgreSQLManager;
+import com.microsoft.azure.management.postgresql.v2017_12_01.implementation.DBforPostgreSQLManager;
/**
* Type representing FirewallRule.
*/
-public interface FirewallRule extends HasInner, Indexable, Refreshable, Updatable, HasManager {
+public interface FirewallRule extends HasInner, Indexable, Refreshable, Updatable, HasManager {
/**
* @return the endIpAddress value.
*/
@@ -69,6 +69,9 @@ 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 serverName The name of the server
+ * @return the next definition stage
*/
WithEndIpAddress withExistingServer(String resourceGroupName, String serverName);
}
@@ -79,6 +82,8 @@ interface WithServer {
interface WithEndIpAddress {
/**
* Specifies endIpAddress.
+ * @param endIpAddress The end IP address of the server firewall rule. Must be IPv4 format
+ * @return the next definition stage
*/
WithStartIpAddress withEndIpAddress(String endIpAddress);
}
@@ -89,6 +94,8 @@ interface WithEndIpAddress {
interface WithStartIpAddress {
/**
* Specifies startIpAddress.
+ * @param startIpAddress The start IP address of the server firewall rule. Must be IPv4 format
+ * @return the next definition stage
*/
WithCreate withStartIpAddress(String startIpAddress);
}
diff --git a/postgresql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/postgresql/v2017_12_01/LogFile.java b/postgresql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/postgresql/v2017_12_01/LogFile.java
index a4c07d1bc8074..f84c9d2b40bae 100644
--- a/postgresql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/postgresql/v2017_12_01/LogFile.java
+++ b/postgresql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/postgresql/v2017_12_01/LogFile.java
@@ -11,13 +11,13 @@
import com.microsoft.azure.arm.model.HasInner;
import com.microsoft.azure.management.postgresql.v2017_12_01.implementation.LogFileInner;
import com.microsoft.azure.arm.resources.models.HasManager;
-import com.microsoft.azure.management.postgresql.v2017_12_01.implementation.PostgreSQLManager;
+import com.microsoft.azure.management.postgresql.v2017_12_01.implementation.DBforPostgreSQLManager;
import org.joda.time.DateTime;
/**
* Type representing LogFile.
*/
-public interface LogFile extends HasInner, HasManager {
+public interface LogFile extends HasInner, HasManager {
/**
* @return the createdTime value.
*/
diff --git a/postgresql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/postgresql/v2017_12_01/NameAvailability.java b/postgresql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/postgresql/v2017_12_01/NameAvailability.java
index 797ec2d3ec18d..e01bc613cc856 100644
--- a/postgresql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/postgresql/v2017_12_01/NameAvailability.java
+++ b/postgresql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/postgresql/v2017_12_01/NameAvailability.java
@@ -10,13 +10,13 @@
import com.microsoft.azure.arm.model.HasInner;
import com.microsoft.azure.arm.resources.models.HasManager;
-import com.microsoft.azure.management.postgresql.v2017_12_01.implementation.PostgreSQLManager;
+import com.microsoft.azure.management.postgresql.v2017_12_01.implementation.DBforPostgreSQLManager;
import com.microsoft.azure.management.postgresql.v2017_12_01.implementation.NameAvailabilityInner;
/**
* Type representing NameAvailability.
*/
-public interface NameAvailability extends HasInner, HasManager {
+public interface NameAvailability extends HasInner, HasManager {
/**
* @return the message value.
*/
diff --git a/postgresql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/postgresql/v2017_12_01/NameAvailabilityRequest.java b/postgresql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/postgresql/v2017_12_01/NameAvailabilityRequest.java
index 35a70cd19df87..ff4c28ec9c73f 100644
--- a/postgresql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/postgresql/v2017_12_01/NameAvailabilityRequest.java
+++ b/postgresql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/postgresql/v2017_12_01/NameAvailabilityRequest.java
@@ -27,7 +27,7 @@ public class NameAvailabilityRequest {
private String type;
/**
- * Get the name value.
+ * Get resource name to verify.
*
* @return the name value
*/
@@ -36,7 +36,7 @@ public String name() {
}
/**
- * Set the name value.
+ * Set resource name to verify.
*
* @param name the name value to set
* @return the NameAvailabilityRequest object itself.
@@ -47,7 +47,7 @@ public NameAvailabilityRequest withName(String name) {
}
/**
- * Get the type value.
+ * Get resource type used for verification.
*
* @return the type value
*/
@@ -56,7 +56,7 @@ public String type() {
}
/**
- * Set the type value.
+ * Set resource type used for verification.
*
* @param type the type value to set
* @return the NameAvailabilityRequest object itself.
diff --git a/postgresql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/postgresql/v2017_12_01/OperationDisplay.java b/postgresql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/postgresql/v2017_12_01/OperationDisplay.java
index b21e3178fe2b7..a53ae09c30102 100644
--- a/postgresql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/postgresql/v2017_12_01/OperationDisplay.java
+++ b/postgresql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/postgresql/v2017_12_01/OperationDisplay.java
@@ -39,7 +39,7 @@ public class OperationDisplay {
private String description;
/**
- * Get the provider value.
+ * Get operation resource provider name.
*
* @return the provider value
*/
@@ -48,7 +48,7 @@ public String provider() {
}
/**
- * Get the resource value.
+ * Get resource on which the operation is performed.
*
* @return the resource value
*/
@@ -57,7 +57,7 @@ public String resource() {
}
/**
- * Get the operation value.
+ * Get localized friendly name for the operation.
*
* @return the operation value
*/
@@ -66,7 +66,7 @@ public String operation() {
}
/**
- * Get the description value.
+ * Get operation description.
*
* @return the description value
*/
diff --git a/postgresql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/postgresql/v2017_12_01/OperationListResult.java b/postgresql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/postgresql/v2017_12_01/OperationListResult.java
index e43de78f4a82a..2c5c4a198fcc3 100644
--- a/postgresql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/postgresql/v2017_12_01/OperationListResult.java
+++ b/postgresql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/postgresql/v2017_12_01/OperationListResult.java
@@ -10,7 +10,7 @@
import com.microsoft.azure.arm.model.HasInner;
import com.microsoft.azure.arm.resources.models.HasManager;
-import com.microsoft.azure.management.postgresql.v2017_12_01.implementation.PostgreSQLManager;
+import com.microsoft.azure.management.postgresql.v2017_12_01.implementation.DBforPostgreSQLManager;
import com.microsoft.azure.management.postgresql.v2017_12_01.implementation.OperationListResultInner;
import com.microsoft.azure.management.postgresql.v2017_12_01.implementation.OperationInner;
import java.util.List;
@@ -18,7 +18,7 @@
/**
* Type representing OperationListResult.
*/
-public interface OperationListResult extends HasInner, HasManager {
+public interface OperationListResult extends HasInner, HasManager {
/**
* @return the value value.
*/
diff --git a/postgresql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/postgresql/v2017_12_01/PerformanceTierProperties.java b/postgresql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/postgresql/v2017_12_01/PerformanceTierProperties.java
index 0ca553cacd74c..7401e17576158 100644
--- a/postgresql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/postgresql/v2017_12_01/PerformanceTierProperties.java
+++ b/postgresql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/postgresql/v2017_12_01/PerformanceTierProperties.java
@@ -11,13 +11,13 @@
import com.microsoft.azure.arm.model.HasInner;
import com.microsoft.azure.management.postgresql.v2017_12_01.implementation.PerformanceTierPropertiesInner;
import com.microsoft.azure.arm.resources.models.HasManager;
-import com.microsoft.azure.management.postgresql.v2017_12_01.implementation.PostgreSQLManager;
+import com.microsoft.azure.management.postgresql.v2017_12_01.implementation.DBforPostgreSQLManager;
import java.util.List;
/**
* Type representing PerformanceTierProperties.
*/
-public interface PerformanceTierProperties extends HasInner, HasManager {
+public interface PerformanceTierProperties extends HasInner, HasManager {
/**
* @return the id value.
*/
diff --git a/postgresql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/postgresql/v2017_12_01/PerformanceTierServiceLevelObjectives.java b/postgresql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/postgresql/v2017_12_01/PerformanceTierServiceLevelObjectives.java
index 5f0ddf26f8203..bfcd9a495bc3f 100644
--- a/postgresql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/postgresql/v2017_12_01/PerformanceTierServiceLevelObjectives.java
+++ b/postgresql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/postgresql/v2017_12_01/PerformanceTierServiceLevelObjectives.java
@@ -63,7 +63,7 @@ public class PerformanceTierServiceLevelObjectives {
private Integer minStorageMB;
/**
- * Get the id value.
+ * Get iD for the service level objective.
*
* @return the id value
*/
@@ -72,7 +72,7 @@ public String id() {
}
/**
- * Set the id value.
+ * Set iD for the service level objective.
*
* @param id the id value to set
* @return the PerformanceTierServiceLevelObjectives object itself.
@@ -83,7 +83,7 @@ public PerformanceTierServiceLevelObjectives withId(String id) {
}
/**
- * Get the edition value.
+ * Get edition of the performance tier.
*
* @return the edition value
*/
@@ -92,7 +92,7 @@ public String edition() {
}
/**
- * Set the edition value.
+ * Set edition of the performance tier.
*
* @param edition the edition value to set
* @return the PerformanceTierServiceLevelObjectives object itself.
@@ -103,7 +103,7 @@ public PerformanceTierServiceLevelObjectives withEdition(String edition) {
}
/**
- * Get the vCore value.
+ * Get vCore associated with the service level objective.
*
* @return the vCore value
*/
@@ -112,7 +112,7 @@ public Integer vCore() {
}
/**
- * Set the vCore value.
+ * Set vCore associated with the service level objective.
*
* @param vCore the vCore value to set
* @return the PerformanceTierServiceLevelObjectives object itself.
@@ -123,7 +123,7 @@ public PerformanceTierServiceLevelObjectives withVCore(Integer vCore) {
}
/**
- * Get the hardwareGeneration value.
+ * Get hardware generation associated with the service level objective.
*
* @return the hardwareGeneration value
*/
@@ -132,7 +132,7 @@ public String hardwareGeneration() {
}
/**
- * Set the hardwareGeneration value.
+ * Set hardware generation associated with the service level objective.
*
* @param hardwareGeneration the hardwareGeneration value to set
* @return the PerformanceTierServiceLevelObjectives object itself.
@@ -143,7 +143,7 @@ public PerformanceTierServiceLevelObjectives withHardwareGeneration(String hardw
}
/**
- * Get the maxBackupRetentionDays value.
+ * Get maximum Backup retention in days for the performance tier edition.
*
* @return the maxBackupRetentionDays value
*/
@@ -152,7 +152,7 @@ public Integer maxBackupRetentionDays() {
}
/**
- * Set the maxBackupRetentionDays value.
+ * Set maximum Backup retention in days for the performance tier edition.
*
* @param maxBackupRetentionDays the maxBackupRetentionDays value to set
* @return the PerformanceTierServiceLevelObjectives object itself.
@@ -163,7 +163,7 @@ public PerformanceTierServiceLevelObjectives withMaxBackupRetentionDays(Integer
}
/**
- * Get the minBackupRetentionDays value.
+ * Get minimum Backup retention in days for the performance tier edition.
*
* @return the minBackupRetentionDays value
*/
@@ -172,7 +172,7 @@ public Integer minBackupRetentionDays() {
}
/**
- * Set the minBackupRetentionDays value.
+ * Set minimum Backup retention in days for the performance tier edition.
*
* @param minBackupRetentionDays the minBackupRetentionDays value to set
* @return the PerformanceTierServiceLevelObjectives object itself.
@@ -183,7 +183,7 @@ public PerformanceTierServiceLevelObjectives withMinBackupRetentionDays(Integer
}
/**
- * Get the maxStorageMB value.
+ * Get max storage allowed for a server.
*
* @return the maxStorageMB value
*/
@@ -192,7 +192,7 @@ public Integer maxStorageMB() {
}
/**
- * Set the maxStorageMB value.
+ * Set max storage allowed for a server.
*
* @param maxStorageMB the maxStorageMB value to set
* @return the PerformanceTierServiceLevelObjectives object itself.
@@ -203,7 +203,7 @@ public PerformanceTierServiceLevelObjectives withMaxStorageMB(Integer maxStorage
}
/**
- * Get the minStorageMB value.
+ * Get max storage allowed for a server.
*
* @return the minStorageMB value
*/
@@ -212,7 +212,7 @@ public Integer minStorageMB() {
}
/**
- * Set the minStorageMB value.
+ * Set max storage allowed for a server.
*
* @param minStorageMB the minStorageMB value to set
* @return the PerformanceTierServiceLevelObjectives object itself.
diff --git a/postgresql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/postgresql/v2017_12_01/Replicas.java b/postgresql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/postgresql/v2017_12_01/Replicas.java
new file mode 100644
index 0000000000000..5bae123d8f12e
--- /dev/null
+++ b/postgresql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/postgresql/v2017_12_01/Replicas.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.postgresql.v2017_12_01;
+
+import rx.Observable;
+import com.microsoft.azure.management.postgresql.v2017_12_01.implementation.ReplicasInner;
+import com.microsoft.azure.arm.model.HasInner;
+
+/**
+ * Type representing Replicas.
+ */
+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 serverName The name of the server.
+ * @throws IllegalArgumentException thrown if parameters fail the validation
+ * @return the observable for the request
+ */
+ Observable listByServerAsync(String resourceGroupName, String serverName);
+
+}
diff --git a/postgresql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/postgresql/v2017_12_01/Server.java b/postgresql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/postgresql/v2017_12_01/Server.java
index 93329a9828107..c8ed251c49e37 100644
--- a/postgresql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/postgresql/v2017_12_01/Server.java
+++ b/postgresql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/postgresql/v2017_12_01/Server.java
@@ -10,21 +10,21 @@
import com.microsoft.azure.arm.model.HasInner;
import com.microsoft.azure.arm.resources.models.Resource;
+import com.microsoft.azure.arm.resources.models.GroupableResourceCore;
import com.microsoft.azure.arm.resources.models.HasResourceGroup;
import com.microsoft.azure.arm.model.Refreshable;
import com.microsoft.azure.arm.model.Updatable;
import com.microsoft.azure.arm.model.Appliable;
import com.microsoft.azure.arm.model.Creatable;
-import com.microsoft.azure.arm.resources.models.GroupableResourceCore;
import com.microsoft.azure.arm.resources.models.HasManager;
-import com.microsoft.azure.management.postgresql.v2017_12_01.implementation.PostgreSQLManager;
+import com.microsoft.azure.management.postgresql.v2017_12_01.implementation.DBforPostgreSQLManager;
import org.joda.time.DateTime;
import com.microsoft.azure.management.postgresql.v2017_12_01.implementation.ServerInner;
/**
* Type representing Server.
*/
-public interface Server extends HasInner, Resource, GroupableResourceCore, HasResourceGroup, Refreshable, Updatable, HasManager {
+public interface Server extends HasInner, Resource, GroupableResourceCore, HasResourceGroup, Refreshable, Updatable, HasManager {
/**
* @return the administratorLogin value.
*/
@@ -40,6 +40,21 @@ public interface Server extends HasInner, Resource, GroupableResour
*/
String fullyQualifiedDomainName();
+ /**
+ * @return the masterServerId value.
+ */
+ String masterServerId();
+
+ /**
+ * @return the replicaCapacity value.
+ */
+ Integer replicaCapacity();
+
+ /**
+ * @return the replicationRole value.
+ */
+ String replicationRole();
+
/**
* @return the sku value.
*/
@@ -93,16 +108,20 @@ interface WithGroup extends GroupableResourceCore.DefinitionStages.WithGroup, Resource.UpdateWithTags, Upd
*/
interface UpdateStages {
/**
- * The stage of the server {0} allowing to specify AdministratorLoginPassword.
+ * The stage of the server update allowing to specify AdministratorLoginPassword.
*/
interface WithAdministratorLoginPassword {
/**
* Specifies administratorLoginPassword.
+ * @param administratorLoginPassword The password of the administrator login
+ * @return the next update stage
*/
Update withAdministratorLoginPassword(String administratorLoginPassword);
}
/**
- * The stage of the server {0} allowing to specify Sku.
+ * The stage of the server update allowing to specify Sku.
*/
interface WithSku {
/**
* Specifies sku.
+ * @param sku The SKU (pricing tier) of the server
+ * @return the next update stage
*/
Update withSku(Sku sku);
}
/**
- * The stage of the server {0} allowing to specify SslEnforcement.
+ * The stage of the server update allowing to specify SslEnforcement.
*/
interface WithSslEnforcement {
/**
* Specifies sslEnforcement.
+ * @param sslEnforcement Enable ssl enforcement or not when connect to server. Possible values include: 'Enabled', 'Disabled'
+ * @return the next update stage
*/
Update withSslEnforcement(SslEnforcementEnum sslEnforcement);
}
/**
- * The stage of the server {0} allowing to specify StorageProfile.
+ * The stage of the server update allowing to specify StorageProfile.
*/
interface WithStorageProfile {
/**
* Specifies storageProfile.
+ * @param storageProfile Storage profile of a server
+ * @return the next update stage
*/
Update withStorageProfile(StorageProfile storageProfile);
}
/**
- * The stage of the server {0} allowing to specify Version.
+ * The stage of the server update allowing to specify Version.
*/
interface WithVersion {
/**
* Specifies version.
+ * @param version The version of a server. Possible values include: '9.5', '9.6', '10', '10.0', '10.2'
+ * @return the next update stage
*/
Update withVersion(ServerVersion version);
}
diff --git a/postgresql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/postgresql/v2017_12_01/ServerForCreate.java b/postgresql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/postgresql/v2017_12_01/ServerForCreate.java
index e155dd3c6a102..daf83935cf555 100644
--- a/postgresql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/postgresql/v2017_12_01/ServerForCreate.java
+++ b/postgresql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/postgresql/v2017_12_01/ServerForCreate.java
@@ -40,7 +40,7 @@ public class ServerForCreate {
private Map tags;
/**
- * Get the sku value.
+ * Get the SKU (pricing tier) of the server.
*
* @return the sku value
*/
@@ -49,7 +49,7 @@ public Sku sku() {
}
/**
- * Set the sku value.
+ * Set the SKU (pricing tier) of the server.
*
* @param sku the sku value to set
* @return the ServerForCreate object itself.
@@ -60,7 +60,7 @@ public ServerForCreate withSku(Sku sku) {
}
/**
- * Get the properties value.
+ * Get properties of the server.
*
* @return the properties value
*/
@@ -69,7 +69,7 @@ public ServerPropertiesForCreate properties() {
}
/**
- * Set the properties value.
+ * Set properties of the server.
*
* @param properties the properties value to set
* @return the ServerForCreate object itself.
@@ -80,7 +80,7 @@ public ServerForCreate withProperties(ServerPropertiesForCreate properties) {
}
/**
- * Get the location value.
+ * Get the location the resource resides in.
*
* @return the location value
*/
@@ -89,7 +89,7 @@ public String location() {
}
/**
- * Set the location value.
+ * Set the location the resource resides in.
*
* @param location the location value to set
* @return the ServerForCreate object itself.
@@ -100,7 +100,7 @@ public ServerForCreate withLocation(String location) {
}
/**
- * Get the tags value.
+ * Get application-specific metadata in the form of key-value pairs.
*
* @return the tags value
*/
@@ -109,7 +109,7 @@ public Map tags() {
}
/**
- * Set the tags value.
+ * Set application-specific metadata in the form of key-value pairs.
*
* @param tags the tags value to set
* @return the ServerForCreate object itself.
diff --git a/postgresql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/postgresql/v2017_12_01/ServerPropertiesForCreate.java b/postgresql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/postgresql/v2017_12_01/ServerPropertiesForCreate.java
index c1572933bfc98..060fba1daf7a4 100644
--- a/postgresql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/postgresql/v2017_12_01/ServerPropertiesForCreate.java
+++ b/postgresql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/postgresql/v2017_12_01/ServerPropertiesForCreate.java
@@ -21,11 +21,13 @@
@JsonSubTypes({
@JsonSubTypes.Type(name = "Default", value = ServerPropertiesForDefaultCreate.class),
@JsonSubTypes.Type(name = "PointInTimeRestore", value = ServerPropertiesForRestore.class),
- @JsonSubTypes.Type(name = "GeoRestore", value = ServerPropertiesForGeoRestore.class)
+ @JsonSubTypes.Type(name = "GeoRestore", value = ServerPropertiesForGeoRestore.class),
+ @JsonSubTypes.Type(name = "Replica", value = ServerPropertiesForReplica.class)
})
public class ServerPropertiesForCreate {
/**
- * Server version. Possible values include: '9.5', '9.6'.
+ * Server version. Possible values include: '9.5', '9.6', '10', '10.0',
+ * '10.2'.
*/
@JsonProperty(value = "version")
private ServerVersion version;
@@ -44,7 +46,7 @@ public class ServerPropertiesForCreate {
private StorageProfile storageProfile;
/**
- * Get the version value.
+ * Get server version. Possible values include: '9.5', '9.6', '10', '10.0', '10.2'.
*
* @return the version value
*/
@@ -53,7 +55,7 @@ public ServerVersion version() {
}
/**
- * Set the version value.
+ * Set server version. Possible values include: '9.5', '9.6', '10', '10.0', '10.2'.
*
* @param version the version value to set
* @return the ServerPropertiesForCreate object itself.
@@ -64,7 +66,7 @@ public ServerPropertiesForCreate withVersion(ServerVersion version) {
}
/**
- * Get the sslEnforcement value.
+ * Get enable ssl enforcement or not when connect to server. Possible values include: 'Enabled', 'Disabled'.
*
* @return the sslEnforcement value
*/
@@ -73,7 +75,7 @@ public SslEnforcementEnum sslEnforcement() {
}
/**
- * Set the sslEnforcement value.
+ * Set enable ssl enforcement or not when connect to server. Possible values include: 'Enabled', 'Disabled'.
*
* @param sslEnforcement the sslEnforcement value to set
* @return the ServerPropertiesForCreate object itself.
@@ -84,7 +86,7 @@ public ServerPropertiesForCreate withSslEnforcement(SslEnforcementEnum sslEnforc
}
/**
- * Get the storageProfile value.
+ * Get storage profile of a server.
*
* @return the storageProfile value
*/
@@ -93,7 +95,7 @@ public StorageProfile storageProfile() {
}
/**
- * Set the storageProfile value.
+ * Set storage profile of a server.
*
* @param storageProfile the storageProfile value to set
* @return the ServerPropertiesForCreate object itself.
diff --git a/postgresql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/postgresql/v2017_12_01/ServerPropertiesForDefaultCreate.java b/postgresql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/postgresql/v2017_12_01/ServerPropertiesForDefaultCreate.java
index 3658020a2b5bb..5b2697dea9531 100644
--- a/postgresql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/postgresql/v2017_12_01/ServerPropertiesForDefaultCreate.java
+++ b/postgresql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/postgresql/v2017_12_01/ServerPropertiesForDefaultCreate.java
@@ -32,7 +32,7 @@ public class ServerPropertiesForDefaultCreate extends ServerPropertiesForCreate
private String administratorLoginPassword;
/**
- * Get the administratorLogin value.
+ * Get the administrator's login name of a server. Can only be specified when the server is being created (and is required for creation).
*
* @return the administratorLogin value
*/
@@ -41,7 +41,7 @@ public String administratorLogin() {
}
/**
- * Set the administratorLogin value.
+ * Set the administrator's login name of a server. Can only be specified when the server is being created (and is required for creation).
*
* @param administratorLogin the administratorLogin value to set
* @return the ServerPropertiesForDefaultCreate object itself.
@@ -52,7 +52,7 @@ public ServerPropertiesForDefaultCreate withAdministratorLogin(String administra
}
/**
- * Get the administratorLoginPassword value.
+ * Get the password of the administrator login.
*
* @return the administratorLoginPassword value
*/
@@ -61,7 +61,7 @@ public String administratorLoginPassword() {
}
/**
- * Set the administratorLoginPassword value.
+ * Set the password of the administrator login.
*
* @param administratorLoginPassword the administratorLoginPassword value to set
* @return the ServerPropertiesForDefaultCreate object itself.
diff --git a/postgresql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/postgresql/v2017_12_01/ServerPropertiesForGeoRestore.java b/postgresql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/postgresql/v2017_12_01/ServerPropertiesForGeoRestore.java
index 7001463375d69..20a3aa3f2c6dc 100644
--- a/postgresql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/postgresql/v2017_12_01/ServerPropertiesForGeoRestore.java
+++ b/postgresql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/postgresql/v2017_12_01/ServerPropertiesForGeoRestore.java
@@ -26,7 +26,7 @@ public class ServerPropertiesForGeoRestore extends ServerPropertiesForCreate {
private String sourceServerId;
/**
- * Get the sourceServerId value.
+ * Get the source server id to restore from.
*
* @return the sourceServerId value
*/
@@ -35,7 +35,7 @@ public String sourceServerId() {
}
/**
- * Set the sourceServerId value.
+ * Set the source server id to restore from.
*
* @param sourceServerId the sourceServerId value to set
* @return the ServerPropertiesForGeoRestore object itself.
diff --git a/postgresql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/postgresql/v2017_12_01/ServerPropertiesForReplica.java b/postgresql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/postgresql/v2017_12_01/ServerPropertiesForReplica.java
new file mode 100644
index 0000000000000..2b98358f98393
--- /dev/null
+++ b/postgresql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/postgresql/v2017_12_01/ServerPropertiesForReplica.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.postgresql.v2017_12_01;
+
+import com.fasterxml.jackson.annotation.JsonProperty;
+import com.fasterxml.jackson.annotation.JsonTypeInfo;
+import com.fasterxml.jackson.annotation.JsonTypeName;
+
+/**
+ * The properties to create a new replica.
+ */
+@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "createMode")
+@JsonTypeName("Replica")
+public class ServerPropertiesForReplica extends ServerPropertiesForCreate {
+ /**
+ * The master server id to create replica from.
+ */
+ @JsonProperty(value = "sourceServerId", required = true)
+ private String sourceServerId;
+
+ /**
+ * Get the master server id to create replica from.
+ *
+ * @return the sourceServerId value
+ */
+ public String sourceServerId() {
+ return this.sourceServerId;
+ }
+
+ /**
+ * Set the master server id to create replica from.
+ *
+ * @param sourceServerId the sourceServerId value to set
+ * @return the ServerPropertiesForReplica object itself.
+ */
+ public ServerPropertiesForReplica withSourceServerId(String sourceServerId) {
+ this.sourceServerId = sourceServerId;
+ return this;
+ }
+
+}
diff --git a/postgresql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/postgresql/v2017_12_01/ServerPropertiesForRestore.java b/postgresql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/postgresql/v2017_12_01/ServerPropertiesForRestore.java
index bfc9c6d4f8f84..c41f547a8675c 100644
--- a/postgresql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/postgresql/v2017_12_01/ServerPropertiesForRestore.java
+++ b/postgresql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/postgresql/v2017_12_01/ServerPropertiesForRestore.java
@@ -33,7 +33,7 @@ public class ServerPropertiesForRestore extends ServerPropertiesForCreate {
private DateTime restorePointInTime;
/**
- * Get the sourceServerId value.
+ * Get the source server id to restore from.
*
* @return the sourceServerId value
*/
@@ -42,7 +42,7 @@ public String sourceServerId() {
}
/**
- * Set the sourceServerId value.
+ * Set the source server id to restore from.
*
* @param sourceServerId the sourceServerId value to set
* @return the ServerPropertiesForRestore object itself.
@@ -53,7 +53,7 @@ public ServerPropertiesForRestore withSourceServerId(String sourceServerId) {
}
/**
- * Get the restorePointInTime value.
+ * Get restore point creation time (ISO8601 format), specifying the time to restore from.
*
* @return the restorePointInTime value
*/
@@ -62,7 +62,7 @@ public DateTime restorePointInTime() {
}
/**
- * Set the restorePointInTime value.
+ * Set restore point creation time (ISO8601 format), specifying the time to restore from.
*
* @param restorePointInTime the restorePointInTime value to set
* @return the ServerPropertiesForRestore object itself.
diff --git a/postgresql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/postgresql/v2017_12_01/ServerSecurityAlertPolicy.java b/postgresql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/postgresql/v2017_12_01/ServerSecurityAlertPolicy.java
index 327bdc138ee47..d148fd49cbae2 100644
--- a/postgresql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/postgresql/v2017_12_01/ServerSecurityAlertPolicy.java
+++ b/postgresql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/postgresql/v2017_12_01/ServerSecurityAlertPolicy.java
@@ -16,13 +16,13 @@
import com.microsoft.azure.arm.model.Appliable;
import com.microsoft.azure.arm.model.Creatable;
import com.microsoft.azure.arm.resources.models.HasManager;
-import com.microsoft.azure.management.postgresql.v2017_12_01.implementation.PostgreSQLManager;
+import com.microsoft.azure.management.postgresql.v2017_12_01.implementation.DBforPostgreSQLManager;
import java.util.List;
/**
* Type representing ServerSecurityAlertPolicy.
*/
-public interface ServerSecurityAlertPolicy extends HasInner, Indexable, Refreshable, Updatable, HasManager {
+public interface ServerSecurityAlertPolicy extends HasInner, Indexable, Refreshable, Updatable, HasManager {
/**
* @return the disabledAlerts value.
*/
@@ -95,6 +95,9 @@ 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 serverName The name of the server
+ * @return the next definition stage
*/
WithState withExistingServer(String resourceGroupName, String serverName);
}
@@ -105,6 +108,8 @@ interface WithServer {
interface WithState {
/**
* Specifies state.
+ * @param state Specifies the state of the policy, whether it is enabled or disabled. Possible values include: 'Enabled', 'Disabled'
+ * @return the next definition stage
*/
WithCreate withState(ServerSecurityAlertPolicyState state);
}
@@ -115,6 +120,8 @@ interface WithState {
interface WithDisabledAlerts {
/**
* Specifies disabledAlerts.
+ * @param disabledAlerts Specifies an array of alerts that are disabled. Allowed values are: Sql_Injection, Sql_Injection_Vulnerability, Access_Anomaly
+ * @return the next definition stage
*/
WithCreate withDisabledAlerts(List disabledAlerts);
}
@@ -125,6 +132,8 @@ interface WithDisabledAlerts {
interface WithEmailAccountAdmins {
/**
* Specifies emailAccountAdmins.
+ * @param emailAccountAdmins Specifies that the alert is sent to the account administrators
+ * @return the next definition stage
*/
WithCreate withEmailAccountAdmins(Boolean emailAccountAdmins);
}
@@ -135,6 +144,8 @@ interface WithEmailAccountAdmins {
interface WithEmailAddresses {
/**
* Specifies emailAddresses.
+ * @param emailAddresses Specifies an array of e-mail addresses to which the alert is sent
+ * @return the next definition stage
*/
WithCreate withEmailAddresses(List emailAddresses);
}
@@ -145,6 +156,8 @@ interface WithEmailAddresses {
interface WithRetentionDays {
/**
* Specifies retentionDays.
+ * @param retentionDays Specifies the number of days to keep in the Threat Detection audit logs
+ * @return the next definition stage
*/
WithCreate withRetentionDays(Integer retentionDays);
}
@@ -155,6 +168,8 @@ interface WithRetentionDays {
interface WithStorageAccountAccessKey {
/**
* Specifies storageAccountAccessKey.
+ * @param storageAccountAccessKey Specifies the identifier key of the Threat Detection audit storage account
+ * @return the next definition stage
*/
WithCreate withStorageAccountAccessKey(String storageAccountAccessKey);
}
@@ -165,6 +180,8 @@ interface WithStorageAccountAccessKey {
interface WithStorageEndpoint {
/**
* Specifies storageEndpoint.
+ * @param storageEndpoint Specifies the blob storage endpoint (e.g. https://MyAccount.blob.core.windows.net). This blob storage will hold all Threat Detection audit logs
+ * @return the next definition stage
*/
WithCreate withStorageEndpoint(String storageEndpoint);
}
@@ -193,6 +210,8 @@ interface UpdateStages {
interface WithDisabledAlerts {
/**
* Specifies disabledAlerts.
+ * @param disabledAlerts Specifies an array of alerts that are disabled. Allowed values are: Sql_Injection, Sql_Injection_Vulnerability, Access_Anomaly
+ * @return the next update stage
*/
Update withDisabledAlerts(List disabledAlerts);
}
@@ -203,6 +222,8 @@ interface WithDisabledAlerts {
interface WithEmailAccountAdmins {
/**
* Specifies emailAccountAdmins.
+ * @param emailAccountAdmins Specifies that the alert is sent to the account administrators
+ * @return the next update stage
*/
Update withEmailAccountAdmins(Boolean emailAccountAdmins);
}
@@ -213,6 +234,8 @@ interface WithEmailAccountAdmins {
interface WithEmailAddresses {
/**
* Specifies emailAddresses.
+ * @param emailAddresses Specifies an array of e-mail addresses to which the alert is sent
+ * @return the next update stage
*/
Update withEmailAddresses(List emailAddresses);
}
@@ -223,6 +246,8 @@ interface WithEmailAddresses {
interface WithRetentionDays {
/**
* Specifies retentionDays.
+ * @param retentionDays Specifies the number of days to keep in the Threat Detection audit logs
+ * @return the next update stage
*/
Update withRetentionDays(Integer retentionDays);
}
@@ -233,6 +258,8 @@ interface WithRetentionDays {
interface WithStorageAccountAccessKey {
/**
* Specifies storageAccountAccessKey.
+ * @param storageAccountAccessKey Specifies the identifier key of the Threat Detection audit storage account
+ * @return the next update stage
*/
Update withStorageAccountAccessKey(String storageAccountAccessKey);
}
@@ -243,6 +270,8 @@ interface WithStorageAccountAccessKey {
interface WithStorageEndpoint {
/**
* Specifies storageEndpoint.
+ * @param storageEndpoint Specifies the blob storage endpoint (e.g. https://MyAccount.blob.core.windows.net). This blob storage will hold all Threat Detection audit logs
+ * @return the next update stage
*/
Update withStorageEndpoint(String storageEndpoint);
}
diff --git a/postgresql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/postgresql/v2017_12_01/ServerServer.java b/postgresql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/postgresql/v2017_12_01/ServerServer.java
new file mode 100644
index 0000000000000..c8b60f255a2c5
--- /dev/null
+++ b/postgresql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/postgresql/v2017_12_01/ServerServer.java
@@ -0,0 +1,102 @@
+/**
+ * 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.postgresql.v2017_12_01;
+
+import com.microsoft.azure.arm.model.HasInner;
+import com.microsoft.azure.management.postgresql.v2017_12_01.implementation.ServerInner;
+import com.microsoft.azure.arm.resources.models.HasManager;
+import com.microsoft.azure.management.postgresql.v2017_12_01.implementation.DBforPostgreSQLManager;
+import org.joda.time.DateTime;
+import java.util.Map;
+
+/**
+ * Type representing ServerServer.
+ */
+public interface ServerServer extends HasInner, HasManager {
+ /**
+ * @return the administratorLogin value.
+ */
+ String administratorLogin();
+
+ /**
+ * @return the earliestRestoreDate value.
+ */
+ DateTime earliestRestoreDate();
+
+ /**
+ * @return the fullyQualifiedDomainName value.
+ */
+ String fullyQualifiedDomainName();
+
+ /**
+ * @return the id value.
+ */
+ String id();
+
+ /**
+ * @return the location value.
+ */
+ String location();
+
+ /**
+ * @return the masterServerId value.
+ */
+ String masterServerId();
+
+ /**
+ * @return the name value.
+ */
+ String name();
+
+ /**
+ * @return the replicaCapacity value.
+ */
+ Integer replicaCapacity();
+
+ /**
+ * @return the replicationRole value.
+ */
+ String replicationRole();
+
+ /**
+ * @return the sku value.
+ */
+ Sku sku();
+
+ /**
+ * @return the sslEnforcement value.
+ */
+ SslEnforcementEnum sslEnforcement();
+
+ /**
+ * @return the storageProfile value.
+ */
+ StorageProfile storageProfile();
+
+ /**
+ * @return the tags value.
+ */
+ Map tags();
+
+ /**
+ * @return the type value.
+ */
+ String type();
+
+ /**
+ * @return the userVisibleState value.
+ */
+ ServerState userVisibleState();
+
+ /**
+ * @return the version value.
+ */
+ ServerVersion version();
+
+}
diff --git a/postgresql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/postgresql/v2017_12_01/ServerUpdateParameters.java b/postgresql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/postgresql/v2017_12_01/ServerUpdateParameters.java
index 6c0a73f5c4488..7100ff2f1cb1f 100644
--- a/postgresql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/postgresql/v2017_12_01/ServerUpdateParameters.java
+++ b/postgresql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/postgresql/v2017_12_01/ServerUpdateParameters.java
@@ -13,7 +13,7 @@
import com.microsoft.rest.serializer.JsonFlatten;
/**
- * Parameters allowd to update for a server.
+ * Parameters allowed to update for a server.
*/
@JsonFlatten
public class ServerUpdateParameters {
@@ -36,7 +36,8 @@ public class ServerUpdateParameters {
private String administratorLoginPassword;
/**
- * The version of a server. Possible values include: '9.5', '9.6'.
+ * The version of a server. Possible values include: '9.5', '9.6', '10',
+ * '10.0', '10.2'.
*/
@JsonProperty(value = "properties.version")
private ServerVersion version;
@@ -55,7 +56,7 @@ public class ServerUpdateParameters {
private Map tags;
/**
- * Get the sku value.
+ * Get the SKU (pricing tier) of the server.
*
* @return the sku value
*/
@@ -64,7 +65,7 @@ public Sku sku() {
}
/**
- * Set the sku value.
+ * Set the SKU (pricing tier) of the server.
*
* @param sku the sku value to set
* @return the ServerUpdateParameters object itself.
@@ -75,7 +76,7 @@ public ServerUpdateParameters withSku(Sku sku) {
}
/**
- * Get the storageProfile value.
+ * Get storage profile of a server.
*
* @return the storageProfile value
*/
@@ -84,7 +85,7 @@ public StorageProfile storageProfile() {
}
/**
- * Set the storageProfile value.
+ * Set storage profile of a server.
*
* @param storageProfile the storageProfile value to set
* @return the ServerUpdateParameters object itself.
@@ -95,7 +96,7 @@ public ServerUpdateParameters withStorageProfile(StorageProfile storageProfile)
}
/**
- * Get the administratorLoginPassword value.
+ * Get the password of the administrator login.
*
* @return the administratorLoginPassword value
*/
@@ -104,7 +105,7 @@ public String administratorLoginPassword() {
}
/**
- * Set the administratorLoginPassword value.
+ * Set the password of the administrator login.
*
* @param administratorLoginPassword the administratorLoginPassword value to set
* @return the ServerUpdateParameters object itself.
@@ -115,7 +116,7 @@ public ServerUpdateParameters withAdministratorLoginPassword(String administrato
}
/**
- * Get the version value.
+ * Get the version of a server. Possible values include: '9.5', '9.6', '10', '10.0', '10.2'.
*
* @return the version value
*/
@@ -124,7 +125,7 @@ public ServerVersion version() {
}
/**
- * Set the version value.
+ * Set the version of a server. Possible values include: '9.5', '9.6', '10', '10.0', '10.2'.
*
* @param version the version value to set
* @return the ServerUpdateParameters object itself.
@@ -135,7 +136,7 @@ public ServerUpdateParameters withVersion(ServerVersion version) {
}
/**
- * Get the sslEnforcement value.
+ * Get enable ssl enforcement or not when connect to server. Possible values include: 'Enabled', 'Disabled'.
*
* @return the sslEnforcement value
*/
@@ -144,7 +145,7 @@ public SslEnforcementEnum sslEnforcement() {
}
/**
- * Set the sslEnforcement value.
+ * Set enable ssl enforcement or not when connect to server. Possible values include: 'Enabled', 'Disabled'.
*
* @param sslEnforcement the sslEnforcement value to set
* @return the ServerUpdateParameters object itself.
@@ -155,7 +156,7 @@ public ServerUpdateParameters withSslEnforcement(SslEnforcementEnum sslEnforceme
}
/**
- * Get the tags value.
+ * Get application-specific metadata in the form of key-value pairs.
*
* @return the tags value
*/
@@ -164,7 +165,7 @@ public Map tags() {
}
/**
- * Set the tags value.
+ * Set application-specific metadata in the form of key-value pairs.
*
* @param tags the tags value to set
* @return the ServerUpdateParameters object itself.
diff --git a/postgresql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/postgresql/v2017_12_01/ServerVersion.java b/postgresql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/postgresql/v2017_12_01/ServerVersion.java
index 0316b42d7212b..bb70540e4cc0a 100644
--- a/postgresql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/postgresql/v2017_12_01/ServerVersion.java
+++ b/postgresql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/postgresql/v2017_12_01/ServerVersion.java
@@ -22,6 +22,15 @@ public final class ServerVersion extends ExpandableStringEnum {
/** Static value 9.6 for ServerVersion. */
public static final ServerVersion NINE_FULL_STOP_SIX = fromString("9.6");
+ /** Static value 10 for ServerVersion. */
+ public static final ServerVersion ONE_ZERO = fromString("10");
+
+ /** Static value 10.0 for ServerVersion. */
+ public static final ServerVersion ONE_ZERO_FULL_STOP_ZERO = fromString("10.0");
+
+ /** Static value 10.2 for ServerVersion. */
+ public static final ServerVersion ONE_ZERO_FULL_STOP_TWO = fromString("10.2");
+
/**
* Creates or finds a ServerVersion from its string representation.
* @param name a name to look for
diff --git a/postgresql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/postgresql/v2017_12_01/Servers.java b/postgresql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/postgresql/v2017_12_01/Servers.java
index b7ed017747322..029487e4aff9b 100644
--- a/postgresql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/postgresql/v2017_12_01/Servers.java
+++ b/postgresql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/postgresql/v2017_12_01/Servers.java
@@ -15,6 +15,7 @@
import rx.Observable;
import com.microsoft.azure.arm.resources.collection.SupportsListingByResourceGroup;
import com.microsoft.azure.arm.collection.SupportsListing;
+import rx.Completable;
import com.microsoft.azure.management.postgresql.v2017_12_01.implementation.ServersInner;
import com.microsoft.azure.arm.model.HasInner;
@@ -22,4 +23,14 @@
* Type representing Servers.
*/
public interface Servers extends SupportsCreating, SupportsDeletingByResourceGroup, SupportsBatchDeletion, SupportsGettingByResourceGroup, SupportsListingByResourceGroup, SupportsListing, HasInner {
+ /**
+ * 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 serverName The name of the server.
+ * @throws IllegalArgumentException thrown if parameters fail the validation
+ * @return the observable for the request
+ */
+ Completable restartAsync(String resourceGroupName, String serverName);
+
}
diff --git a/postgresql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/postgresql/v2017_12_01/Sku.java b/postgresql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/postgresql/v2017_12_01/Sku.java
index 79da966e133b0..51198a9c0540c 100644
--- a/postgresql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/postgresql/v2017_12_01/Sku.java
+++ b/postgresql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/postgresql/v2017_12_01/Sku.java
@@ -47,7 +47,7 @@ public class Sku {
private String family;
/**
- * Get the name value.
+ * Get the name of the sku, typically, tier + family + cores, e.g. B_Gen4_1, GP_Gen5_8.
*
* @return the name value
*/
@@ -56,7 +56,7 @@ public String name() {
}
/**
- * Set the name value.
+ * Set the name of the sku, typically, tier + family + cores, e.g. B_Gen4_1, GP_Gen5_8.
*
* @param name the name value to set
* @return the Sku object itself.
@@ -67,7 +67,7 @@ public Sku withName(String name) {
}
/**
- * Get the tier value.
+ * Get the tier of the particular SKU, e.g. Basic. Possible values include: 'Basic', 'GeneralPurpose', 'MemoryOptimized'.
*
* @return the tier value
*/
@@ -76,7 +76,7 @@ public SkuTier tier() {
}
/**
- * Set the tier value.
+ * Set the tier of the particular SKU, e.g. Basic. Possible values include: 'Basic', 'GeneralPurpose', 'MemoryOptimized'.
*
* @param tier the tier value to set
* @return the Sku object itself.
@@ -87,7 +87,7 @@ public Sku withTier(SkuTier tier) {
}
/**
- * Get the capacity value.
+ * Get the scale up/out capacity, representing server's compute units.
*
* @return the capacity value
*/
@@ -96,7 +96,7 @@ public Integer capacity() {
}
/**
- * Set the capacity value.
+ * Set the scale up/out capacity, representing server's compute units.
*
* @param capacity the capacity value to set
* @return the Sku object itself.
@@ -107,7 +107,7 @@ public Sku withCapacity(Integer capacity) {
}
/**
- * Get the size value.
+ * Get the size code, to be interpreted by resource as appropriate.
*
* @return the size value
*/
@@ -116,7 +116,7 @@ public String size() {
}
/**
- * Set the size value.
+ * Set the size code, to be interpreted by resource as appropriate.
*
* @param size the size value to set
* @return the Sku object itself.
@@ -127,7 +127,7 @@ public Sku withSize(String size) {
}
/**
- * Get the family value.
+ * Get the family of hardware.
*
* @return the family value
*/
@@ -136,7 +136,7 @@ public String family() {
}
/**
- * Set the family value.
+ * Set the family of hardware.
*
* @param family the family value to set
* @return the Sku object itself.
diff --git a/postgresql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/postgresql/v2017_12_01/StorageProfile.java b/postgresql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/postgresql/v2017_12_01/StorageProfile.java
index 9e91505992b45..42fd81cfa8527 100644
--- a/postgresql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/postgresql/v2017_12_01/StorageProfile.java
+++ b/postgresql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/postgresql/v2017_12_01/StorageProfile.java
@@ -34,7 +34,7 @@ public class StorageProfile {
private Integer storageMB;
/**
- * Get the backupRetentionDays value.
+ * Get backup retention days for the server.
*
* @return the backupRetentionDays value
*/
@@ -43,7 +43,7 @@ public Integer backupRetentionDays() {
}
/**
- * Set the backupRetentionDays value.
+ * Set backup retention days for the server.
*
* @param backupRetentionDays the backupRetentionDays value to set
* @return the StorageProfile object itself.
@@ -54,7 +54,7 @@ public StorageProfile withBackupRetentionDays(Integer backupRetentionDays) {
}
/**
- * Get the geoRedundantBackup value.
+ * Get enable Geo-redundant or not for server backup. Possible values include: 'Enabled', 'Disabled'.
*
* @return the geoRedundantBackup value
*/
@@ -63,7 +63,7 @@ public GeoRedundantBackup geoRedundantBackup() {
}
/**
- * Set the geoRedundantBackup value.
+ * Set enable Geo-redundant or not for server backup. Possible values include: 'Enabled', 'Disabled'.
*
* @param geoRedundantBackup the geoRedundantBackup value to set
* @return the StorageProfile object itself.
@@ -74,7 +74,7 @@ public StorageProfile withGeoRedundantBackup(GeoRedundantBackup geoRedundantBack
}
/**
- * Get the storageMB value.
+ * Get max storage allowed for a server.
*
* @return the storageMB value
*/
@@ -83,7 +83,7 @@ public Integer storageMB() {
}
/**
- * Set the storageMB value.
+ * Set max storage allowed for a server.
*
* @param storageMB the storageMB value to set
* @return the StorageProfile object itself.
diff --git a/postgresql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/postgresql/v2017_12_01/VirtualNetworkRule.java b/postgresql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/postgresql/v2017_12_01/VirtualNetworkRule.java
index 53379c4f3c18f..6f99a7ade669f 100644
--- a/postgresql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/postgresql/v2017_12_01/VirtualNetworkRule.java
+++ b/postgresql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/postgresql/v2017_12_01/VirtualNetworkRule.java
@@ -16,12 +16,12 @@
import com.microsoft.azure.arm.model.Appliable;
import com.microsoft.azure.arm.model.Creatable;
import com.microsoft.azure.arm.resources.models.HasManager;
-import com.microsoft.azure.management.postgresql.v2017_12_01.implementation.PostgreSQLManager;
+import com.microsoft.azure.management.postgresql.v2017_12_01.implementation.DBforPostgreSQLManager;
/**
* Type representing VirtualNetworkRule.
*/
-public interface VirtualNetworkRule extends HasInner, Indexable, Refreshable, Updatable, HasManager {
+public interface VirtualNetworkRule extends HasInner, Indexable, Refreshable, Updatable, HasManager {
/**
* @return the id value.
*/
@@ -74,6 +74,9 @@ 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 serverName The name of the server
+ * @return the next definition stage
*/
WithVirtualNetworkSubnetId withExistingServer(String resourceGroupName, String serverName);
}
@@ -84,6 +87,8 @@ interface WithServer {
interface WithVirtualNetworkSubnetId {
/**
* Specifies virtualNetworkSubnetId.
+ * @param virtualNetworkSubnetId The ARM resource id of the virtual network subnet
+ * @return the next definition stage
*/
WithCreate withVirtualNetworkSubnetId(String virtualNetworkSubnetId);
}
@@ -94,6 +99,8 @@ interface WithVirtualNetworkSubnetId {
interface WithIgnoreMissingVnetServiceEndpoint {
/**
* Specifies ignoreMissingVnetServiceEndpoint.
+ * @param ignoreMissingVnetServiceEndpoint Create firewall rule before the virtual network has vnet service endpoint enabled
+ * @return the next definition stage
*/
WithCreate withIgnoreMissingVnetServiceEndpoint(Boolean ignoreMissingVnetServiceEndpoint);
}
@@ -122,6 +129,8 @@ interface UpdateStages {
interface WithIgnoreMissingVnetServiceEndpoint {
/**
* Specifies ignoreMissingVnetServiceEndpoint.
+ * @param ignoreMissingVnetServiceEndpoint Create firewall rule before the virtual network has vnet service endpoint enabled
+ * @return the next update stage
*/
Update withIgnoreMissingVnetServiceEndpoint(Boolean ignoreMissingVnetServiceEndpoint);
}
diff --git a/postgresql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/postgresql/v2017_12_01/implementation/CheckNameAvailabilitysImpl.java b/postgresql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/postgresql/v2017_12_01/implementation/CheckNameAvailabilitysImpl.java
index c8350885862e9..0b6241d5bde93 100644
--- a/postgresql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/postgresql/v2017_12_01/implementation/CheckNameAvailabilitysImpl.java
+++ b/postgresql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/postgresql/v2017_12_01/implementation/CheckNameAvailabilitysImpl.java
@@ -17,14 +17,14 @@
import com.microsoft.azure.management.postgresql.v2017_12_01.NameAvailabilityRequest;
class CheckNameAvailabilitysImpl extends WrapperImpl implements CheckNameAvailabilitys {
- private final PostgreSQLManager manager;
+ private final DBforPostgreSQLManager manager;
- CheckNameAvailabilitysImpl(PostgreSQLManager manager) {
+ CheckNameAvailabilitysImpl(DBforPostgreSQLManager manager) {
super(manager.inner().checkNameAvailabilitys());
this.manager = manager;
}
- public PostgreSQLManager manager() {
+ public DBforPostgreSQLManager manager() {
return this.manager;
}
diff --git a/postgresql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/postgresql/v2017_12_01/implementation/ConfigurationImpl.java b/postgresql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/postgresql/v2017_12_01/implementation/ConfigurationImpl.java
index 6034e24c80a8b..623dc799b8d36 100644
--- a/postgresql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/postgresql/v2017_12_01/implementation/ConfigurationImpl.java
+++ b/postgresql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/postgresql/v2017_12_01/implementation/ConfigurationImpl.java
@@ -13,12 +13,12 @@
import rx.Observable;
class ConfigurationImpl extends CreatableUpdatableImpl implements Configuration, Configuration.Definition, Configuration.Update {
- private final PostgreSQLManager manager;
+ private final DBforPostgreSQLManager manager;
private String resourceGroupName;
private String serverName;
private String configurationName;
- ConfigurationImpl(String name, PostgreSQLManager manager) {
+ ConfigurationImpl(String name, DBforPostgreSQLManager manager) {
super(name, new ConfigurationInner());
this.manager = manager;
// Set resource name
@@ -26,12 +26,12 @@ class ConfigurationImpl extends CreatableUpdatableImpl implements Configurations {
- private final PostgreSQLManager manager;
+ private final DBforPostgreSQLManager manager;
- ConfigurationsImpl(PostgreSQLManager manager) {
+ ConfigurationsImpl(DBforPostgreSQLManager manager) {
super(manager.inner().configurations());
this.manager = manager;
}
- public PostgreSQLManager manager() {
+ public DBforPostgreSQLManager manager() {
return this.manager;
}
diff --git a/postgresql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/postgresql/v2017_12_01/implementation/DBforPostgreSQLManager.java b/postgresql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/postgresql/v2017_12_01/implementation/DBforPostgreSQLManager.java
new file mode 100644
index 0000000000000..bb2ddf5fc9af8
--- /dev/null
+++ b/postgresql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/postgresql/v2017_12_01/implementation/DBforPostgreSQLManager.java
@@ -0,0 +1,219 @@
+/**
+ * Copyright (c) Microsoft Corporation. All rights reserved.
+ * Licensed under the MIT License. See License.txt in the project root for
+ * license information.
+ *
+ * Code generated by Microsoft (R) AutoRest Code Generator.
+ */
+
+package com.microsoft.azure.management.postgresql.v2017_12_01.implementation;
+
+import com.microsoft.azure.AzureEnvironment;
+import com.microsoft.azure.AzureResponseBuilder;
+import com.microsoft.azure.credentials.AzureTokenCredentials;
+import com.microsoft.azure.management.apigeneration.Beta;
+import com.microsoft.azure.management.apigeneration.Beta.SinceVersion;
+import com.microsoft.azure.arm.resources.AzureConfigurable;
+import com.microsoft.azure.serializer.AzureJacksonAdapter;
+import com.microsoft.rest.RestClient;
+import com.microsoft.azure.management.postgresql.v2017_12_01.Servers;
+import com.microsoft.azure.management.postgresql.v2017_12_01.Replicas;
+import com.microsoft.azure.management.postgresql.v2017_12_01.FirewallRules;
+import com.microsoft.azure.management.postgresql.v2017_12_01.VirtualNetworkRules;
+import com.microsoft.azure.management.postgresql.v2017_12_01.Databases;
+import com.microsoft.azure.management.postgresql.v2017_12_01.Configurations;
+import com.microsoft.azure.management.postgresql.v2017_12_01.LogFiles;
+import com.microsoft.azure.management.postgresql.v2017_12_01.LocationBasedPerformanceTiers;
+import com.microsoft.azure.management.postgresql.v2017_12_01.CheckNameAvailabilitys;
+import com.microsoft.azure.management.postgresql.v2017_12_01.ServerSecurityAlertPolicies;
+import com.microsoft.azure.management.postgresql.v2017_12_01.Operations;
+import com.microsoft.azure.arm.resources.implementation.AzureConfigurableCoreImpl;
+import com.microsoft.azure.arm.resources.implementation.ManagerCore;
+
+/**
+ * Entry point to Azure DBforPostgreSQL resource management.
+ */
+public final class DBforPostgreSQLManager extends ManagerCore {
+ private Servers servers;
+ private Replicas replicas;
+ private FirewallRules firewallRules;
+ private VirtualNetworkRules virtualNetworkRules;
+ private Databases databases;
+ private Configurations configurations;
+ private LogFiles logFiles;
+ private LocationBasedPerformanceTiers locationBasedPerformanceTiers;
+ private CheckNameAvailabilitys checkNameAvailabilitys;
+ private ServerSecurityAlertPolicies serverSecurityAlertPolicies;
+ private Operations operations;
+ /**
+ * Get a Configurable instance that can be used to create DBforPostgreSQLManager with optional configuration.
+ *
+ * @return the instance allowing configurations
+ */
+ public static Configurable configure() {
+ return new DBforPostgreSQLManager.ConfigurableImpl();
+ }
+ /**
+ * Creates an instance of DBforPostgreSQLManager that exposes DBforPostgreSQL resource management API entry points.
+ *
+ * @param credentials the credentials to use
+ * @param subscriptionId the subscription UUID
+ * @return the DBforPostgreSQLManager
+ */
+ public static DBforPostgreSQLManager authenticate(AzureTokenCredentials credentials, String subscriptionId) {
+ return new DBforPostgreSQLManager(new RestClient.Builder()
+ .withBaseUrl(credentials.environment(), AzureEnvironment.Endpoint.RESOURCE_MANAGER)
+ .withCredentials(credentials)
+ .withSerializerAdapter(new AzureJacksonAdapter())
+ .withResponseBuilderFactory(new AzureResponseBuilder.Factory())
+ .build(), subscriptionId);
+ }
+ /**
+ * Creates an instance of DBforPostgreSQLManager that exposes DBforPostgreSQL resource management API entry points.
+ *
+ * @param restClient the RestClient to be used for API calls.
+ * @param subscriptionId the subscription UUID
+ * @return the DBforPostgreSQLManager
+ */
+ public static DBforPostgreSQLManager authenticate(RestClient restClient, String subscriptionId) {
+ return new DBforPostgreSQLManager(restClient, subscriptionId);
+ }
+ /**
+ * The interface allowing configurations to be set.
+ */
+ public interface Configurable extends AzureConfigurable {
+ /**
+ * Creates an instance of DBforPostgreSQLManager that exposes DBforPostgreSQL management API entry points.
+ *
+ * @param credentials the credentials to use
+ * @param subscriptionId the subscription UUID
+ * @return the interface exposing DBforPostgreSQL management API entry points that work across subscriptions
+ */
+ DBforPostgreSQLManager authenticate(AzureTokenCredentials credentials, String subscriptionId);
+ }
+
+ /**
+ * @return Entry point to manage Servers.
+ */
+ public Servers servers() {
+ if (this.servers == null) {
+ this.servers = new ServersImpl(this);
+ }
+ return this.servers;
+ }
+
+ /**
+ * @return Entry point to manage Replicas.
+ */
+ public Replicas replicas() {
+ if (this.replicas == null) {
+ this.replicas = new ReplicasImpl(this);
+ }
+ return this.replicas;
+ }
+
+ /**
+ * @return Entry point to manage FirewallRules.
+ */
+ public FirewallRules firewallRules() {
+ if (this.firewallRules == null) {
+ this.firewallRules = new FirewallRulesImpl(this);
+ }
+ return this.firewallRules;
+ }
+
+ /**
+ * @return Entry point to manage VirtualNetworkRules.
+ */
+ public VirtualNetworkRules virtualNetworkRules() {
+ if (this.virtualNetworkRules == null) {
+ this.virtualNetworkRules = new VirtualNetworkRulesImpl(this);
+ }
+ return this.virtualNetworkRules;
+ }
+
+ /**
+ * @return Entry point to manage Databases.
+ */
+ public Databases databases() {
+ if (this.databases == null) {
+ this.databases = new DatabasesImpl(this);
+ }
+ return this.databases;
+ }
+
+ /**
+ * @return Entry point to manage Configurations.
+ */
+ public Configurations configurations() {
+ if (this.configurations == null) {
+ this.configurations = new ConfigurationsImpl(this);
+ }
+ return this.configurations;
+ }
+
+ /**
+ * @return Entry point to manage LogFiles.
+ */
+ public LogFiles logFiles() {
+ if (this.logFiles == null) {
+ this.logFiles = new LogFilesImpl(this);
+ }
+ return this.logFiles;
+ }
+
+ /**
+ * @return Entry point to manage LocationBasedPerformanceTiers.
+ */
+ public LocationBasedPerformanceTiers locationBasedPerformanceTiers() {
+ if (this.locationBasedPerformanceTiers == null) {
+ this.locationBasedPerformanceTiers = new LocationBasedPerformanceTiersImpl(this);
+ }
+ return this.locationBasedPerformanceTiers;
+ }
+
+ /**
+ * @return Entry point to manage CheckNameAvailabilitys.
+ */
+ public CheckNameAvailabilitys checkNameAvailabilitys() {
+ if (this.checkNameAvailabilitys == null) {
+ this.checkNameAvailabilitys = new CheckNameAvailabilitysImpl(this);
+ }
+ return this.checkNameAvailabilitys;
+ }
+
+ /**
+ * @return Entry point to manage ServerSecurityAlertPolicies.
+ */
+ public ServerSecurityAlertPolicies serverSecurityAlertPolicies() {
+ if (this.serverSecurityAlertPolicies == null) {
+ this.serverSecurityAlertPolicies = new ServerSecurityAlertPoliciesImpl(this);
+ }
+ return this.serverSecurityAlertPolicies;
+ }
+
+ /**
+ * @return Entry point to manage Operations.
+ */
+ public Operations operations() {
+ if (this.operations == null) {
+ this.operations = new OperationsImpl(this);
+ }
+ return this.operations;
+ }
+
+ /**
+ * The implementation for Configurable interface.
+ */
+ private static final class ConfigurableImpl extends AzureConfigurableCoreImpl implements Configurable {
+ public DBforPostgreSQLManager authenticate(AzureTokenCredentials credentials, String subscriptionId) {
+ return DBforPostgreSQLManager.authenticate(buildRestClient(credentials), subscriptionId);
+ }
+ }
+ private DBforPostgreSQLManager(RestClient restClient, String subscriptionId) {
+ super(
+ restClient,
+ subscriptionId,
+ new PostgreSQLManagementClientImpl(restClient).withSubscriptionId(subscriptionId));
+ }
+}
diff --git a/postgresql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/postgresql/v2017_12_01/implementation/DatabaseImpl.java b/postgresql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/postgresql/v2017_12_01/implementation/DatabaseImpl.java
index 1f3711349b720..1c07005458fd4 100644
--- a/postgresql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/postgresql/v2017_12_01/implementation/DatabaseImpl.java
+++ b/postgresql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/postgresql/v2017_12_01/implementation/DatabaseImpl.java
@@ -13,12 +13,12 @@
import rx.Observable;
class DatabaseImpl extends CreatableUpdatableImpl implements Database, Database.Definition, Database.Update {
- private final PostgreSQLManager manager;
+ private final DBforPostgreSQLManager manager;
private String resourceGroupName;
private String serverName;
private String databaseName;
- DatabaseImpl(String name, PostgreSQLManager manager) {
+ DatabaseImpl(String name, DBforPostgreSQLManager manager) {
super(name, new DatabaseInner());
this.manager = manager;
// Set resource name
@@ -26,12 +26,12 @@ class DatabaseImpl extends CreatableUpdatableImpl implements Databases {
- private final PostgreSQLManager manager;
+ private final DBforPostgreSQLManager manager;
- DatabasesImpl(PostgreSQLManager manager) {
+ DatabasesImpl(DBforPostgreSQLManager manager) {
super(manager.inner().databases());
this.manager = manager;
}
- public PostgreSQLManager manager() {
+ public DBforPostgreSQLManager manager() {
return this.manager;
}
diff --git a/postgresql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/postgresql/v2017_12_01/implementation/FirewallRuleImpl.java b/postgresql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/postgresql/v2017_12_01/implementation/FirewallRuleImpl.java
index 8479ac01eceed..d0201aca53aa9 100644
--- a/postgresql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/postgresql/v2017_12_01/implementation/FirewallRuleImpl.java
+++ b/postgresql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/postgresql/v2017_12_01/implementation/FirewallRuleImpl.java
@@ -13,12 +13,12 @@
import rx.Observable;
class FirewallRuleImpl extends CreatableUpdatableImpl implements FirewallRule, FirewallRule.Definition, FirewallRule.Update {
- private final PostgreSQLManager manager;
+ private final DBforPostgreSQLManager manager;
private String resourceGroupName;
private String serverName;
private String firewallRuleName;
- FirewallRuleImpl(String name, PostgreSQLManager manager) {
+ FirewallRuleImpl(String name, DBforPostgreSQLManager manager) {
super(name, new FirewallRuleInner());
this.manager = manager;
// Set resource name
@@ -26,12 +26,12 @@ class FirewallRuleImpl extends CreatableUpdatableImpl implements FirewallRules {
- private final PostgreSQLManager manager;
+ private final DBforPostgreSQLManager manager;
- FirewallRulesImpl(PostgreSQLManager manager) {
+ FirewallRulesImpl(DBforPostgreSQLManager manager) {
super(manager.inner().firewallRules());
this.manager = manager;
}
- public PostgreSQLManager manager() {
+ public DBforPostgreSQLManager manager() {
return this.manager;
}
diff --git a/postgresql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/postgresql/v2017_12_01/implementation/LocationBasedPerformanceTiersImpl.java b/postgresql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/postgresql/v2017_12_01/implementation/LocationBasedPerformanceTiersImpl.java
index 740c4f297820a..f48b7849ae254 100644
--- a/postgresql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/postgresql/v2017_12_01/implementation/LocationBasedPerformanceTiersImpl.java
+++ b/postgresql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/postgresql/v2017_12_01/implementation/LocationBasedPerformanceTiersImpl.java
@@ -17,14 +17,14 @@
import com.microsoft.azure.management.postgresql.v2017_12_01.PerformanceTierProperties;
class LocationBasedPerformanceTiersImpl extends WrapperImpl implements LocationBasedPerformanceTiers {
- private final PostgreSQLManager manager;
+ private final DBforPostgreSQLManager manager;
- LocationBasedPerformanceTiersImpl(PostgreSQLManager manager) {
+ LocationBasedPerformanceTiersImpl(DBforPostgreSQLManager manager) {
super(manager.inner().locationBasedPerformanceTiers());
this.manager = manager;
}
- public PostgreSQLManager manager() {
+ public DBforPostgreSQLManager manager() {
return this.manager;
}
diff --git a/postgresql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/postgresql/v2017_12_01/implementation/LogFileImpl.java b/postgresql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/postgresql/v2017_12_01/implementation/LogFileImpl.java
index aa3761713391a..60299e57be753 100644
--- a/postgresql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/postgresql/v2017_12_01/implementation/LogFileImpl.java
+++ b/postgresql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/postgresql/v2017_12_01/implementation/LogFileImpl.java
@@ -14,15 +14,15 @@
import org.joda.time.DateTime;
class LogFileImpl extends WrapperImpl implements LogFile {
- private final PostgreSQLManager manager;
+ private final DBforPostgreSQLManager manager;
- LogFileImpl(LogFileInner inner, PostgreSQLManager manager) {
+ LogFileImpl(LogFileInner inner, DBforPostgreSQLManager manager) {
super(inner);
this.manager = manager;
}
@Override
- public PostgreSQLManager manager() {
+ public DBforPostgreSQLManager manager() {
return this.manager;
}
diff --git a/postgresql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/postgresql/v2017_12_01/implementation/LogFileInner.java b/postgresql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/postgresql/v2017_12_01/implementation/LogFileInner.java
index d02246e57e63d..c94a46edf960e 100644
--- a/postgresql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/postgresql/v2017_12_01/implementation/LogFileInner.java
+++ b/postgresql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/postgresql/v2017_12_01/implementation/LogFileInner.java
@@ -49,7 +49,7 @@ public class LogFileInner extends ProxyResource {
private String url;
/**
- * Get the sizeInKB value.
+ * Get size of the log file.
*
* @return the sizeInKB value
*/
@@ -58,7 +58,7 @@ public Long sizeInKB() {
}
/**
- * Set the sizeInKB value.
+ * Set size of the log file.
*
* @param sizeInKB the sizeInKB value to set
* @return the LogFileInner object itself.
@@ -69,7 +69,7 @@ public LogFileInner withSizeInKB(Long sizeInKB) {
}
/**
- * Get the createdTime value.
+ * Get creation timestamp of the log file.
*
* @return the createdTime value
*/
@@ -78,7 +78,7 @@ public DateTime createdTime() {
}
/**
- * Get the lastModifiedTime value.
+ * Get last modified timestamp of the log file.
*
* @return the lastModifiedTime value
*/
@@ -87,7 +87,7 @@ public DateTime lastModifiedTime() {
}
/**
- * Get the logFileType value.
+ * Get type of the log file.
*
* @return the logFileType value
*/
@@ -96,7 +96,7 @@ public String logFileType() {
}
/**
- * Set the logFileType value.
+ * Set type of the log file.
*
* @param logFileType the logFileType value to set
* @return the LogFileInner object itself.
@@ -107,7 +107,7 @@ public LogFileInner withLogFileType(String logFileType) {
}
/**
- * Get the url value.
+ * Get the url to download the log file from.
*
* @return the url value
*/
@@ -116,7 +116,7 @@ public String url() {
}
/**
- * Set the url value.
+ * Set the url to download the log file from.
*
* @param url the url value to set
* @return the LogFileInner object itself.
diff --git a/postgresql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/postgresql/v2017_12_01/implementation/LogFilesImpl.java b/postgresql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/postgresql/v2017_12_01/implementation/LogFilesImpl.java
index 01f79a20f69da..a1cd08897ceec 100644
--- a/postgresql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/postgresql/v2017_12_01/implementation/LogFilesImpl.java
+++ b/postgresql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/postgresql/v2017_12_01/implementation/LogFilesImpl.java
@@ -17,14 +17,14 @@
import com.microsoft.azure.management.postgresql.v2017_12_01.LogFile;
class LogFilesImpl extends WrapperImpl implements LogFiles {
- private final PostgreSQLManager manager;
+ private final DBforPostgreSQLManager manager;
- LogFilesImpl(PostgreSQLManager manager) {
+ LogFilesImpl(DBforPostgreSQLManager manager) {
super(manager.inner().logFiles());
this.manager = manager;
}
- public PostgreSQLManager manager() {
+ public DBforPostgreSQLManager manager() {
return this.manager;
}
diff --git a/postgresql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/postgresql/v2017_12_01/implementation/NameAvailabilityImpl.java b/postgresql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/postgresql/v2017_12_01/implementation/NameAvailabilityImpl.java
index 1d91316227c80..07b77b43a0184 100644
--- a/postgresql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/postgresql/v2017_12_01/implementation/NameAvailabilityImpl.java
+++ b/postgresql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/postgresql/v2017_12_01/implementation/NameAvailabilityImpl.java
@@ -12,14 +12,14 @@
import com.microsoft.azure.arm.model.implementation.WrapperImpl;
class NameAvailabilityImpl extends WrapperImpl implements NameAvailability {
- private final PostgreSQLManager manager;
- NameAvailabilityImpl(NameAvailabilityInner inner, PostgreSQLManager manager) {
+ private final DBforPostgreSQLManager manager;
+ NameAvailabilityImpl(NameAvailabilityInner inner, DBforPostgreSQLManager manager) {
super(inner);
this.manager = manager;
}
@Override
- public PostgreSQLManager manager() {
+ public DBforPostgreSQLManager manager() {
return this.manager;
}
diff --git a/postgresql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/postgresql/v2017_12_01/implementation/NameAvailabilityInner.java b/postgresql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/postgresql/v2017_12_01/implementation/NameAvailabilityInner.java
index c77d3bf44f061..20d745f4e90ba 100644
--- a/postgresql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/postgresql/v2017_12_01/implementation/NameAvailabilityInner.java
+++ b/postgresql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/postgresql/v2017_12_01/implementation/NameAvailabilityInner.java
@@ -33,7 +33,7 @@ public class NameAvailabilityInner {
private String reason;
/**
- * Get the message value.
+ * Get error Message.
*
* @return the message value
*/
@@ -42,7 +42,7 @@ public String message() {
}
/**
- * Set the message value.
+ * Set error Message.
*
* @param message the message value to set
* @return the NameAvailabilityInner object itself.
@@ -53,7 +53,7 @@ public NameAvailabilityInner withMessage(String message) {
}
/**
- * Get the nameAvailable value.
+ * Get indicates whether the resource name is available.
*
* @return the nameAvailable value
*/
@@ -62,7 +62,7 @@ public Boolean nameAvailable() {
}
/**
- * Set the nameAvailable value.
+ * Set indicates whether the resource name is available.
*
* @param nameAvailable the nameAvailable value to set
* @return the NameAvailabilityInner object itself.
@@ -73,7 +73,7 @@ public NameAvailabilityInner withNameAvailable(Boolean nameAvailable) {
}
/**
- * Get the reason value.
+ * Get reason for name being unavailable.
*
* @return the reason value
*/
@@ -82,7 +82,7 @@ public String reason() {
}
/**
- * Set the reason value.
+ * Set reason for name being unavailable.
*
* @param reason the reason value to set
* @return the NameAvailabilityInner object itself.
diff --git a/postgresql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/postgresql/v2017_12_01/implementation/OperationInner.java b/postgresql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/postgresql/v2017_12_01/implementation/OperationInner.java
index 681d4a5f0ad01..a1e0ead288b6a 100644
--- a/postgresql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/postgresql/v2017_12_01/implementation/OperationInner.java
+++ b/postgresql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/postgresql/v2017_12_01/implementation/OperationInner.java
@@ -44,7 +44,7 @@ public class OperationInner {
private Map properties;
/**
- * Get the name value.
+ * Get the name of the operation being performed on this particular object.
*
* @return the name value
*/
@@ -53,7 +53,7 @@ public String name() {
}
/**
- * Get the display value.
+ * Get the localized display information for this particular operation or action.
*
* @return the display value
*/
@@ -62,7 +62,7 @@ public OperationDisplay display() {
}
/**
- * Get the origin value.
+ * Get the intended executor of the operation. Possible values include: 'NotSpecified', 'user', 'system'.
*
* @return the origin value
*/
@@ -71,7 +71,7 @@ public OperationOrigin origin() {
}
/**
- * Get the properties value.
+ * Get additional descriptions for the operation.
*
* @return the properties value
*/
diff --git a/postgresql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/postgresql/v2017_12_01/implementation/OperationListResultImpl.java b/postgresql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/postgresql/v2017_12_01/implementation/OperationListResultImpl.java
index 705229de03d4f..43a96b5d8a599 100644
--- a/postgresql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/postgresql/v2017_12_01/implementation/OperationListResultImpl.java
+++ b/postgresql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/postgresql/v2017_12_01/implementation/OperationListResultImpl.java
@@ -13,14 +13,14 @@
import java.util.List;
class OperationListResultImpl extends WrapperImpl implements OperationListResult {
- private final PostgreSQLManager manager;
- OperationListResultImpl(OperationListResultInner inner, PostgreSQLManager manager) {
+ private final DBforPostgreSQLManager manager;
+ OperationListResultImpl(OperationListResultInner inner, DBforPostgreSQLManager manager) {
super(inner);
this.manager = manager;
}
@Override
- public PostgreSQLManager manager() {
+ public DBforPostgreSQLManager manager() {
return this.manager;
}
diff --git a/postgresql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/postgresql/v2017_12_01/implementation/OperationListResultInner.java b/postgresql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/postgresql/v2017_12_01/implementation/OperationListResultInner.java
index 3b5975254dc74..2e5768be7e185 100644
--- a/postgresql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/postgresql/v2017_12_01/implementation/OperationListResultInner.java
+++ b/postgresql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/postgresql/v2017_12_01/implementation/OperationListResultInner.java
@@ -22,7 +22,7 @@ public class OperationListResultInner {
private List value;
/**
- * Get the value value.
+ * Get the list of resource provider operations.
*
* @return the value value
*/
@@ -31,7 +31,7 @@ public List value() {
}
/**
- * Set the value value.
+ * Set the list of resource provider operations.
*
* @param value the value value to set
* @return the OperationListResultInner object itself.
diff --git a/postgresql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/postgresql/v2017_12_01/implementation/OperationsImpl.java b/postgresql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/postgresql/v2017_12_01/implementation/OperationsImpl.java
index ace4ab563aab7..81cefe5f75400 100644
--- a/postgresql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/postgresql/v2017_12_01/implementation/OperationsImpl.java
+++ b/postgresql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/postgresql/v2017_12_01/implementation/OperationsImpl.java
@@ -16,14 +16,14 @@
import com.microsoft.azure.management.postgresql.v2017_12_01.OperationListResult;
class OperationsImpl extends WrapperImpl implements Operations {
- private final PostgreSQLManager manager;
+ private final DBforPostgreSQLManager manager;
- OperationsImpl(PostgreSQLManager manager) {
+ OperationsImpl(DBforPostgreSQLManager manager) {
super(manager.inner().operations());
this.manager = manager;
}
- public PostgreSQLManager manager() {
+ public DBforPostgreSQLManager manager() {
return this.manager;
}
diff --git a/postgresql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/postgresql/v2017_12_01/implementation/PerformanceTierPropertiesImpl.java b/postgresql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/postgresql/v2017_12_01/implementation/PerformanceTierPropertiesImpl.java
index c5fabcd2e411b..3978c2c8da7b0 100644
--- a/postgresql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/postgresql/v2017_12_01/implementation/PerformanceTierPropertiesImpl.java
+++ b/postgresql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/postgresql/v2017_12_01/implementation/PerformanceTierPropertiesImpl.java
@@ -15,15 +15,15 @@
import com.microsoft.azure.management.postgresql.v2017_12_01.PerformanceTierServiceLevelObjectives;
class PerformanceTierPropertiesImpl extends WrapperImpl implements PerformanceTierProperties {
- private final PostgreSQLManager manager;
+ private final DBforPostgreSQLManager manager;
- PerformanceTierPropertiesImpl(PerformanceTierPropertiesInner inner, PostgreSQLManager manager) {
+ PerformanceTierPropertiesImpl(PerformanceTierPropertiesInner inner, DBforPostgreSQLManager manager) {
super(inner);
this.manager = manager;
}
@Override
- public PostgreSQLManager manager() {
+ public DBforPostgreSQLManager manager() {
return this.manager;
}
diff --git a/postgresql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/postgresql/v2017_12_01/implementation/PerformanceTierPropertiesInner.java b/postgresql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/postgresql/v2017_12_01/implementation/PerformanceTierPropertiesInner.java
index 7346b6e7ed5b5..1272af94454b0 100644
--- a/postgresql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/postgresql/v2017_12_01/implementation/PerformanceTierPropertiesInner.java
+++ b/postgresql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/postgresql/v2017_12_01/implementation/PerformanceTierPropertiesInner.java
@@ -29,7 +29,7 @@ public class PerformanceTierPropertiesInner {
private List serviceLevelObjectives;
/**
- * Get the id value.
+ * Get iD of the performance tier.
*
* @return the id value
*/
@@ -38,7 +38,7 @@ public String id() {
}
/**
- * Set the id value.
+ * Set iD of the performance tier.
*
* @param id the id value to set
* @return the PerformanceTierPropertiesInner object itself.
@@ -49,7 +49,7 @@ public PerformanceTierPropertiesInner withId(String id) {
}
/**
- * Get the serviceLevelObjectives value.
+ * Get service level objectives associated with the performance tier.
*
* @return the serviceLevelObjectives value
*/
@@ -58,7 +58,7 @@ public List serviceLevelObjectives() {
}
/**
- * Set the serviceLevelObjectives value.
+ * Set service level objectives associated with the performance tier.
*
* @param serviceLevelObjectives the serviceLevelObjectives value to set
* @return the PerformanceTierPropertiesInner object itself.
diff --git a/postgresql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/postgresql/v2017_12_01/implementation/PostgreSQLManagementClientImpl.java b/postgresql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/postgresql/v2017_12_01/implementation/PostgreSQLManagementClientImpl.java
index 534930bebb7a6..c60909483ca49 100644
--- a/postgresql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/postgresql/v2017_12_01/implementation/PostgreSQLManagementClientImpl.java
+++ b/postgresql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/postgresql/v2017_12_01/implementation/PostgreSQLManagementClientImpl.java
@@ -63,11 +63,11 @@ public String apiVersion() {
return this.apiVersion;
}
- /** Gets or sets the preferred language for the response. */
+ /** The preferred language for the response. */
private String acceptLanguage;
/**
- * Gets Gets or sets the preferred language for the response.
+ * Gets The preferred language for the response.
*
* @return the acceptLanguage value.
*/
@@ -76,7 +76,7 @@ public String acceptLanguage() {
}
/**
- * Sets Gets or sets the preferred language for the response.
+ * Sets The preferred language for the response.
*
* @param acceptLanguage the acceptLanguage value.
* @return the service client itself
@@ -86,11 +86,11 @@ public PostgreSQLManagementClientImpl withAcceptLanguage(String acceptLanguage)
return this;
}
- /** Gets or sets the retry timeout in seconds for Long Running Operations. Default value is 30. */
+ /** The retry timeout in seconds for Long Running Operations. Default value is 30. */
private int longRunningOperationRetryTimeout;
/**
- * Gets Gets or sets the retry timeout in seconds for Long Running Operations. Default value is 30.
+ * Gets The retry timeout in seconds for Long Running Operations. Default value is 30.
*
* @return the longRunningOperationRetryTimeout value.
*/
@@ -99,7 +99,7 @@ public int longRunningOperationRetryTimeout() {
}
/**
- * Sets Gets or sets the retry timeout in seconds for Long Running Operations. Default value is 30.
+ * Sets The retry timeout in seconds for Long Running Operations. Default value is 30.
*
* @param longRunningOperationRetryTimeout the longRunningOperationRetryTimeout value.
* @return the service client itself
@@ -109,11 +109,11 @@ public PostgreSQLManagementClientImpl withLongRunningOperationRetryTimeout(int l
return this;
}
- /** When set to true a unique x-ms-client-request-id value is generated and included in each request. Default is true. */
+ /** Whether a unique x-ms-client-request-id should be generated. When set to true a unique x-ms-client-request-id value is generated and included in each request. Default is true. */
private boolean generateClientRequestId;
/**
- * Gets When set to true a unique x-ms-client-request-id value is generated and included in each request. Default is true.
+ * Gets Whether a unique x-ms-client-request-id should be generated. When set to true a unique x-ms-client-request-id value is generated and included in each request. Default is true.
*
* @return the generateClientRequestId value.
*/
@@ -122,7 +122,7 @@ public boolean generateClientRequestId() {
}
/**
- * Sets When set to true a unique x-ms-client-request-id value is generated and included in each request. Default is true.
+ * Sets Whether a unique x-ms-client-request-id should be generated. When set to true a unique x-ms-client-request-id value is generated and included in each request. Default is true.
*
* @param generateClientRequestId the generateClientRequestId value.
* @return the service client itself
@@ -145,6 +145,19 @@ public ServersInner servers() {
return this.servers;
}
+ /**
+ * The ReplicasInner object to access its operations.
+ */
+ private ReplicasInner replicas;
+
+ /**
+ * Gets the ReplicasInner object to access its operations.
+ * @return the ReplicasInner object.
+ */
+ public ReplicasInner replicas() {
+ return this.replicas;
+ }
+
/**
* The FirewallRulesInner object to access its operations.
*/
@@ -298,6 +311,7 @@ protected void initialize() {
this.longRunningOperationRetryTimeout = 30;
this.generateClientRequestId = true;
this.servers = new ServersInner(restClient().retrofit(), this);
+ this.replicas = new ReplicasInner(restClient().retrofit(), this);
this.firewallRules = new FirewallRulesInner(restClient().retrofit(), this);
this.virtualNetworkRules = new VirtualNetworkRulesInner(restClient().retrofit(), this);
this.databases = new DatabasesInner(restClient().retrofit(), this);
@@ -317,6 +331,6 @@ protected void initialize() {
*/
@Override
public String userAgent() {
- return String.format("%s (%s, %s)", super.userAgent(), "PostgreSQLManagementClient", "2017-12-01");
+ return String.format("%s (%s, %s, auto-generated)", super.userAgent(), "PostgreSQLManagementClient", "2017-12-01");
}
}
diff --git a/postgresql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/postgresql/v2017_12_01/implementation/ReplicasImpl.java b/postgresql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/postgresql/v2017_12_01/implementation/ReplicasImpl.java
new file mode 100644
index 0000000000000..fe616043d5461
--- /dev/null
+++ b/postgresql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/postgresql/v2017_12_01/implementation/ReplicasImpl.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.postgresql.v2017_12_01.implementation;
+
+import com.microsoft.azure.arm.model.implementation.WrapperImpl;
+import com.microsoft.azure.management.postgresql.v2017_12_01.Replicas;
+import rx.Observable;
+import rx.functions.Func1;
+import java.util.List;
+import com.microsoft.azure.management.postgresql.v2017_12_01.ServerServer;
+
+class ReplicasImpl extends WrapperImpl implements Replicas {
+ private final DBforPostgreSQLManager manager;
+
+ ReplicasImpl(DBforPostgreSQLManager manager) {
+ super(manager.inner().replicas());
+ this.manager = manager;
+ }
+
+ public DBforPostgreSQLManager manager() {
+ return this.manager;
+ }
+
+ private ServerServerImpl wrapModel(ServerInner inner) {
+ return new ServerServerImpl(inner, manager());
+ }
+
+ @Override
+ public Observable listByServerAsync(String resourceGroupName, String serverName) {
+ ReplicasInner client = this.inner();
+ return client.listByServerAsync(resourceGroupName, serverName)
+ .flatMap(new Func1, Observable>() {
+ @Override
+ public Observable call(List innerList) {
+ return Observable.from(innerList);
+ }
+ })
+ .map(new Func1() {
+ @Override
+ public ServerServer call(ServerInner inner) {
+ return wrapModel(inner);
+ }
+ });
+ }
+
+}
diff --git a/postgresql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/postgresql/v2017_12_01/implementation/ReplicasInner.java b/postgresql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/postgresql/v2017_12_01/implementation/ReplicasInner.java
new file mode 100644
index 0000000000000..87fe8d9b4ba87
--- /dev/null
+++ b/postgresql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/postgresql/v2017_12_01/implementation/ReplicasInner.java
@@ -0,0 +1,152 @@
+/**
+ * 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.postgresql.v2017_12_01.implementation;
+
+import retrofit2.Retrofit;
+import com.google.common.reflect.TypeToken;
+import com.microsoft.azure.CloudException;
+import com.microsoft.rest.ServiceCallback;
+import com.microsoft.rest.ServiceFuture;
+import com.microsoft.rest.ServiceResponse;
+import 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.Response;
+import rx.functions.Func1;
+import rx.Observable;
+
+/**
+ * An instance of this class provides access to all the operations defined
+ * in Replicas.
+ */
+public class ReplicasInner {
+ /** The Retrofit service to perform REST calls. */
+ private ReplicasService service;
+ /** The service client containing this operation class. */
+ private PostgreSQLManagementClientImpl client;
+
+ /**
+ * Initializes an instance of ReplicasInner.
+ *
+ * @param retrofit the Retrofit instance built from a Retrofit Builder.
+ * @param client the instance of the service client containing this operation class.
+ */
+ public ReplicasInner(Retrofit retrofit, PostgreSQLManagementClientImpl client) {
+ this.service = retrofit.create(ReplicasService.class);
+ this.client = client;
+ }
+
+ /**
+ * The interface defining all the services for Replicas to be
+ * used by Retrofit to perform actually REST calls.
+ */
+ interface ReplicasService {
+ @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.postgresql.v2017_12_01.Replicas listByServer" })
+ @GET("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/servers/{serverName}/Replicas")
+ 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);
+
+ }
+
+ /**
+ * 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 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 List<ServerInner> object if successful.
+ */
+ public List listByServer(String resourceGroupName, String serverName) {
+ return listByServerWithServiceResponseAsync(resourceGroupName, serverName).toBlocking().single().body();
+ }
+
+ /**
+ * 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 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(String resourceGroupName, String serverName, final ServiceCallback> serviceCallback) {
+ return ServiceFuture.fromResponse(listByServerWithServiceResponseAsync(resourceGroupName, serverName), serviceCallback);
+ }
+
+ /**
+ * 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 serverName The name of the server.
+ * @throws IllegalArgumentException thrown if parameters fail the validation
+ * @return the observable to the List<ServerInner> object
+ */
+ public Observable> listByServerAsync(String resourceGroupName, String serverName) {
+ return listByServerWithServiceResponseAsync(resourceGroupName, serverName).map(new Func1>, List>() {
+ @Override
+ public List call(ServiceResponse> response) {
+ return response.body();
+ }
+ });
+ }
+
+ /**
+ * 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 serverName The name of the server.
+ * @throws IllegalArgumentException thrown if parameters fail the validation
+ * @return the observable to the List<ServerInner> object
+ */
+ public Observable>> listByServerWithServiceResponseAsync(String resourceGroupName, 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);
+ List items = null;
+ if (result.body() != null) {
+ items = result.body().items();
+ }
+ ServiceResponse> clientResponse = new ServiceResponse>(items, result.response());
+ return Observable.just(clientResponse);
+ } 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);
+ }
+
+}
diff --git a/postgresql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/postgresql/v2017_12_01/implementation/ServerImpl.java b/postgresql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/postgresql/v2017_12_01/implementation/ServerImpl.java
index da4aaf88afe8b..031a0ace208ed 100644
--- a/postgresql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/postgresql/v2017_12_01/implementation/ServerImpl.java
+++ b/postgresql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/postgresql/v2017_12_01/implementation/ServerImpl.java
@@ -22,10 +22,10 @@
import com.microsoft.azure.management.postgresql.v2017_12_01.ServerPropertiesForCreate;
import rx.functions.Func1;
-class ServerImpl extends GroupableResourceCoreImpl implements Server, Server.Definition, Server.Update {
+class ServerImpl extends GroupableResourceCoreImpl implements Server, Server.Definition, Server.Update {
private ServerForCreate createParameter;
private ServerUpdateParameters updateParameter;
- ServerImpl(String name, ServerInner inner, PostgreSQLManager manager) {
+ ServerImpl(String name, ServerInner inner, DBforPostgreSQLManager manager) {
super(name, inner, manager);
this.createParameter = new ServerForCreate();
this.updateParameter = new ServerUpdateParameters();
@@ -92,6 +92,21 @@ public String fullyQualifiedDomainName() {
return this.inner().fullyQualifiedDomainName();
}
+ @Override
+ public String masterServerId() {
+ return this.inner().masterServerId();
+ }
+
+ @Override
+ public Integer replicaCapacity() {
+ return this.inner().replicaCapacity();
+ }
+
+ @Override
+ public String replicationRole() {
+ return this.inner().replicationRole();
+ }
+
@Override
public Sku sku() {
return this.inner().sku();
diff --git a/postgresql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/postgresql/v2017_12_01/implementation/ServerInner.java b/postgresql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/postgresql/v2017_12_01/implementation/ServerInner.java
index 64dbc951a9e35..2b6b5a0e29198 100644
--- a/postgresql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/postgresql/v2017_12_01/implementation/ServerInner.java
+++ b/postgresql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/postgresql/v2017_12_01/implementation/ServerInner.java
@@ -37,7 +37,8 @@ public class ServerInner extends Resource {
private String administratorLogin;
/**
- * Server version. Possible values include: '9.5', '9.6'.
+ * Server version. Possible values include: '9.5', '9.6', '10', '10.0',
+ * '10.2'.
*/
@JsonProperty(value = "properties.version")
private ServerVersion version;
@@ -75,7 +76,25 @@ public class ServerInner extends Resource {
private StorageProfile storageProfile;
/**
- * Get the sku value.
+ * The replication role of the server.
+ */
+ @JsonProperty(value = "properties.replicationRole")
+ private String replicationRole;
+
+ /**
+ * The master server id of a replica server.
+ */
+ @JsonProperty(value = "properties.masterServerId")
+ private String masterServerId;
+
+ /**
+ * The maximum number of replicas that a master server can have.
+ */
+ @JsonProperty(value = "properties.replicaCapacity")
+ private Integer replicaCapacity;
+
+ /**
+ * Get the SKU (pricing tier) of the server.
*
* @return the sku value
*/
@@ -84,7 +103,7 @@ public Sku sku() {
}
/**
- * Set the sku value.
+ * Set the SKU (pricing tier) of the server.
*
* @param sku the sku value to set
* @return the ServerInner object itself.
@@ -95,7 +114,7 @@ public ServerInner withSku(Sku sku) {
}
/**
- * Get the administratorLogin value.
+ * Get the administrator's login name of a server. Can only be specified when the server is being created (and is required for creation).
*
* @return the administratorLogin value
*/
@@ -104,7 +123,7 @@ public String administratorLogin() {
}
/**
- * Set the administratorLogin value.
+ * Set the administrator's login name of a server. Can only be specified when the server is being created (and is required for creation).
*
* @param administratorLogin the administratorLogin value to set
* @return the ServerInner object itself.
@@ -115,7 +134,7 @@ public ServerInner withAdministratorLogin(String administratorLogin) {
}
/**
- * Get the version value.
+ * Get server version. Possible values include: '9.5', '9.6', '10', '10.0', '10.2'.
*
* @return the version value
*/
@@ -124,7 +143,7 @@ public ServerVersion version() {
}
/**
- * Set the version value.
+ * Set server version. Possible values include: '9.5', '9.6', '10', '10.0', '10.2'.
*
* @param version the version value to set
* @return the ServerInner object itself.
@@ -135,7 +154,7 @@ public ServerInner withVersion(ServerVersion version) {
}
/**
- * Get the sslEnforcement value.
+ * Get enable ssl enforcement or not when connect to server. Possible values include: 'Enabled', 'Disabled'.
*
* @return the sslEnforcement value
*/
@@ -144,7 +163,7 @@ public SslEnforcementEnum sslEnforcement() {
}
/**
- * Set the sslEnforcement value.
+ * Set enable ssl enforcement or not when connect to server. Possible values include: 'Enabled', 'Disabled'.
*
* @param sslEnforcement the sslEnforcement value to set
* @return the ServerInner object itself.
@@ -155,7 +174,7 @@ public ServerInner withSslEnforcement(SslEnforcementEnum sslEnforcement) {
}
/**
- * Get the userVisibleState value.
+ * Get a state of a server that is visible to user. Possible values include: 'Ready', 'Dropping', 'Disabled'.
*
* @return the userVisibleState value
*/
@@ -164,7 +183,7 @@ public ServerState userVisibleState() {
}
/**
- * Set the userVisibleState value.
+ * Set a state of a server that is visible to user. Possible values include: 'Ready', 'Dropping', 'Disabled'.
*
* @param userVisibleState the userVisibleState value to set
* @return the ServerInner object itself.
@@ -175,7 +194,7 @@ public ServerInner withUserVisibleState(ServerState userVisibleState) {
}
/**
- * Get the fullyQualifiedDomainName value.
+ * Get the fully qualified domain name of a server.
*
* @return the fullyQualifiedDomainName value
*/
@@ -184,7 +203,7 @@ public String fullyQualifiedDomainName() {
}
/**
- * Set the fullyQualifiedDomainName value.
+ * Set the fully qualified domain name of a server.
*
* @param fullyQualifiedDomainName the fullyQualifiedDomainName value to set
* @return the ServerInner object itself.
@@ -195,7 +214,7 @@ public ServerInner withFullyQualifiedDomainName(String fullyQualifiedDomainName)
}
/**
- * Get the earliestRestoreDate value.
+ * Get earliest restore point creation time (ISO8601 format).
*
* @return the earliestRestoreDate value
*/
@@ -204,7 +223,7 @@ public DateTime earliestRestoreDate() {
}
/**
- * Set the earliestRestoreDate value.
+ * Set earliest restore point creation time (ISO8601 format).
*
* @param earliestRestoreDate the earliestRestoreDate value to set
* @return the ServerInner object itself.
@@ -215,7 +234,7 @@ public ServerInner withEarliestRestoreDate(DateTime earliestRestoreDate) {
}
/**
- * Get the storageProfile value.
+ * Get storage profile of a server.
*
* @return the storageProfile value
*/
@@ -224,7 +243,7 @@ public StorageProfile storageProfile() {
}
/**
- * Set the storageProfile value.
+ * Set storage profile of a server.
*
* @param storageProfile the storageProfile value to set
* @return the ServerInner object itself.
@@ -234,4 +253,64 @@ public ServerInner withStorageProfile(StorageProfile storageProfile) {
return this;
}
+ /**
+ * Get the replication role of the server.
+ *
+ * @return the replicationRole value
+ */
+ public String replicationRole() {
+ return this.replicationRole;
+ }
+
+ /**
+ * Set the replication role of the server.
+ *
+ * @param replicationRole the replicationRole value to set
+ * @return the ServerInner object itself.
+ */
+ public ServerInner withReplicationRole(String replicationRole) {
+ this.replicationRole = replicationRole;
+ return this;
+ }
+
+ /**
+ * Get the master server id of a replica server.
+ *
+ * @return the masterServerId value
+ */
+ public String masterServerId() {
+ return this.masterServerId;
+ }
+
+ /**
+ * Set the master server id of a replica server.
+ *
+ * @param masterServerId the masterServerId value to set
+ * @return the ServerInner object itself.
+ */
+ public ServerInner withMasterServerId(String masterServerId) {
+ this.masterServerId = masterServerId;
+ return this;
+ }
+
+ /**
+ * Get the maximum number of replicas that a master server can have.
+ *
+ * @return the replicaCapacity value
+ */
+ public Integer replicaCapacity() {
+ return this.replicaCapacity;
+ }
+
+ /**
+ * Set the maximum number of replicas that a master server can have.
+ *
+ * @param replicaCapacity the replicaCapacity value to set
+ * @return the ServerInner object itself.
+ */
+ public ServerInner withReplicaCapacity(Integer replicaCapacity) {
+ this.replicaCapacity = replicaCapacity;
+ return this;
+ }
+
}
diff --git a/postgresql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/postgresql/v2017_12_01/implementation/ServerSecurityAlertPoliciesImpl.java b/postgresql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/postgresql/v2017_12_01/implementation/ServerSecurityAlertPoliciesImpl.java
index 27006681348f3..5acdc30c915d7 100644
--- a/postgresql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/postgresql/v2017_12_01/implementation/ServerSecurityAlertPoliciesImpl.java
+++ b/postgresql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/postgresql/v2017_12_01/implementation/ServerSecurityAlertPoliciesImpl.java
@@ -16,14 +16,14 @@
import com.microsoft.azure.management.postgresql.v2017_12_01.ServerSecurityAlertPolicy;
class ServerSecurityAlertPoliciesImpl extends WrapperImpl implements ServerSecurityAlertPolicies {
- private final PostgreSQLManager manager;
+ private final DBforPostgreSQLManager manager;
- ServerSecurityAlertPoliciesImpl(PostgreSQLManager manager) {
+ ServerSecurityAlertPoliciesImpl(DBforPostgreSQLManager manager) {
super(manager.inner().serverSecurityAlertPolicies());
this.manager = manager;
}
- public PostgreSQLManager manager() {
+ public DBforPostgreSQLManager manager() {
return this.manager;
}
diff --git a/postgresql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/postgresql/v2017_12_01/implementation/ServerSecurityAlertPolicyImpl.java b/postgresql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/postgresql/v2017_12_01/implementation/ServerSecurityAlertPolicyImpl.java
index 3b1c422500c6b..11a2a38161a49 100644
--- a/postgresql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/postgresql/v2017_12_01/implementation/ServerSecurityAlertPolicyImpl.java
+++ b/postgresql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/postgresql/v2017_12_01/implementation/ServerSecurityAlertPolicyImpl.java
@@ -15,11 +15,11 @@
import java.util.List;
class ServerSecurityAlertPolicyImpl extends CreatableUpdatableImpl implements ServerSecurityAlertPolicy, ServerSecurityAlertPolicy.Definition, ServerSecurityAlertPolicy.Update {
- private final PostgreSQLManager manager;
+ private final DBforPostgreSQLManager manager;
private String resourceGroupName;
private String serverName;
- ServerSecurityAlertPolicyImpl(String name, PostgreSQLManager manager) {
+ ServerSecurityAlertPolicyImpl(String name, DBforPostgreSQLManager manager) {
super(name, new ServerSecurityAlertPolicyInner());
this.manager = manager;
// Set resource name
@@ -27,19 +27,19 @@ class ServerSecurityAlertPolicyImpl extends CreatableUpdatableImpl disabledAlerts() {
}
/**
- * Set the disabledAlerts value.
+ * Set specifies an array of alerts that are disabled. Allowed values are: Sql_Injection, Sql_Injection_Vulnerability, Access_Anomaly.
*
* @param disabledAlerts the disabledAlerts value to set
* @return the ServerSecurityAlertPolicyInner object itself.
@@ -107,7 +107,7 @@ public ServerSecurityAlertPolicyInner withDisabledAlerts(List disabledAl
}
/**
- * Get the emailAddresses value.
+ * Get specifies an array of e-mail addresses to which the alert is sent.
*
* @return the emailAddresses value
*/
@@ -116,7 +116,7 @@ public List emailAddresses() {
}
/**
- * Set the emailAddresses value.
+ * Set specifies an array of e-mail addresses to which the alert is sent.
*
* @param emailAddresses the emailAddresses value to set
* @return the ServerSecurityAlertPolicyInner object itself.
@@ -127,7 +127,7 @@ public ServerSecurityAlertPolicyInner withEmailAddresses(List emailAddre
}
/**
- * Get the emailAccountAdmins value.
+ * Get specifies that the alert is sent to the account administrators.
*
* @return the emailAccountAdmins value
*/
@@ -136,7 +136,7 @@ public Boolean emailAccountAdmins() {
}
/**
- * Set the emailAccountAdmins value.
+ * Set specifies that the alert is sent to the account administrators.
*
* @param emailAccountAdmins the emailAccountAdmins value to set
* @return the ServerSecurityAlertPolicyInner object itself.
@@ -147,7 +147,7 @@ public ServerSecurityAlertPolicyInner withEmailAccountAdmins(Boolean emailAccoun
}
/**
- * Get the storageEndpoint value.
+ * Get specifies the blob storage endpoint (e.g. https://MyAccount.blob.core.windows.net). This blob storage will hold all Threat Detection audit logs.
*
* @return the storageEndpoint value
*/
@@ -156,7 +156,7 @@ public String storageEndpoint() {
}
/**
- * Set the storageEndpoint value.
+ * Set specifies the blob storage endpoint (e.g. https://MyAccount.blob.core.windows.net). This blob storage will hold all Threat Detection audit logs.
*
* @param storageEndpoint the storageEndpoint value to set
* @return the ServerSecurityAlertPolicyInner object itself.
@@ -167,7 +167,7 @@ public ServerSecurityAlertPolicyInner withStorageEndpoint(String storageEndpoint
}
/**
- * Get the storageAccountAccessKey value.
+ * Get specifies the identifier key of the Threat Detection audit storage account.
*
* @return the storageAccountAccessKey value
*/
@@ -176,7 +176,7 @@ public String storageAccountAccessKey() {
}
/**
- * Set the storageAccountAccessKey value.
+ * Set specifies the identifier key of the Threat Detection audit storage account.
*
* @param storageAccountAccessKey the storageAccountAccessKey value to set
* @return the ServerSecurityAlertPolicyInner object itself.
@@ -187,7 +187,7 @@ public ServerSecurityAlertPolicyInner withStorageAccountAccessKey(String storage
}
/**
- * Get the retentionDays value.
+ * Get specifies the number of days to keep in the Threat Detection audit logs.
*
* @return the retentionDays value
*/
@@ -196,7 +196,7 @@ public Integer retentionDays() {
}
/**
- * Set the retentionDays value.
+ * Set specifies the number of days to keep in the Threat Detection audit logs.
*
* @param retentionDays the retentionDays value to set
* @return the ServerSecurityAlertPolicyInner object itself.
diff --git a/postgresql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/postgresql/v2017_12_01/implementation/ServerServerImpl.java b/postgresql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/postgresql/v2017_12_01/implementation/ServerServerImpl.java
new file mode 100644
index 0000000000000..a34c3a99d89a7
--- /dev/null
+++ b/postgresql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/postgresql/v2017_12_01/implementation/ServerServerImpl.java
@@ -0,0 +1,117 @@
+/**
+ * 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.postgresql.v2017_12_01.implementation;
+
+import com.microsoft.azure.management.postgresql.v2017_12_01.ServerServer;
+import com.microsoft.azure.arm.model.implementation.WrapperImpl;
+import rx.Observable;
+import org.joda.time.DateTime;
+import com.microsoft.azure.management.postgresql.v2017_12_01.Sku;
+import com.microsoft.azure.management.postgresql.v2017_12_01.SslEnforcementEnum;
+import com.microsoft.azure.management.postgresql.v2017_12_01.StorageProfile;
+import java.util.Map;
+import com.microsoft.azure.management.postgresql.v2017_12_01.ServerState;
+import com.microsoft.azure.management.postgresql.v2017_12_01.ServerVersion;
+
+class ServerServerImpl extends WrapperImpl implements ServerServer {
+ private final DBforPostgreSQLManager manager;
+
+ ServerServerImpl(ServerInner inner, DBforPostgreSQLManager manager) {
+ super(inner);
+ this.manager = manager;
+ }
+
+ @Override
+ public DBforPostgreSQLManager manager() {
+ return this.manager;
+ }
+
+
+
+ @Override
+ public String administratorLogin() {
+ return this.inner().administratorLogin();
+ }
+
+ @Override
+ public DateTime earliestRestoreDate() {
+ return this.inner().earliestRestoreDate();
+ }
+
+ @Override
+ public String fullyQualifiedDomainName() {
+ return this.inner().fullyQualifiedDomainName();
+ }
+
+ @Override
+ public String id() {
+ return this.inner().id();
+ }
+
+ @Override
+ public String location() {
+ return this.inner().location();
+ }
+
+ @Override
+ public String masterServerId() {
+ return this.inner().masterServerId();
+ }
+
+ @Override
+ public String name() {
+ return this.inner().name();
+ }
+
+ @Override
+ public Integer replicaCapacity() {
+ return this.inner().replicaCapacity();
+ }
+
+ @Override
+ public String replicationRole() {
+ return this.inner().replicationRole();
+ }
+
+ @Override
+ public Sku sku() {
+ return this.inner().sku();
+ }
+
+ @Override
+ public SslEnforcementEnum sslEnforcement() {
+ return this.inner().sslEnforcement();
+ }
+
+ @Override
+ public StorageProfile storageProfile() {
+ return this.inner().storageProfile();
+ }
+
+ @Override
+ public Map tags() {
+ return this.inner().getTags();
+ }
+
+ @Override
+ public String type() {
+ return this.inner().type();
+ }
+
+ @Override
+ public ServerState userVisibleState() {
+ return this.inner().userVisibleState();
+ }
+
+ @Override
+ public ServerVersion version() {
+ return this.inner().version();
+ }
+
+}
diff --git a/postgresql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/postgresql/v2017_12_01/implementation/ServersImpl.java b/postgresql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/postgresql/v2017_12_01/implementation/ServersImpl.java
index a37a6421ce14d..fb6351dc69d1a 100644
--- a/postgresql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/postgresql/v2017_12_01/implementation/ServersImpl.java
+++ b/postgresql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/postgresql/v2017_12_01/implementation/ServersImpl.java
@@ -23,8 +23,8 @@
import com.microsoft.azure.PagedList;
import com.microsoft.azure.Page;
-class ServersImpl extends GroupableResourcesCoreImpl implements Servers {
- protected ServersImpl(PostgreSQLManager manager) {
+class ServersImpl extends GroupableResourcesCoreImpl implements Servers {
+ protected ServersImpl(DBforPostgreSQLManager manager) {
super(manager.inner().servers(), manager);
}
@@ -125,6 +125,12 @@ public ServerImpl define(String name) {
return wrapModel(name);
}
+ @Override
+ public Completable restartAsync(String resourceGroupName, String serverName) {
+ ServersInner client = this.inner();
+ return client.restartAsync(resourceGroupName, serverName).toCompletable();
+ }
+
@Override
protected ServerImpl wrapModel(ServerInner inner) {
return new ServerImpl(inner.name(), inner, manager());
diff --git a/postgresql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/postgresql/v2017_12_01/implementation/ServersInner.java b/postgresql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/postgresql/v2017_12_01/implementation/ServersInner.java
index f972ef19c9953..32eca0cdefb1e 100644
--- a/postgresql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/postgresql/v2017_12_01/implementation/ServersInner.java
+++ b/postgresql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/postgresql/v2017_12_01/implementation/ServersInner.java
@@ -32,6 +32,7 @@
import retrofit2.http.HTTP;
import retrofit2.http.PATCH;
import retrofit2.http.Path;
+import retrofit2.http.POST;
import retrofit2.http.PUT;
import retrofit2.http.Query;
import retrofit2.Response;
@@ -100,6 +101,14 @@ interface ServersService {
@GET("subscriptions/{subscriptionId}/providers/Microsoft.DBforPostgreSQL/servers")
Observable> list(@Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent);
+ @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.postgresql.v2017_12_01.Servers restart" })
+ @POST("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/servers/{serverName}/restart")
+ Observable> restart(@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.postgresql.v2017_12_01.Servers beginRestart" })
+ @POST("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/servers/{serverName}/restart")
+ Observable> beginRestart(@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);
+
}
/**
@@ -857,4 +866,158 @@ private ServiceResponse> listDelegate(Response restartAsync(String resourceGroupName, String serverName, final ServiceCallback serviceCallback) {
+ return ServiceFuture.fromResponse(restartWithServiceResponseAsync(resourceGroupName, serverName), serviceCallback);
+ }
+
+ /**
+ * 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 serverName The name of the server.
+ * @throws IllegalArgumentException thrown if parameters fail the validation
+ * @return the observable for the request
+ */
+ public Observable restartAsync(String resourceGroupName, String serverName) {
+ return restartWithServiceResponseAsync(resourceGroupName, serverName).map(new Func1, Void>() {
+ @Override
+ public Void call(ServiceResponse response) {
+ return response.body();
+ }
+ });
+ }
+
+ /**
+ * 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 serverName The name of the server.
+ * @throws IllegalArgumentException thrown if parameters fail the validation
+ * @return the observable for the request
+ */
+ public Observable> restartWithServiceResponseAsync(String resourceGroupName, 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.");
+ }
+ Observable> observable = service.restart(this.client.subscriptionId(), resourceGroupName, serverName, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent());
+ return client.getAzureClient().getPostOrDeleteResultAsync(observable, new TypeToken() { }.getType());
+ }
+
+ /**
+ * 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 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
+ */
+ public void beginRestart(String resourceGroupName, String serverName) {
+ beginRestartWithServiceResponseAsync(resourceGroupName, serverName).toBlocking().single().body();
+ }
+
+ /**
+ * 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 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 beginRestartAsync(String resourceGroupName, String serverName, final ServiceCallback serviceCallback) {
+ return ServiceFuture.fromResponse(beginRestartWithServiceResponseAsync(resourceGroupName, serverName), serviceCallback);
+ }
+
+ /**
+ * 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 serverName The name of the server.
+ * @throws IllegalArgumentException thrown if parameters fail the validation
+ * @return the {@link ServiceResponse} object if successful.
+ */
+ public Observable beginRestartAsync(String resourceGroupName, String serverName) {
+ return beginRestartWithServiceResponseAsync(resourceGroupName, serverName).map(new Func1, Void>() {
+ @Override
+ public Void call(ServiceResponse response) {
+ return response.body();
+ }
+ });
+ }
+
+ /**
+ * 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 serverName The name of the server.
+ * @throws IllegalArgumentException thrown if parameters fail the validation
+ * @return the {@link ServiceResponse} object if successful.
+ */
+ public Observable> beginRestartWithServiceResponseAsync(String resourceGroupName, 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.beginRestart(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 clientResponse = beginRestartDelegate(response);
+ return Observable.just(clientResponse);
+ } catch (Throwable t) {
+ return Observable.error(t);
+ }
+ }
+ });
+ }
+
+ private ServiceResponse beginRestartDelegate(Response response) throws CloudException, IOException, IllegalArgumentException {
+ return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter())
+ .register(200, new TypeToken() { }.getType())
+ .register(202, new TypeToken() { }.getType())
+ .registerError(CloudException.class)
+ .build(response);
+ }
+
}
diff --git a/postgresql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/postgresql/v2017_12_01/implementation/VirtualNetworkRuleImpl.java b/postgresql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/postgresql/v2017_12_01/implementation/VirtualNetworkRuleImpl.java
index ff78f2c72dadc..87312511c33f1 100644
--- a/postgresql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/postgresql/v2017_12_01/implementation/VirtualNetworkRuleImpl.java
+++ b/postgresql/resource-manager/v2017_12_01/src/main/java/com/microsoft/azure/management/postgresql/v2017_12_01/implementation/VirtualNetworkRuleImpl.java
@@ -14,12 +14,12 @@
import com.microsoft.azure.management.postgresql.v2017_12_01.VirtualNetworkRuleState;
class VirtualNetworkRuleImpl extends CreatableUpdatableImpl implements VirtualNetworkRule, VirtualNetworkRule.Definition, VirtualNetworkRule.Update {
- private final PostgreSQLManager manager;
+ private final DBforPostgreSQLManager manager;
private String resourceGroupName;
private String serverName;
private String virtualNetworkRuleName;
- VirtualNetworkRuleImpl(String name, PostgreSQLManager manager) {
+ VirtualNetworkRuleImpl(String name, DBforPostgreSQLManager manager) {
super(name, new VirtualNetworkRuleInner());
this.manager = manager;
// Set resource name
@@ -27,12 +27,12 @@ class VirtualNetworkRuleImpl extends CreatableUpdatableImpl implements VirtualNetworkRules {
- private final PostgreSQLManager manager;
+ private final DBforPostgreSQLManager manager;
- VirtualNetworkRulesImpl(PostgreSQLManager manager) {
+ VirtualNetworkRulesImpl(DBforPostgreSQLManager manager) {
super(manager.inner().virtualNetworkRules());
this.manager = manager;
}
- public PostgreSQLManager manager() {
+ public DBforPostgreSQLManager manager() {
return this.manager;
}
@@ -42,29 +42,10 @@ private VirtualNetworkRuleImpl wrapModel(String name) {
return new VirtualNetworkRuleImpl(name, this.manager());
}
- private Observable> listByServerNextInnerPageAsync(String nextLink) {
- if (nextLink == null) {
- Observable.empty();
- }
- VirtualNetworkRulesInner client = this.inner();
- return client.listByServerNextAsync(nextLink)
- .flatMap(new Func1, Observable>>() {
- @Override
- public Observable> call(Page page) {
- return Observable.just(page).concatWith(listByServerNextInnerPageAsync(page.nextPageLink()));
- }
- });
- }
@Override
public Observable listByServerAsync(final String resourceGroupName, final String serverName) {
VirtualNetworkRulesInner client = this.inner();
return client.listByServerAsync(resourceGroupName, serverName)
- .flatMap(new Func1, Observable>>() {
- @Override
- public Observable> call(Page page) {
- return listByServerNextInnerPageAsync(page.nextPageLink());
- }
- })
.flatMapIterable(new Func1, Iterable>() {
@Override
public Iterable call(Page page) {