Udostępnij za pośrednictwem


EnergyServiceResource.AddPartitionAsync Method

Definition

Method that gets called if new partition is to be added in a resource.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OpenEnergyPlatform/energyServices/{resourceName}/addPartition
  • Operation Id: EnergyServices_AddPartition
public virtual System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.EnergyServices.Models.DataPartitionAddOrRemoveContent>> AddPartitionAsync (Azure.WaitUntil waitUntil, Azure.ResourceManager.EnergyServices.Models.DataPartitionAddOrRemoveContent content = default, System.Threading.CancellationToken cancellationToken = default);
abstract member AddPartitionAsync : Azure.WaitUntil * Azure.ResourceManager.EnergyServices.Models.DataPartitionAddOrRemoveContent * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.EnergyServices.Models.DataPartitionAddOrRemoveContent>>
override this.AddPartitionAsync : Azure.WaitUntil * Azure.ResourceManager.EnergyServices.Models.DataPartitionAddOrRemoveContent * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.EnergyServices.Models.DataPartitionAddOrRemoveContent>>
Public Overridable Function AddPartitionAsync (waitUntil As WaitUntil, Optional content As DataPartitionAddOrRemoveContent = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of ArmOperation(Of DataPartitionAddOrRemoveContent))

Parameters

waitUntil
WaitUntil

Completed if the method should wait to return until the long-running operation has completed on the service; Started if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples.

content
DataPartitionAddOrRemoveContent

add partition action payload.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Applies to