internal static Task<SkuUpdateResponse> UpdateAntaresCurrentSkuAsync( SkuOperations skuOperations, string resourceId, SkuUpdateParameters parameters, string apiVersion, CancellationToken cancellationToken) { AntaresSkuUpdateRequest antaresUpdateParameters = new AntaresSkuUpdateRequest { WorkerSize = AntaresSkuOperations.GetAntaresWorkerSize(parameters.Sku.Name), Sku = parameters.Sku.Tier, NumberOfWorkers = parameters.Sku.Capacity }; return skuOperations.UpdateAntaresCurrentSkuInternalAsync(resourceId, antaresUpdateParameters, apiVersion, cancellationToken); }
internal async static Task<SkuGetResponse> GetAntaresCurrentSku(SkuOperations skuOperations, string resourceId, string apiVersion, CancellationToken cancellationToken) { AntaresSkuGetResponse response = await skuOperations.GetAntaresCurrentSkuInternalAsync(resourceId, apiVersion, cancellationToken); return new SkuGetResponse { Properties = new SkuGetProperties { Sku = new CurrentSku { Name = AntaresSkuOperations.GetAnatresSkuName(response.Properties.CurrentWorkerSize, response.Properties.Sku), Tier = response.Properties.Sku, Capacity = response.Properties.CurrentNumberOfWorkers } } }; }