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 c8ed251c49e3..f86c5c0006b7 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 @@ -137,7 +137,7 @@ interface WithCreate extends Creatable, Resource.DefinitionWithTags, Resource.UpdateWithTags, UpdateStages.WithAdministratorLoginPassword, UpdateStages.WithSku, UpdateStages.WithSslEnforcement, UpdateStages.WithStorageProfile, UpdateStages.WithVersion { + interface Update extends Appliable, Resource.UpdateWithTags, UpdateStages.WithAdministratorLoginPassword, UpdateStages.WithReplicationRole, UpdateStages.WithSku, UpdateStages.WithSslEnforcement, UpdateStages.WithStorageProfile, UpdateStages.WithVersion { } /** @@ -156,6 +156,18 @@ interface WithAdministratorLoginPassword { Update withAdministratorLoginPassword(String administratorLoginPassword); } + /** + * The stage of the server update allowing to specify ReplicationRole. + */ + interface WithReplicationRole { + /** + * Specifies replicationRole. + * @param replicationRole The replication role of the server + * @return the next update stage + */ + Update withReplicationRole(String replicationRole); + } + /** * The stage of the server update allowing to specify Sku. */ 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 7100ff2f1cb1..0576551c84b5 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 @@ -49,6 +49,12 @@ public class ServerUpdateParameters { @JsonProperty(value = "properties.sslEnforcement") private SslEnforcementEnum sslEnforcement; + /** + * The replication role of the server. + */ + @JsonProperty(value = "properties.replicationRole") + private String replicationRole; + /** * Application-specific metadata in the form of key-value pairs. */ @@ -155,6 +161,26 @@ public ServerUpdateParameters withSslEnforcement(SslEnforcementEnum sslEnforceme 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 ServerUpdateParameters object itself. + */ + public ServerUpdateParameters withReplicationRole(String replicationRole) { + this.replicationRole = replicationRole; + return this; + } + /** * Get application-specific metadata in the form of key-value pairs. * 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 031a0ace208e..9ccdabe9c6c4 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 @@ -144,6 +144,12 @@ public ServerImpl withAdministratorLoginPassword(String administratorLoginPasswo return this; } + @Override + public ServerImpl withReplicationRole(String replicationRole) { + this.updateParameter.withReplicationRole(replicationRole); + return this; + } + @Override public ServerImpl withSslEnforcement(SslEnforcementEnum sslEnforcement) { this.updateParameter.withSslEnforcement(sslEnforcement);