/// <summary> /// Initializes client regulations using rules associated with country. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='clientId'> /// The client id. /// </param> /// <param name='country'> /// The country name. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <ErrorResponse> SetDefaultClientRegulationsAsync(this IRegulationAPI operations, string clientId, string country, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.SetDefaultClientRegulationsWithHttpMessagesAsync(clientId, country, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }