Skip to content

Commit 02609f0

Browse files
joperezrgithub-actions[bot]
authored andcommitted
[create-pull-request] automated change
1 parent d65be45 commit 02609f0

File tree

22 files changed

+544
-24
lines changed

22 files changed

+544
-24
lines changed

src/Aspire.Hosting.Azure.AppContainers/api/Aspire.Hosting.Azure.AppContainers.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,12 @@ public static ApplicationModel.IResourceBuilder<T> PublishAsAzureContainerApp<T>
1414
where T : ApplicationModel.ContainerResource { throw null; }
1515
}
1616

17+
public static partial class AzureContainerAppExecutableExtensions
18+
{
19+
public static ApplicationModel.IResourceBuilder<T> PublishAsAzureContainerApp<T>(this ApplicationModel.IResourceBuilder<T> executable, System.Action<Azure.AzureResourceInfrastructure, global::Azure.Provisioning.AppContainers.ContainerApp> configure)
20+
where T : ApplicationModel.ExecutableResource { throw null; }
21+
}
22+
1723
public static partial class AzureContainerAppExtensions
1824
{
1925
public static IDistributedApplicationBuilder AddAzureContainerAppsInfrastructure(this IDistributedApplicationBuilder builder) { throw null; }

src/Aspire.Hosting.Azure.CosmosDB/api/Aspire.Hosting.Azure.CosmosDB.cs

Lines changed: 39 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,25 +8,43 @@
88
//------------------------------------------------------------------------------
99
namespace Aspire.Hosting
1010
{
11-
public partial class AzureCosmosDBResource : Azure.AzureProvisioningResource, ApplicationModel.IResourceWithConnectionString, ApplicationModel.IResource, ApplicationModel.IManifestExpressionProvider, ApplicationModel.IValueProvider, ApplicationModel.IValueWithReferences, ApplicationModel.IResourceWithEndpoints
11+
public partial class AzureCosmosDBResource : Azure.AzureProvisioningResource, ApplicationModel.IResourceWithConnectionString, ApplicationModel.IResource, ApplicationModel.IManifestExpressionProvider, ApplicationModel.IValueProvider, ApplicationModel.IValueWithReferences, ApplicationModel.IResourceWithEndpoints, Azure.IResourceWithAzureFunctionsConfig
1212
{
1313
public AzureCosmosDBResource(string name, System.Action<Azure.AzureResourceInfrastructure> configureInfrastructure) : base(default!, default!) { }
1414

1515
public Azure.BicepSecretOutputReference ConnectionString { get { throw null; } }
1616

1717
public ApplicationModel.ReferenceExpression ConnectionStringExpression { get { throw null; } }
1818

19+
public Azure.BicepOutputReference ConnectionStringOutput { get { throw null; } }
20+
1921
public bool IsEmulator { get { throw null; } }
22+
23+
[System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, "ConnectionStringSecretOutput")]
24+
public bool UseAccessKeyAuthentication { get { throw null; } }
25+
26+
public void ApplyAzureFunctionsConfiguration(System.Collections.Generic.IDictionary<string, object> target, string connectionName) { }
2027
}
2128

2229
public static partial class AzureCosmosExtensions
2330
{
2431
public static ApplicationModel.IResourceBuilder<AzureCosmosDBResource> AddAzureCosmosDB(this IDistributedApplicationBuilder builder, string name) { throw null; }
2532

33+
[System.Obsolete("This method is obsolete and will be removed in a future version. Use WithDatabase instead to add a Cosmos DB database.")]
2634
public static ApplicationModel.IResourceBuilder<AzureCosmosDBResource> AddDatabase(this ApplicationModel.IResourceBuilder<AzureCosmosDBResource> builder, string databaseName) { throw null; }
2735

2836
public static ApplicationModel.IResourceBuilder<AzureCosmosDBResource> RunAsEmulator(this ApplicationModel.IResourceBuilder<AzureCosmosDBResource> builder, System.Action<ApplicationModel.IResourceBuilder<Azure.AzureCosmosDBEmulatorResource>>? configureContainer = null) { throw null; }
2937

38+
[System.Diagnostics.CodeAnalysis.Experimental("ASPIRECOSMOS001", UrlFormat = "https://aka.ms/dotnet/aspire/diagnostics#{0}")]
39+
public static ApplicationModel.IResourceBuilder<AzureCosmosDBResource> RunAsPreviewEmulator(this ApplicationModel.IResourceBuilder<AzureCosmosDBResource> builder, System.Action<ApplicationModel.IResourceBuilder<Azure.AzureCosmosDBEmulatorResource>>? configureContainer = null) { throw null; }
40+
41+
public static ApplicationModel.IResourceBuilder<AzureCosmosDBResource> WithAccessKeyAuthentication(this ApplicationModel.IResourceBuilder<AzureCosmosDBResource> builder) { throw null; }
42+
43+
public static ApplicationModel.IResourceBuilder<AzureCosmosDBResource> WithDatabase(this ApplicationModel.IResourceBuilder<AzureCosmosDBResource> builder, string name, System.Action<Azure.CosmosDB.CosmosDBDatabase>? configure = null) { throw null; }
44+
45+
[System.Diagnostics.CodeAnalysis.Experimental("ASPIRECOSMOS001", UrlFormat = "https://aka.ms/dotnet/aspire/diagnostics#{0}")]
46+
public static ApplicationModel.IResourceBuilder<Azure.AzureCosmosDBEmulatorResource> WithDataExplorer(this ApplicationModel.IResourceBuilder<Azure.AzureCosmosDBEmulatorResource> builder, int? port = null) { throw null; }
47+
3048
public static ApplicationModel.IResourceBuilder<Azure.AzureCosmosDBEmulatorResource> WithDataVolume(this ApplicationModel.IResourceBuilder<Azure.AzureCosmosDBEmulatorResource> builder, string? name = null) { throw null; }
3149

3250
public static ApplicationModel.IResourceBuilder<Azure.AzureCosmosDBEmulatorResource> WithGatewayPort(this ApplicationModel.IResourceBuilder<Azure.AzureCosmosDBEmulatorResource> builder, int? port) { throw null; }
@@ -42,7 +60,26 @@ public partial class AzureCosmosDBEmulatorResource : ApplicationModel.ContainerR
4260
public AzureCosmosDBEmulatorResource(AzureCosmosDBResource innerResource) : base(default!, default) { }
4361

4462
public override ApplicationModel.ResourceAnnotationCollection Annotations { get { throw null; } }
63+
}
64+
}
65+
66+
namespace Aspire.Hosting.Azure.CosmosDB
67+
{
68+
public partial class CosmosDBContainer
69+
{
70+
public CosmosDBContainer(string name, string partitionKeyPath) { }
71+
72+
public string Name { get { throw null; } set { } }
73+
74+
public string PartitionKeyPath { get { throw null; } set { } }
75+
}
76+
77+
public partial class CosmosDBDatabase
78+
{
79+
public CosmosDBDatabase(string name) { }
80+
81+
public System.Collections.Generic.List<CosmosDBContainer> Containers { get { throw null; } }
4582

46-
public override string Name { get { throw null; } }
83+
public string Name { get { throw null; } set { } }
4784
}
4885
}

