次の方法で共有


ArmRecoveryServicesBackupModelFactory.BackupProtectedItemData メソッド

定義

BackupProtectedItemData の新しいインスタンスを初期化します。

public static Azure.ResourceManager.RecoveryServicesBackup.BackupProtectedItemData BackupProtectedItemData (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.BackupGenericProtectedItem properties = default, Azure.ETag? eTag = default);
static member BackupProtectedItemData : Azure.Core.ResourceIdentifier * string * Azure.Core.ResourceType * Azure.ResourceManager.Models.SystemData * System.Collections.Generic.IDictionary<string, string> * Azure.Core.AzureLocation * Azure.ResourceManager.RecoveryServicesBackup.Models.BackupGenericProtectedItem * Nullable<Azure.ETag> -> Azure.ResourceManager.RecoveryServicesBackup.BackupProtectedItemData
Public Shared Function BackupProtectedItemData (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 BackupGenericProtectedItem = Nothing, Optional eTag As Nullable(Of ETag) = Nothing) As BackupProtectedItemData

パラメーター

name
String

名前。

resourceType
ResourceType

resourceType。

systemData
SystemData

systemData。

tags
IDictionary<String,String>

タグ。

location
AzureLocation

場所。

properties
BackupGenericProtectedItem

ProtectedItemResource プロパティ 基底クラスであることに注意 BackupGenericProtectedItem(String, Nullable<BackupManagementType>, Nullable<BackupDataSourceType>, String, ResourceIdentifier, ResourceIdentifier, Nullable<DateTimeOffset>, String, Nullable<BackupCreateMode>, Nullable<DateTimeOffset>, Nullable<Boolean>, String, Nullable<Boolean>, Nullable<Boolean>, IEnumerable<String>, Nullable<Boolean>, String, Nullable<Int32>) してください。 シナリオによると、基底クラスの派生クラスをここで割り当てる必要があるか、このプロパティを使用可能な派生クラスのいずれかにキャストする必要があります。 使用可能な派生クラスには、、、、、、VmWorkloadSapAseDatabaseProtectedItem(Nullable<BackupManagementType>, Nullable<BackupDataSourceType>, String, ResourceIdentifier, ResourceIdentifier, Nullable<DateTimeOffset>, String, Nullable<BackupCreateMode>, Nullable<DateTimeOffset>, Nullable<Boolean>, String, Nullable<Boolean>, Nullable<Boolean>, IEnumerable<String>, Nullable<Boolean>, String, Nullable<Int32>, String, String, String, String, String, Nullable<BackupProtectionState>, Nullable<LastBackupStatus>, Nullable<DateTimeOffset>, BackupErrorDetail, String, Nullable<VmWorkloadProtectedItemHealthStatus>, VmWorkloadProtectedItemExtendedInfo, IDictionary<String,KpiResourceHealthDetails>, IEnumerable<DistributedNodesInfo>)VmWorkloadSapHanaDBInstanceProtectedItem(Nullable<BackupManagementType>, Nullable<BackupDataSourceType>, String, ResourceIdentifier, ResourceIdentifier, Nullable<DateTimeOffset>, String, Nullable<BackupCreateMode>, Nullable<DateTimeOffset>, Nullable<Boolean>, String, Nullable<Boolean>, Nullable<Boolean>, IEnumerable<String>, Nullable<Boolean>, String, Nullable<Int32>, String, String, String, String, String, Nullable<BackupProtectionState>, Nullable<LastBackupStatus>, Nullable<DateTimeOffset>, BackupErrorDetail, String, Nullable<VmWorkloadProtectedItemHealthStatus>, VmWorkloadProtectedItemExtendedInfo, IDictionary<String,KpiResourceHealthDetails>, IEnumerable<DistributedNodesInfo>)、、 GenericProtectedItem(Nullable<BackupManagementType>, Nullable<BackupDataSourceType>, String, ResourceIdentifier, ResourceIdentifier, Nullable<DateTimeOffset>, String, Nullable<BackupCreateMode>, Nullable<DateTimeOffset>, Nullable<Boolean>, String, Nullable<Boolean>, Nullable<Boolean>, IEnumerable<String>, Nullable<Boolean>, String, Nullable<Int32>, String, String, Nullable<BackupProtectionState>, Nullable<Int64>, IDictionary<String,String>, String)MabFileFolderProtectedItem(Nullable<BackupManagementType>, Nullable<BackupDataSourceType>, String, ResourceIdentifier, ResourceIdentifier, Nullable<DateTimeOffset>, String, Nullable<BackupCreateMode>, Nullable<DateTimeOffset>, Nullable<Boolean>, String, Nullable<Boolean>, Nullable<Boolean>, IEnumerable<String>, Nullable<Boolean>, String, Nullable<Int32>, String, String, String, Nullable<DateTimeOffset>, String, Nullable<Int64>, MabFileFolderProtectedItemExtendedInfo)IaasComputeVmProtectedItem(Nullable<BackupManagementType>, Nullable<BackupDataSourceType>, String, ResourceIdentifier, ResourceIdentifier, Nullable<DateTimeOffset>, String, Nullable<BackupCreateMode>, Nullable<DateTimeOffset>, Nullable<Boolean>, String, Nullable<Boolean>, Nullable<Boolean>, IEnumerable<String>, Nullable<Boolean>, String, Nullable<Int32>, String, ResourceIdentifier, String, Nullable<BackupProtectionState>, Nullable<IaasVmProtectedItemHealthStatus>, IEnumerable<IaasVmHealthDetails>, IDictionary<String,KpiResourceHealthDetails>, String, Nullable<DateTimeOffset>, String, IaasVmProtectedItemExtendedInfo, IaasVmBackupExtendedProperties)DpmProtectedItem(Nullable<BackupManagementType>, Nullable<BackupDataSourceType>, String, ResourceIdentifier, ResourceIdentifier, Nullable<DateTimeOffset>, String, Nullable<BackupCreateMode>, Nullable<DateTimeOffset>, Nullable<Boolean>, String, Nullable<Boolean>, Nullable<Boolean>, IEnumerable<String>, Nullable<Boolean>, String, Nullable<Int32>, String, String, Nullable<ProtectedItemState>, DpmProtectedItemExtendedInfo)IaasClassicComputeVmProtectedItem(Nullable<BackupManagementType>, Nullable<BackupDataSourceType>, String, ResourceIdentifier, ResourceIdentifier, Nullable<DateTimeOffset>, String, Nullable<BackupCreateMode>, Nullable<DateTimeOffset>, Nullable<Boolean>, String, Nullable<Boolean>, Nullable<Boolean>, IEnumerable<String>, Nullable<Boolean>, String, Nullable<Int32>, String, ResourceIdentifier, String, Nullable<BackupProtectionState>, Nullable<IaasVmProtectedItemHealthStatus>, IEnumerable<IaasVmHealthDetails>, IDictionary<String,KpiResourceHealthDetails>, String, Nullable<DateTimeOffset>, String, IaasVmProtectedItemExtendedInfo, IaasVmBackupExtendedProperties)VmWorkloadSqlDatabaseProtectedItem(Nullable<BackupManagementType>, Nullable<BackupDataSourceType>, String, ResourceIdentifier, ResourceIdentifier, Nullable<DateTimeOffset>, String, Nullable<BackupCreateMode>, Nullable<DateTimeOffset>, Nullable<Boolean>, String, Nullable<Boolean>, Nullable<Boolean>, IEnumerable<String>, Nullable<Boolean>, String, Nullable<Int32>, String, String, String, String, String, Nullable<BackupProtectionState>, Nullable<LastBackupStatus>, Nullable<DateTimeOffset>, BackupErrorDetail, String, Nullable<VmWorkloadProtectedItemHealthStatus>, VmWorkloadProtectedItemExtendedInfo, IDictionary<String,KpiResourceHealthDetails>, IEnumerable<DistributedNodesInfo>)VmWorkloadSapHanaDatabaseProtectedItem(Nullable<BackupManagementType>, Nullable<BackupDataSourceType>, String, ResourceIdentifier, ResourceIdentifier, Nullable<DateTimeOffset>, String, Nullable<BackupCreateMode>, Nullable<DateTimeOffset>, Nullable<Boolean>, String, Nullable<Boolean>, Nullable<Boolean>, IEnumerable<String>, Nullable<Boolean>, String, Nullable<Int32>, String, String, String, String, String, Nullable<BackupProtectionState>, Nullable<LastBackupStatus>, Nullable<DateTimeOffset>, BackupErrorDetail, String, Nullable<VmWorkloadProtectedItemHealthStatus>, VmWorkloadProtectedItemExtendedInfo, IDictionary<String,KpiResourceHealthDetails>, IEnumerable<DistributedNodesInfo>)および SqlProtectedItem(Nullable<BackupManagementType>, Nullable<BackupDataSourceType>, String, ResourceIdentifier, ResourceIdentifier, Nullable<DateTimeOffset>, String, Nullable<BackupCreateMode>, Nullable<DateTimeOffset>, Nullable<Boolean>, String, Nullable<Boolean>, Nullable<Boolean>, IEnumerable<String>, Nullable<Boolean>, String, Nullable<Int32>, String, Nullable<ProtectedItemState>, SqlProtectedItemExtendedInfo)が含まれます。FileshareProtectedItem(Nullable<BackupManagementType>, Nullable<BackupDataSourceType>, String, ResourceIdentifier, ResourceIdentifier, Nullable<DateTimeOffset>, String, Nullable<BackupCreateMode>, Nullable<DateTimeOffset>, Nullable<Boolean>, String, Nullable<Boolean>, Nullable<Boolean>, IEnumerable<String>, Nullable<Boolean>, String, Nullable<Int32>, String, String, Nullable<BackupProtectionState>, String, Nullable<DateTimeOffset>, IDictionary<String,KpiResourceHealthDetails>, FileshareProtectedItemExtendedInfo)VmWorkloadProtectedItem(Nullable<BackupManagementType>, Nullable<BackupDataSourceType>, String, ResourceIdentifier, ResourceIdentifier, Nullable<DateTimeOffset>, String, Nullable<BackupCreateMode>, Nullable<DateTimeOffset>, Nullable<Boolean>, String, Nullable<Boolean>, Nullable<Boolean>, IEnumerable<String>, Nullable<Boolean>, String, Nullable<Int32>, String, String, String, String, String, Nullable<BackupProtectionState>, Nullable<LastBackupStatus>, Nullable<DateTimeOffset>, BackupErrorDetail, String, Nullable<VmWorkloadProtectedItemHealthStatus>, VmWorkloadProtectedItemExtendedInfo, IDictionary<String,KpiResourceHealthDetails>, IEnumerable<DistributedNodesInfo>)IaasVmProtectedItem(Nullable<BackupManagementType>, Nullable<BackupDataSourceType>, String, ResourceIdentifier, ResourceIdentifier, Nullable<DateTimeOffset>, String, Nullable<BackupCreateMode>, Nullable<DateTimeOffset>, Nullable<Boolean>, String, Nullable<Boolean>, Nullable<Boolean>, IEnumerable<String>, Nullable<Boolean>, String, Nullable<Int32>, String, ResourceIdentifier, String, Nullable<BackupProtectionState>, Nullable<IaasVmProtectedItemHealthStatus>, IEnumerable<IaasVmHealthDetails>, IDictionary<String,KpiResourceHealthDetails>, String, Nullable<DateTimeOffset>, String, IaasVmProtectedItemExtendedInfo, IaasVmBackupExtendedProperties)

eTag
Nullable<ETag>

オプションの ETag。

戻り値

モック作成用の新しい BackupProtectedItemData インスタンス。

適用対象