/// <summary> /// Delete entity from spice_aliaseses /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='spiceAliasesid'> /// key: spice_aliasesid of spice_aliases /// </param> /// <param name='ifMatch'> /// ETag /// </param> /// <param name='customHeaders'> /// Headers that will be added to request. /// </param> public static HttpOperationResponse DeleteWithHttpMessages(this IAliaseses operations, string spiceAliasesid, string ifMatch = default(string), Dictionary <string, List <string> > customHeaders = null) { return(operations.DeleteWithHttpMessagesAsync(spiceAliasesid, ifMatch, customHeaders, CancellationToken.None).ConfigureAwait(false).GetAwaiter().GetResult()); }
/// <summary> /// Delete entity from spice_aliaseses /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='spiceAliasesid'> /// key: spice_aliasesid of spice_aliases /// </param> /// <param name='ifMatch'> /// ETag /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task DeleteAsync(this IAliaseses operations, string spiceAliasesid, string ifMatch = default(string), CancellationToken cancellationToken = default(CancellationToken)) { (await operations.DeleteWithHttpMessagesAsync(spiceAliasesid, ifMatch, null, cancellationToken).ConfigureAwait(false)).Dispose(); }