DiscreteAction Class

Definition

Model that represents a discrete action.

[System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.DiscreteActionTypeConverter))]
public class DiscreteAction : Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.IDiscreteAction, Microsoft.Azure.PowerShell.Cmdlets.Chaos.Runtime.IValidates
[<System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.DiscreteActionTypeConverter))>]
type DiscreteAction = class
    interface IDiscreteAction
    interface IJsonSerializable
    interface IAction
    interface IValidates
Public Class DiscreteAction
Implements IDiscreteAction, IValidates
Inheritance
DiscreteAction
Attributes
Implements

Constructors

Name Description
DiscreteAction()

Creates an new DiscreteAction instance.

Properties

Name Description
Name

String that represents a Capability URN.

Parameter

List of key value pairs.

SelectorId

String that represents a selector.

Type

Enum that discriminates between action models.

Methods

Name Description
DeserializeFromDictionary(IDictionary)

Deserializes a IDictionary into an instance of DiscreteAction.

DeserializeFromPSObject(PSObject)

Deserializes a PSObject into an instance of DiscreteAction.

FromJson(JsonNode)

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

FromJsonString(String)

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

ToJson(JsonObject, SerializationMode)

Serializes this instance of DiscreteAction into a JsonNode.

ToJsonString()

Serializes this instance to a json string.

ToString()
Validate(IEventListener)

Validates that this object meets the validation criteria.

Applies to