Action Class

Definition

Model that represents the base action model. 9 total per experiment.

[System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.ActionTypeConverter))]
public class Action : Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.IAction
[<System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.ActionTypeConverter))>]
type Action = class
    interface IAction
    interface IJsonSerializable
Public Class Action
Implements IAction
Inheritance
Action
Attributes
Implements

Constructors

Name Description
Action()

Creates an new Action instance.

Properties

Name Description
Name

String that represents a Capability URN.

Type

Enum that discriminates between action models.

Methods

Name Description
DeserializeFromDictionary(IDictionary)

Deserializes a IDictionary into an instance of Action.

DeserializeFromPSObject(PSObject)

Deserializes a PSObject into an instance of Action.

FromJson(JsonNode)

Deserializes a JsonNode into an instance of Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.IAction. Note: the Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.IAction 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 Action, deserializing the content from a json string.

ToJson(JsonObject, SerializationMode)

Serializes this instance of Action into a JsonNode.

ToJsonString()

Serializes this instance to a json string.

ToString()

Applies to