Sdílet prostřednictvím


BackupPolicy Constructors

Definition

Overloads

BackupPolicy()

Initializes a new instance of the BackupPolicy class.

BackupPolicy(String, String, String, String, SystemData, IDictionary<String, String>, String, String, String, Nullable<Int32>, Nullable<Int32>, Nullable<Int32>, Nullable<Int32>, Nullable<Boolean>, IList<VolumeBackups>)

Initializes a new instance of the BackupPolicy class.

BackupPolicy()

Initializes a new instance of the BackupPolicy class.

public BackupPolicy ();
Public Sub New ()

Applies to

BackupPolicy(String, String, String, String, SystemData, IDictionary<String, String>, String, String, String, Nullable<Int32>, Nullable<Int32>, Nullable<Int32>, Nullable<Int32>, Nullable<Boolean>, IList<VolumeBackups>)

Initializes a new instance of the BackupPolicy class.

public BackupPolicy (string location, string id = default, string name = default, string type = default, Microsoft.Azure.Management.NetApp.Models.SystemData systemData = default, System.Collections.Generic.IDictionary<string,string> tags = default, string etag = default, string backupPolicyId = default, string provisioningState = default, int? dailyBackupsToKeep = default, int? weeklyBackupsToKeep = default, int? monthlyBackupsToKeep = default, int? volumesAssigned = default, bool? enabled = default, System.Collections.Generic.IList<Microsoft.Azure.Management.NetApp.Models.VolumeBackups> volumeBackups = default);
new Microsoft.Azure.Management.NetApp.Models.BackupPolicy : string * string * string * string * Microsoft.Azure.Management.NetApp.Models.SystemData * System.Collections.Generic.IDictionary<string, string> * string * string * string * Nullable<int> * Nullable<int> * Nullable<int> * Nullable<int> * Nullable<bool> * System.Collections.Generic.IList<Microsoft.Azure.Management.NetApp.Models.VolumeBackups> -> Microsoft.Azure.Management.NetApp.Models.BackupPolicy
Public Sub New (location As String, Optional id As String = Nothing, Optional name As String = Nothing, Optional type As String = Nothing, Optional systemData As SystemData = Nothing, Optional tags As IDictionary(Of String, String) = Nothing, Optional etag As String = Nothing, Optional backupPolicyId As String = Nothing, Optional provisioningState As String = Nothing, Optional dailyBackupsToKeep As Nullable(Of Integer) = Nothing, Optional weeklyBackupsToKeep As Nullable(Of Integer) = Nothing, Optional monthlyBackupsToKeep As Nullable(Of Integer) = Nothing, Optional volumesAssigned As Nullable(Of Integer) = Nothing, Optional enabled As Nullable(Of Boolean) = Nothing, Optional volumeBackups As IList(Of VolumeBackups) = Nothing)

Parameters

location
String

The geo-location where the resource lives

id
String

Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}"

name
String

The name of the resource

type
String

The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"

systemData
SystemData

Azure Resource Manager metadata containing createdBy and modifiedBy information.

tags
IDictionary<String,String>

Resource tags.

etag
String

A unique read-only string that changes whenever the resource is updated.

backupPolicyId
String

Backup Policy Resource ID

provisioningState
String

Azure lifecycle management

dailyBackupsToKeep
Nullable<Int32>

Daily backups count to keep

weeklyBackupsToKeep
Nullable<Int32>

Weekly backups count to keep

monthlyBackupsToKeep
Nullable<Int32>

Monthly backups count to keep

volumesAssigned
Nullable<Int32>

Volumes using current backup policy

enabled
Nullable<Boolean>

The property to decide policy is enabled or not

volumeBackups
IList<VolumeBackups>

A list of volumes assigned to this policy

Applies to