/// <summary> /// Create or update a KPack build. /// </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='buildName'> /// The name of the build resource. /// </param> /// <param name='build'> /// Parameters for the create or update operation /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <Build> CreateOrUpdateBuildAsync(this IBuildServiceOperations operations, string resourceGroupName, string serviceName, string buildServiceName, string buildName, Build build, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.CreateOrUpdateBuildWithHttpMessagesAsync(resourceGroupName, serviceName, buildServiceName, buildName, build, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <summary> /// List KPack build results. /// </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 <BuildResult> > ListBuildResultsNextAsync(this IBuildServiceOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.ListBuildResultsNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <summary> /// Get the supported stack resource. /// </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='stackName'> /// The name of the stack resource. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <SupportedStackResource> GetSupportedStackAsync(this IBuildServiceOperations operations, string resourceGroupName, string serviceName, string buildServiceName, string stackName, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.GetSupportedStackWithHttpMessagesAsync(resourceGroupName, serviceName, buildServiceName, stackName, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <summary> /// List build services resource. /// </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='cancellationToken'> /// The cancellation token. /// </param> public static async Task <IPage <BuildService> > ListBuildServicesAsync(this IBuildServiceOperations operations, string resourceGroupName, string serviceName, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.ListBuildServicesWithHttpMessagesAsync(resourceGroupName, serviceName, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <summary> /// List KPack build results. /// </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 <BuildResult> ListBuildResultsNext(this IBuildServiceOperations operations, string nextPageLink) { return(operations.ListBuildResultsNextAsync(nextPageLink).GetAwaiter().GetResult()); }
/// <summary> /// Get the supported stack resource. /// </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='stackName'> /// The name of the stack resource. /// </param> public static SupportedStackResource GetSupportedStack(this IBuildServiceOperations operations, string resourceGroupName, string serviceName, string buildServiceName, string stackName) { return(operations.GetSupportedStackAsync(resourceGroupName, serviceName, buildServiceName, stackName).GetAwaiter().GetResult()); }
/// <summary> /// Get all supported buildpacks. /// </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 SupportedBuildpacksCollection ListSupportedBuildpacks(this IBuildServiceOperations operations, string resourceGroupName, string serviceName, string buildServiceName) { return(operations.ListSupportedBuildpacksAsync(resourceGroupName, serviceName, buildServiceName).GetAwaiter().GetResult()); }
/// <summary> /// Get an resource upload URL for build service, which may be artifacts or /// source archive. /// </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='cancellationToken'> /// The cancellation token. /// </param> public static async Task <ResourceUploadDefinition> GetResourceUploadUrlAsync(this IBuildServiceOperations operations, string resourceGroupName, string serviceName, string buildServiceName, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.GetResourceUploadUrlWithHttpMessagesAsync(resourceGroupName, serviceName, buildServiceName, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <summary> /// Get an resource upload URL for build service, which may be artifacts or /// source archive. /// </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 ResourceUploadDefinition GetResourceUploadUrl(this IBuildServiceOperations operations, string resourceGroupName, string serviceName, string buildServiceName) { return(operations.GetResourceUploadUrlAsync(resourceGroupName, serviceName, buildServiceName).GetAwaiter().GetResult()); }
/// <summary> /// List build services resource. /// </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 <BuildService> ListBuildServices(this IBuildServiceOperations operations, string resourceGroupName, string serviceName) { return(operations.ListBuildServicesAsync(resourceGroupName, serviceName).GetAwaiter().GetResult()); }
/// <summary> /// Create or update a KPack build. /// </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='buildName'> /// The name of the build resource. /// </param> /// <param name='build'> /// Parameters for the create or update operation /// </param> public static Build CreateOrUpdateBuild(this IBuildServiceOperations operations, string resourceGroupName, string serviceName, string buildServiceName, string buildName, Build build) { return(operations.CreateOrUpdateBuildAsync(resourceGroupName, serviceName, buildServiceName, buildName, build).GetAwaiter().GetResult()); }