src/Aspire.Hosting.Azure.EventHubs/api/Aspire.Hosting.Azure.EventHubs.cs

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,25 @@ public static partial class AzureEventHubsExtensions
1212
{
1313
public static ApplicationModel.IResourceBuilder<Azure.AzureEventHubsResource> AddAzureEventHubs(this IDistributedApplicationBuilder builder, string name) { throw null; }
1414

15+
[System.Obsolete("This method is obsolete and will be removed in a future version. Use WithHub instead to add an Azure Event Hub.")]
1516
public static ApplicationModel.IResourceBuilder<Azure.AzureEventHubsResource> AddEventHub(this ApplicationModel.IResourceBuilder<Azure.AzureEventHubsResource> builder, string name) { throw null; }
1617

18+
public static ApplicationModel.IResourceBuilder<Azure.AzureEventHubsEmulatorResource> ConfigureEmulator(this ApplicationModel.IResourceBuilder<Azure.AzureEventHubsEmulatorResource> builder, System.Action<System.Text.Json.Nodes.JsonNode> configJson) { throw null; }
19+
1720
public static ApplicationModel.IResourceBuilder<Azure.AzureEventHubsResource> RunAsEmulator(this ApplicationModel.IResourceBuilder<Azure.AzureEventHubsResource> builder, System.Action<ApplicationModel.IResourceBuilder<Azure.AzureEventHubsEmulatorResource>>? configureContainer = null) { throw null; }
1821

22+
public static ApplicationModel.IResourceBuilder<Azure.AzureEventHubsEmulatorResource> WithConfigurationFile(this ApplicationModel.IResourceBuilder<Azure.AzureEventHubsEmulatorResource> builder, string path) { throw null; }
23+
1924
public static ApplicationModel.IResourceBuilder<Azure.AzureEventHubsEmulatorResource> WithDataBindMount(this ApplicationModel.IResourceBuilder<Azure.AzureEventHubsEmulatorResource> builder, string? path = null) { throw null; }
2025

2126
public static ApplicationModel.IResourceBuilder<Azure.AzureEventHubsEmulatorResource> WithDataVolume(this ApplicationModel.IResourceBuilder<Azure.AzureEventHubsEmulatorResource> builder, string? name = null) { throw null; }
2227

28+
[System.Obsolete("Use WithHostPort instead.")]
2329
public static ApplicationModel.IResourceBuilder<Azure.AzureEventHubsEmulatorResource> WithGatewayPort(this ApplicationModel.IResourceBuilder<Azure.AzureEventHubsEmulatorResource> builder, int? port) { throw null; }
30+
31+
public static ApplicationModel.IResourceBuilder<Azure.AzureEventHubsEmulatorResource> WithHostPort(this ApplicationModel.IResourceBuilder<Azure.AzureEventHubsEmulatorResource> builder, int? port) { throw null; }
32+
33+
public static ApplicationModel.IResourceBuilder<Azure.AzureEventHubsResource> WithHub(this ApplicationModel.IResourceBuilder<Azure.AzureEventHubsResource> builder, string name, System.Action<Azure.EventHubs.EventHub>? configure = null) { throw null; }
2434
}
2535
}
2636

