Share via


ArmPostgreSqlFlexibleServersModelFactory.PostgreSqlFlexibleServersReplica Method

Definition

Initializes a new instance of PostgreSqlFlexibleServersReplica.

public static Azure.ResourceManager.PostgreSql.FlexibleServers.Models.PostgreSqlFlexibleServersReplica PostgreSqlFlexibleServersReplica (Azure.ResourceManager.PostgreSql.FlexibleServers.Models.PostgreSqlFlexibleServerReplicationRole? role = default, int? capacity = default, Azure.ResourceManager.PostgreSql.FlexibleServers.Models.PostgreSqlFlexibleServersReplicationState? replicationState = default, Azure.ResourceManager.PostgreSql.FlexibleServers.Models.ReadReplicaPromoteMode? promoteMode = default, Azure.ResourceManager.PostgreSql.FlexibleServers.Models.ReplicationPromoteOption? promoteOption = default);
static member PostgreSqlFlexibleServersReplica : Nullable<Azure.ResourceManager.PostgreSql.FlexibleServers.Models.PostgreSqlFlexibleServerReplicationRole> * Nullable<int> * Nullable<Azure.ResourceManager.PostgreSql.FlexibleServers.Models.PostgreSqlFlexibleServersReplicationState> * Nullable<Azure.ResourceManager.PostgreSql.FlexibleServers.Models.ReadReplicaPromoteMode> * Nullable<Azure.ResourceManager.PostgreSql.FlexibleServers.Models.ReplicationPromoteOption> -> Azure.ResourceManager.PostgreSql.FlexibleServers.Models.PostgreSqlFlexibleServersReplica
Public Shared Function PostgreSqlFlexibleServersReplica (Optional role As Nullable(Of PostgreSqlFlexibleServerReplicationRole) = Nothing, Optional capacity As Nullable(Of Integer) = Nothing, Optional replicationState As Nullable(Of PostgreSqlFlexibleServersReplicationState) = Nothing, Optional promoteMode As Nullable(Of ReadReplicaPromoteMode) = Nothing, Optional promoteOption As Nullable(Of ReplicationPromoteOption) = Nothing) As PostgreSqlFlexibleServersReplica

Parameters

role
Nullable<PostgreSqlFlexibleServerReplicationRole>

Used to indicate role of the server in replication set.

capacity
Nullable<Int32>

Replicas allowed for a server.

replicationState
Nullable<PostgreSqlFlexibleServersReplicationState>

Gets the replication state of a replica server. This property is returned only for replicas api call. Supported values are Active, Catchup, Provisioning, Updating, Broken, Reconfiguring.

promoteMode
Nullable<ReadReplicaPromoteMode>

Sets the promote mode for a replica server. This is a write only property.

promoteOption
Nullable<ReplicationPromoteOption>

Sets the promote options for a replica server. This is a write only property.

Returns

A new PostgreSqlFlexibleServersReplica instance for mocking.

Applies to