/// <summary> /// Create or replace an existing Lab Account. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// The name of the resource group. /// </param> /// <param name='labAccountName'> /// The name of the lab Account. /// </param> /// <param name='labAccount'> /// Represents a lab account. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <LabAccount> CreateOrUpdateAsync(this ILabAccountsOperations operations, string resourceGroupName, string labAccountName, LabAccount labAccount, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.CreateOrUpdateWithHttpMessagesAsync(resourceGroupName, labAccountName, labAccount, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <summary> /// Create or replace an existing Lab Account. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// The name of the resource group. /// </param> /// <param name='labAccountName'> /// The name of the lab Account. /// </param> /// <param name='labAccount'> /// Represents a lab account. /// </param> public static LabAccount CreateOrUpdate(this ILabAccountsOperations operations, string resourceGroupName, string labAccountName, LabAccount labAccount) { return(operations.CreateOrUpdateAsync(resourceGroupName, labAccountName, labAccount).GetAwaiter().GetResult()); }