/// <summary>
 /// Get a KPack builder.
 /// </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='buildServiceName'>
 /// The name of the build service resource.
 /// </param>
 /// <param name='builderName'>
 /// The name of the builder resource.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <BuilderResource> GetAsync(this IBuildServiceBuilderOperations operations, string resourceGroupName, string serviceName, string buildServiceName, string builderName, CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.GetWithHttpMessagesAsync(resourceGroupName, serviceName, buildServiceName, builderName, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
 /// <summary>
 /// List KPack builders result.
 /// </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 <BuilderResource> > ListNextAsync(this IBuildServiceBuilderOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.ListNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
 /// <summary>
 /// Create or update a KPack builder.
 /// </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='buildServiceName'>
 /// The name of the build service resource.
 /// </param>
 /// <param name='builderName'>
 /// The name of the builder resource.
 /// </param>
 /// <param name='builderResource'>
 /// The target builder for the create or update operation
 /// </param>
 public static BuilderResource CreateOrUpdate(this IBuildServiceBuilderOperations operations, string resourceGroupName, string serviceName, string buildServiceName, string builderName, BuilderResource builderResource)
 {
     return(operations.CreateOrUpdateAsync(resourceGroupName, serviceName, buildServiceName, builderName, builderResource).GetAwaiter().GetResult());
 }
 /// <summary>
 /// List KPack builders result.
 /// </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 <BuilderResource> ListNext(this IBuildServiceBuilderOperations operations, string nextPageLink)
 {
     return(operations.ListNextAsync(nextPageLink).GetAwaiter().GetResult());
 }
 /// <summary>
 /// Delete a KPack builder.
 /// </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='buildServiceName'>
 /// The name of the build service resource.
 /// </param>
 /// <param name='builderName'>
 /// The name of the builder resource.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task BeginDeleteAsync(this IBuildServiceBuilderOperations operations, string resourceGroupName, string serviceName, string buildServiceName, string builderName, CancellationToken cancellationToken = default(CancellationToken))
 {
     (await operations.BeginDeleteWithHttpMessagesAsync(resourceGroupName, serviceName, buildServiceName, builderName, null, cancellationToken).ConfigureAwait(false)).Dispose();
 }
 /// <summary>
 /// Delete a KPack builder.
 /// </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='buildServiceName'>
 /// The name of the build service resource.
 /// </param>
 /// <param name='builderName'>
 /// The name of the builder resource.
 /// </param>
 public static void BeginDelete(this IBuildServiceBuilderOperations operations, string resourceGroupName, string serviceName, string buildServiceName, string builderName)
 {
     operations.BeginDeleteAsync(resourceGroupName, serviceName, buildServiceName, builderName).GetAwaiter().GetResult();
 }
 /// <summary>
 /// List KPack builders result.
 /// </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='buildServiceName'>
 /// The name of the build service resource.
 /// </param>
 public static IPage <BuilderResource> List(this IBuildServiceBuilderOperations operations, string resourceGroupName, string serviceName, string buildServiceName)
 {
     return(operations.ListAsync(resourceGroupName, serviceName, buildServiceName).GetAwaiter().GetResult());
 }