Condividi tramite


ContainerRegistryTasksExtensions.ScheduleRun Method

Definition

Schedules a new run based on the request parameters and add it to the run queue. <item> Mocking. To mock this method, please mock ScheduleRun(String, RunContent, CancellationToken) instead. </item>

public static Azure.Response<Azure.ResourceManager.ContainerRegistry.Tasks.RunResource> ScheduleRun(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, string registryName, Azure.ResourceManager.ContainerRegistry.Tasks.Models.RunContent content, System.Threading.CancellationToken cancellationToken = default);
static member ScheduleRun : Azure.ResourceManager.Resources.ResourceGroupResource * string * Azure.ResourceManager.ContainerRegistry.Tasks.Models.RunContent * System.Threading.CancellationToken -> Azure.Response<Azure.ResourceManager.ContainerRegistry.Tasks.RunResource>
<Extension()>
Public Function ScheduleRun (resourceGroupResource As ResourceGroupResource, registryName As String, content As RunContent, Optional cancellationToken As CancellationToken = Nothing) As Response(Of RunResource)

Parameters

resourceGroupResource
ResourceGroupResource

The ResourceGroupResource the method will execute against.

registryName
String

The name of the container registry.

content
RunContent

The request body.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

resourceGroupResource is null.

Applies to