Share via


ManagementPolicy Constructors

Definition

Overloads

ManagementPolicy()

Initializes a new instance of the ManagementPolicy class.

ManagementPolicy(ManagementPolicySchema, String, String, String, Nullable<DateTime>)

Initializes a new instance of the ManagementPolicy class.

ManagementPolicy()

Initializes a new instance of the ManagementPolicy class.

public ManagementPolicy ();
Public Sub New ()

Applies to

ManagementPolicy(ManagementPolicySchema, String, String, String, Nullable<DateTime>)

Initializes a new instance of the ManagementPolicy class.

public ManagementPolicy (Microsoft.Azure.PowerShell.Cmdlets.Compute.Helpers.Storage.Models.ManagementPolicySchema policy, string id = default, string name = default, string type = default, DateTime? lastModifiedTime = default);
new Microsoft.Azure.PowerShell.Cmdlets.Compute.Helpers.Storage.Models.ManagementPolicy : Microsoft.Azure.PowerShell.Cmdlets.Compute.Helpers.Storage.Models.ManagementPolicySchema * string * string * string * Nullable<DateTime> -> Microsoft.Azure.PowerShell.Cmdlets.Compute.Helpers.Storage.Models.ManagementPolicy
Public Sub New (policy As ManagementPolicySchema, Optional id As String = Nothing, Optional name As String = Nothing, Optional type As String = Nothing, Optional lastModifiedTime As Nullable(Of DateTime) = Nothing)

Parameters

policy
ManagementPolicySchema

The Storage Account ManagementPolicy, in JSON format. See more details in: https://learn.microsoft.com/en-us/azure/storage/common/storage-lifecycle-managment-concepts.

id
String

Fully qualified resource ID for the resource. Ex - /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"

lastModifiedTime
Nullable<DateTime>

Returns the date and time the ManagementPolicies was last modified.

Applies to