@@ -47,4 +57,25 @@ public AzureEventHubsResource(string name, System.Action<AzureResourceInfrastruc
4757

4858
void IResourceWithAzureFunctionsConfig.ApplyAzureFunctionsConfiguration(System.Collections.Generic.IDictionary<string, object> target, string connectionName) { }
4959
}
60+
}
61+
62+
namespace Aspire.Hosting.Azure.EventHubs
63+
{
64+
public partial class EventHub
65+
{
66+
public EventHub(string name) { }
67+
68+
public System.Collections.Generic.List<EventHubConsumerGroup> ConsumerGroups { get { throw null; } }
69+
70+
public string Name { get { throw null; } set { } }
71+
72+
public long? PartitionCount { get { throw null; } set { } }
73+
}
74+
75+
public partial class EventHubConsumerGroup
76+
{
77+
public EventHubConsumerGroup(string name) { }
78+
79+
public string Name { get { throw null; } set { } }
80+
}
5081
}

src/Aspire.Hosting.Azure.PostgreSQL/api/Aspire.Hosting.Azure.PostgreSQL.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,9 @@ public AzurePostgresFlexibleServerResource(string name, System.Action<AzureResou
5050
public ApplicationModel.ReferenceExpression ConnectionStringExpression { get { throw null; } }
5151

5252
public System.Collections.Generic.IReadOnlyDictionary<string, string> Databases { get { throw null; } }
53+
54+
[System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, "ConnectionStringSecretOutput")]
55+
public bool UsePasswordAuthentication { get { throw null; } }
5356
}
5457

5558
[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.")]

src/Aspire.Hosting.Azure.Redis/api/Aspire.Hosting.Azure.Redis.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,9 @@ public AzureRedisCacheResource(string name, System.Action<AzureResourceInfrastru
3333
public override ApplicationModel.ResourceAnnotationCollection Annotations { get { throw null; } }
3434

3535
public ApplicationModel.ReferenceExpression ConnectionStringExpression { get { throw null; } }
36+
37+
[System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, "ConnectionStringSecretOutput")]
38+
public bool UseAccessKeyAuthentication { get { throw null; } }
3639
}
3740

3841
[System.Obsolete("This class is obsolete and will be removed in a future version. Use AddAzureRedis instead to add an Azure Cache for Redis resource.")]

src/Aspire.Hosting.Azure.ServiceBus/api/Aspire.Hosting.Azure.ServiceBus.cs

