* port autorest to watch generator * rename KubernetesWatchGenerator -> KubernetesGenerator * add validate * fix format * fix generate code warnings * fix line ending * fix missing property found by comp check * do not new http method
21 lines
724 B
Plaintext
21 lines
724 B
Plaintext
// <auto-generated>
|
|
// Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator
|
|
// Changes may cause incorrect behavior and will be lost if the code is
|
|
// regenerated.
|
|
// </auto-generated>
|
|
using k8s.Versioning;
|
|
|
|
namespace k8s.Models
|
|
{
|
|
{{#.}}
|
|
public partial class {{GetTuple . index="0"}}
|
|
{
|
|
public static explicit operator {{GetTuple . index="0"}}({{GetTuple . index="1"}} s) => VersionConverter.Mapper.Map<{{GetTuple . index="0"}}>(s);
|
|
}
|
|
public partial class {{GetTuple . index="1"}}
|
|
{
|
|
public static explicit operator {{GetTuple . index="1"}}({{GetTuple . index="0"}} s) => VersionConverter.Mapper.Map<{{GetTuple . index="1"}}>(s);
|
|
}
|
|
{{/.}}
|
|
}
|