-
Notifications
You must be signed in to change notification settings - Fork 301
/
Copy pathModelExtensions.cs.template
30 lines (29 loc) · 1.1 KB
/
ModelExtensions.cs.template
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
// <auto-generated>
// Code generated by https://github.com/kubernetes-client/csharp/tree/master/src/LibKubernetesGenerator
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
// </auto-generated>
namespace k8s.Models
{
{{ for definition in definitions }}
[KubernetesEntity(Group=KubeGroup, Kind=KubeKind, ApiVersion=KubeApiVersion, PluralName=KubePluralName)]
public partial class {{ GetClassName definition }} : {{ GetInterfaceName definition }}
{
public const string KubeApiVersion = "{{ GetApiVersion definition }}";
public const string KubeKind = "{{ GetKind definition }}";
public const string KubeGroup = "{{ GetGroup definition }}";
public const string KubePluralName = "{{ GetPlural definition }}";
}
{{ end }}
}
#if NET8_0_OR_GREATER
namespace k8s
{
{{ for definition in definitions }}
[JsonSerializable(typeof({{ GetClassName definition }}))]
{{ end }}
[JsonSerializable(typeof(k8s.KubeConfigModels.ExecCredentialResponse))]
internal partial class SourceGenerationContext : JsonSerializerContext
{
}
}
#endif