Dela via


BackupPolicy Class

Definition

Backup policy information

[Microsoft.Rest.Serialization.JsonTransformation]
public class BackupPolicy : Microsoft.Azure.Management.NetApp.Models.TrackedResource
[<Microsoft.Rest.Serialization.JsonTransformation>]
type BackupPolicy = class
    inherit TrackedResource
Public Class BackupPolicy
Inherits TrackedResource
Inheritance
Attributes

Constructors

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.

Properties

BackupPolicyId

Gets backup Policy GUID ID

DailyBackupsToKeep

Gets or sets daily backups count to keep

Enabled

Gets or sets the property to decide policy is enabled or not

Etag

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

Id

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

(Inherited from Resource)
Location

Gets or sets the geo-location where the resource lives

(Inherited from TrackedResource)
MonthlyBackupsToKeep

Gets or sets monthly backups count to keep

Name

Gets the name of the resource

(Inherited from Resource)
ProvisioningState

Gets azure lifecycle management

SystemData

Gets azure Resource Manager metadata containing createdBy and modifiedBy information.

(Inherited from Resource)
Tags

Gets or sets resource tags.

(Inherited from TrackedResource)
Type

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

(Inherited from Resource)
VolumeBackups

Gets a list of volumes assigned to this policy

VolumesAssigned

Gets volumes using current backup policy

WeeklyBackupsToKeep

Gets or sets weekly backups count to keep

Methods

Validate()

Validate the object.

Extension Methods

ConvertToPs(BackupPolicy)

Applies to