Esempio n. 1
0
 /// <summary>
 /// Updates a Lab Plan resource.
 /// </summary>
 /// <remarks>
 /// Operation to update a Lab Plan resource.
 /// </remarks>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='body'>
 /// The request body.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The name of the resource group. The name is case insensitive.
 /// </param>
 /// <param name='labPlanName'>
 /// The name of the lab plan that uniquely identifies it within containing
 /// resource group. Used in resource URIs and in UI.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <LabPlan> BeginUpdateAsync(this ILabPlansOperations operations, LabPlanUpdate body, string resourceGroupName, string labPlanName, CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.BeginUpdateWithHttpMessagesAsync(body, resourceGroupName, labPlanName, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
Esempio n. 2
0
 /// <summary>
 /// Updates a Lab Plan resource.
 /// </summary>
 /// <remarks>
 /// Operation to update a Lab Plan resource.
 /// </remarks>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='body'>
 /// The request body.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The name of the resource group. The name is case insensitive.
 /// </param>
 /// <param name='labPlanName'>
 /// The name of the lab plan that uniquely identifies it within containing
 /// resource group. Used in resource URIs and in UI.
 /// </param>
 public static LabPlan BeginUpdate(this ILabPlansOperations operations, LabPlanUpdate body, string resourceGroupName, string labPlanName)
 {
     return(operations.BeginUpdateAsync(body, resourceGroupName, labPlanName).GetAwaiter().GetResult());
 }