Selector Class

Definition

Model that represents a selector in the Experiment resource.

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

Constructors

Name Description
Selector()

Creates an new Selector instance.

Fields

Name Description
__additionalProperties

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]
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 Selector.

DeserializeFromPSObject(PSObject)

Deserializes a PSObject into an instance of Selector.

FromJson(JsonNode)

Deserializes a JsonNode into an instance of Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.ISelector. Note: the Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.ISelector interface is polymorphic, and the precise model class that will get deserialized is determined at runtime based on the payload.

FromJsonString(String)

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

Remove(String)
ToJson(JsonObject, SerializationMode)

Serializes this instance of Selector into a JsonNode.

ToJsonString()

Serializes this instance to a json string.

ToString()
TryGetValue(String, Object)

Operators

Name Description
Implicit(Selector to Dictionary<String,Object>)

Explicit Interface Implementations

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

Applies to