Share via


ArmEventHubsModelFactory.EventHubsDisasterRecoveryData Method

Definition

Initializes a new instance of EventHubsDisasterRecoveryData.

public static Azure.ResourceManager.EventHubs.EventHubsDisasterRecoveryData EventHubsDisasterRecoveryData (Azure.Core.ResourceIdentifier id = default, string name = default, Azure.Core.ResourceType resourceType = default, Azure.ResourceManager.Models.SystemData systemData = default, Azure.ResourceManager.EventHubs.Models.EventHubsDisasterRecoveryProvisioningState? provisioningState = default, string partnerNamespace = default, string alternateName = default, Azure.ResourceManager.EventHubs.Models.EventHubsDisasterRecoveryRole? role = default, long? pendingReplicationOperationsCount = default, Azure.Core.AzureLocation? location = default);
static member EventHubsDisasterRecoveryData : Azure.Core.ResourceIdentifier * string * Azure.Core.ResourceType * Azure.ResourceManager.Models.SystemData * Nullable<Azure.ResourceManager.EventHubs.Models.EventHubsDisasterRecoveryProvisioningState> * string * string * Nullable<Azure.ResourceManager.EventHubs.Models.EventHubsDisasterRecoveryRole> * Nullable<int64> * Nullable<Azure.Core.AzureLocation> -> Azure.ResourceManager.EventHubs.EventHubsDisasterRecoveryData
Public Shared Function EventHubsDisasterRecoveryData (Optional id As ResourceIdentifier = Nothing, Optional name As String = Nothing, Optional resourceType As ResourceType = Nothing, Optional systemData As SystemData = Nothing, Optional provisioningState As Nullable(Of EventHubsDisasterRecoveryProvisioningState) = Nothing, Optional partnerNamespace As String = Nothing, Optional alternateName As String = Nothing, Optional role As Nullable(Of EventHubsDisasterRecoveryRole) = Nothing, Optional pendingReplicationOperationsCount As Nullable(Of Long) = Nothing, Optional location As Nullable(Of AzureLocation) = Nothing) As EventHubsDisasterRecoveryData

Parameters

id
ResourceIdentifier

The id.

name
String

The name.

resourceType
ResourceType

The resourceType.

systemData
SystemData

The systemData.

provisioningState
Nullable<EventHubsDisasterRecoveryProvisioningState>

Provisioning state of the Alias(Disaster Recovery configuration) - possible values 'Accepted' or 'Succeeded' or 'Failed'.

partnerNamespace
String

ARM Id of the Primary/Secondary eventhub namespace name, which is part of GEO DR pairing.

alternateName
String

Alternate name specified when alias and namespace names are same.

role
Nullable<EventHubsDisasterRecoveryRole>

role of namespace in GEO DR - possible values 'Primary' or 'PrimaryNotReplicating' or 'Secondary'.

pendingReplicationOperationsCount
Nullable<Int64>

Number of entities pending to be replicated.

location
Nullable<AzureLocation>

The geo-location where the resource lives.

Returns

A new EventHubsDisasterRecoveryData instance for mocking.

Applies to