Partager via


ManagementPolicy Class

Definition

The Get Storage Account ManagementPolicies operation response.

[System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.Storage.Models.ManagementPolicyTypeConverter))]
public class ManagementPolicy : Microsoft.Azure.PowerShell.Cmdlets.Storage.Models.IManagementPolicy, Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.IValidates
[<System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.Storage.Models.ManagementPolicyTypeConverter))>]
type ManagementPolicy = class
    interface IManagementPolicy
    interface IJsonSerializable
    interface IResource
    interface IValidates
Public Class ManagementPolicy
Implements IManagementPolicy, IValidates
Inheritance
ManagementPolicy
Attributes
Implements

Constructors

ManagementPolicy()

Creates an new ManagementPolicy instance.

Properties

Id

Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}

LastModifiedTime

Returns the date and time the ManagementPolicies was last modified.

Name

The name of the resource

PolicyRule

The Storage Account ManagementPolicies Rules. See more details in: https://docs.microsoft.com/en-us/azure/storage/common/storage-lifecycle-managment-concepts.

ResourceGroupName

Gets the resource group name

Type

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

Methods

DeserializeFromDictionary(IDictionary)

Deserializes a IDictionary into an instance of ManagementPolicy.

DeserializeFromPSObject(PSObject)

Deserializes a PSObject into an instance of ManagementPolicy.

FromJson(JsonNode)

Deserializes a JsonNode into an instance of Microsoft.Azure.PowerShell.Cmdlets.Storage.Models.IManagementPolicy.

FromJsonString(String)

Creates a new instance of ManagementPolicy, deserializing the content from a json string.

ToJson(JsonObject, SerializationMode)

Serializes this instance of ManagementPolicy into a JsonNode.

ToJsonString()

Serializes this instance to a json string.

ToString()
Validate(IEventListener)

Validates that this object meets the validation criteria.

Applies to