Exemplo n.º 1
0
 /// <summary>Deletes the action described by actionId. </summary>
 /// <param name="actionId">can be either the ID (e.g. 1 or the ref e.g. mypack.myaction). </param>
 /// <seealso cref="M:Stackstorm.Api.Client.Apis.IActionsApi.DeleteActionAsync(string)"/>
 public async Task DeleteActionAsync(string actionId)
 {
     await _host.DeleteApiRequestAsync("/v1/actions/" + actionId);
 }
Exemplo n.º 2
0
 /// <summary> Deletes the rule described by ruleId. </summary>
 /// <param name="ruleId"> Identifier for the rule. </param>
 /// <returns> A Task. </returns>
 /// <seealso cref="M:Stackstorm.Api.Client.Apis.IRulesApi.DeleteRule(string)"/>
 public async Task DeleteRuleAsync(string ruleId)
 {
     await _host.DeleteApiRequestAsync("/v1/rules/" + ruleId);
 }