Partager via


ManagementPolicy Class

Definition

The Get Storage Account ManagementPolicies operation response.

[System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190401.ManagementPolicyTypeConverter))]
public class ManagementPolicy : Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190401.IManagementPolicy, Microsoft.Azure.PowerShell.Cmdlets.Functions.Runtime.IValidates
[<System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190401.ManagementPolicyTypeConverter))>]
type ManagementPolicy = class
    interface IManagementPolicy
    interface IJsonSerializable
    interface IResourceAutoGenerated
    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.

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.Functions.Models.Api20190401.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.

Validate(IEventListener)

Validates that this object meets the validation criteria.

Applies to