diff --git a/src/Aspire.Hosting.Azure.AppContainers/api/Aspire.Hosting.Azure.AppContainers.cs b/src/Aspire.Hosting.Azure.AppContainers/api/Aspire.Hosting.Azure.AppContainers.cs index 2be26d565eb..31fb1baa3b5 100644 --- a/src/Aspire.Hosting.Azure.AppContainers/api/Aspire.Hosting.Azure.AppContainers.cs +++ b/src/Aspire.Hosting.Azure.AppContainers/api/Aspire.Hosting.Azure.AppContainers.cs @@ -14,6 +14,12 @@ public static ApplicationModel.IResourceBuilder PublishAsAzureContainerApp where T : ApplicationModel.ContainerResource { throw null; } } + public static partial class AzureContainerAppExecutableExtensions + { + public static ApplicationModel.IResourceBuilder PublishAsAzureContainerApp(this ApplicationModel.IResourceBuilder executable, System.Action configure) + where T : ApplicationModel.ExecutableResource { throw null; } + } + public static partial class AzureContainerAppExtensions { public static IDistributedApplicationBuilder AddAzureContainerAppsInfrastructure(this IDistributedApplicationBuilder builder) { throw null; } diff --git a/src/Aspire.Hosting.Azure.CosmosDB/api/Aspire.Hosting.Azure.CosmosDB.cs b/src/Aspire.Hosting.Azure.CosmosDB/api/Aspire.Hosting.Azure.CosmosDB.cs index 146accd370b..a173336daeb 100644 --- a/src/Aspire.Hosting.Azure.CosmosDB/api/Aspire.Hosting.Azure.CosmosDB.cs +++ b/src/Aspire.Hosting.Azure.CosmosDB/api/Aspire.Hosting.Azure.CosmosDB.cs @@ -8,7 +8,7 @@ //------------------------------------------------------------------------------ namespace Aspire.Hosting { - public partial class AzureCosmosDBResource : Azure.AzureProvisioningResource, ApplicationModel.IResourceWithConnectionString, ApplicationModel.IResource, ApplicationModel.IManifestExpressionProvider, ApplicationModel.IValueProvider, ApplicationModel.IValueWithReferences, ApplicationModel.IResourceWithEndpoints + public partial class AzureCosmosDBResource : Azure.AzureProvisioningResource, ApplicationModel.IResourceWithConnectionString, ApplicationModel.IResource, ApplicationModel.IManifestExpressionProvider, ApplicationModel.IValueProvider, ApplicationModel.IValueWithReferences, ApplicationModel.IResourceWithEndpoints, Azure.IResourceWithAzureFunctionsConfig { public AzureCosmosDBResource(string name, System.Action configureInfrastructure) : base(default!, default!) { } @@ -16,17 +16,37 @@ public AzureCosmosDBResource(string name, System.Action target, string connectionName) { } } public static partial class AzureCosmosExtensions { public static ApplicationModel.IResourceBuilder AddAzureCosmosDB(this IDistributedApplicationBuilder builder, string name) { throw null; } + public static ApplicationModel.IResourceBuilder AddContainer(this ApplicationModel.IResourceBuilder builder, string name, string partitionKeyPath, string? containerName = null) { throw null; } + + public static ApplicationModel.IResourceBuilder AddCosmosDatabase(this ApplicationModel.IResourceBuilder builder, string name, string? databaseName = null) { throw null; } + + [System.Obsolete("This method is obsolete because it has the wrong return type and will be removed in a future version. Use AddCosmosDatabase instead to add a Cosmos DB database.")] public static ApplicationModel.IResourceBuilder AddDatabase(this ApplicationModel.IResourceBuilder builder, string databaseName) { throw null; } public static ApplicationModel.IResourceBuilder RunAsEmulator(this ApplicationModel.IResourceBuilder builder, System.Action>? configureContainer = null) { throw null; } + [System.Diagnostics.CodeAnalysis.Experimental("ASPIRECOSMOSDB001", UrlFormat = "https://aka.ms/dotnet/aspire/diagnostics#{0}")] + public static ApplicationModel.IResourceBuilder RunAsPreviewEmulator(this ApplicationModel.IResourceBuilder builder, System.Action>? configureContainer = null) { throw null; } + + public static ApplicationModel.IResourceBuilder WithAccessKeyAuthentication(this ApplicationModel.IResourceBuilder builder) { throw null; } + + [System.Diagnostics.CodeAnalysis.Experimental("ASPIRECOSMOSDB001", UrlFormat = "https://aka.ms/dotnet/aspire/diagnostics#{0}")] + public static ApplicationModel.IResourceBuilder WithDataExplorer(this ApplicationModel.IResourceBuilder builder, int? port = null) { throw null; } + public static ApplicationModel.IResourceBuilder WithDataVolume(this ApplicationModel.IResourceBuilder builder, string? name = null) { throw null; } public static ApplicationModel.IResourceBuilder WithGatewayPort(this ApplicationModel.IResourceBuilder builder, int? port) { throw null; } @@ -37,12 +57,38 @@ public static partial class AzureCosmosExtensions namespace Aspire.Hosting.Azure { + public partial class AzureCosmosDBContainerResource : ApplicationModel.Resource, ApplicationModel.IResourceWithParent, ApplicationModel.IResourceWithParent, ApplicationModel.IResource, ApplicationModel.IResourceWithConnectionString, ApplicationModel.IManifestExpressionProvider, ApplicationModel.IValueProvider, ApplicationModel.IValueWithReferences, IResourceWithAzureFunctionsConfig + { + public AzureCosmosDBContainerResource(string name, string containerName, string partitionKeyPath, AzureCosmosDBDatabaseResource parent) : base(default!) { } + + public ApplicationModel.ReferenceExpression ConnectionStringExpression { get { throw null; } } + + public string ContainerName { get { throw null; } set { } } + + public AzureCosmosDBDatabaseResource Parent { get { throw null; } } + + public string PartitionKeyPath { get { throw null; } set { } } + + void IResourceWithAzureFunctionsConfig.ApplyAzureFunctionsConfiguration(System.Collections.Generic.IDictionary target, string connectionName) { } + } + + public partial class AzureCosmosDBDatabaseResource : ApplicationModel.Resource, ApplicationModel.IResourceWithParent, ApplicationModel.IResourceWithParent, ApplicationModel.IResource, ApplicationModel.IResourceWithConnectionString, ApplicationModel.IManifestExpressionProvider, ApplicationModel.IValueProvider, ApplicationModel.IValueWithReferences, IResourceWithAzureFunctionsConfig + { + public AzureCosmosDBDatabaseResource(string name, string databaseName, AzureCosmosDBResource parent) : base(default!) { } + + public ApplicationModel.ReferenceExpression ConnectionStringExpression { get { throw null; } } + + public string DatabaseName { get { throw null; } set { } } + + public AzureCosmosDBResource Parent { get { throw null; } } + + void IResourceWithAzureFunctionsConfig.ApplyAzureFunctionsConfiguration(System.Collections.Generic.IDictionary target, string connectionName) { } + } + public partial class AzureCosmosDBEmulatorResource : ApplicationModel.ContainerResource, ApplicationModel.IResource { public AzureCosmosDBEmulatorResource(AzureCosmosDBResource innerResource) : base(default!, default) { } public override ApplicationModel.ResourceAnnotationCollection Annotations { get { throw null; } } - - public override string Name { get { throw null; } } } } \ No newline at end of file diff --git a/src/Aspire.Hosting.Azure.EventHubs/api/Aspire.Hosting.Azure.EventHubs.cs b/src/Aspire.Hosting.Azure.EventHubs/api/Aspire.Hosting.Azure.EventHubs.cs index fc36ec1eb76..192d3020297 100644 --- a/src/Aspire.Hosting.Azure.EventHubs/api/Aspire.Hosting.Azure.EventHubs.cs +++ b/src/Aspire.Hosting.Azure.EventHubs/api/Aspire.Hosting.Azure.EventHubs.cs @@ -12,20 +12,62 @@ public static partial class AzureEventHubsExtensions { public static ApplicationModel.IResourceBuilder AddAzureEventHubs(this IDistributedApplicationBuilder builder, string name) { throw null; } + public static ApplicationModel.IResourceBuilder AddConsumerGroup(this ApplicationModel.IResourceBuilder builder, string name, string? groupName = null) { throw null; } + + [System.Obsolete("This method is obsolete because it has the wrong return type and will be removed in a future version. Use AddHub instead to add an Azure Event Hub.")] public static ApplicationModel.IResourceBuilder AddEventHub(this ApplicationModel.IResourceBuilder builder, string name) { throw null; } + public static ApplicationModel.IResourceBuilder AddHub(this ApplicationModel.IResourceBuilder builder, string name, string? hubName = null) { throw null; } + public static ApplicationModel.IResourceBuilder RunAsEmulator(this ApplicationModel.IResourceBuilder builder, System.Action>? configureContainer = null) { throw null; } + public static ApplicationModel.IResourceBuilder WithConfiguration(this ApplicationModel.IResourceBuilder builder, System.Action configJson) { throw null; } + + public static ApplicationModel.IResourceBuilder WithConfigurationFile(this ApplicationModel.IResourceBuilder builder, string path) { throw null; } + public static ApplicationModel.IResourceBuilder WithDataBindMount(this ApplicationModel.IResourceBuilder builder, string? path = null) { throw null; } public static ApplicationModel.IResourceBuilder WithDataVolume(this ApplicationModel.IResourceBuilder builder, string? name = null) { throw null; } + [System.Obsolete("Use WithHostPort instead.")] public static ApplicationModel.IResourceBuilder WithGatewayPort(this ApplicationModel.IResourceBuilder builder, int? port) { throw null; } + + public static ApplicationModel.IResourceBuilder WithHostPort(this ApplicationModel.IResourceBuilder builder, int? port) { throw null; } + + public static ApplicationModel.IResourceBuilder WithProperties(this ApplicationModel.IResourceBuilder builder, System.Action configure) { throw null; } } } namespace Aspire.Hosting.Azure { + public partial class AzureEventHubConsumerGroupResource : ApplicationModel.Resource, ApplicationModel.IResourceWithParent, ApplicationModel.IResourceWithParent, ApplicationModel.IResource, ApplicationModel.IResourceWithConnectionString, ApplicationModel.IManifestExpressionProvider, ApplicationModel.IValueProvider, ApplicationModel.IValueWithReferences, IResourceWithAzureFunctionsConfig + { + public AzureEventHubConsumerGroupResource(string name, string consumerGroupName, AzureEventHubResource parent) : base(default!) { } + + public ApplicationModel.ReferenceExpression ConnectionStringExpression { get { throw null; } } + + public string ConsumerGroupName { get { throw null; } set { } } + + public AzureEventHubResource Parent { get { throw null; } } + + void IResourceWithAzureFunctionsConfig.ApplyAzureFunctionsConfiguration(System.Collections.Generic.IDictionary target, string connectionName) { } + } + + public partial class AzureEventHubResource : ApplicationModel.Resource, ApplicationModel.IResourceWithParent, ApplicationModel.IResourceWithParent, ApplicationModel.IResource, ApplicationModel.IResourceWithConnectionString, ApplicationModel.IManifestExpressionProvider, ApplicationModel.IValueProvider, ApplicationModel.IValueWithReferences, IResourceWithAzureFunctionsConfig + { + public AzureEventHubResource(string name, string hubName, AzureEventHubsResource parent) : base(default!) { } + + public ApplicationModel.ReferenceExpression ConnectionStringExpression { get { throw null; } } + + public string HubName { get { throw null; } set { } } + + public AzureEventHubsResource Parent { get { throw null; } } + + public long? PartitionCount { get { throw null; } set { } } + + void IResourceWithAzureFunctionsConfig.ApplyAzureFunctionsConfiguration(System.Collections.Generic.IDictionary target, string connectionName) { } + } + public partial class AzureEventHubsEmulatorResource : ApplicationModel.ContainerResource, ApplicationModel.IResource { public AzureEventHubsEmulatorResource(AzureEventHubsResource innerResource) : base(default!, default) { } diff --git a/src/Aspire.Hosting.Azure.PostgreSQL/api/Aspire.Hosting.Azure.PostgreSQL.cs b/src/Aspire.Hosting.Azure.PostgreSQL/api/Aspire.Hosting.Azure.PostgreSQL.cs index 6cffc185cda..af9f7bada1a 100644 --- a/src/Aspire.Hosting.Azure.PostgreSQL/api/Aspire.Hosting.Azure.PostgreSQL.cs +++ b/src/Aspire.Hosting.Azure.PostgreSQL/api/Aspire.Hosting.Azure.PostgreSQL.cs @@ -50,6 +50,9 @@ public AzurePostgresFlexibleServerResource(string name, System.Action Databases { get { throw null; } } + + [System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, "ConnectionStringSecretOutput")] + public bool UsePasswordAuthentication { get { throw null; } } } [System.Obsolete("This class is obsolete and will be removed in a future version. Use AddAzurePostgresFlexibleServer instead to add an Azure Postgres Flexible Server resource.")] diff --git a/src/Aspire.Hosting.Azure.Redis/api/Aspire.Hosting.Azure.Redis.cs b/src/Aspire.Hosting.Azure.Redis/api/Aspire.Hosting.Azure.Redis.cs index 75c634c05a7..8ec6b1bbb6e 100644 --- a/src/Aspire.Hosting.Azure.Redis/api/Aspire.Hosting.Azure.Redis.cs +++ b/src/Aspire.Hosting.Azure.Redis/api/Aspire.Hosting.Azure.Redis.cs @@ -33,6 +33,9 @@ public AzureRedisCacheResource(string name, System.Action AddAzureServiceBus(this IDistributedApplicationBuilder builder, string name) { throw null; } + [System.Obsolete("This method is obsolete because it has the wrong return type and will be removed in a future version. Use AddServiceBusQueue instead to add an Azure Service Bus Queue.")] public static ApplicationModel.IResourceBuilder AddQueue(this ApplicationModel.IResourceBuilder builder, string name) { throw null; } + public static ApplicationModel.IResourceBuilder AddServiceBusQueue(this ApplicationModel.IResourceBuilder builder, string name, string? queueName = null) { throw null; } + + public static ApplicationModel.IResourceBuilder AddServiceBusSubscription(this ApplicationModel.IResourceBuilder builder, string name, string? subscriptionName = null) { throw null; } + + public static ApplicationModel.IResourceBuilder AddServiceBusTopic(this ApplicationModel.IResourceBuilder builder, string name, string? topicName = null) { throw null; } + + [System.Obsolete("This method is obsolete and will be removed in a future version. Use AddServiceBusSubscription instead to add an Azure Service Bus Subscription to a Topic.")] public static ApplicationModel.IResourceBuilder AddSubscription(this ApplicationModel.IResourceBuilder builder, string topicName, string subscriptionName) { throw null; } + [System.Obsolete("This method is obsolete because it has the wrong return type and will be removed in a future version. Use AddServiceBusTopic and AddServiceBusSubscription instead to add an Azure Service Bus Topic and Subscriptions.")] public static ApplicationModel.IResourceBuilder AddTopic(this ApplicationModel.IResourceBuilder builder, string name, string[] subscriptions) { throw null; } + [System.Obsolete("This method is obsolete because it has the wrong return type and will be removed in a future version. Use AddServiceBusTopic instead to add an Azure Service Bus Topic.")] public static ApplicationModel.IResourceBuilder AddTopic(this ApplicationModel.IResourceBuilder builder, string name) { throw null; } + + public static ApplicationModel.IResourceBuilder RunAsEmulator(this ApplicationModel.IResourceBuilder builder, System.Action>? configureContainer = null) { throw null; } + + public static ApplicationModel.IResourceBuilder WithConfiguration(this ApplicationModel.IResourceBuilder builder, System.Action configJson) { throw null; } + + public static ApplicationModel.IResourceBuilder WithConfigurationFile(this ApplicationModel.IResourceBuilder builder, string path) { throw null; } + + public static ApplicationModel.IResourceBuilder WithHostPort(this ApplicationModel.IResourceBuilder builder, int? port) { throw null; } + + public static ApplicationModel.IResourceBuilder WithProperties(this ApplicationModel.IResourceBuilder builder, System.Action configure) { throw null; } + + public static ApplicationModel.IResourceBuilder WithProperties(this ApplicationModel.IResourceBuilder builder, System.Action configure) { throw null; } + + public static ApplicationModel.IResourceBuilder WithProperties(this ApplicationModel.IResourceBuilder builder, System.Action configure) { throw null; } } } namespace Aspire.Hosting.Azure { - public partial class AzureServiceBusResource : AzureProvisioningResource, ApplicationModel.IResourceWithConnectionString, ApplicationModel.IResource, ApplicationModel.IManifestExpressionProvider, ApplicationModel.IValueProvider, ApplicationModel.IValueWithReferences, IResourceWithAzureFunctionsConfig + public partial class AzureServiceBusCorrelationFilter + { + public string? ContentType { get { throw null; } set { } } + + public string? CorrelationId { get { throw null; } set { } } + + public string? MessageId { get { throw null; } set { } } + + public System.Collections.Generic.Dictionary Properties { get { throw null; } set { } } + + public string? ReplyTo { get { throw null; } set { } } + + public string? ReplyToSessionId { get { throw null; } set { } } + + public bool? RequiresPreprocessing { get { throw null; } set { } } + + public string? SendTo { get { throw null; } set { } } + + public string? SessionId { get { throw null; } set { } } + + public string? Subject { get { throw null; } set { } } + } + + public partial class AzureServiceBusEmulatorResource : ApplicationModel.ContainerResource, ApplicationModel.IResource + { + public AzureServiceBusEmulatorResource(AzureServiceBusResource innerResource) : base(default!, default) { } + + public override ApplicationModel.ResourceAnnotationCollection Annotations { get { throw null; } } + } + + public enum AzureServiceBusFilterType + { + SqlFilter = 0, + CorrelationFilter = 1 + } + + public partial class AzureServiceBusQueueResource : ApplicationModel.Resource, ApplicationModel.IResourceWithParent, ApplicationModel.IResourceWithParent, ApplicationModel.IResource, ApplicationModel.IResourceWithConnectionString, ApplicationModel.IManifestExpressionProvider, ApplicationModel.IValueProvider, ApplicationModel.IValueWithReferences, IResourceWithAzureFunctionsConfig + { + public AzureServiceBusQueueResource(string name, string queueName, AzureServiceBusResource parent) : base(default!) { } + + public ApplicationModel.ReferenceExpression ConnectionStringExpression { get { throw null; } } + + public bool? DeadLetteringOnMessageExpiration { get { throw null; } set { } } + + public System.TimeSpan? DefaultMessageTimeToLive { get { throw null; } set { } } + + public System.TimeSpan? DuplicateDetectionHistoryTimeWindow { get { throw null; } set { } } + + public string? ForwardDeadLetteredMessagesTo { get { throw null; } set { } } + + public string? ForwardTo { get { throw null; } set { } } + + public System.TimeSpan? LockDuration { get { throw null; } set { } } + + public int? MaxDeliveryCount { get { throw null; } set { } } + + public AzureServiceBusResource Parent { get { throw null; } } + + public string QueueName { get { throw null; } set { } } + + public bool? RequiresDuplicateDetection { get { throw null; } set { } } + + public bool? RequiresSession { get { throw null; } set { } } + + void IResourceWithAzureFunctionsConfig.ApplyAzureFunctionsConfiguration(System.Collections.Generic.IDictionary target, string connectionName) { } + } + + public partial class AzureServiceBusResource : AzureProvisioningResource, ApplicationModel.IResourceWithConnectionString, ApplicationModel.IResource, ApplicationModel.IManifestExpressionProvider, ApplicationModel.IValueProvider, ApplicationModel.IValueWithReferences, IResourceWithAzureFunctionsConfig, ApplicationModel.IResourceWithEndpoints { public AzureServiceBusResource(string name, System.Action configureInfrastructure) : base(default!, default!) { } public ApplicationModel.ReferenceExpression ConnectionStringExpression { get { throw null; } } + public bool IsEmulator { get { throw null; } } + public BicepOutputReference ServiceBusEndpoint { get { throw null; } } void IResourceWithAzureFunctionsConfig.ApplyAzureFunctionsConfiguration(System.Collections.Generic.IDictionary target, string connectionName) { } } + + public partial class AzureServiceBusRule + { + public AzureServiceBusRule(string name) { } + + public AzureServiceBusCorrelationFilter CorrelationFilter { get { throw null; } set { } } + + public AzureServiceBusFilterType FilterType { get { throw null; } set { } } + + public string Name { get { throw null; } set { } } + } + + public partial class AzureServiceBusSubscriptionResource : ApplicationModel.Resource, ApplicationModel.IResourceWithParent, ApplicationModel.IResourceWithParent, ApplicationModel.IResource, ApplicationModel.IResourceWithConnectionString, ApplicationModel.IManifestExpressionProvider, ApplicationModel.IValueProvider, ApplicationModel.IValueWithReferences, IResourceWithAzureFunctionsConfig + { + public AzureServiceBusSubscriptionResource(string name, string subscriptionName, AzureServiceBusTopicResource parent) : base(default!) { } + + public ApplicationModel.ReferenceExpression ConnectionStringExpression { get { throw null; } } + + public bool? DeadLetteringOnMessageExpiration { get { throw null; } set { } } + + public System.TimeSpan? DefaultMessageTimeToLive { get { throw null; } set { } } + + public string? ForwardDeadLetteredMessagesTo { get { throw null; } set { } } + + public string? ForwardTo { get { throw null; } set { } } + + public System.TimeSpan? LockDuration { get { throw null; } set { } } + + public int? MaxDeliveryCount { get { throw null; } set { } } + + public AzureServiceBusTopicResource Parent { get { throw null; } } + + public bool? RequiresSession { get { throw null; } set { } } + + public System.Collections.Generic.List Rules { get { throw null; } } + + public string SubscriptionName { get { throw null; } set { } } + + void IResourceWithAzureFunctionsConfig.ApplyAzureFunctionsConfiguration(System.Collections.Generic.IDictionary target, string connectionName) { } + } + + public partial class AzureServiceBusTopicResource : ApplicationModel.Resource, ApplicationModel.IResourceWithParent, ApplicationModel.IResourceWithParent, ApplicationModel.IResource, ApplicationModel.IResourceWithConnectionString, ApplicationModel.IManifestExpressionProvider, ApplicationModel.IValueProvider, ApplicationModel.IValueWithReferences, IResourceWithAzureFunctionsConfig + { + public AzureServiceBusTopicResource(string name, string topicName, AzureServiceBusResource parent) : base(default!) { } + + public ApplicationModel.ReferenceExpression ConnectionStringExpression { get { throw null; } } + + public System.TimeSpan? DefaultMessageTimeToLive { get { throw null; } set { } } + + public System.TimeSpan? DuplicateDetectionHistoryTimeWindow { get { throw null; } set { } } + + public AzureServiceBusResource Parent { get { throw null; } } + + public bool? RequiresDuplicateDetection { get { throw null; } set { } } + + public string TopicName { get { throw null; } set { } } + + void IResourceWithAzureFunctionsConfig.ApplyAzureFunctionsConfiguration(System.Collections.Generic.IDictionary target, string connectionName) { } + } } \ No newline at end of file diff --git a/src/Aspire.Hosting.Azure.SignalR/api/Aspire.Hosting.Azure.SignalR.cs b/src/Aspire.Hosting.Azure.SignalR/api/Aspire.Hosting.Azure.SignalR.cs index ad014ede7b9..f3fd888253b 100644 --- a/src/Aspire.Hosting.Azure.SignalR/api/Aspire.Hosting.Azure.SignalR.cs +++ b/src/Aspire.Hosting.Azure.SignalR/api/Aspire.Hosting.Azure.SignalR.cs @@ -10,18 +10,40 @@ namespace Aspire.Hosting { public static partial class AzureSignalRExtensions { + public static ApplicationModel.IResourceBuilder AddAzureSignalR(this IDistributedApplicationBuilder builder, string name, Azure.AzureSignalRServiceMode serviceMode) { throw null; } + public static ApplicationModel.IResourceBuilder AddAzureSignalR(this IDistributedApplicationBuilder builder, string name) { throw null; } + + public static ApplicationModel.IResourceBuilder RunAsEmulator(this ApplicationModel.IResourceBuilder builder, System.Action>? configureContainer = null) { throw null; } } } namespace Aspire.Hosting.ApplicationModel { - public partial class AzureSignalRResource : Azure.AzureProvisioningResource, IResourceWithConnectionString, IResource, IManifestExpressionProvider, IValueProvider, IValueWithReferences + public partial class AzureSignalRResource : Azure.AzureProvisioningResource, IResourceWithConnectionString, IResource, IManifestExpressionProvider, IValueProvider, IValueWithReferences, IResourceWithEndpoints { public AzureSignalRResource(string name, System.Action configureInfrastructure) : base(default!, default!) { } public ReferenceExpression ConnectionStringExpression { get { throw null; } } public Azure.BicepOutputReference HostName { get { throw null; } } + + public bool IsEmulator { get { throw null; } } + } +} + +namespace Aspire.Hosting.Azure +{ + public partial class AzureSignalREmulatorResource : ApplicationModel.ContainerResource, ApplicationModel.IResource + { + public AzureSignalREmulatorResource(ApplicationModel.AzureSignalRResource innerResource) : base(default!, default) { } + + public override ApplicationModel.ResourceAnnotationCollection Annotations { get { throw null; } } + } + + public enum AzureSignalRServiceMode + { + Default = 0, + Serverless = 1 } } \ No newline at end of file diff --git a/src/Aspire.Hosting.Azure.Storage/api/Aspire.Hosting.Azure.Storage.cs b/src/Aspire.Hosting.Azure.Storage/api/Aspire.Hosting.Azure.Storage.cs index 49aea287c58..d20237cc192 100644 --- a/src/Aspire.Hosting.Azure.Storage/api/Aspire.Hosting.Azure.Storage.cs +++ b/src/Aspire.Hosting.Azure.Storage/api/Aspire.Hosting.Azure.Storage.cs @@ -20,6 +20,8 @@ public static partial class AzureStorageExtensions public static ApplicationModel.IResourceBuilder RunAsEmulator(this ApplicationModel.IResourceBuilder builder, System.Action>? configureContainer = null) { throw null; } + public static ApplicationModel.IResourceBuilder WithApiVersionCheck(this ApplicationModel.IResourceBuilder builder, bool enable = true) { throw null; } + public static ApplicationModel.IResourceBuilder WithBlobPort(this ApplicationModel.IResourceBuilder builder, int port) { throw null; } public static ApplicationModel.IResourceBuilder WithDataBindMount(this ApplicationModel.IResourceBuilder builder, string? path = null, bool isReadOnly = false) { throw null; } diff --git a/src/Aspire.Hosting.Azure/api/Aspire.Hosting.Azure.cs b/src/Aspire.Hosting.Azure/api/Aspire.Hosting.Azure.cs index b868461a43b..540119fcc46 100644 --- a/src/Aspire.Hosting.Azure/api/Aspire.Hosting.Azure.cs +++ b/src/Aspire.Hosting.Azure/api/Aspire.Hosting.Azure.cs @@ -67,8 +67,14 @@ public static partial class AzureProvisioningResourceExtensions { public static ApplicationModel.IResourceBuilder AddAzureInfrastructure(this IDistributedApplicationBuilder builder, string name, System.Action configureInfrastructure) { throw null; } + public static global::Azure.Provisioning.ProvisioningParameter AsProvisioningParameter(this ApplicationModel.EndpointReference endpointReference, Azure.AzureResourceInfrastructure infrastructure, string parameterName) { throw null; } + public static global::Azure.Provisioning.ProvisioningParameter AsProvisioningParameter(this ApplicationModel.IResourceBuilder parameterResourceBuilder, Azure.AzureResourceInfrastructure infrastructure, string? parameterName = null) { throw null; } + public static global::Azure.Provisioning.ProvisioningParameter AsProvisioningParameter(this ApplicationModel.ParameterResource parameterResource, Azure.AzureResourceInfrastructure infrastructure, string? parameterName = null) { throw null; } + + public static global::Azure.Provisioning.ProvisioningParameter AsProvisioningParameter(this ApplicationModel.ReferenceExpression expression, Azure.AzureResourceInfrastructure infrastructure, string parameterName) { throw null; } + public static global::Azure.Provisioning.ProvisioningParameter AsProvisioningParameter(this Azure.BicepOutputReference outputReference, Azure.AzureResourceInfrastructure infrastructure, string? parameterName = null) { throw null; } public static ApplicationModel.IResourceBuilder ConfigureInfrastructure(this ApplicationModel.IResourceBuilder builder, System.Action configure) @@ -82,6 +88,26 @@ public static partial class AzureResourceExtensions public static ApplicationModel.IResourceBuilder PublishAsConnectionString(this ApplicationModel.IResourceBuilder builder) where T : ApplicationModel.IAzureResource, ApplicationModel.IResourceWithConnectionString { throw null; } } + + public static partial class ExistingAzureResourceExtensions + { + public static ApplicationModel.IResourceBuilder AsExisting(this ApplicationModel.IResourceBuilder builder, ApplicationModel.IResourceBuilder nameParameter, ApplicationModel.IResourceBuilder? resourceGroupParameter) + where T : ApplicationModel.IAzureResource { throw null; } + + public static bool IsExisting(this ApplicationModel.IResource resource) { throw null; } + + public static ApplicationModel.IResourceBuilder PublishAsExisting(this ApplicationModel.IResourceBuilder builder, ApplicationModel.IResourceBuilder nameParameter, ApplicationModel.IResourceBuilder? resourceGroupParameter) + where T : ApplicationModel.IAzureResource { throw null; } + + public static ApplicationModel.IResourceBuilder PublishAsExisting(this ApplicationModel.IResourceBuilder builder, string name, string? resourceGroup) + where T : ApplicationModel.IAzureResource { throw null; } + + public static ApplicationModel.IResourceBuilder RunAsExisting(this ApplicationModel.IResourceBuilder builder, ApplicationModel.IResourceBuilder nameParameter, ApplicationModel.IResourceBuilder? resourceGroupParameter) + where T : ApplicationModel.IAzureResource { throw null; } + + public static ApplicationModel.IResourceBuilder RunAsExisting(this ApplicationModel.IResourceBuilder builder, string name, string? resourceGroup) + where T : ApplicationModel.IAzureResource { throw null; } + } } namespace Aspire.Hosting.ApplicationModel @@ -109,6 +135,8 @@ public AzureBicepResource(string name, string? templateFile = null, string? temp public System.Threading.Tasks.TaskCompletionSource? ProvisioningTaskCompletionSource { get { throw null; } set { } } + public AzureBicepResourceScope? Scope { get { throw null; } set { } } + public System.Collections.Generic.Dictionary SecretOutputs { get { throw null; } } public virtual BicepTemplateFile GetBicepTemplateFile(string? directory = null, bool deleteTemporaryFileOnDispose = true) { throw null; } @@ -135,6 +163,13 @@ public AzureBicepResourceAnnotation(AzureBicepResource resource) { } public AzureBicepResource Resource { get { throw null; } } } + public sealed partial class AzureBicepResourceScope + { + public AzureBicepResourceScope(object resourceGroup) { } + + public object ResourceGroup { get { throw null; } } + } + public sealed partial class AzureProvisioningOptions { public global::Azure.Provisioning.ProvisioningBuildOptions ProvisioningBuildOptions { get { throw null; } } @@ -148,6 +183,9 @@ public AzureProvisioningResource(string name, System.Action(AzureResourceInfrastructure infrastructure, System.Func, T> createExisting, System.Func createNew) + where T : global::Azure.Provisioning.Primitives.ProvisionableResource { throw null; } + public override BicepTemplateFile GetBicepTemplateFile(string? directory = null, bool deleteTemporaryFileOnDispose = true) { throw null; } public override string GetBicepTemplateString() { throw null; } @@ -205,6 +243,15 @@ public BicepTemplateFile(string path, bool deleteFileOnDispose) { } public readonly void Dispose() { } } + public sealed partial class ExistingAzureResourceAnnotation : ApplicationModel.IResourceAnnotation + { + public ExistingAzureResourceAnnotation(object name, object? resourceGroup = null) { } + + public object Name { get { throw null; } } + + public object? ResourceGroup { get { throw null; } } + } + public partial interface IResourceWithAzureFunctionsConfig : ApplicationModel.IResource { void ApplyAzureFunctionsConfiguration(System.Collections.Generic.IDictionary target, string connectionName); diff --git a/src/Aspire.Hosting.Dapr/api/Aspire.Hosting.Dapr.cs b/src/Aspire.Hosting.Dapr/api/Aspire.Hosting.Dapr.cs index db4af28fef8..464003b1d6a 100644 --- a/src/Aspire.Hosting.Dapr/api/Aspire.Hosting.Dapr.cs +++ b/src/Aspire.Hosting.Dapr/api/Aspire.Hosting.Dapr.cs @@ -10,28 +10,37 @@ namespace Aspire.Hosting { public static partial class IDistributedApplicationBuilderExtensions { + [System.Obsolete("The Dapr integration has been migrated to the Community Toolkit. Please use the CommunityToolkit.Aspire.Hosting.Dapr integration.", false)] public static IDistributedApplicationBuilder AddDapr(this IDistributedApplicationBuilder builder, System.Action? configure = null) { throw null; } + [System.Obsolete("The Dapr integration has been migrated to the Community Toolkit. Please use the CommunityToolkit.Aspire.Hosting.Dapr integration.", false)] public static ApplicationModel.IResourceBuilder AddDaprComponent(this IDistributedApplicationBuilder builder, string name, string type, Dapr.DaprComponentOptions? options = null) { throw null; } + [System.Obsolete("The Dapr integration has been migrated to the Community Toolkit. Please use the CommunityToolkit.Aspire.Hosting.Dapr integration.", false)] public static ApplicationModel.IResourceBuilder AddDaprPubSub(this IDistributedApplicationBuilder builder, string name, Dapr.DaprComponentOptions? options = null) { throw null; } + [System.Obsolete("The Dapr integration has been migrated to the Community Toolkit. Please use the CommunityToolkit.Aspire.Hosting.Dapr integration.", false)] public static ApplicationModel.IResourceBuilder AddDaprStateStore(this IDistributedApplicationBuilder builder, string name, Dapr.DaprComponentOptions? options = null) { throw null; } } public static partial class IDistributedApplicationResourceBuilderExtensions { + [System.Obsolete("The Dapr integration has been migrated to the Community Toolkit. Please use the CommunityToolkit.Aspire.Hosting.Dapr integration.", false)] public static ApplicationModel.IResourceBuilder WithDaprSidecar(this ApplicationModel.IResourceBuilder builder, Dapr.DaprSidecarOptions? options = null) where T : ApplicationModel.IResource { throw null; } + [System.Obsolete("The Dapr integration has been migrated to the Community Toolkit. Please use the CommunityToolkit.Aspire.Hosting.Dapr integration.", false)] public static ApplicationModel.IResourceBuilder WithDaprSidecar(this ApplicationModel.IResourceBuilder builder, System.Action> configureSidecar) where T : ApplicationModel.IResource { throw null; } + [System.Obsolete("The Dapr integration has been migrated to the Community Toolkit. Please use the CommunityToolkit.Aspire.Hosting.Dapr integration.", false)] public static ApplicationModel.IResourceBuilder WithDaprSidecar(this ApplicationModel.IResourceBuilder builder, string appId) where T : ApplicationModel.IResource { throw null; } + [System.Obsolete("The Dapr integration has been migrated to the Community Toolkit. Please use the CommunityToolkit.Aspire.Hosting.Dapr integration.", false)] public static ApplicationModel.IResourceBuilder WithOptions(this ApplicationModel.IResourceBuilder builder, Dapr.DaprSidecarOptions options) { throw null; } + [System.Obsolete("The Dapr integration has been migrated to the Community Toolkit. Please use the CommunityToolkit.Aspire.Hosting.Dapr integration.", false)] public static ApplicationModel.IResourceBuilder WithReference(this ApplicationModel.IResourceBuilder builder, ApplicationModel.IResourceBuilder component) where TDestination : ApplicationModel.IResource { throw null; } } @@ -39,15 +48,18 @@ public static ApplicationModel.IResourceBuilder WithReference WithDataVolume(this ApplicationModel.IResourceBuilder builder, string? name = null) { throw null; } - public static ApplicationModel.IResourceBuilder WithRealmImport(this ApplicationModel.IResourceBuilder builder, string importDirectory, bool isReadOnly = false) { throw null; } + public static ApplicationModel.IResourceBuilder WithRealmImport(this ApplicationModel.IResourceBuilder builder, string import, bool isReadOnly = false) { throw null; } } } diff --git a/src/Aspire.Hosting.Nats/api/Aspire.Hosting.Nats.cs b/src/Aspire.Hosting.Nats/api/Aspire.Hosting.Nats.cs index 88f1be0f8d0..b028202fcb9 100644 --- a/src/Aspire.Hosting.Nats/api/Aspire.Hosting.Nats.cs +++ b/src/Aspire.Hosting.Nats/api/Aspire.Hosting.Nats.cs @@ -10,7 +10,9 @@ namespace Aspire.Hosting { public static partial class NatsBuilderExtensions { - public static ApplicationModel.IResourceBuilder AddNats(this IDistributedApplicationBuilder builder, string name, int? port = null) { throw null; } + public static ApplicationModel.IResourceBuilder AddNats(this IDistributedApplicationBuilder builder, string name, int? port = null, ApplicationModel.IResourceBuilder? userName = null, ApplicationModel.IResourceBuilder? password = null) { throw null; } + + public static ApplicationModel.IResourceBuilder AddNats(this IDistributedApplicationBuilder builder, string name, int? port) { throw null; } public static ApplicationModel.IResourceBuilder WithDataBindMount(this ApplicationModel.IResourceBuilder builder, string source, bool isReadOnly = false) { throw null; } @@ -27,10 +29,16 @@ namespace Aspire.Hosting.ApplicationModel { public partial class NatsServerResource : ContainerResource, IResourceWithConnectionString, IResource, IManifestExpressionProvider, IValueProvider, IValueWithReferences { + public NatsServerResource(string name, ParameterResource? userName, ParameterResource? password) : base(default!, default) { } + public NatsServerResource(string name) : base(default!, default) { } public ReferenceExpression ConnectionStringExpression { get { throw null; } } + public ParameterResource? PasswordParameter { get { throw null; } set { } } + public EndpointReference PrimaryEndpoint { get { throw null; } } + + public ParameterResource? UserNameParameter { get { throw null; } set { } } } } \ No newline at end of file diff --git a/src/Aspire.Hosting.Python/api/Aspire.Hosting.Python.cs b/src/Aspire.Hosting.Python/api/Aspire.Hosting.Python.cs index 22ba6b12020..99aaa9a24da 100644 --- a/src/Aspire.Hosting.Python/api/Aspire.Hosting.Python.cs +++ b/src/Aspire.Hosting.Python/api/Aspire.Hosting.Python.cs @@ -10,9 +10,9 @@ namespace Aspire.Hosting { public static partial class PythonAppResourceBuilderExtensions { - public static ApplicationModel.IResourceBuilder AddPythonApp(this IDistributedApplicationBuilder builder, string name, string projectDirectory, string scriptPath, string virtualEnvironmentPath, params string[] scriptArgs) { throw null; } + public static ApplicationModel.IResourceBuilder AddPythonApp(this IDistributedApplicationBuilder builder, string name, string appDirectory, string scriptPath, string virtualEnvironmentPath, params string[] scriptArgs) { throw null; } - public static ApplicationModel.IResourceBuilder AddPythonApp(this IDistributedApplicationBuilder builder, string name, string projectDirectory, string scriptPath, params string[] scriptArgs) { throw null; } + public static ApplicationModel.IResourceBuilder AddPythonApp(this IDistributedApplicationBuilder builder, string name, string appDirectory, string scriptPath, params string[] scriptArgs) { throw null; } } [System.Obsolete("PythonProjectResource is deprecated. Please use PythonAppResource instead.")] @@ -30,7 +30,7 @@ namespace Aspire.Hosting.Python { public partial class PythonAppResource : ApplicationModel.ExecutableResource, IResourceWithServiceDiscovery, ApplicationModel.IResourceWithEndpoints, ApplicationModel.IResource { - public PythonAppResource(string name, string executablePath, string projectDirectory) : base(default!, default!, default!) { } + public PythonAppResource(string name, string executablePath, string appDirectory) : base(default!, default!, default!) { } } [System.Obsolete("PythonProjectResource is deprecated. Please use PythonAppResource instead.")] diff --git a/src/Aspire.Hosting.Redis/api/Aspire.Hosting.Redis.cs b/src/Aspire.Hosting.Redis/api/Aspire.Hosting.Redis.cs index da731377674..486e452b4c3 100644 --- a/src/Aspire.Hosting.Redis/api/Aspire.Hosting.Redis.cs +++ b/src/Aspire.Hosting.Redis/api/Aspire.Hosting.Redis.cs @@ -14,8 +14,12 @@ public static partial class RedisBuilderExtensions public static ApplicationModel.IResourceBuilder WithDataBindMount(this ApplicationModel.IResourceBuilder builder, string source, bool isReadOnly = false) { throw null; } + public static ApplicationModel.IResourceBuilder WithDataBindMount(this ApplicationModel.IResourceBuilder builder, string source) { throw null; } + public static ApplicationModel.IResourceBuilder WithDataVolume(this ApplicationModel.IResourceBuilder builder, string? name = null, bool isReadOnly = false) { throw null; } + public static ApplicationModel.IResourceBuilder WithDataVolume(this ApplicationModel.IResourceBuilder builder, string? name = null) { throw null; } + public static ApplicationModel.IResourceBuilder WithHostPort(this ApplicationModel.IResourceBuilder builder, int? port) { throw null; } public static ApplicationModel.IResourceBuilder WithHostPort(this ApplicationModel.IResourceBuilder builder, int? port) { throw null; } diff --git a/src/Aspire.Hosting.Testing/api/Aspire.Hosting.Testing.cs b/src/Aspire.Hosting.Testing/api/Aspire.Hosting.Testing.cs index 02f8bf0313a..3f83b11e350 100644 --- a/src/Aspire.Hosting.Testing/api/Aspire.Hosting.Testing.cs +++ b/src/Aspire.Hosting.Testing/api/Aspire.Hosting.Testing.cs @@ -46,6 +46,10 @@ public static partial class DistributedApplicationHostingTestingExtensions public static partial class DistributedApplicationTestingBuilder { + public static IDistributedApplicationTestingBuilder Create(string[] args, System.Action configureBuilder) { throw null; } + + public static IDistributedApplicationTestingBuilder Create(params string[] args) { throw null; } + public static System.Threading.Tasks.Task CreateAsync(System.Type entryPoint, string[] args, System.Action configureBuilder, System.Threading.CancellationToken cancellationToken = default) { throw null; } public static System.Threading.Tasks.Task CreateAsync(System.Type entryPoint, string[] args, System.Threading.CancellationToken cancellationToken = default) { throw null; } @@ -61,7 +65,7 @@ public static System.Threading.Tasks.Task where TEntryPoint : class { throw null; } } - public partial interface IDistributedApplicationTestingBuilder + public partial interface IDistributedApplicationTestingBuilder : IDistributedApplicationBuilder, System.IAsyncDisposable, System.IDisposable { System.Reflection.Assembly? AppHostAssembly { get; } @@ -71,6 +75,8 @@ public partial interface IDistributedApplicationTestingBuilder Microsoft.Extensions.Hosting.IHostEnvironment Environment { get; } + Eventing.IDistributedApplicationEventing Eventing { get; } + DistributedApplicationExecutionContext ExecutionContext { get; } ApplicationModel.IResourceCollection Resources { get; } diff --git a/src/Aspire.Hosting/api/Aspire.Hosting.cs b/src/Aspire.Hosting/api/Aspire.Hosting.cs index b9515448342..bc4b32e8bd1 100644 --- a/src/Aspire.Hosting/api/Aspire.Hosting.cs +++ b/src/Aspire.Hosting/api/Aspire.Hosting.cs @@ -25,7 +25,7 @@ public static ApplicationModel.IResourceBuilder WithBindMount(this Applica public static ApplicationModel.IResourceBuilder WithBuildArg(this ApplicationModel.IResourceBuilder builder, string name, ApplicationModel.IResourceBuilder value) where T : ApplicationModel.ContainerResource { throw null; } - public static ApplicationModel.IResourceBuilder WithBuildArg(this ApplicationModel.IResourceBuilder builder, string name, object value) + public static ApplicationModel.IResourceBuilder WithBuildArg(this ApplicationModel.IResourceBuilder builder, string name, object? value) where T : ApplicationModel.ContainerResource { throw null; } public static ApplicationModel.IResourceBuilder WithBuildSecret(this ApplicationModel.IResourceBuilder builder, string name, ApplicationModel.IResourceBuilder value) @@ -46,13 +46,17 @@ public static ApplicationModel.IResourceBuilder WithContainerRuntimeArgs(t public static ApplicationModel.IResourceBuilder WithDockerfile(this ApplicationModel.IResourceBuilder builder, string contextPath, string? dockerfilePath = null, string? stage = null) where T : ApplicationModel.ContainerResource { throw null; } + [System.Diagnostics.CodeAnalysis.Experimental("ASPIREPROXYENDPOINTS001")] + public static ApplicationModel.IResourceBuilder WithEndpointProxySupport(this ApplicationModel.IResourceBuilder builder, bool proxyEnabled) + where T : ApplicationModel.ContainerResource { throw null; } + public static ApplicationModel.IResourceBuilder WithEntrypoint(this ApplicationModel.IResourceBuilder builder, string entrypoint) where T : ApplicationModel.ContainerResource { throw null; } - public static ApplicationModel.IResourceBuilder WithImage(this ApplicationModel.IResourceBuilder builder, string image, string tag = "latest") + public static ApplicationModel.IResourceBuilder WithImage(this ApplicationModel.IResourceBuilder builder, string image, string? tag = null) where T : ApplicationModel.ContainerResource { throw null; } - public static ApplicationModel.IResourceBuilder WithImageRegistry(this ApplicationModel.IResourceBuilder builder, string registry) + public static ApplicationModel.IResourceBuilder WithImageRegistry(this ApplicationModel.IResourceBuilder builder, string? registry) where T : ApplicationModel.ContainerResource { throw null; } public static ApplicationModel.IResourceBuilder WithImageSHA256(this ApplicationModel.IResourceBuilder builder, string sha256) @@ -64,7 +68,7 @@ public static ApplicationModel.IResourceBuilder WithImageTag(this Applicat public static ApplicationModel.IResourceBuilder WithLifetime(this ApplicationModel.IResourceBuilder builder, ApplicationModel.ContainerLifetime lifetime) where T : ApplicationModel.ContainerResource { throw null; } - public static ApplicationModel.IResourceBuilder WithVolume(this ApplicationModel.IResourceBuilder builder, string name, string target, bool isReadOnly = false) + public static ApplicationModel.IResourceBuilder WithVolume(this ApplicationModel.IResourceBuilder builder, string? name, string target, bool isReadOnly = false) where T : ApplicationModel.ContainerResource { throw null; } public static ApplicationModel.IResourceBuilder WithVolume(this ApplicationModel.IResourceBuilder builder, string target) @@ -89,6 +93,8 @@ public partial class DistributedApplication : Microsoft.Extensions.Hosting.IHost { public DistributedApplication(Microsoft.Extensions.Hosting.IHost host) { } + public ApplicationModel.ResourceNotificationService ResourceNotifications { get { throw null; } } + public System.IServiceProvider Services { get { throw null; } } public static IDistributedApplicationBuilder CreateBuilder() { throw null; } @@ -147,6 +153,12 @@ public ApplicationModel.IResourceBuilder CreateResourceBuilder(T resource) where T : ApplicationModel.IResource { throw null; } } + public static partial class DistributedApplicationBuilderExtensions + { + public static ApplicationModel.IResourceBuilder CreateResourceBuilder(this IDistributedApplicationBuilder builder, string name) + where T : ApplicationModel.IResource { throw null; } + } + public partial class DistributedApplicationException : System.Exception { public DistributedApplicationException() { } @@ -197,6 +209,8 @@ public sealed partial class DistributedApplicationOptions public string? ContainerRegistryOverride { get { throw null; } set { } } public bool DisableDashboard { get { throw null; } set { } } + + public bool EnableResourceLogging { get { throw null; } set { } } } public static partial class ExecutableResourceBuilderExtensions @@ -205,7 +219,14 @@ public static partial class ExecutableResourceBuilderExtensions public static ApplicationModel.IResourceBuilder AddExecutable(this IDistributedApplicationBuilder builder, string name, string command, string workingDirectory, params string[]? args) { throw null; } - public static ApplicationModel.IResourceBuilder PublishAsDockerFile(this ApplicationModel.IResourceBuilder builder, System.Collections.Generic.IEnumerable? buildArgs = null) + public static ApplicationModel.IResourceBuilder PublishAsDockerFile(this ApplicationModel.IResourceBuilder builder, System.Action>? configure) + where T : ApplicationModel.ExecutableResource { throw null; } + + [System.Obsolete("Use builder.PublishAsDockerFile(c => c.WithBuildArg(name, value)) instead.")] + public static ApplicationModel.IResourceBuilder PublishAsDockerFile(this ApplicationModel.IResourceBuilder builder, System.Collections.Generic.IEnumerable? buildArgs) + where T : ApplicationModel.ExecutableResource { throw null; } + + public static ApplicationModel.IResourceBuilder PublishAsDockerFile(this ApplicationModel.IResourceBuilder builder) where T : ApplicationModel.ExecutableResource { throw null; } } @@ -331,6 +352,9 @@ public static partial class ProjectResourceBuilderExtensions public static ApplicationModel.IResourceBuilder DisableForwardedHeaders(this ApplicationModel.IResourceBuilder builder) { throw null; } + public static ApplicationModel.IResourceBuilder PublishAsDockerFile(this ApplicationModel.IResourceBuilder builder, System.Action>? configure = null) + where T : ApplicationModel.ProjectResource { throw null; } + public static ApplicationModel.IResourceBuilder WithEndpointsInEnvironment(this ApplicationModel.IResourceBuilder builder, System.Func filter) { throw null; } public static ApplicationModel.IResourceBuilder WithReplicas(this ApplicationModel.IResourceBuilder builder, int replicas) { throw null; } @@ -356,6 +380,9 @@ public static ApplicationModel.IResourceBuilder ExcludeFromManifest(this A public static ApplicationModel.EndpointReference GetEndpoint(this ApplicationModel.IResourceBuilder builder, string name) where T : ApplicationModel.IResourceWithEndpoints { throw null; } + public static ApplicationModel.IResourceBuilder WaitFor(this ApplicationModel.IResourceBuilder builder, ApplicationModel.IResourceBuilder dependency, ApplicationModel.WaitBehavior waitBehavior) + where T : ApplicationModel.IResourceWithWaitSupport { throw null; } + public static ApplicationModel.IResourceBuilder WaitFor(this ApplicationModel.IResourceBuilder builder, ApplicationModel.IResourceBuilder dependency) where T : ApplicationModel.IResourceWithWaitSupport { throw null; } @@ -413,6 +440,9 @@ public static ApplicationModel.IResourceBuilder WithEnvironment(this Appli public static ApplicationModel.IResourceBuilder WithEnvironment(this ApplicationModel.IResourceBuilder builder, string name, string? value) where T : ApplicationModel.IResourceWithEnvironment { throw null; } + public static ApplicationModel.IResourceBuilder WithExplicitStart(this ApplicationModel.IResourceBuilder builder) + where T : ApplicationModel.IResource { throw null; } + public static ApplicationModel.IResourceBuilder WithExternalHttpEndpoints(this ApplicationModel.IResourceBuilder builder) where T : ApplicationModel.IResourceWithEndpoints { throw null; } @@ -437,6 +467,12 @@ public static ApplicationModel.IResourceBuilder WithManifestPublishingCallbac public static ApplicationModel.IResourceBuilder WithManifestPublishingCallback(this ApplicationModel.IResourceBuilder builder, System.Func callback) where T : ApplicationModel.IResource { throw null; } + public static ApplicationModel.IResourceBuilder WithParentRelationship(this ApplicationModel.IResourceBuilder builder, ApplicationModel.IResource parent) + where T : ApplicationModel.IResource { throw null; } + + public static ApplicationModel.IResourceBuilder WithParentRelationship(this ApplicationModel.IResourceBuilder builder, ApplicationModel.IResourceBuilder parent) + where T : ApplicationModel.IResource { throw null; } + public static ApplicationModel.IResourceBuilder WithReference(this ApplicationModel.IResourceBuilder builder, ApplicationModel.EndpointReference endpointReference) where TDestination : ApplicationModel.IResourceWithEnvironment { throw null; } @@ -448,6 +484,15 @@ public static ApplicationModel.IResourceBuilder WithReference WithReference(this ApplicationModel.IResourceBuilder builder, string name, System.Uri uri) where TDestination : ApplicationModel.IResourceWithEnvironment { throw null; } + + public static ApplicationModel.IResourceBuilder WithRelationship(this ApplicationModel.IResourceBuilder builder, ApplicationModel.IResource resource, string type) + where T : ApplicationModel.IResource { throw null; } + } + + public static partial class VolumeNameGenerator + { + public static string Generate(ApplicationModel.IResourceBuilder builder, string suffix) + where T : ApplicationModel.IResource { throw null; } } } @@ -495,6 +540,11 @@ public AllocatedEndpoint(EndpointAnnotation endpoint, string address, int port, public override string ToString() { throw null; } } + public static partial class AspireStoreExtensions + { + public static string GetFileNameWithContent(this IAspireStore aspireStore, string filenameTemplate, string sourceFilename) { throw null; } + } + public partial class BeforeResourceStartedEvent : Eventing.IDistributedApplicationResourceEvent, Eventing.IDistributedApplicationEvent { public BeforeResourceStartedEvent(IResource resource, System.IServiceProvider services) { } @@ -529,6 +579,10 @@ public CommandLineArgsCallbackContext(System.Collections.Generic.IList a public System.Collections.Generic.IList Args { get { throw null; } } public System.Threading.CancellationToken CancellationToken { get { throw null; } } + + public DistributedApplicationExecutionContext ExecutionContext { get { throw null; } init { } } + + public Microsoft.Extensions.Logging.ILogger Logger { get { throw null; } init { } } } public static partial class CommandResults @@ -648,6 +702,7 @@ public static partial class CustomResourceKnownProperties public static string Source { get { throw null; } } } + [System.Diagnostics.DebuggerDisplay("ResourceType = {ResourceType,nq}, State = {State?.Text,nq}, HealthStatus = {HealthStatus?.ToString(),nq}, Properties = {Properties.Length}")] public sealed partial record CustomResourceSnapshot() { public System.Collections.Immutable.ImmutableArray Commands { get { throw null; } init { } } @@ -664,6 +719,8 @@ public sealed partial record CustomResourceSnapshot() public required System.Collections.Immutable.ImmutableArray Properties { get { throw null; } init { } } + public System.Collections.Immutable.ImmutableArray Relationships { get { throw null; } init { } } + public required string ResourceType { get { throw null; } init { } } public System.DateTime? StartTimeStamp { get { throw null; } init { } } @@ -677,6 +734,14 @@ public sealed partial record CustomResourceSnapshot() public System.Collections.Immutable.ImmutableArray Volumes { get { throw null; } init { } } } + [System.Diagnostics.DebuggerDisplay("Type = {GetType().Name,nq}, LaunchProfileName = {LaunchProfileName}")] + public sealed partial class DefaultLaunchProfileAnnotation : IResourceAnnotation + { + public DefaultLaunchProfileAnnotation(string launchProfileName) { } + + public string LaunchProfileName { get { throw null; } } + } + public sealed partial class DeploymentTargetAnnotation : IResourceAnnotation { public DeploymentTargetAnnotation(IResource target) { } @@ -697,6 +762,7 @@ public DistributedApplicationModel(IResourceCollection resources) { } public IResourceCollection Resources { get { throw null; } } } + [System.Obsolete("Use DockerfileBuildAnnotation to define docker build arguments.")] public sealed partial class DockerBuildArg { public DockerBuildArg(string name, object? value = null) { } @@ -710,7 +776,7 @@ public partial class DockerfileBuildAnnotation : IResourceAnnotation { public DockerfileBuildAnnotation(string contextPath, string dockerfilePath, string? stage) { } - public System.Collections.Generic.Dictionary BuildArguments { get { throw null; } } + public System.Collections.Generic.Dictionary BuildArguments { get { throw null; } } public System.Collections.Generic.Dictionary BuildSecrets { get { throw null; } } @@ -759,7 +825,8 @@ public enum EndpointProperty IPV4Host = 2, Port = 3, Scheme = 4, - TargetPort = 5 + TargetPort = 5, + HostAndPort = 6 } public sealed partial class EndpointReference : IManifestExpressionProvider, IValueProvider, IValueWithReferences @@ -836,13 +903,19 @@ public EnvironmentCallbackContext(DistributedApplicationExecutionContext executi public DistributedApplicationExecutionContext ExecutionContext { get { throw null; } } - public Microsoft.Extensions.Logging.ILogger? Logger { get { throw null; } set { } } + public Microsoft.Extensions.Logging.ILogger Logger { get { throw null; } set { } } } + [System.Diagnostics.DebuggerDisplay("{Value}", Name = "{Name}")] public sealed partial record EnvironmentVariableSnapshot(string Name, string? Value, bool IsFromSpec) { } + [System.Diagnostics.DebuggerDisplay("Type = {GetType().Name,nq}")] + public sealed partial class ExcludeLaunchProfileAnnotation : IResourceAnnotation + { + } + public partial class ExecutableResource : Resource, IResourceWithEnvironment, IResource, IResourceWithArgs, IResourceWithEndpoints, IResourceWithWaitSupport { public ExecutableResource(string name, string command, string workingDirectory) : base(default!) { } @@ -868,6 +941,11 @@ public sealed partial class ExecuteCommandResult public required bool Success { get { throw null; } init { } } } + [System.Diagnostics.DebuggerDisplay("Type = {GetType().Name,nq}")] + public sealed partial class ExplicitStartupAnnotation : IResourceAnnotation + { + } + public sealed partial class GenerateParameterDefault : ParameterDefault { public bool Lower { get { throw null; } set { } } @@ -901,6 +979,7 @@ public HealthCheckAnnotation(string key) { } public string Key { get { throw null; } } } + [System.Diagnostics.DebuggerDisplay("{Status}", Name = "{Name}")] public sealed partial record HealthReportSnapshot(string Name, Microsoft.Extensions.Diagnostics.HealthChecks.HealthStatus? Status, string? Description, string? ExceptionText) { } @@ -912,6 +991,13 @@ public partial record HostUrl(string Url) : IValueProvider, IManifestExpressionP System.Threading.Tasks.ValueTask IValueProvider.GetValueAsync(System.Threading.CancellationToken cancellationToken) { throw null; } } + public partial interface IAspireStore + { + string BasePath { get; } + + string GetFileNameWithContent(string filenameTemplate, System.IO.Stream contentStream); + } + public enum IconVariant { Regular = 0, @@ -1013,7 +1099,9 @@ public static partial class KnownResourceStates public static readonly string FailedToStart; public static readonly string Finished; public static readonly string Hidden; + public static readonly string NotStarted; public static readonly string Running; + public static readonly string RuntimeUnhealthy; public static readonly string Starting; public static readonly string Stopping; public static readonly System.Collections.Generic.IReadOnlyList TerminalStates; @@ -1028,6 +1116,14 @@ public static partial class KnownResourceStateStyles public static readonly string Warn; } + [System.Diagnostics.DebuggerDisplay("Type = {GetType().Name,nq}, LaunchProfileName = {LaunchProfileName}")] + public sealed partial class LaunchProfileAnnotation : IResourceAnnotation + { + public LaunchProfileAnnotation(string launchProfileName) { } + + public string LaunchProfileName { get { throw null; } } + } + public readonly partial struct LogLine : System.IEquatable { private readonly object _dummy; @@ -1111,7 +1207,7 @@ public abstract partial class ParameterDefault public abstract void WriteToManifest(Publishing.ManifestPublishingContext context); } - public sealed partial class ParameterResource : Resource, IManifestExpressionProvider, IValueProvider + public partial class ParameterResource : Resource, IManifestExpressionProvider, IValueProvider { public ParameterResource(string name, System.Func callback, bool secret = false) : base(default!) { } @@ -1140,6 +1236,12 @@ public static partial class ProjectResourceExtensions public static System.Collections.Generic.IEnumerable GetProjectResources(this DistributedApplicationModel model) { throw null; } } + [System.Diagnostics.DebuggerDisplay("Type = {GetType().Name,nq}, Enabled = {Enabled}")] + public sealed partial class ProxySupportAnnotation : IResourceAnnotation + { + public required bool ProxyEnabled { get { throw null; } set { } } + } + public partial class ReferenceExpression : IManifestExpressionProvider, IValueProvider, IValueWithReferences { internal ReferenceExpression() { } @@ -1205,6 +1307,10 @@ public readonly void AppendLiteral(string value) { } } } + public sealed partial record RelationshipSnapshot(string ResourceName, string Type) + { + } + [System.Diagnostics.DebuggerDisplay("Type = {GetType().Name,nq}, Replicas = {Replicas}")] public sealed partial class ReplicaAnnotation : IResourceAnnotation { @@ -1233,7 +1339,7 @@ public enum ResourceAnnotationMutationBehavior Replace = 1 } - [System.Diagnostics.DebuggerDisplay("Type = {GetType().Name,nq}, Type = {Type}")] + [System.Diagnostics.DebuggerDisplay("Type = {GetType().Name,nq}, Name = {Name}")] public sealed partial class ResourceCommandAnnotation : IResourceAnnotation { public ResourceCommandAnnotation(string name, string displayName, System.Func updateState, System.Func> executeCommand, string? displayDescription, object? parameter, string? confirmationMessage, string? iconName, IconVariant? iconVariant, bool isHighlighted) { } @@ -1259,6 +1365,7 @@ public ResourceCommandAnnotation(string name, string displayName, System.Func UpdateState { get { throw null; } } } + [System.Diagnostics.DebuggerDisplay(null, Name = "{Name}")] public sealed partial record ResourceCommandSnapshot(string Name, ResourceCommandState State, string DisplayName, string? DisplayDescription, object? Parameter, string? ConfirmationMessage, string? IconName, IconVariant? IconVariant, bool IsHighlighted) { } @@ -1283,6 +1390,8 @@ public ResourceEvent(IResource resource, string resourceId, CustomResourceSnapsh public static partial class ResourceExtensions { + public static System.Threading.Tasks.ValueTask GetArgumentValuesAsync(this IResourceWithArgs resource, DistributedApplicationOperation applicationOperation = DistributedApplicationOperation.Run) { throw null; } + public static EndpointReference GetEndpoint(this IResourceWithEndpoints resource, string endpointName) { throw null; } public static System.Collections.Generic.IEnumerable GetEndpoints(this IResourceWithEndpoints resource) { throw null; } @@ -1291,6 +1400,12 @@ public static partial class ResourceExtensions public static int GetReplicaCount(this IResource resource) { throw null; } + public static bool HasAnnotationIncludingAncestorsOfType(this IResource resource) + where T : IResourceAnnotation { throw null; } + + public static bool HasAnnotationOfType(this IResource resource) + where T : IResourceAnnotation { throw null; } + public static bool TryGetAnnotationsIncludingAncestorsOfType(this IResource resource, out System.Collections.Generic.IEnumerable? result) where T : IResourceAnnotation { throw null; } @@ -1333,13 +1448,15 @@ public sealed partial class ResourceNameAttribute : System.Attribute, IModelName { } - public partial class ResourceNotificationService + public partial class ResourceNotificationService : System.IDisposable { public ResourceNotificationService(Microsoft.Extensions.Logging.ILogger logger, Microsoft.Extensions.Hosting.IHostApplicationLifetime hostApplicationLifetime, System.IServiceProvider serviceProvider, ResourceLoggerService resourceLoggerService) { } [System.Obsolete("ResourceNotificationService now requires an IServiceProvider and ResourceLoggerService.\nUse the constructor that accepts an ILogger, IHostApplicationLifetime, IServiceProvider and ResourceLoggerService.\nThis constructor will be removed in the next major version of Aspire.")] public ResourceNotificationService(Microsoft.Extensions.Logging.ILogger logger, Microsoft.Extensions.Hosting.IHostApplicationLifetime hostApplicationLifetime) { } + public void Dispose() { } + public System.Threading.Tasks.Task PublishUpdateAsync(IResource resource, System.Func stateFactory) { throw null; } public System.Threading.Tasks.Task PublishUpdateAsync(IResource resource, string resourceId, System.Func stateFactory) { throw null; } @@ -1352,11 +1469,19 @@ public ResourceNotificationService(Microsoft.Extensions.Logging.ILogger WaitForResourceHealthyAsync(string resourceName, WaitBehavior waitBehavior, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public System.Threading.Tasks.Task WaitForResourceHealthyAsync(string resourceName, System.Threading.CancellationToken cancellationToken = default) { throw null; } public System.Collections.Generic.IAsyncEnumerable WatchAsync(System.Threading.CancellationToken cancellationToken = default) { throw null; } } + public sealed partial class ResourceNotificationServiceOptions + { + public WaitBehavior DefaultWaitBehavior { get { throw null; } set { } } + } + + [System.Diagnostics.DebuggerDisplay("{Value}", Name = "{Name}")] public sealed partial record ResourcePropertySnapshot(string Name, object? Value) { public bool IsSensitive { get { throw null; } init { } } @@ -1371,6 +1496,16 @@ public ResourceReadyEvent(IResource resource, System.IServiceProvider services) public System.IServiceProvider Services { get { throw null; } } } + [System.Diagnostics.DebuggerDisplay("Type = {GetType().Name,nq}, Resource = {Resource.Name}, RelationshipType = {Type}")] + public sealed partial class ResourceRelationshipAnnotation : IResourceAnnotation + { + public ResourceRelationshipAnnotation(IResource resource, string type) { } + + public IResource Resource { get { throw null; } } + + public string Type { get { throw null; } } + } + public partial class ResourceSnapshotAnnotation : IResourceAnnotation { public ResourceSnapshotAnnotation(CustomResourceSnapshot initialSnapshot) { } @@ -1378,6 +1513,7 @@ public ResourceSnapshotAnnotation(CustomResourceSnapshot initialSnapshot) { } public CustomResourceSnapshot InitialSnapshot { get { throw null; } } } + [System.Diagnostics.DebuggerDisplay("{Text}")] public sealed partial record ResourceStateSnapshot(string Text, string? Style) { public static implicit operator ResourceStateSnapshot?(string? s) { throw null; } @@ -1390,10 +1526,12 @@ public sealed partial class UpdateCommandStateContext public required System.IServiceProvider ServiceProvider { get { throw null; } init { } } } + [System.Diagnostics.DebuggerDisplay("{Url}", Name = "{Name}")] public sealed partial record UrlSnapshot(string Name, string Url, bool IsInternal) { } + [System.Diagnostics.DebuggerDisplay("{Source}", Name = "{Target}")] public sealed partial record VolumeSnapshot(string? Source, string Target, string MountType, bool IsReadOnly) { } @@ -1407,9 +1545,17 @@ public WaitAnnotation(IResource resource, WaitType waitType, int exitCode = 0) { public IResource Resource { get { throw null; } } + public WaitBehavior? WaitBehavior { get { throw null; } init { } } + public WaitType WaitType { get { throw null; } } } + public enum WaitBehavior + { + WaitOnResourceUnavailable = 0, + StopOnResourceUnavailable = 1 + } + public enum WaitType { WaitUntilHealthy = 0, diff --git a/src/Components/Aspire.Azure.AI.OpenAI/api/Aspire.Azure.AI.OpenAI.cs b/src/Components/Aspire.Azure.AI.OpenAI/api/Aspire.Azure.AI.OpenAI.cs index cf685793b88..832b5e01278 100644 --- a/src/Components/Aspire.Azure.AI.OpenAI/api/Aspire.Azure.AI.OpenAI.cs +++ b/src/Components/Aspire.Azure.AI.OpenAI/api/Aspire.Azure.AI.OpenAI.cs @@ -8,6 +8,13 @@ //------------------------------------------------------------------------------ namespace Aspire.Azure.AI.OpenAI { + public partial class AspireAzureOpenAIClientBuilder : Aspire.OpenAI.AspireOpenAIClientBuilder + { + public AspireAzureOpenAIClientBuilder(Microsoft.Extensions.Hosting.IHostApplicationBuilder hostBuilder, string connectionName, string? serviceKey, bool disableTracing) : base(default!, default!, default, default) { } + + public override string ConfigurationSectionName { get { throw null; } } + } + public sealed partial class AzureOpenAISettings { public global::Azure.Core.TokenCredential? Credential { get { throw null; } set { } } @@ -26,9 +33,9 @@ namespace Microsoft.Extensions.Hosting { public static partial class AspireAzureOpenAIExtensions { - public static void AddAzureOpenAIClient(this IHostApplicationBuilder builder, string connectionName, System.Action? configureSettings = null, System.Action>? configureClientBuilder = null) { } + public static Aspire.Azure.AI.OpenAI.AspireAzureOpenAIClientBuilder AddAzureOpenAIClient(this IHostApplicationBuilder builder, string connectionName, System.Action? configureSettings = null, System.Action>? configureClientBuilder = null) { throw null; } - public static void AddKeyedAzureOpenAIClient(this IHostApplicationBuilder builder, string name, System.Action? configureSettings = null, System.Action>? configureClientBuilder = null) { } + public static Aspire.Azure.AI.OpenAI.AspireAzureOpenAIClientBuilder AddKeyedAzureOpenAIClient(this IHostApplicationBuilder builder, string name, System.Action? configureSettings = null, System.Action>? configureClientBuilder = null) { throw null; } } public static partial class AspireConfigurableOpenAIExtensions diff --git a/src/Components/Aspire.Azure.Messaging.EventHubs/api/Aspire.Azure.Messaging.EventHubs.cs b/src/Components/Aspire.Azure.Messaging.EventHubs/api/Aspire.Azure.Messaging.EventHubs.cs index 54e294ee7cd..ed8a42ad0f3 100644 --- a/src/Components/Aspire.Azure.Messaging.EventHubs/api/Aspire.Azure.Messaging.EventHubs.cs +++ b/src/Components/Aspire.Azure.Messaging.EventHubs/api/Aspire.Azure.Messaging.EventHubs.cs @@ -55,6 +55,8 @@ internal AzureMessagingEventHubsSettings() { } public global::Azure.Core.TokenCredential? Credential { get { throw null; } set { } } + public bool DisableHealthChecks { get { throw null; } set { } } + public bool DisableTracing { get { throw null; } set { } } public string? EventHubName { get { throw null; } set { } } diff --git a/src/Components/Aspire.Confluent.Kafka/api/Aspire.Confluent.Kafka.cs b/src/Components/Aspire.Confluent.Kafka/api/Aspire.Confluent.Kafka.cs index e7bed39536b..38a42fc649b 100644 --- a/src/Components/Aspire.Confluent.Kafka/api/Aspire.Confluent.Kafka.cs +++ b/src/Components/Aspire.Confluent.Kafka/api/Aspire.Confluent.Kafka.cs @@ -17,6 +17,8 @@ public sealed partial class KafkaConsumerSettings public bool DisableHealthChecks { get { throw null; } set { } } public bool DisableMetrics { get { throw null; } set { } } + + public bool DisableTracing { get { throw null; } set { } } } public sealed partial class KafkaProducerSettings @@ -28,6 +30,8 @@ public sealed partial class KafkaProducerSettings public bool DisableHealthChecks { get { throw null; } set { } } public bool DisableMetrics { get { throw null; } set { } } + + public bool DisableTracing { get { throw null; } set { } } } } diff --git a/src/Components/Aspire.MongoDB.Driver.v3/api/Aspire.MongoDB.Driver.cs b/src/Components/Aspire.MongoDB.Driver.v3/api/Aspire.MongoDB.Driver.cs new file mode 100644 index 00000000000..9ed206727fc --- /dev/null +++ b/src/Components/Aspire.MongoDB.Driver.v3/api/Aspire.MongoDB.Driver.cs @@ -0,0 +1,31 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ +namespace Aspire.MongoDB.Driver +{ + public sealed partial class MongoDBSettings + { + public string? ConnectionString { get { throw null; } set { } } + + public bool DisableHealthChecks { get { throw null; } set { } } + + public bool DisableTracing { get { throw null; } set { } } + + public int? HealthCheckTimeout { get { throw null; } set { } } + } +} + +namespace Microsoft.Extensions.Hosting +{ + public static partial class AspireMongoDBDriverExtensions + { + public static void AddKeyedMongoDBClient(this IHostApplicationBuilder builder, string name, System.Action? configureSettings = null, System.Action? configureClientSettings = null) { } + + public static void AddMongoDBClient(this IHostApplicationBuilder builder, string connectionName, System.Action? configureSettings = null, System.Action? configureClientSettings = null) { } + } +} \ No newline at end of file diff --git a/src/Components/Aspire.NATS.Net/api/Aspire.NATS.Net.cs b/src/Components/Aspire.NATS.Net/api/Aspire.NATS.Net.cs index aa398821ee9..dbdb5ce96a8 100644 --- a/src/Components/Aspire.NATS.Net/api/Aspire.NATS.Net.cs +++ b/src/Components/Aspire.NATS.Net/api/Aspire.NATS.Net.cs @@ -22,9 +22,29 @@ namespace Microsoft.Extensions.Hosting { public static partial class AspireNatsClientExtensions { - public static void AddKeyedNatsClient(this IHostApplicationBuilder builder, string name, System.Action? configureSettings = null, System.Func? configureOptions = null) { } + public static void AddKeyedNatsClient(this IHostApplicationBuilder builder, string name, System.Action? configureSettings, System.Func? configureOptions) { } - public static void AddNatsClient(this IHostApplicationBuilder builder, string connectionName, System.Action? configureSettings = null, System.Func? configureOptions = null) { } + public static void AddKeyedNatsClient(this IHostApplicationBuilder builder, string name, System.Action? configureSettings, System.Func? configureOptions) { } + + public static void AddKeyedNatsClient(this IHostApplicationBuilder builder, string name, System.Action? configureSettings) { } + + public static void AddKeyedNatsClient(this IHostApplicationBuilder builder, string name, System.Func? configureOptions) { } + + public static void AddKeyedNatsClient(this IHostApplicationBuilder builder, string name, System.Func? configureOptions) { } + + public static void AddKeyedNatsClient(this IHostApplicationBuilder builder, string name) { } + + public static void AddNatsClient(this IHostApplicationBuilder builder, string connectionName, System.Action? configureSettings, System.Func? configureOptions) { } + + public static void AddNatsClient(this IHostApplicationBuilder builder, string connectionName, System.Action? configureSettings, System.Func? configureOptions) { } + + public static void AddNatsClient(this IHostApplicationBuilder builder, string connectionName, System.Action? configureSettings) { } + + public static void AddNatsClient(this IHostApplicationBuilder builder, string connectionName, System.Func? configureOptions) { } + + public static void AddNatsClient(this IHostApplicationBuilder builder, string connectionName, System.Func? configureOptions) { } + + public static void AddNatsClient(this IHostApplicationBuilder builder, string connectionName) { } public static void AddNatsJetStream(this IHostApplicationBuilder builder) { } } diff --git a/src/Components/Aspire.OpenAI/api/Aspire.OpenAI.cs b/src/Components/Aspire.OpenAI/api/Aspire.OpenAI.cs index 605f8fcd8f8..9d78f1e9844 100644 --- a/src/Components/Aspire.OpenAI/api/Aspire.OpenAI.cs +++ b/src/Components/Aspire.OpenAI/api/Aspire.OpenAI.cs @@ -8,6 +8,21 @@ //------------------------------------------------------------------------------ namespace Aspire.OpenAI { + public partial class AspireOpenAIClientBuilder + { + public AspireOpenAIClientBuilder(Microsoft.Extensions.Hosting.IHostApplicationBuilder hostBuilder, string connectionName, string? serviceKey, bool disableTracing) { } + + public virtual string ConfigurationSectionName { get { throw null; } } + + public string ConnectionName { get { throw null; } } + + public bool DisableTracing { get { throw null; } } + + public Microsoft.Extensions.Hosting.IHostApplicationBuilder HostBuilder { get { throw null; } } + + public string? ServiceKey { get { throw null; } } + } + public sealed partial class OpenAISettings { public bool DisableMetrics { get { throw null; } set { } } @@ -22,10 +37,24 @@ public sealed partial class OpenAISettings namespace Microsoft.Extensions.Hosting { + public static partial class AspireOpenAIClientBuilderChatClientExtensions + { + public static AI.ChatClientBuilder AddChatClient(this Aspire.OpenAI.AspireOpenAIClientBuilder builder, string? deploymentName = null) { throw null; } + + public static AI.ChatClientBuilder AddKeyedChatClient(this Aspire.OpenAI.AspireOpenAIClientBuilder builder, string serviceKey, string? deploymentName = null) { throw null; } + } + + public static partial class AspireOpenAIClientBuilderEmbeddingGeneratorExtensions + { + public static AI.EmbeddingGeneratorBuilder> AddEmbeddingGenerator(this Aspire.OpenAI.AspireOpenAIClientBuilder builder, string? deploymentName = null) { throw null; } + + public static AI.EmbeddingGeneratorBuilder> AddKeyedEmbeddingGenerator(this Aspire.OpenAI.AspireOpenAIClientBuilder builder, string serviceKey, string? deploymentName = null) { throw null; } + } + public static partial class AspireOpenAIExtensions { - public static void AddKeyedOpenAIClient(this IHostApplicationBuilder builder, string name, System.Action? configureSettings = null, System.Action? configureOptions = null) { } + public static Aspire.OpenAI.AspireOpenAIClientBuilder AddKeyedOpenAIClient(this IHostApplicationBuilder builder, string name, System.Action? configureSettings = null, System.Action? configureOptions = null) { throw null; } - public static void AddOpenAIClient(this IHostApplicationBuilder builder, string connectionName, System.Action? configureSettings = null, System.Action? configureOptions = null) { } + public static Aspire.OpenAI.AspireOpenAIClientBuilder AddOpenAIClient(this IHostApplicationBuilder builder, string connectionName, System.Action? configureSettings = null, System.Action? configureOptions = null) { throw null; } } } \ No newline at end of file diff --git a/src/Components/Aspire.Qdrant.Client/api/Aspire.Qdrant.Client.cs b/src/Components/Aspire.Qdrant.Client/api/Aspire.Qdrant.Client.cs index 1b47ff51498..32ef4f3bfa9 100644 --- a/src/Components/Aspire.Qdrant.Client/api/Aspire.Qdrant.Client.cs +++ b/src/Components/Aspire.Qdrant.Client/api/Aspire.Qdrant.Client.cs @@ -10,8 +10,12 @@ namespace Aspire.Qdrant.Client { public sealed partial class QdrantClientSettings { + public bool DisableHealthChecks { get { throw null; } set { } } + public System.Uri? Endpoint { get { throw null; } set { } } + public System.TimeSpan? HealthCheckTimeout { get { throw null; } set { } } + public string? Key { get { throw null; } set { } } } } diff --git a/src/Components/Aspire.RabbitMQ.Client.v7/api/Aspire.RabbitMQ.Client.cs b/src/Components/Aspire.RabbitMQ.Client.v7/api/Aspire.RabbitMQ.Client.cs new file mode 100644 index 00000000000..9f81c536406 --- /dev/null +++ b/src/Components/Aspire.RabbitMQ.Client.v7/api/Aspire.RabbitMQ.Client.cs @@ -0,0 +1,31 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ +namespace Aspire.RabbitMQ.Client +{ + public sealed partial class RabbitMQClientSettings + { + public string? ConnectionString { get { throw null; } set { } } + + public bool DisableHealthChecks { get { throw null; } set { } } + + public bool DisableTracing { get { throw null; } set { } } + + public int MaxConnectRetryCount { get { throw null; } set { } } + } +} + +namespace Microsoft.Extensions.Hosting +{ + public static partial class AspireRabbitMQExtensions + { + public static void AddKeyedRabbitMQClient(this IHostApplicationBuilder builder, string name, System.Action? configureSettings = null, System.Action? configureConnectionFactory = null) { } + + public static void AddRabbitMQClient(this IHostApplicationBuilder builder, string connectionName, System.Action? configureSettings = null, System.Action? configureConnectionFactory = null) { } + } +} \ No newline at end of file