Condividi tramite


LabServicesScheduleCollection.CreateOrUpdateAsync Method

Definition

Operation to create or update a lab schedule.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.LabServices/labs/{labName}/schedules/{scheduleName}
  • Operation Id: Schedules_CreateOrUpdate
public virtual System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.LabServices.LabServicesScheduleResource>> CreateOrUpdateAsync (Azure.WaitUntil waitUntil, string scheduleName, Azure.ResourceManager.LabServices.LabServicesScheduleData data, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateOrUpdateAsync : Azure.WaitUntil * string * Azure.ResourceManager.LabServices.LabServicesScheduleData * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.LabServices.LabServicesScheduleResource>>
override this.CreateOrUpdateAsync : Azure.WaitUntil * string * Azure.ResourceManager.LabServices.LabServicesScheduleData * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.LabServices.LabServicesScheduleResource>>
Public Overridable Function CreateOrUpdateAsync (waitUntil As WaitUntil, scheduleName As String, data As LabServicesScheduleData, Optional cancellationToken As CancellationToken = Nothing) As Task(Of ArmOperation(Of LabServicesScheduleResource))

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.

scheduleName
String

The name of the schedule that uniquely identifies it within containing lab. Used in resource URIs.

data
LabServicesScheduleData

The request body.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

scheduleName is an empty string, and was expected to be non-empty.

scheduleName or data is null.

Applies to