ArmPostgreSqlFlexibleServersModelFactory.PostgreSqlFlexibleServersReplica Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
Used to indicate role of the server in replication set.
- 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
Azure SDK for .NET