/// <summary> /// Creates an import pipeline for a container registry with the specified /// parameters. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// The name of the resource group to which the container registry belongs. /// </param> /// <param name='registryName'> /// The name of the container registry. /// </param> /// <param name='importPipelineName'> /// The name of the import pipeline. /// </param> /// <param name='importPipelineCreateParameters'> /// The parameters for creating an import pipeline. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async System.Threading.Tasks.Task <ImportPipeline> CreateAsync(this IImportPipelinesOperations operations, string resourceGroupName, string registryName, string importPipelineName, ImportPipeline importPipelineCreateParameters, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.CreateWithHttpMessagesAsync(resourceGroupName, registryName, importPipelineName, importPipelineCreateParameters, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <summary> /// Gets the properties of the import pipeline. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// The name of the resource group to which the container registry belongs. /// </param> /// <param name='registryName'> /// The name of the container registry. /// </param> /// <param name='importPipelineName'> /// The name of the import pipeline. /// </param> public static ImportPipeline Get(this IImportPipelinesOperations operations, string resourceGroupName, string registryName, string importPipelineName) { return(operations.GetAsync(resourceGroupName, registryName, importPipelineName).GetAwaiter().GetResult()); }
/// <summary> /// Lists all import pipelines for the specified container registry. /// </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 System.Threading.Tasks.Task <IPage <ImportPipeline> > ListNextAsync(this IImportPipelinesOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.ListNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <summary> /// Lists all import pipelines for the specified container registry. /// </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 <ImportPipeline> ListNext(this IImportPipelinesOperations operations, string nextPageLink) { return(operations.ListNextAsync(nextPageLink).GetAwaiter().GetResult()); }
/// <summary> /// Deletes an import pipeline from a container registry. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// The name of the resource group to which the container registry belongs. /// </param> /// <param name='registryName'> /// The name of the container registry. /// </param> /// <param name='importPipelineName'> /// The name of the import pipeline. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async System.Threading.Tasks.Task BeginDeleteAsync(this IImportPipelinesOperations operations, string resourceGroupName, string registryName, string importPipelineName, CancellationToken cancellationToken = default(CancellationToken)) { (await operations.BeginDeleteWithHttpMessagesAsync(resourceGroupName, registryName, importPipelineName, null, cancellationToken).ConfigureAwait(false)).Dispose(); }
/// <summary> /// Deletes an import pipeline from a container registry. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// The name of the resource group to which the container registry belongs. /// </param> /// <param name='registryName'> /// The name of the container registry. /// </param> /// <param name='importPipelineName'> /// The name of the import pipeline. /// </param> public static void BeginDelete(this IImportPipelinesOperations operations, string resourceGroupName, string registryName, string importPipelineName) { operations.BeginDeleteAsync(resourceGroupName, registryName, importPipelineName).GetAwaiter().GetResult(); }
/// <summary> /// Creates an import pipeline for a container registry with the specified /// parameters. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// The name of the resource group to which the container registry belongs. /// </param> /// <param name='registryName'> /// The name of the container registry. /// </param> /// <param name='importPipelineName'> /// The name of the import pipeline. /// </param> /// <param name='importPipelineCreateParameters'> /// The parameters for creating an import pipeline. /// </param> public static ImportPipeline BeginCreate(this IImportPipelinesOperations operations, string resourceGroupName, string registryName, string importPipelineName, ImportPipeline importPipelineCreateParameters) { return(operations.BeginCreateAsync(resourceGroupName, registryName, importPipelineName, importPipelineCreateParameters).GetAwaiter().GetResult()); }