QuerySelector Class

Definition

Model that represents a query selector.

[System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.QuerySelectorTypeConverter))]
public class QuerySelector : Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.IQuerySelector, Microsoft.Azure.PowerShell.Cmdlets.Chaos.Runtime.IAssociativeArray<object>, Microsoft.Azure.PowerShell.Cmdlets.Chaos.Runtime.IValidates
[<System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.QuerySelectorTypeConverter))>]
type QuerySelector = class
    interface IQuerySelector
    interface IJsonSerializable
    interface ISelector
    interface IAssociativeArray<obj>
    interface IValidates
Public Class QuerySelector
Implements IAssociativeArray(Of Object), IQuerySelector, IValidates
Inheritance
QuerySelector
Attributes
Implements

Constructors

Name Description
QuerySelector()

Creates an new QuerySelector instance.

Properties

Name Description
Filter

Model that represents available filter types that can be applied to a targets list.

FilterType

Enum that discriminates between filter types. Currently only Simple type is supported.

Id

String of the selector ID.

Item[String]
QueryString

Azure Resource Graph (ARG) Query Language query for target resources.

SubscriptionId

Subscription id list to scope resource query.

Type

Enum of the selector type.

Methods

Name Description
Add(String, Object)
Clear()
ContainsKey(String)
CopyFrom(IDictionary)
CopyFrom(PSObject)
DeserializeFromDictionary(IDictionary)

Deserializes a IDictionary into an instance of QuerySelector.

DeserializeFromPSObject(PSObject)

Deserializes a PSObject into an instance of QuerySelector.

FromJson(JsonNode)

Deserializes a JsonNode into an instance of Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.IQuerySelector.

FromJsonString(String)

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

Remove(String)
ToJson(JsonObject, SerializationMode)

Serializes this instance of QuerySelector into a JsonNode.

ToJsonString()

Serializes this instance to a json string.

ToString()
TryGetValue(String, Object)
Validate(IEventListener)

Validates that this object meets the validation criteria.

Explicit Interface Implementations

Name Description
IAssociativeArray<Object>.AdditionalProperties
IAssociativeArray<Object>.Count
IAssociativeArray<Object>.Keys
IAssociativeArray<Object>.Values

Applies to