Lines changed: 132 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,26 +12,157 @@ public static partial class AzureServiceBusExtensions
1212
{
1313
public static ApplicationModel.IResourceBuilder<Azure.AzureServiceBusResource> AddAzureServiceBus(this IDistributedApplicationBuilder builder, string name) { throw null; }
1414

15+
[System.Obsolete("This method is obsolete and will be removed in a future version. Use WithQueue instead to add an Azure Service Bus Queue.")]
1516
public static ApplicationModel.IResourceBuilder<Azure.AzureServiceBusResource> AddQueue(this ApplicationModel.IResourceBuilder<Azure.AzureServiceBusResource> builder, string name) { throw null; }
1617

18+
[System.Obsolete("This method is obsolete and will be removed in a future version. Use WithTopic instead to add an Azure Service Bus Subscription to a Topic.")]
1719
public static ApplicationModel.IResourceBuilder<Azure.AzureServiceBusResource> AddSubscription(this ApplicationModel.IResourceBuilder<Azure.AzureServiceBusResource> builder, string topicName, string subscriptionName) { throw null; }
1820

21+
[System.Obsolete("This method is obsolete and will be removed in a future version. Use WithTopic instead to add an Azure Service Bus Topic and Subscriptions.")]
1922
public static ApplicationModel.IResourceBuilder<Azure.AzureServiceBusResource> AddTopic(this ApplicationModel.IResourceBuilder<Azure.AzureServiceBusResource> builder, string name, string[] subscriptions) { throw null; }
2023

24+
[System.Obsolete("This method is obsolete and will be removed in a future version. Use WithTopic instead to add an Azure Service Bus Topic.")]
2125
public static ApplicationModel.IResourceBuilder<Azure.AzureServiceBusResource> AddTopic(this ApplicationModel.IResourceBuilder<Azure.AzureServiceBusResource> builder, string name) { throw null; }
26+
27+
public static ApplicationModel.IResourceBuilder<Azure.AzureServiceBusEmulatorResource> ConfigureEmulator(this ApplicationModel.IResourceBuilder<Azure.AzureServiceBusEmulatorResource> builder, System.Action<System.Text.Json.Nodes.JsonNode> configJson) { throw null; }
28+
29+
public static ApplicationModel.IResourceBuilder<Azure.AzureServiceBusResource> RunAsEmulator(this ApplicationModel.IResourceBuilder<Azure.AzureServiceBusResource> builder, System.Action<ApplicationModel.IResourceBuilder<Azure.AzureServiceBusEmulatorResource>>? configureContainer = null) { throw null; }
30+
31+
public static ApplicationModel.IResourceBuilder<Azure.AzureServiceBusEmulatorResource> WithConfigurationFile(this ApplicationModel.IResourceBuilder<Azure.AzureServiceBusEmulatorResource> builder, string path) { throw null; }
32+
33+
public static ApplicationModel.IResourceBuilder<Azure.AzureServiceBusEmulatorResource> WithHostPort(this ApplicationModel.IResourceBuilder<Azure.AzureServiceBusEmulatorResource> builder, int? port) { throw null; }
34+
35+
public static ApplicationModel.IResourceBuilder<Azure.AzureServiceBusResource> WithQueue(this ApplicationModel.IResourceBuilder<Azure.AzureServiceBusResource> builder, string name, System.Action<Azure.ServiceBus.ServiceBusQueue>? configure = null) { throw null; }
36+
37+
public static ApplicationModel.IResourceBuilder<Azure.AzureServiceBusResource> WithTopic(this ApplicationModel.IResourceBuilder<Azure.AzureServiceBusResource> builder, string name, System.Action<Azure.ServiceBus.ServiceBusTopic>? configure = null) { throw null; }
2238
}
2339
}
2440

2541
namespace Aspire.Hosting.Azure
2642
{
27-
public partial class AzureServiceBusResource : AzureProvisioningResource, ApplicationModel.IResourceWithConnectionString, ApplicationModel.IResource, ApplicationModel.IManifestExpressionProvider, ApplicationModel.IValueProvider, ApplicationModel.IValueWithReferences, IResourceWithAzureFunctionsConfig
43+
public partial class AzureServiceBusEmulatorResource : ApplicationModel.ContainerResource, ApplicationModel.IResource
44+
{
45+
public AzureServiceBusEmulatorResource(AzureServiceBusResource innerResource) : base(default!, default) { }
46+
47+
public override ApplicationModel.ResourceAnnotationCollection Annotations { get { throw null; } }
48+
}
49+
50+
public partial class AzureServiceBusResource : AzureProvisioningResource, ApplicationModel.IResourceWithConnectionString, ApplicationModel.IResource, ApplicationModel.IManifestExpressionProvider, ApplicationModel.IValueProvider, ApplicationModel.IValueWithReferences, IResourceWithAzureFunctionsConfig, ApplicationModel.IResourceWithEndpoints
2851
{
2952
public AzureServiceBusResource(string name, System.Action<AzureResourceInfrastructure> configureInfrastructure) : base(default!, default!) { }
3053

3154
public ApplicationModel.ReferenceExpression ConnectionStringExpression { get { throw null; } }
3255

56+
public bool IsEmulator { get { throw null; } }
57+
3358
public BicepOutputReference ServiceBusEndpoint { get { throw null; } }
3459

3560
void IResourceWithAzureFunctionsConfig.ApplyAzureFunctionsConfiguration(System.Collections.Generic.IDictionary<string, object> target, string connectionName) { }
3661
}
62+
}
63+
64+
namespace Aspire.Hosting.Azure.ServiceBus
65+
{
66+
public partial class ServiceBusCorrelationFilter
67+
{
68+
public string? ContentType { get { throw null; } set { } }
69+
70+
public string? CorrelationId { get { throw null; } set { } }
71+
72+
public string? MessageId { get { throw null; } set { } }
73+
74+
public System.Collections.Generic.Dictionary<string, object> Properties { get { throw null; } set { } }
75+
76+
public string? ReplyTo { get { throw null; } set { } }
77+
78+
public string? ReplyToSessionId { get { throw null; } set { } }
79+
80+
public bool? RequiresPreprocessing { get { throw null; } set { } }
81+
82+
public string? SendTo { get { throw null; } set { } }
83+
84+
public string? SessionId { get { throw null; } set { } }
85+
86+
public string? Subject { get { throw null; } set { } }
87+
}
88+
89+
public enum ServiceBusFilterType
90+
{
91+
SqlFilter = 0,
92+
CorrelationFilter = 1
93+
}
94+
95+
public partial class ServiceBusQueue
96+
{
97+
public ServiceBusQueue(string name) { }
98+
99+
public bool? DeadLetteringOnMessageExpiration { get { throw null; } set { } }
100+
101+
public System.TimeSpan? DefaultMessageTimeToLive { get { throw null; } set { } }
102+
103+
public System.TimeSpan? DuplicateDetectionHistoryTimeWindow { get { throw null; } set { } }
104+
105+
public string? ForwardDeadLetteredMessagesTo { get { throw null; } set { } }
106+
107+
public string? ForwardTo { get { throw null; } set { } }
108+
109+
public System.TimeSpan? LockDuration { get { throw null; } set { } }
110+
111+
public int? MaxDeliveryCount { get { throw null; } set { } }
112+
113+
public string Name { get { throw null; } set { } }
114+
115+
public bool? RequiresDuplicateDetection { get { throw null; } set { } }
116+
117+
public bool? RequiresSession { get { throw null; } set { } }
118+
}
119+
120+
public partial class ServiceBusRule
121+
{
122+
public ServiceBusRule(string name) { }
123+
124+
public ServiceBusCorrelationFilter CorrelationFilter { get { throw null; } set { } }
125+
126+
public ServiceBusFilterType FilterType { get { throw null; } set { } }
127+
128+
public string Name { get { throw null; } set { } }
129+
}
130+
131+
public partial class ServiceBusSubscription
132+
{
133+
public ServiceBusSubscription(string name) { }
134+
135+
public bool? DeadLetteringOnMessageExpiration { get { throw null; } set { } }
136+
137+
public System.TimeSpan? DefaultMessageTimeToLive { get { throw null; } set { } }
138+
139+
public string? ForwardDeadLetteredMessagesTo { get { throw null; } set { } }
140+
141+
public string? ForwardTo { get { throw null; } set { } }
142+
143+
public System.TimeSpan? LockDuration { get { throw null; } set { } }
144+
145+
public int? MaxDeliveryCount { get { throw null; } set { } }
146+
147+
public string Name { get { throw null; } set { } }
148+
149+
public bool? RequiresSession { get { throw null; } set { } }
150+
151+
public System.Collections.Generic.List<ServiceBusRule> Rules { get { throw null; } }
152+
}
153+
154+
public partial class ServiceBusTopic
155+
{
156+
public ServiceBusTopic(string name) { }
157+
158+
public System.TimeSpan? DefaultMessageTimeToLive { get { throw null; } set { } }
159+
160+
public System.TimeSpan? DuplicateDetectionHistoryTimeWindow { get { throw null; } set { } }
161+
162+
public string Name { get { throw null; } set { } }
163+
164+
public bool? RequiresDuplicateDetection { get { throw null; } set { } }
165+
166+
public System.Collections.Generic.List<ServiceBusSubscription> Subscriptions { get { throw null; } }
167+
}
37168
}

0 commit comments

Comments
 (0)