次の方法で共有


ArmRecoveryServicesBackupModelFactory.BackupProtectionPolicyData メソッド

定義

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

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

パラメーター

name
String

名前。

resourceType
ResourceType

resourceType。

systemData
SystemData

systemData。

tags
IDictionary<String,String>

タグ。

location
AzureLocation

場所。

properties
BackupGenericProtectionPolicy

ProtectionPolicyResource プロパティ 基底クラスであることに注意 BackupGenericProtectionPolicy してください。 シナリオによると、基底クラスの派生クラスをここで割り当てる必要があるか、このプロパティを使用可能な派生クラスのいずれかにキャストする必要があります。 使用可能な派生クラスには、、、SqlProtectionPolicyVmWorkloadProtectionPolicyFileShareProtectionPolicyGenericProtectionPolicy、および MabProtectionPolicyが含まれます。IaasVmProtectionPolicy

eTag
Nullable<ETag>

オプションの ETag。

戻り値

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

適用対象