예제 #1
0
 /// <summary>
 /// Updates or creates a Lab Plan resource.
 /// </summary>
 /// <remarks>
 /// Operation to create or 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> BeginCreateOrUpdateAsync(this ILabPlansOperations operations, LabPlan body, string resourceGroupName, string labPlanName, CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.BeginCreateOrUpdateWithHttpMessagesAsync(body, resourceGroupName, labPlanName, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
예제 #2
0
 /// <summary>
 /// Updates or creates a Lab Plan resource.
 /// </summary>
 /// <remarks>
 /// Operation to create or 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 BeginCreateOrUpdate(this ILabPlansOperations operations, LabPlan body, string resourceGroupName, string labPlanName)
 {
     return(operations.BeginCreateOrUpdateAsync(body, resourceGroupName, labPlanName).GetAwaiter().GetResult());
 }