C# Class TonyBaloney.St2.Client.Apis.ActionsApi

The actions api.
Inheritance: IActionsApi
显示文件 Open project: tonybaloney/St2Client

Public Methods

Method Description
ActionsApi ( ISt2Client host ) : System

Initializes a new instance of the TonyBaloney.St2.Client.Apis.ActionsApi class.

CreateActionAsync ( CreateAction action ) : Task

Creates a new action.

DeleteActionAsync ( string actionId ) : System.Threading.Tasks.Task

Deletes the action described by actionId.

GetActionsAsync ( ) : Task>

Get all available Actions.

GetActionsByNameAsync ( string name ) : Task>

Gets actions by name.

GetActionsForPackAsync ( string pack ) : Task>

Gets actions for pack.

GetActionsForPackByNameAsync ( string pack, string name ) : Task>

Method Details

ActionsApi() public method

Initializes a new instance of the TonyBaloney.St2.Client.Apis.ActionsApi class.
Thrown when one or more required arguments are null.
public ActionsApi ( ISt2Client host ) : System
host ISt2Client The host.
return System

CreateActionAsync() public method

Creates a new action.
public CreateActionAsync ( CreateAction action ) : Task
action TonyBaloney.St2.Client.Models.CreateAction The to create.
return Task

DeleteActionAsync() public method

Deletes the action described by actionId.
public DeleteActionAsync ( string actionId ) : System.Threading.Tasks.Task
actionId string can be either the ID (e.g. 1 or the ref e.g. mypack.myaction).
return System.Threading.Tasks.Task

GetActionsAsync() public method

Get all available Actions.
public GetActionsAsync ( ) : Task>
return Task>

GetActionsByNameAsync() public method

Gets actions by name.
public GetActionsByNameAsync ( string name ) : Task>
name string The action name.
return Task>

GetActionsForPackAsync() public method

Gets actions for pack.
public GetActionsForPackAsync ( string pack ) : Task>
pack string The pack name.
return Task>

GetActionsForPackByNameAsync() public method

public GetActionsForPackByNameAsync ( string pack, string name ) : Task>
pack string
name string
return Task>