Share via


SnapshotPolicy Constructors

Definition

Overloads

SnapshotPolicy()

Initializes a new instance of the SnapshotPolicy class.

SnapshotPolicy(String, String, String, String, SystemData, IDictionary<String, String>, String, HourlySchedule, DailySchedule, WeeklySchedule, MonthlySchedule, Nullable<Boolean>, String)

Initializes a new instance of the SnapshotPolicy class.

SnapshotPolicy()

Initializes a new instance of the SnapshotPolicy class.

public SnapshotPolicy ();
Public Sub New ()

Applies to

SnapshotPolicy(String, String, String, String, SystemData, IDictionary<String, String>, String, HourlySchedule, DailySchedule, WeeklySchedule, MonthlySchedule, Nullable<Boolean>, String)

Initializes a new instance of the SnapshotPolicy class.

public SnapshotPolicy (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, Microsoft.Azure.Management.NetApp.Models.HourlySchedule hourlySchedule = default, Microsoft.Azure.Management.NetApp.Models.DailySchedule dailySchedule = default, Microsoft.Azure.Management.NetApp.Models.WeeklySchedule weeklySchedule = default, Microsoft.Azure.Management.NetApp.Models.MonthlySchedule monthlySchedule = default, bool? enabled = default, string provisioningState = default);
new Microsoft.Azure.Management.NetApp.Models.SnapshotPolicy : string * string * string * string * Microsoft.Azure.Management.NetApp.Models.SystemData * System.Collections.Generic.IDictionary<string, string> * string * Microsoft.Azure.Management.NetApp.Models.HourlySchedule * Microsoft.Azure.Management.NetApp.Models.DailySchedule * Microsoft.Azure.Management.NetApp.Models.WeeklySchedule * Microsoft.Azure.Management.NetApp.Models.MonthlySchedule * Nullable<bool> * string -> Microsoft.Azure.Management.NetApp.Models.SnapshotPolicy
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 hourlySchedule As HourlySchedule = Nothing, Optional dailySchedule As DailySchedule = Nothing, Optional weeklySchedule As WeeklySchedule = Nothing, Optional monthlySchedule As MonthlySchedule = Nothing, Optional enabled As Nullable(Of Boolean) = Nothing, Optional provisioningState As String = 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.

hourlySchedule
HourlySchedule

Schedule for hourly snapshots

dailySchedule
DailySchedule

Schedule for daily snapshots

weeklySchedule
WeeklySchedule

Schedule for weekly snapshots

monthlySchedule
MonthlySchedule

Schedule for monthly snapshots

enabled
Nullable<Boolean>

The property to decide policy is enabled or not

provisioningState
String

Azure lifecycle management

Applies to