23 references to Options
Aspire.Hosting.Azure.ApiManagement (19)
AzureApiManagementExtensions.cs (19)
780if (builder.Resource.Options.Sku == AzureApiManagementSku.Consumption && 786if (builder.Resource.Options.Sku is AzureApiManagementSku.BasicV2 or AzureApiManagementSku.StandardV2 or AzureApiManagementSku.PremiumV2 && 794builder.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."); 1148if (builder.Resource.Options.Sku == AzureApiManagementSku.Consumption) 1434if (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}'."); 1482if (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}'."); 1532if (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}'."); 1591if (isExisting && !azureResource.Options.HasExplicitSku) 1617if (azureResource.Options.Sku is AzureApiManagementSku.Consumption or AzureApiManagementSku.BasicV2) 1620$"API Management SKU '{azureResource.Options.Sku}' does not support private endpoints."); 1670PublisherEmail = azureResource.Options.PublisherEmail, 1671PublisherName = azureResource.Options.PublisherName, 1674Name = GetProvisioningSku(azureResource.Options.Sku), 1675Capacity = azureResource.Options.Capacity, 2784if (service.Options.Sku == AzureApiManagementSku.Consumption)
Aspire.Hosting.Azure.Tests (4)
AzureApiManagementTests.cs (4)
34Assert.Equal("Contoso APIs", apim.Resource.Options.PublisherName); 35Assert.Equal(AzureApiManagementSku.Developer, apim.Resource.Options.Sku); 36Assert.Equal(1, apim.Resource.Options.Capacity); 118Assert.Equal(0, apim.Resource.Options.Capacity);