Partilhar via


AppPlatformBuildServiceAgentPoolCollection.CreateOrUpdateAsync Método

Definição

Criar ou atualizar o pool de agentes de serviço de build.

  • Caminho da Solicitação/assinaturas/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/agentPools/{agentPoolName}
  • Operação IdBuildServiceAgentPool_UpdatePut
public virtual System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.AppPlatform.AppPlatformBuildServiceAgentPoolResource>> CreateOrUpdateAsync (Azure.WaitUntil waitUntil, string agentPoolName, Azure.ResourceManager.AppPlatform.AppPlatformBuildServiceAgentPoolData data, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateOrUpdateAsync : Azure.WaitUntil * string * Azure.ResourceManager.AppPlatform.AppPlatformBuildServiceAgentPoolData * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.AppPlatform.AppPlatformBuildServiceAgentPoolResource>>
override this.CreateOrUpdateAsync : Azure.WaitUntil * string * Azure.ResourceManager.AppPlatform.AppPlatformBuildServiceAgentPoolData * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.AppPlatform.AppPlatformBuildServiceAgentPoolResource>>
Public Overridable Function CreateOrUpdateAsync (waitUntil As WaitUntil, agentPoolName As String, data As AppPlatformBuildServiceAgentPoolData, Optional cancellationToken As CancellationToken = Nothing) As Task(Of ArmOperation(Of AppPlatformBuildServiceAgentPoolResource))

Parâmetros

waitUntil
WaitUntil

Completed se o método deve aguardar para retornar até que a operação de execução prolongada seja concluída no serviço; Started se ele deve retornar depois de iniciar a operação. Para obter mais informações sobre operações de execução prolongada, consulte Exemplos de operação de Long-Running do Azure.Core.

agentPoolName
String

O nome do recurso de pool do agente de serviço de build.

data
AppPlatformBuildServiceAgentPoolData

Parâmetros para a operação de atualização.

cancellationToken
CancellationToken

O token de cancelamento a ser usado.

Retornos

Exceções

agentPoolName é uma cadeia de caracteres vazia e esperava-se que não estivesse vazia.

agentPoolName ou data é nulo.

Aplica-se a