/// <summary> /// Adds the client regulation. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='model'> /// The model what describe a client regulation. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <ErrorResponse> AddClientRegulationAsync(this IRegulationAPI operations, NewClientRegulationModel model = default(NewClientRegulationModel), CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.AddClientRegulationWithHttpMessagesAsync(model, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }