共用方式為


ArmRecoveryServicesBackupModelFactory.WorkloadProtectableItemResource Method

Definition

Initializes a new instance of WorkloadProtectableItemResource.

public static Azure.ResourceManager.RecoveryServicesBackup.Models.WorkloadProtectableItemResource WorkloadProtectableItemResource (Azure.Core.ResourceIdentifier id = default, string name = default, Azure.Core.ResourceType resourceType = default, Azure.ResourceManager.Models.SystemData systemData = default, System.Collections.Generic.IDictionary<string,string> tags = default, Azure.Core.AzureLocation location = default, Azure.ResourceManager.RecoveryServicesBackup.Models.WorkloadProtectableItem properties = default, Azure.ETag? eTag = default);
static member WorkloadProtectableItemResource : Azure.Core.ResourceIdentifier * string * Azure.Core.ResourceType * Azure.ResourceManager.Models.SystemData * System.Collections.Generic.IDictionary<string, string> * Azure.Core.AzureLocation * Azure.ResourceManager.RecoveryServicesBackup.Models.WorkloadProtectableItem * Nullable<Azure.ETag> -> Azure.ResourceManager.RecoveryServicesBackup.Models.WorkloadProtectableItemResource
Public Shared Function WorkloadProtectableItemResource (Optional id As ResourceIdentifier = Nothing, Optional name As String = Nothing, Optional resourceType As ResourceType = Nothing, Optional systemData As SystemData = Nothing, Optional tags As IDictionary(Of String, String) = Nothing, Optional location As AzureLocation = Nothing, Optional properties As WorkloadProtectableItem = Nothing, Optional eTag As Nullable(Of ETag) = Nothing) As WorkloadProtectableItemResource

Parameters

id
ResourceIdentifier

The id.

name
String

The name.

resourceType
ResourceType

The resourceType.

systemData
SystemData

The systemData.

tags
IDictionary<String,String>

The tags.

location
AzureLocation

The location.

properties
WorkloadProtectableItem

WorkloadProtectableItemResource properties Please note WorkloadProtectableItem is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. The available derived classes include FileShareProtectableItem, VmWorkloadProtectableItem, VmWorkloadSapHanaHsrProtectableItem, IaasVmProtectableItem, IaasClassicComputeVmProtectableItem, IaasComputeVmProtectableItem, VmWorkloadSapAseSystemProtectableItem, VmWorkloadSapHanaDBInstance, VmWorkloadSapHanaDatabaseProtectableItem, VmWorkloadSapHanaSystemProtectableItem, VmWorkloadSqlAvailabilityGroupProtectableItem, VmWorkloadSqlDatabaseProtectableItem and VmWorkloadSqlInstanceProtectableItem.

eTag
Nullable<ETag>

Optional ETag.

Returns

A new WorkloadProtectableItemResource instance for mocking.

Applies to