/// <summary> /// Deletes group resource /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='model'> /// </param> public static ErrorResponse DeleteGroupResource(this IResourcesAPI operations, DeleteGroupResourceModel model = default(DeleteGroupResourceModel)) { return(operations.DeleteGroupResourceAsync(model).GetAwaiter().GetResult()); }
/// <summary> /// Deletes group resource /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='model'> /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <ErrorResponse> DeleteGroupResourceAsync(this IResourcesAPI operations, DeleteGroupResourceModel model = default(DeleteGroupResourceModel), CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.DeleteGroupResourceWithHttpMessagesAsync(model, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }