Skip to content

Commit 9407a3b

Browse files
Alirexaagithub-actions[bot]
authored andcommitted
[create-pull-request] automated change
1 parent 0e44c1e commit 9407a3b

17 files changed

Lines changed: 292 additions & 3 deletions

File tree

src/CommunityToolkit.Aspire.Hosting.ActiveMQ/api/CommunityToolkit.Aspire.Hosting.ActiveMQ.cs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,19 +10,25 @@ namespace Aspire.Hosting
1010
{
1111
public static partial class ActiveMQBuilderExtensions
1212
{
13+
[AspireExport("addActiveMQ", Description = "Adds an ActiveMQ Classic container resource")]
1314
public static ApplicationModel.IResourceBuilder<ApplicationModel.ActiveMQServerResource> AddActiveMQ(this IDistributedApplicationBuilder builder, string name, ApplicationModel.IResourceBuilder<ApplicationModel.ParameterResource>? userName = null, ApplicationModel.IResourceBuilder<ApplicationModel.ParameterResource>? password = null, int? port = null, string scheme = "tcp", int? webPort = null) { throw null; }
1415

16+
[AspireExport("addActiveMQArtemis", Description = "Adds an ActiveMQ Artemis container resource")]
1517
public static ApplicationModel.IResourceBuilder<ApplicationModel.ActiveMQArtemisServerResource> AddActiveMQArtemis(this IDistributedApplicationBuilder builder, string name, ApplicationModel.IResourceBuilder<ApplicationModel.ParameterResource>? userName = null, ApplicationModel.IResourceBuilder<ApplicationModel.ParameterResource>? password = null, int? port = null, string scheme = "tcp", int? webPort = null) { throw null; }
1618

19+
[AspireExport("withConfBindMount", Description = "Adds a bind mount for the conf folder to an ActiveMQ container resource")]
1720
public static ApplicationModel.IResourceBuilder<T> WithConfBindMount<T>(this ApplicationModel.IResourceBuilder<T> builder, string source, bool isReadOnly = false)
1821
where T : ApplicationModel.ActiveMQServerResourceBase { throw null; }
1922

23+
[AspireExport("withConfVolume", Description = "Adds a named volume for the config folder to an ActiveMQ container resource")]
2024
public static ApplicationModel.IResourceBuilder<T> WithConfVolume<T>(this ApplicationModel.IResourceBuilder<T> builder, string? name = null, bool isReadOnly = false)
2125
where T : ApplicationModel.ActiveMQServerResourceBase { throw null; }
2226

27+
[AspireExport("withDataBindMount", Description = "Adds a bind mount for the data folder to an ActiveMQ container resource")]
2328
public static ApplicationModel.IResourceBuilder<T> WithDataBindMount<T>(this ApplicationModel.IResourceBuilder<T> builder, string source, bool isReadOnly = false)
2429
where T : ApplicationModel.ActiveMQServerResourceBase { throw null; }
2530

31+
[AspireExport("withDataVolume", Description = "Adds a named volume for the data folder to an ActiveMQ container resource")]
2632
public static ApplicationModel.IResourceBuilder<T> WithDataVolume<T>(this ApplicationModel.IResourceBuilder<T> builder, string? name = null, bool isReadOnly = false)
2733
where T : ApplicationModel.ActiveMQServerResourceBase { throw null; }
2834
}
@@ -40,10 +46,12 @@ public partial class ActiveMQServerResource : ActiveMQServerResourceBase
4046
public ActiveMQServerResource(string name, ParameterResource? userName, ParameterResource password, string scheme) : base(default!, default, default!, default!, default!) { }
4147
}
4248

