/// <summary>
 /// Get the Application Configuration Service and its properties.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The name of the resource group that contains the resource. You can obtain
 /// this value from the Azure Resource Manager API or the portal.
 /// </param>
 /// <param name='serviceName'>
 /// The name of the Service resource.
 /// </param>
 /// <param name='configurationServiceName'>
 /// The name of Application Configuration Service.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <ConfigurationServiceResource> GetAsync(this IConfigurationServicesOperations operations, string resourceGroupName, string serviceName, string configurationServiceName, CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.GetWithHttpMessagesAsync(resourceGroupName, serviceName, configurationServiceName, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
 /// <summary>
 /// Create the default Application Configuration Service or update the existing
 /// Application Configuration Service.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The name of the resource group that contains the resource. You can obtain
 /// this value from the Azure Resource Manager API or the portal.
 /// </param>
 /// <param name='serviceName'>
 /// The name of the Service resource.
 /// </param>
 /// <param name='configurationServiceName'>
 /// The name of Application Configuration Service.
 /// </param>
 /// <param name='configurationServiceResource'>
 /// Parameters for the update operation
 /// </param>
 public static ConfigurationServiceResource CreateOrUpdate(this IConfigurationServicesOperations operations, string resourceGroupName, string serviceName, string configurationServiceName, ConfigurationServiceResource configurationServiceResource)
 {
     return(operations.CreateOrUpdateAsync(resourceGroupName, serviceName, configurationServiceName, configurationServiceResource).GetAwaiter().GetResult());
 }
 /// <summary>
 /// Handles requests to list all resources in a Service.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='nextPageLink'>
 /// The NextLink from the previous successful call to List operation.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <IPage <ConfigurationServiceResource> > ListNextAsync(this IConfigurationServicesOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.ListNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
 /// <summary>
 /// Handles requests to list all resources in a Service.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='nextPageLink'>
 /// The NextLink from the previous successful call to List operation.
 /// </param>
 public static IPage <ConfigurationServiceResource> ListNext(this IConfigurationServicesOperations operations, string nextPageLink)
 {
     return(operations.ListNextAsync(nextPageLink).GetAwaiter().GetResult());
 }
 /// <summary>
 /// Check if the Application Configuration Service settings are valid.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The name of the resource group that contains the resource. You can obtain
 /// this value from the Azure Resource Manager API or the portal.
 /// </param>
 /// <param name='serviceName'>
 /// The name of the Service resource.
 /// </param>
 /// <param name='configurationServiceName'>
 /// The name of Application Configuration Service.
 /// </param>
 /// <param name='settings'>
 /// Application Configuration Service settings to be validated
 /// </param>
 public static ConfigurationServiceSettingsValidateResult BeginValidate(this IConfigurationServicesOperations operations, string resourceGroupName, string serviceName, string configurationServiceName, ConfigurationServiceSettings settings)
 {
     return(operations.BeginValidateAsync(resourceGroupName, serviceName, configurationServiceName, settings).GetAwaiter().GetResult());
 }
 /// <summary>
 /// Disable the default Application Configuration Service.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The name of the resource group that contains the resource. You can obtain
 /// this value from the Azure Resource Manager API or the portal.
 /// </param>
 /// <param name='serviceName'>
 /// The name of the Service resource.
 /// </param>
 /// <param name='configurationServiceName'>
 /// The name of Application Configuration Service.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task BeginDeleteAsync(this IConfigurationServicesOperations operations, string resourceGroupName, string serviceName, string configurationServiceName, CancellationToken cancellationToken = default(CancellationToken))
 {
     (await operations.BeginDeleteWithHttpMessagesAsync(resourceGroupName, serviceName, configurationServiceName, null, cancellationToken).ConfigureAwait(false)).Dispose();
 }
 /// <summary>
 /// Disable the default Application Configuration Service.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The name of the resource group that contains the resource. You can obtain
 /// this value from the Azure Resource Manager API or the portal.
 /// </param>
 /// <param name='serviceName'>
 /// The name of the Service resource.
 /// </param>
 /// <param name='configurationServiceName'>
 /// The name of Application Configuration Service.
 /// </param>
 public static void BeginDelete(this IConfigurationServicesOperations operations, string resourceGroupName, string serviceName, string configurationServiceName)
 {
     operations.BeginDeleteAsync(resourceGroupName, serviceName, configurationServiceName).GetAwaiter().GetResult();
 }
 /// <summary>
 /// Handles requests to list all resources in a Service.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The name of the resource group that contains the resource. You can obtain
 /// this value from the Azure Resource Manager API or the portal.
 /// </param>
 /// <param name='serviceName'>
 /// The name of the Service resource.
 /// </param>
 public static IPage <ConfigurationServiceResource> List(this IConfigurationServicesOperations operations, string resourceGroupName, string serviceName)
 {
     return(operations.ListAsync(resourceGroupName, serviceName).GetAwaiter().GetResult());
 }