/// <summary>Gets execution. </summary> /// <param name="id">The identifier. </param> /// <returns>The execution. </returns> /// <seealso cref="M:Stackstorm.Api.Client.Apis.IExecutionsApi.GetExecutionAsync(string)"/> public async Task <Execution> GetExecutionAsync(string id) { return(await _host.GetApiRequestAsync <Execution>("/v1/executions/" + id)); }
/// <summary> Get a list of packs. </summary> /// <returns> A List of <see cref="Pack"/>. </returns> /// <seealso cref="M:TonyBaloney.St2.Client.Apis.IPacksApi.GetPacksAsync()"/> public async Task <IList <Pack> > GetPacksAsync() { return(await _host.GetApiRequestAsync <List <Pack> >("/v1/packs")); }
/// <summary>Get all available Actions. </summary> /// <returns>A List of Actions<see cref="Action"/>. </returns> /// <seealso cref="M:Stackstorm.Api.Client.Apis.IActionsApi.GetActionsAsync()"/> public async Task <IList <Action> > GetActionsAsync() { return(await _host.GetApiRequestAsync <List <Action> >("/v1/actions")); }
/// <summary> Gets rules . </summary> /// <returns> The rules . </returns> public async Task <IList <Rule> > GetRulesAsync() { return(await _host.GetApiRequestAsync <IList <Rule> >("/v1/rules/")); }