Share via


PolicyModel Class

Definition

Policy model.

[System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20210216Preview.PolicyModelTypeConverter))]
public class PolicyModel : Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20210216Preview.IPolicyModel
[<System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20210216Preview.PolicyModelTypeConverter))>]
type PolicyModel = class
    interface IPolicyModel
    interface IJsonSerializable
Public Class PolicyModel
Implements IPolicyModel
Inheritance
PolicyModel
Attributes
Implements

Constructors

PolicyModel()

Creates an new PolicyModel instance.

Properties

Id

Gets or sets the Id of the resource.

Name

Gets or sets the name of the resource.

Property

Policy model properties.

SystemDataCreatedAt

Gets or sets the timestamp of resource creation (UTC).

SystemDataCreatedBy

Gets or sets identity that created the resource.

SystemDataCreatedByType

Gets or sets the type of identity that created the resource: user, application, managedIdentity.

SystemDataLastModifiedAt

Gets or sets the timestamp of resource last modification (UTC).

SystemDataLastModifiedBy

Gets or sets the identity that last modified the resource.

SystemDataLastModifiedByType

Gets or sets the type of identity that last modified the resource: user, application, managedIdentity.

Type

Gets or sets the type of the resource.

Methods

DeserializeFromDictionary(IDictionary)

Deserializes a IDictionary into an instance of PolicyModel.

DeserializeFromPSObject(PSObject)

Deserializes a PSObject into an instance of PolicyModel.

FromJson(JsonNode)

Deserializes a JsonNode into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20210216Preview.IPolicyModel.

FromJsonString(String)

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

ToJson(JsonObject, SerializationMode)

Serializes this instance of PolicyModel into a JsonNode.

ToJsonString()

Serializes this instance to a json string.

Applies to