ArmSqlModelFactory.DistributedAvailabilityGroupData Method

Definition

Initializes a new instance of DistributedAvailabilityGroupData.

public static Azure.ResourceManager.Sql.DistributedAvailabilityGroupData DistributedAvailabilityGroupData (Azure.Core.ResourceIdentifier id = default, string name = default, Azure.Core.ResourceType resourceType = default, Azure.ResourceManager.Models.SystemData systemData = default, string targetDatabase = default, string sourceEndpoint = default, string primaryAvailabilityGroupName = default, string secondaryAvailabilityGroupName = default, Azure.ResourceManager.Sql.Models.DistributedAvailabilityGroupReplicationMode? replicationMode = default, Guid? distributedAvailabilityGroupId = default, Guid? sourceReplicaId = default, Guid? targetReplicaId = default, string linkState = default, string lastHardenedLsn = default);
static member DistributedAvailabilityGroupData : Azure.Core.ResourceIdentifier * string * Azure.Core.ResourceType * Azure.ResourceManager.Models.SystemData * string * string * string * string * Nullable<Azure.ResourceManager.Sql.Models.DistributedAvailabilityGroupReplicationMode> * Nullable<Guid> * Nullable<Guid> * Nullable<Guid> * string * string -> Azure.ResourceManager.Sql.DistributedAvailabilityGroupData
Public Shared Function DistributedAvailabilityGroupData (Optional id As ResourceIdentifier = Nothing, Optional name As String = Nothing, Optional resourceType As ResourceType = Nothing, Optional systemData As SystemData = Nothing, Optional targetDatabase As String = Nothing, Optional sourceEndpoint As String = Nothing, Optional primaryAvailabilityGroupName As String = Nothing, Optional secondaryAvailabilityGroupName As String = Nothing, Optional replicationMode As Nullable(Of DistributedAvailabilityGroupReplicationMode) = Nothing, Optional distributedAvailabilityGroupId As Nullable(Of Guid) = Nothing, Optional sourceReplicaId As Nullable(Of Guid) = Nothing, Optional targetReplicaId As Nullable(Of Guid) = Nothing, Optional linkState As String = Nothing, Optional lastHardenedLsn As String = Nothing) As DistributedAvailabilityGroupData

Parameters

id
ResourceIdentifier

The id.

name
String

The name.

resourceType
ResourceType

The resourceType.

systemData
SystemData

The systemData.

targetDatabase
String

The name of the target database.

sourceEndpoint
String

The source endpoint.

primaryAvailabilityGroupName
String

The primary availability group name.

secondaryAvailabilityGroupName
String

The secondary availability group name.

replicationMode
Nullable<DistributedAvailabilityGroupReplicationMode>

The replication mode of a distributed availability group. Parameter will be ignored during link creation.

distributedAvailabilityGroupId
Nullable<Guid>

The distributed availability group id.

sourceReplicaId
Nullable<Guid>

The source replica id.

targetReplicaId
Nullable<Guid>

The target replica id.

linkState
String

The link state.

lastHardenedLsn
String

The last hardened lsn.

Returns

A new DistributedAvailabilityGroupData instance for mocking.

Applies to