|
8 | 8 | //------------------------------------------------------------------------------
|
9 | 9 | namespace Aspire.Hosting
|
10 | 10 | {
|
| 11 | + public static partial class ConnectionStringBuilderExtensions |
| 12 | + { |
| 13 | + public static ApplicationModel.IResourceBuilder<ConnectionStringResource> AddConnectionString(this IDistributedApplicationBuilder builder, string name, ApplicationModel.ReferenceExpression connectionStringExpression) { throw null; } |
| 14 | + } |
| 15 | + |
| 16 | + public sealed partial class ConnectionStringResource : ApplicationModel.Resource, ApplicationModel.IResourceWithConnectionString, ApplicationModel.IResource, ApplicationModel.IManifestExpressionProvider, ApplicationModel.IValueProvider, ApplicationModel.IValueWithReferences, ApplicationModel.IResourceWithoutLifetime |
| 17 | + { |
| 18 | + public ConnectionStringResource(string name, ApplicationModel.ReferenceExpression connectionStringExpression) : base(default!) { } |
| 19 | + |
| 20 | + public ApplicationModel.ReferenceExpression ConnectionStringExpression { get { throw null; } } |
| 21 | + } |
| 22 | + |
11 | 23 | public static partial class ContainerResourceBuilderExtensions
|
12 | 24 | {
|
13 | 25 | public static ApplicationModel.IResourceBuilder<ApplicationModel.ContainerResource> AddContainer(this IDistributedApplicationBuilder builder, string name, string image, string tag) { throw null; }
|
@@ -56,6 +68,9 @@ public static ApplicationModel.IResourceBuilder<T> WithEntrypoint<T>(this Applic
|
56 | 68 | public static ApplicationModel.IResourceBuilder<T> WithImage<T>(this ApplicationModel.IResourceBuilder<T> builder, string image, string? tag = null)
|
57 | 69 | where T : ApplicationModel.ContainerResource { throw null; }
|
58 | 70 |
|
| 71 | + public static ApplicationModel.IResourceBuilder<T> WithImagePullPolicy<T>(this ApplicationModel.IResourceBuilder<T> builder, ApplicationModel.ImagePullPolicy pullPolicy) |
| 72 | + where T : ApplicationModel.ContainerResource { throw null; } |
| 73 | + |
59 | 74 | public static ApplicationModel.IResourceBuilder<T> WithImageRegistry<T>(this ApplicationModel.IResourceBuilder<T> builder, string? registry)
|
60 | 75 | where T : ApplicationModel.ContainerResource { throw null; }
|
61 | 76 |
|
@@ -407,7 +422,10 @@ public static ApplicationModel.IResourceBuilder<T> WithCommand<T>(this Applicati
|
407 | 422 | public static ApplicationModel.IResourceBuilder<T> WithConnectionStringRedirection<T>(this ApplicationModel.IResourceBuilder<T> builder, ApplicationModel.IResourceWithConnectionString resource)
|
408 | 423 | where T : ApplicationModel.IResourceWithConnectionString { throw null; }
|
409 | 424 |
|
410 |
| - public static ApplicationModel.IResourceBuilder<T> WithEndpoint<T>(this ApplicationModel.IResourceBuilder<T> builder, int? port = null, int? targetPort = null, string? scheme = null, string? name = null, string? env = null, bool isProxied = true, bool? isExternal = null) |
| 425 | + public static ApplicationModel.IResourceBuilder<T> WithEndpoint<T>(this ApplicationModel.IResourceBuilder<T> builder, int? port = null, int? targetPort = null, string? scheme = null, string? name = null, string? env = null, bool isProxied = true, bool? isExternal = null, System.Net.Sockets.ProtocolType? protocol = null) |
| 426 | + where T : ApplicationModel.IResourceWithEndpoints { throw null; } |
| 427 | + |
| 428 | + public static ApplicationModel.IResourceBuilder<T> WithEndpoint<T>(this ApplicationModel.IResourceBuilder<T> builder, int? port, int? targetPort, string? scheme, string? name, string? env, bool isProxied, bool? isExternal) |
411 | 429 | where T : ApplicationModel.IResourceWithEndpoints { throw null; }
|
412 | 430 |
|
413 | 431 | public static ApplicationModel.IResourceBuilder<T> WithEndpoint<T>(this ApplicationModel.IResourceBuilder<T> builder, string endpointName, System.Action<ApplicationModel.EndpointAnnotation> callback, bool createIfNotExists = true)
|
@@ -633,6 +651,12 @@ public sealed partial class ContainerImageAnnotation : IResourceAnnotation
|
633 | 651 | public string? Tag { get { throw null; } set { } }
|
634 | 652 | }
|
635 | 653 |
|
| 654 | + [System.Diagnostics.DebuggerDisplay("Type = {GetType().Name,nq}")] |
| 655 | + public sealed partial class ContainerImagePullPolicyAnnotation : IResourceAnnotation |
| 656 | + { |
| 657 | + public required ImagePullPolicy ImagePullPolicy { get { throw null; } set { } } |
| 658 | + } |
| 659 | + |
636 | 660 | public enum ContainerLifetime
|
637 | 661 | {
|
638 | 662 | Session = 0,
|
@@ -1004,6 +1028,13 @@ public enum IconVariant
|
1004 | 1028 | Filled = 1
|
1005 | 1029 | }
|
1006 | 1030 |
|
| 1031 | + public enum ImagePullPolicy |
| 1032 | + { |
| 1033 | + Default = 0, |
| 1034 | + Always = 1, |
| 1035 | + Missing = 2 |
| 1036 | + } |
| 1037 | + |
1007 | 1038 | public partial interface IManifestExpressionProvider
|
1008 | 1039 | {
|
1009 | 1040 | string ValueExpression { get; }
|
@@ -1067,6 +1098,10 @@ public partial interface IResourceWithEnvironment : IResource
|
1067 | 1098 | {
|
1068 | 1099 | }
|
1069 | 1100 |
|
| 1101 | + public partial interface IResourceWithoutLifetime : IResource |
| 1102 | + { |
| 1103 | + } |
| 1104 | + |
1070 | 1105 | public partial interface IResourceWithParent : IResource
|
1071 | 1106 | {
|
1072 | 1107 | IResource Parent { get; }
|
@@ -1207,7 +1242,7 @@ public abstract partial class ParameterDefault
|
1207 | 1242 | public abstract void WriteToManifest(Publishing.ManifestPublishingContext context);
|
1208 | 1243 | }
|
1209 | 1244 |
|
1210 |
| - public partial class ParameterResource : Resource, IManifestExpressionProvider, IValueProvider |
| 1245 | + public partial class ParameterResource : Resource, IResourceWithoutLifetime, IResource, IManifestExpressionProvider, IValueProvider |
1211 | 1246 | {
|
1212 | 1247 | public ParameterResource(string name, System.Func<ParameterDefault?, string> callback, bool secret = false) : base(default!) { }
|
1213 | 1248 |
|
@@ -1272,6 +1307,9 @@ public readonly void AppendFormatted(string? value) { }
|
1272 | 1307 | public void AppendFormatted<T>(T valueProvider)
|
1273 | 1308 | where T : IValueProvider, IManifestExpressionProvider { }
|
1274 | 1309 |
|
| 1310 | + public void AppendFormatted<T>(IResourceBuilder<T> valueProvider) |
| 1311 | + where T : IResource, IValueProvider, IManifestExpressionProvider { } |
| 1312 | + |
1275 | 1313 | public readonly void AppendLiteral(string value) { }
|
1276 | 1314 | }
|
1277 | 1315 | }
|
@@ -1529,6 +1567,7 @@ public sealed partial class UpdateCommandStateContext
|
1529 | 1567 | [System.Diagnostics.DebuggerDisplay("{Url}", Name = "{Name}")]
|
1530 | 1568 | public sealed partial record UrlSnapshot(string Name, string Url, bool IsInternal)
|
1531 | 1569 | {
|
| 1570 | + public bool IsInactive { get { throw null; } init { } } |
1532 | 1571 | }
|
1533 | 1572 |
|
1534 | 1573 | [System.Diagnostics.DebuggerDisplay("{Source}", Name = "{Target}")]
|
|
0 commit comments