/// <summary>
 /// Deletes the regulation by specified id.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='regulationId'>
 /// The id of regulation to delete.
 /// </param>
 public static ErrorResponse DeleteRegulation(this IRegulationAPI operations, string regulationId)
 {
     return(operations.DeleteRegulationAsync(regulationId).GetAwaiter().GetResult());
 }