/// <summary> /// Gets the properties of the export 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='exportPipelineName'> /// The name of the export pipeline. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async System.Threading.Tasks.Task <ExportPipeline> GetAsync(this IExportPipelinesOperations operations, string resourceGroupName, string registryName, string exportPipelineName, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.GetWithHttpMessagesAsync(resourceGroupName, registryName, exportPipelineName, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <summary> /// Creates an export 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='exportPipelineName'> /// The name of the export pipeline. /// </param> /// <param name='exportPipelineCreateParameters'> /// The parameters for creating an export pipeline. /// </param> public static ExportPipeline Create(this IExportPipelinesOperations operations, string resourceGroupName, string registryName, string exportPipelineName, ExportPipeline exportPipelineCreateParameters) { return(operations.CreateAsync(resourceGroupName, registryName, exportPipelineName, exportPipelineCreateParameters).GetAwaiter().GetResult()); }
/// <summary> /// Gets the properties of the export 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='exportPipelineName'> /// The name of the export pipeline. /// </param> public static ExportPipeline Get(this IExportPipelinesOperations operations, string resourceGroupName, string registryName, string exportPipelineName) { return(operations.GetAsync(resourceGroupName, registryName, exportPipelineName).GetAwaiter().GetResult()); }
/// <summary> /// Lists all export 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 <ExportPipeline> > ListNextAsync(this IExportPipelinesOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.ListNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <summary> /// Lists all export 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 <ExportPipeline> ListNext(this IExportPipelinesOperations operations, string nextPageLink) { return(operations.ListNextAsync(nextPageLink).GetAwaiter().GetResult()); }
/// <summary> /// Deletes an export 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='exportPipelineName'> /// The name of the export pipeline. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async System.Threading.Tasks.Task BeginDeleteAsync(this IExportPipelinesOperations operations, string resourceGroupName, string registryName, string exportPipelineName, CancellationToken cancellationToken = default(CancellationToken)) { (await operations.BeginDeleteWithHttpMessagesAsync(resourceGroupName, registryName, exportPipelineName, null, cancellationToken).ConfigureAwait(false)).Dispose(); }
/// <summary> /// Deletes an export 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='exportPipelineName'> /// The name of the export pipeline. /// </param> public static void BeginDelete(this IExportPipelinesOperations operations, string resourceGroupName, string registryName, string exportPipelineName) { operations.BeginDeleteAsync(resourceGroupName, registryName, exportPipelineName).GetAwaiter().GetResult(); }