49+
[AspireExport(ExposeProperties = true)]
4350
public abstract partial class ActiveMQServerResourceBase : ContainerResource, IResourceWithConnectionString, IResource, IManifestExpressionProvider, IValueProvider, IValueWithReferences, IResourceWithEnvironment
4451
{
4552
protected ActiveMQServerResourceBase(string name, ParameterResource? userName, ParameterResource password, string scheme, CommunityToolkit.Aspire.Hosting.ActiveMQ.IActiveMQSettings settings) : base(default!, default) { }
4653

54+
[AspireExportIgnore(Reason = "IActiveMQSettings is an internal configuration type not compatible with ATS.")]
4755
public CommunityToolkit.Aspire.Hosting.ActiveMQ.IActiveMQSettings ActiveMqSettings { get { throw null; } }
4856

4957
public ReferenceExpression ConnectionStringExpression { get { throw null; } }

src/CommunityToolkit.Aspire.Hosting.Adminer/api/CommunityToolkit.Aspire.Hosting.Adminer.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,10 @@ namespace Aspire.Hosting
1010
{
1111
public static partial class AdminerBuilderExtensions
1212
{
13+
[AspireExport("addAdminer", Description = "Adds an Adminer container resource")]
1314
public static ApplicationModel.IResourceBuilder<ApplicationModel.AdminerContainerResource> AddAdminer(this IDistributedApplicationBuilder builder, string name, int? port = null) { throw null; }
1415

16+
[AspireExport("withHostPort", Description = "Configures the host port for the Adminer resource")]
1517
public static ApplicationModel.IResourceBuilder<ApplicationModel.AdminerContainerResource> WithHostPort(this ApplicationModel.IResourceBuilder<ApplicationModel.AdminerContainerResource> builder, int? port) { throw null; }
1618
}
1719
}

src/CommunityToolkit.Aspire.Hosting.Bun/api/CommunityToolkit.Aspire.Hosting.Bun.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,10 @@ namespace Aspire.Hosting
1010
{
1111
public static partial class BunAppExtensions
1212
{
13+
[AspireExport("addBunApp", Description = "Adds a Bun app")]
1314
public static ApplicationModel.IResourceBuilder<ApplicationModel.BunAppResource> AddBunApp(this IDistributedApplicationBuilder builder, string name, string? workingDirectory = null, string entryPoint = "index.ts", bool watch = false) { throw null; }
1415

16+
[AspireExportIgnore(Reason = "Action<IResourceBuilder<BunInstallerResource>> is not ATS-compatible. Use the overload without configureInstaller instead.")]
1517
public static ApplicationModel.IResourceBuilder<ApplicationModel.BunAppResource> WithBunPackageInstallation(this ApplicationModel.IResourceBuilder<ApplicationModel.BunAppResource> resource, System.Action<ApplicationModel.IResourceBuilder<ApplicationModel.BunInstallerResource>>? configureInstaller = null) { throw null; }
1618
}
1719
}

src/CommunityToolkit.Aspire.Hosting.Dapr/api/CommunityToolkit.Aspire.Hosting.Dapr.cs

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,37 +10,49 @@ namespace Aspire.Hosting
1010
{
1111
public static partial class DaprMetadataResourceBuilderExtensions
1212
{
13+
[AspireExportIgnore(Reason = "IValueProvider is too broad for stable polyglot code generation. Use the endpoint, reference expression, or parameter overloads instead.")]
1314
public static ApplicationModel.IResourceBuilder<CommunityToolkit.Aspire.Hosting.Dapr.IDaprComponentResource> WithMetadata(this ApplicationModel.IResourceBuilder<CommunityToolkit.Aspire.Hosting.Dapr.IDaprComponentResource> builder, string name, ApplicationModel.IValueProvider valueProvider) { throw null; }
1415

16+
[AspireExport("withMetadataParameter", MethodName = "withMetadataParameter", Description = "Adds parameter-backed metadata to a Dapr component")]
1517
public static ApplicationModel.IResourceBuilder<CommunityToolkit.Aspire.Hosting.Dapr.IDaprComponentResource> WithMetadata(this ApplicationModel.IResourceBuilder<CommunityToolkit.Aspire.Hosting.Dapr.IDaprComponentResource> builder, string name, ApplicationModel.ParameterResource parameterResource) { throw null; }
1618

19+
[AspireExport("withMetadata", Description = "Adds static metadata to a Dapr component")]
1720
public static ApplicationModel.IResourceBuilder<CommunityToolkit.Aspire.Hosting.Dapr.IDaprComponentResource> WithMetadata(this ApplicationModel.IResourceBuilder<CommunityToolkit.Aspire.Hosting.Dapr.IDaprComponentResource> builder, string name, string value) { throw null; }
1821
}
1922

2023
public static partial class IDistributedApplicationBuilderExtensions
2124
{
25+
[AspireExport("addDapr", Description = "Adds Dapr support to the distributed application builder")]
2226
public static IDistributedApplicationBuilder AddDapr(this IDistributedApplicationBuilder builder, System.Action<CommunityToolkit.Aspire.Hosting.Dapr.DaprOptions>? configure = null) { throw null; }
2327

28+
[AspireExportIgnore(Reason = "Use the exported DTO-based overload instead to avoid ambiguous polyglot wrapper generation.")]
2429
public static ApplicationModel.IResourceBuilder<CommunityToolkit.Aspire.Hosting.Dapr.IDaprComponentResource> AddDaprComponent(this IDistributedApplicationBuilder builder, string name, string type, CommunityToolkit.Aspire.Hosting.Dapr.DaprComponentOptions? options = null) { throw null; }
2530

31+
[AspireExportIgnore(Reason = "Use the exported DTO-based overload instead to avoid ambiguous polyglot wrapper generation.")]
2632
public static ApplicationModel.IResourceBuilder<CommunityToolkit.Aspire.Hosting.Dapr.IDaprComponentResource> AddDaprPubSub(this IDistributedApplicationBuilder builder, string name, CommunityToolkit.Aspire.Hosting.Dapr.DaprComponentOptions? options = null) { throw null; }
2733

34+
[AspireExportIgnore(Reason = "Use the exported DTO-based overload instead to avoid ambiguous polyglot wrapper generation.")]
2835
public static ApplicationModel.IResourceBuilder<CommunityToolkit.Aspire.Hosting.Dapr.IDaprComponentResource> AddDaprStateStore(this IDistributedApplicationBuilder builder, string name, CommunityToolkit.Aspire.Hosting.Dapr.DaprComponentOptions? options = null) { throw null; }
2936
}
3037

3138
public static partial class IDistributedApplicationResourceBuilderExtensions
3239
{
40+
[AspireExportIgnore(Reason = "Use the exported DTO-based overload instead to avoid ambiguous polyglot wrapper generation.")]
3341
public static ApplicationModel.IResourceBuilder<T> WithDaprSidecar<T>(this ApplicationModel.IResourceBuilder<T> builder, CommunityToolkit.Aspire.Hosting.Dapr.DaprSidecarOptions? options = null)
3442
where T : ApplicationModel.IResource { throw null; }
3543

44+
[AspireExport("configureDaprSidecar", MethodName = "configureDaprSidecar", Description = "Adds a Dapr sidecar to the resource and exposes it for callback configuration")]
3645
public static ApplicationModel.IResourceBuilder<T> WithDaprSidecar<T>(this ApplicationModel.IResourceBuilder<T> builder, System.Action<ApplicationModel.IResourceBuilder<CommunityToolkit.Aspire.Hosting.Dapr.IDaprSidecarResource>> configureSidecar)
3746
where T : ApplicationModel.IResource { throw null; }
3847

48+
[AspireExportIgnore(Reason = "Use the options-based overload instead to avoid ambiguous polyglot overloads.")]
3949
public static ApplicationModel.IResourceBuilder<T> WithDaprSidecar<T>(this ApplicationModel.IResourceBuilder<T> builder, string appId)
4050
where T : ApplicationModel.IResource { throw null; }
4151

52+
[AspireExportIgnore(Reason = "Use the exported DTO-based overload instead to avoid ambiguous polyglot wrapper generation.")]
4253
public static ApplicationModel.IResourceBuilder<CommunityToolkit.Aspire.Hosting.Dapr.IDaprSidecarResource> WithOptions(this ApplicationModel.IResourceBuilder<CommunityToolkit.Aspire.Hosting.Dapr.IDaprSidecarResource> builder, CommunityToolkit.Aspire.Hosting.Dapr.DaprSidecarOptions options) { throw null; }
4354

55+
[AspireExport("withReference", Description = "Associates a Dapr component with a Dapr sidecar resource")]
4456
public static ApplicationModel.IResourceBuilder<CommunityToolkit.Aspire.Hosting.Dapr.IDaprSidecarResource> WithReference(this ApplicationModel.IResourceBuilder<CommunityToolkit.Aspire.Hosting.Dapr.IDaprSidecarResource> builder, ApplicationModel.IResourceBuilder<CommunityToolkit.Aspire.Hosting.Dapr.IDaprComponentResource> component) { throw null; }
4557

4658
[System.Obsolete("Add reference to the sidecar resource instead of the project resource")]
@@ -51,6 +63,7 @@ public static ApplicationModel.IResourceBuilder<TDestination> WithReference<TDes
5163

5264
namespace CommunityToolkit.Aspire.Hosting.Dapr
5365
{
66+
[global::Aspire.Hosting.AspireDto]
5467
public sealed partial record DaprComponentOptions()
5568
{
5669
public string? LocalPath { get { throw null; } init { } }
@@ -87,12 +100,14 @@ public sealed partial class DaprComponentSpecMetadataValue : DaprComponentSpecMe
87100
public required string Value { get { throw null; } set { } }
88101
}
89102

103+
[global::Aspire.Hosting.AspireExport(ExposeProperties = true)]
90104
public sealed partial record DaprOptions()
91105
{
92106
public string? DaprPath { get { throw null; } set { } }
93107

94108
public bool? EnableTelemetry { get { throw null; } set { } }
95109

110+
[global::Aspire.Hosting.AspireExportIgnore(Reason = "Action<IResource, DaprSidecarOptions?> callbacks are not ATS-compatible.")]
96111
public System.Action<global::Aspire.Hosting.ApplicationModel.IResource, DaprSidecarOptions?>? PublishingConfigurationAction { get { throw null; } set { } }
97112
}
98113

@@ -189,6 +204,7 @@ public sealed partial record DaprSidecarOptionsAnnotation(DaprSidecarOptions Opt
189204
{
190205
}
191206

207+
[global::Aspire.Hosting.AspireExport(ExposeProperties = true)]
192208
public partial interface IDaprComponentResource : global::Aspire.Hosting.ApplicationModel.IResource, global::Aspire.Hosting.ApplicationModel.IResourceWithWaitSupport
193209
{
194210
DaprComponentOptions? Options { get; }

src/CommunityToolkit.Aspire.Hosting.DbGate/api/CommunityToolkit.Aspire.Hosting.DbGate.cs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,18 +10,25 @@ namespace Aspire.Hosting
1010
{
1111
public static partial class DbGateBuilderExtensions
1212
{
13+
[AspireExport("addDbGate", Description = "Adds a DbGate container resource")]
1314
public static ApplicationModel.IResourceBuilder<ApplicationModel.DbGateContainerResource> AddDbGate(this IDistributedApplicationBuilder builder, string name = "dbgate", int? port = null) { throw null; }
1415

16+
public static string SanitizeConnectionId(string resourceName) { throw null; }
17+
18+
[AspireExport("withDataBindMount", Description = "Adds a bind mount for the data folder to a DbGate container resource")]
1519
public static ApplicationModel.IResourceBuilder<ApplicationModel.DbGateContainerResource> WithDataBindMount(this ApplicationModel.IResourceBuilder<ApplicationModel.DbGateContainerResource> builder, string source, bool isReadOnly = false) { throw null; }
1620

21+
[AspireExport("withDataVolume", Description = "Adds a named volume for the data folder to a DbGate container resource")]
1722
public static ApplicationModel.IResourceBuilder<ApplicationModel.DbGateContainerResource> WithDataVolume(this ApplicationModel.IResourceBuilder<ApplicationModel.DbGateContainerResource> builder, string? name = null, bool isReadOnly = false) { throw null; }
1823

24+
[AspireExport("withHostPort", Description = "Configures the host port for a DbGate container resource")]
1925
public static ApplicationModel.IResourceBuilder<ApplicationModel.DbGateContainerResource> WithHostPort(this ApplicationModel.IResourceBuilder<ApplicationModel.DbGateContainerResource> builder, int? port) { throw null; }
2026
}
2127
}
2228

2329
namespace Aspire.Hosting.ApplicationModel
2430
{
31+
[AspireExport(ExposeProperties = true)]
2532
public sealed partial class DbGateContainerResource : ContainerResource
2633
{
2734
public DbGateContainerResource(string name) : base(default!, default) { }

src/CommunityToolkit.Aspire.Hosting.Golang/api/CommunityToolkit.Aspire.Hosting.Golang.cs

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,19 +10,34 @@ namespace Aspire.Hosting
1010
{
1111
public static partial class GolangAppHostingExtension
1212
{
13+
[AspireExport("addGolangApp", Description = "Adds a Golang app resource")]
1314
public static ApplicationModel.IResourceBuilder<ApplicationModel.GolangAppExecutableResource> AddGolangApp(this IDistributedApplicationBuilder builder, string name, string workingDirectory, string executable, string[]? args = null, string[]? buildTags = null) { throw null; }
1415

16+
[AspireExportIgnore(Reason = "Use the overload that includes the executable parameter to keep the polyglot addGolangApp surface on a single capability.")]
1517
public static ApplicationModel.IResourceBuilder<ApplicationModel.GolangAppExecutableResource> AddGolangApp(this IDistributedApplicationBuilder builder, string name, string workingDirectory, string[]? args = null, string[]? buildTags = null) { throw null; }
1618

1719
[System.Obsolete("Use AddGolangApp with buildTags parameter instead. This method will be removed in a future version.")]
1820
public static ApplicationModel.IResourceBuilder<ApplicationModel.GolangAppExecutableResource> AddGolangApp(this IDistributedApplicationBuilder builder, string name, string workingDirectory, string[] args) { throw null; }
21+
22+
[AspireExportIgnore(Reason = "Action<IResourceBuilder<GoModInstallerResource>> is not supported in polyglot app hosts. Use the overload without configureInstaller instead.")]
23+
public static ApplicationModel.IResourceBuilder<ApplicationModel.GolangAppExecutableResource> WithGoModDownload(this ApplicationModel.IResourceBuilder<ApplicationModel.GolangAppExecutableResource> builder, bool install = true, System.Action<ApplicationModel.IResourceBuilder<ApplicationModel.GoModInstallerResource>>? configureInstaller = null) { throw null; }
24+
25+
[AspireExportIgnore(Reason = "Action<IResourceBuilder<GoModInstallerResource>> is not supported in polyglot app hosts. Use the overload without configureInstaller instead.")]
26+
public static ApplicationModel.IResourceBuilder<ApplicationModel.GolangAppExecutableResource> WithGoModTidy(this ApplicationModel.IResourceBuilder<ApplicationModel.GolangAppExecutableResource> builder, bool install = true, System.Action<ApplicationModel.IResourceBuilder<ApplicationModel.GoModInstallerResource>>? configureInstaller = null) { throw null; }
1927
}
2028
}
2129

2230
namespace Aspire.Hosting.ApplicationModel
2331
{
24-
public partial class GolangAppExecutableResource : ExecutableResource, IResourceWithServiceDiscovery, IResourceWithEndpoints, IResource
32+
public partial class GolangAppExecutableResource : ExecutableResource, IResourceWithServiceDiscovery, IResourceWithEndpoints, IResource, IContainerFilesDestinationResource
2533
{
2634
public GolangAppExecutableResource(string name, string workingDirectory) : base(default!, default!, default!) { }
35+
36+
public string ContainerFilesDestination { get { throw null; } }
37+
}
38+
39+
public partial class GoModInstallerResource : ExecutableResource
40+
{
41+
public GoModInstallerResource(string name, string workingDirectory) : base(default!, default!, default!) { }
2742
}
2843
}

0 commit comments

Comments
 (0)