Compartilhar via


CapacityReservationGroupsOperationsExtensions.CreateOrUpdateAsync Método

Definição

A operação para criar ou atualizar um grupo de reserva de capacidade. Ao atualizar um grupo de reserva de capacidade, somente as marcas podem ser modificadas. Consulte para https://aka.ms/CapacityReservation obter mais detalhes.

public static System.Threading.Tasks.Task<Microsoft.Azure.Management.Compute.Models.CapacityReservationGroup> CreateOrUpdateAsync (this Microsoft.Azure.Management.Compute.ICapacityReservationGroupsOperations operations, string resourceGroupName, string capacityReservationGroupName, Microsoft.Azure.Management.Compute.Models.CapacityReservationGroup parameters, System.Threading.CancellationToken cancellationToken = default);
static member CreateOrUpdateAsync : Microsoft.Azure.Management.Compute.ICapacityReservationGroupsOperations * string * string * Microsoft.Azure.Management.Compute.Models.CapacityReservationGroup * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.Management.Compute.Models.CapacityReservationGroup>
<Extension()>
Public Function CreateOrUpdateAsync (operations As ICapacityReservationGroupsOperations, resourceGroupName As String, capacityReservationGroupName As String, parameters As CapacityReservationGroup, Optional cancellationToken As CancellationToken = Nothing) As Task(Of CapacityReservationGroup)

Parâmetros

operations
ICapacityReservationGroupsOperations

O grupo de operações para esse método de extensão.

resourceGroupName
String

O nome do grupo de recursos.

capacityReservationGroupName
String

O nome do grupo de reserva de capacidade.

parameters
CapacityReservationGroup

Parâmetros fornecidos para o grupo Criar reserva de capacidade.

cancellationToken
CancellationToken

O token de cancelamento.

Retornos

Aplica-se a