Policy Class

Definition

Protection profile details.

[System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.PolicyTypeConverter))]
public class Policy : Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPolicy, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IValidates
[<System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.PolicyTypeConverter))>]
type Policy = class
    interface IPolicy
    interface IJsonSerializable
    interface IResource
    interface IValidates
Public Class Policy
Implements IPolicy, IValidates
Inheritance
Policy
Attributes
Implements

Constructors

Policy()

Creates an new Policy instance.

Properties

FriendlyName

The FriendlyName.

Id

Resource Id

Location

Resource Location

Name

Resource Name

ProviderSpecificDetailInstanceType

Gets the class type. Overridden in derived classes.

Type

Resource Type

Methods

DeserializeFromDictionary(IDictionary)

Deserializes a IDictionary into an instance of Policy.

DeserializeFromPSObject(PSObject)

Deserializes a PSObject into an instance of Policy.

FromJson(JsonNode)

Deserializes a JsonNode into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPolicy.

FromJsonString(String)

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

ToJson(JsonObject, SerializationMode)

Serializes this instance of Policy into a JsonNode.

ToJsonString()

Serializes this instance to a json string.

Validate(IEventListener)

Validates that this object meets the validation criteria.

Applies to