Partilhar via


AutomationSourceControlResource.CreateSourceControlSyncJobAsync Método

Definição

Cria o trabalho de sincronização para um controle do código-fonte.

  • Caminho da Solicitação/assinaturas/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/sourceControls/{sourceControlName}/sourceControlSyncJobs/{sourceControlSyncJobId}
  • IdSourceControlSyncJob_Create de operação
public virtual System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Automation.Models.SourceControlSyncJob>> CreateSourceControlSyncJobAsync (Guid sourceControlSyncJobId, Azure.ResourceManager.Automation.Models.SourceControlSyncJobCreateContent content, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateSourceControlSyncJobAsync : Guid * Azure.ResourceManager.Automation.Models.SourceControlSyncJobCreateContent * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Automation.Models.SourceControlSyncJob>>
override this.CreateSourceControlSyncJobAsync : Guid * Azure.ResourceManager.Automation.Models.SourceControlSyncJobCreateContent * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Automation.Models.SourceControlSyncJob>>
Public Overridable Function CreateSourceControlSyncJobAsync (sourceControlSyncJobId As Guid, content As SourceControlSyncJobCreateContent, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of SourceControlSyncJob))

Parâmetros

sourceControlSyncJobId
Guid

A ID do trabalho de sincronização do controle do código-fonte.

content
SourceControlSyncJobCreateContent

Os parâmetros fornecidos para a operação criar trabalho de sincronização de controle do código-fonte.

cancellationToken
CancellationToken

O token de cancelamento a ser usado.

Retornos

Exceções

content é nulo.

Aplica-se a