Udostępnij za pośrednictwem


ArmRecoveryServicesSiteRecoveryModelFactory.HyperVVmDetails Method

Definition

Initializes a new instance of HyperVVmDetails.

public static Azure.ResourceManager.RecoveryServicesSiteRecovery.Models.HyperVVmDetails HyperVVmDetails (string sourceItemId = default, string generation = default, Azure.ResourceManager.RecoveryServicesSiteRecovery.Models.SiteRecoveryOSDetails osDetails = default, System.Collections.Generic.IEnumerable<Azure.ResourceManager.RecoveryServicesSiteRecovery.Models.SiteRecoveryDiskDetails> diskDetails = default, Azure.ResourceManager.RecoveryServicesSiteRecovery.Models.HyperVVmDiskPresenceStatus? hasPhysicalDisk = default, Azure.ResourceManager.RecoveryServicesSiteRecovery.Models.HyperVVmDiskPresenceStatus? hasFibreChannelAdapter = default, Azure.ResourceManager.RecoveryServicesSiteRecovery.Models.HyperVVmDiskPresenceStatus? hasSharedVhd = default, string hyperVHostId = default);
static member HyperVVmDetails : string * string * Azure.ResourceManager.RecoveryServicesSiteRecovery.Models.SiteRecoveryOSDetails * seq<Azure.ResourceManager.RecoveryServicesSiteRecovery.Models.SiteRecoveryDiskDetails> * Nullable<Azure.ResourceManager.RecoveryServicesSiteRecovery.Models.HyperVVmDiskPresenceStatus> * Nullable<Azure.ResourceManager.RecoveryServicesSiteRecovery.Models.HyperVVmDiskPresenceStatus> * Nullable<Azure.ResourceManager.RecoveryServicesSiteRecovery.Models.HyperVVmDiskPresenceStatus> * string -> Azure.ResourceManager.RecoveryServicesSiteRecovery.Models.HyperVVmDetails
Public Shared Function HyperVVmDetails (Optional sourceItemId As String = Nothing, Optional generation As String = Nothing, Optional osDetails As SiteRecoveryOSDetails = Nothing, Optional diskDetails As IEnumerable(Of SiteRecoveryDiskDetails) = Nothing, Optional hasPhysicalDisk As Nullable(Of HyperVVmDiskPresenceStatus) = Nothing, Optional hasFibreChannelAdapter As Nullable(Of HyperVVmDiskPresenceStatus) = Nothing, Optional hasSharedVhd As Nullable(Of HyperVVmDiskPresenceStatus) = Nothing, Optional hyperVHostId As String = Nothing) As HyperVVmDetails

Parameters

sourceItemId
String

The source id of the object.

generation
String

The id of the object in fabric.

osDetails
SiteRecoveryOSDetails

The Last replication time.

diskDetails
IEnumerable<SiteRecoveryDiskDetails>

The Last successful failover time.

hasPhysicalDisk
Nullable<HyperVVmDiskPresenceStatus>

A value indicating whether the VM has a physical disk attached. String value of SrsDataContract.PresenceStatus enum.

hasFibreChannelAdapter
Nullable<HyperVVmDiskPresenceStatus>

A value indicating whether the VM has a fibre channel adapter attached. String value of SrsDataContract.PresenceStatus enum.

hasSharedVhd
Nullable<HyperVVmDiskPresenceStatus>

A value indicating whether the VM has a shared VHD attached. String value of SrsDataContract.PresenceStatus enum.

hyperVHostId
String

The Id of the hyper-v host in fabric.

Returns

A new HyperVVmDetails instance for mocking.

Applies to