23 references to Options
Aspire.Hosting.Azure.ApiManagement (19)
AzureApiManagementExtensions.cs (19)
780
if (builder.Resource.
Options
.Sku == AzureApiManagementSku.Consumption &&
786
if (builder.Resource.
Options
.Sku is AzureApiManagementSku.BasicV2 or AzureApiManagementSku.StandardV2 or AzureApiManagementSku.PremiumV2 &&
794
builder.Resource.
Options
.Sku is not (AzureApiManagementSku.Developer or AzureApiManagementSku.Premium or AzureApiManagementSku.PremiumV2))
797
$"Multiple gateway custom domains are not supported by the API Management '{builder.Resource.
Options
.Sku}' SKU.");
1148
if (builder.Resource.
Options
.Sku == AzureApiManagementSku.Consumption)
1434
if (builder.Resource.
Options
.Sku is not (AzureApiManagementSku.Developer or AzureApiManagementSku.Premium))
1437
$"Classic virtual network injection is supported only by the Developer and Premium SKUs, not '{builder.Resource.
Options
.Sku}'.");
1482
if (builder.Resource.
Options
.Sku is not (AzureApiManagementSku.StandardV2 or AzureApiManagementSku.PremiumV2))
1485
$"Virtual network integration is supported only by the Standard v2 and Premium v2 SKUs, not '{builder.Resource.
Options
.Sku}'.");
1532
if (builder.Resource.
Options
.Sku is not AzureApiManagementSku.PremiumV2)
1535
$"Virtual network injection is supported only by the Premium v2 SKU, not '{builder.Resource.
Options
.Sku}'.");
1591
if (isExisting && !azureResource.
Options
.HasExplicitSku)
1617
if (azureResource.
Options
.Sku is AzureApiManagementSku.Consumption or AzureApiManagementSku.BasicV2)
1620
$"API Management SKU '{azureResource.
Options
.Sku}' does not support private endpoints.");
1670
PublisherEmail = azureResource.
Options
.PublisherEmail,
1671
PublisherName = azureResource.
Options
.PublisherName,
1674
Name = GetProvisioningSku(azureResource.
Options
.Sku),
1675
Capacity = azureResource.
Options
.Capacity,
2784
if (service.
Options
.Sku == AzureApiManagementSku.Consumption)
Aspire.Hosting.Azure.Tests (4)
AzureApiManagementTests.cs (4)
34
Assert.Equal("Contoso APIs", apim.Resource.
Options
.PublisherName);
35
Assert.Equal(AzureApiManagementSku.Developer, apim.Resource.
Options
.Sku);
36
Assert.Equal(1, apim.Resource.
Options
.Capacity);
118
Assert.Equal(0, apim.Resource.
Options
.Capacity);