|
8 | 8 | //------------------------------------------------------------------------------
|
9 | 9 | namespace Aspire.Hosting
|
10 | 10 | {
|
| 11 | + public static partial class KubernetesEnvironmentExtensions |
| 12 | + { |
| 13 | + public static ApplicationModel.IResourceBuilder<Kubernetes.KubernetesEnvironmentResource> AddKubernetesEnvironment(this IDistributedApplicationBuilder builder, string name) { throw null; } |
| 14 | + |
| 15 | + public static ApplicationModel.IResourceBuilder<Kubernetes.KubernetesEnvironmentResource> WithProperties(this ApplicationModel.IResourceBuilder<Kubernetes.KubernetesEnvironmentResource> builder, System.Action<Kubernetes.KubernetesEnvironmentResource> configure) { throw null; } |
| 16 | + } |
| 17 | + |
11 | 18 | public static partial class KubernetesPublisherExtensions
|
12 | 19 | {
|
13 | 20 | public static IDistributedApplicationBuilder AddKubernetesPublisher(this IDistributedApplicationBuilder builder, System.Action<Kubernetes.KubernetesPublisherOptions>? configureOptions = null) { throw null; }
|
| 21 | + } |
14 | 22 |
|
15 |
| - public static IDistributedApplicationBuilder AddKubernetesPublisher(this IDistributedApplicationBuilder builder, string name, System.Action<Kubernetes.KubernetesPublisherOptions>? configureOptions = null) { throw null; } |
| 23 | + public static partial class KubernetesServiceExtensions |
| 24 | + { |
| 25 | + public static ApplicationModel.IResourceBuilder<T> PublishAsKubernetesService<T>(this ApplicationModel.IResourceBuilder<T> builder, System.Action<Kubernetes.KubernetesResource> configure) |
| 26 | + where T : ApplicationModel.IComputeResource { throw null; } |
16 | 27 | }
|
17 | 28 | }
|
18 | 29 |
|
19 | 30 | namespace Aspire.Hosting.Kubernetes
|
20 | 31 | {
|
21 |
| - public sealed partial class KubernetesPublisherOptions : Publishing.PublishingOptions |
| 32 | + public sealed partial class KubernetesEnvironmentResource : ApplicationModel.Resource, ApplicationModel.IComputeEnvironmentResource, ApplicationModel.IResource |
22 | 33 | {
|
| 34 | + public KubernetesEnvironmentResource(string name) : base(default!) { } |
| 35 | + |
| 36 | + public string DefaultImagePullPolicy { get { throw null; } set { } } |
| 37 | + |
| 38 | + public string DefaultServiceType { get { throw null; } set { } } |
| 39 | + |
| 40 | + public string? DefaultStorageClassName { get { throw null; } set { } } |
| 41 | + |
| 42 | + public string DefaultStorageReadWritePolicy { get { throw null; } set { } } |
| 43 | + |
| 44 | + public string DefaultStorageSize { get { throw null; } set { } } |
| 45 | + |
| 46 | + public string DefaultStorageType { get { throw null; } set { } } |
| 47 | + |
23 | 48 | public string HelmChartDescription { get { throw null; } set { } }
|
24 | 49 |
|
25 | 50 | public string HelmChartName { get { throw null; } set { } }
|
26 | 51 |
|
27 | 52 | public string HelmChartVersion { get { throw null; } set { } }
|
| 53 | + } |
28 | 54 |
|
29 |
| - public string ImagePullPolicy { get { throw null; } set { } } |
| 55 | + public sealed partial class KubernetesPublisherOptions : Publishing.PublishingOptions |
| 56 | + { |
| 57 | + } |
30 | 58 |
|
31 |
| - public string ServiceType { get { throw null; } set { } } |
| 59 | + public partial class KubernetesResource : ApplicationModel.Resource, ApplicationModel.IResourceWithParent<KubernetesEnvironmentResource>, ApplicationModel.IResourceWithParent, ApplicationModel.IResource |
| 60 | + { |
| 61 | + public KubernetesResource(string name, ApplicationModel.IResource resource, KubernetesEnvironmentResource kubernetesEnvironmentResource) : base(default!) { } |
32 | 62 |
|
33 |
| - public string? StorageClassName { get { throw null; } set { } } |
| 63 | + public Resources.ConfigMap? ConfigMap { get { throw null; } set { } } |
34 | 64 |
|
35 |
| - public string StorageReadWritePolicy { get { throw null; } set { } } |
| 65 | + public Resources.Deployment? Deployment { get { throw null; } set { } } |
36 | 66 |
|
37 |
| - public string StorageSize { get { throw null; } set { } } |
| 67 | + public KubernetesEnvironmentResource Parent { get { throw null; } } |
| 68 | + |
| 69 | + public Resources.Secret? Secret { get { throw null; } set { } } |
| 70 | + |
| 71 | + public Resources.Service? Service { get { throw null; } set { } } |
| 72 | + |
| 73 | + public Resources.StatefulSet? StatefulSet { get { throw null; } set { } } |
| 74 | + } |
| 75 | + |
| 76 | + public sealed partial class KubernetesServiceCustomizationAnnotation : ApplicationModel.IResourceAnnotation |
| 77 | + { |
| 78 | + public KubernetesServiceCustomizationAnnotation(System.Action<KubernetesResource> configure) { } |
38 | 79 |
|
39 |
| - public string StorageType { get { throw null; } set { } } |
| 80 | + public System.Action<KubernetesResource> Configure { get { throw null; } } |
40 | 81 | }
|
41 | 82 | }
|
42 | 83 |
|
|
0 commit comments