ResourceSelector Class

Definition

The resource selector to filter policies by resource properties.

[System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.Policy.Models.ResourceSelectorTypeConverter))]
public class ResourceSelector : Microsoft.Azure.PowerShell.Cmdlets.Policy.Models.IResourceSelector
[<System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.Policy.Models.ResourceSelectorTypeConverter))>]
type ResourceSelector = class
    interface IResourceSelector
    interface IJsonSerializable
Public Class ResourceSelector
Implements IResourceSelector
Inheritance
ResourceSelector
Attributes
Implements

Constructors

ResourceSelector()

Creates an new ResourceSelector instance.

Properties

Name

The name of the resource selector.

Selector

The list of the selector expressions.

Methods

DeserializeFromDictionary(IDictionary)

Deserializes a IDictionary into an instance of ResourceSelector.

DeserializeFromPSObject(PSObject)

Deserializes a PSObject into an instance of ResourceSelector.

FromJson(JsonNode)

Deserializes a JsonNode into an instance of Microsoft.Azure.PowerShell.Cmdlets.Policy.Models.IResourceSelector.

FromJsonString(String)

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

ToJson(JsonObject, SerializationMode)

Serializes this instance of ResourceSelector into a JsonNode.

ToJsonString()

Serializes this instance to a json string.

Applies to