diff --git a/gen/KubernetesGenerator/Program.cs b/gen/KubernetesGenerator/Program.cs index 46216ae..6d28348 100644 --- a/gen/KubernetesGenerator/Program.cs +++ b/gen/KubernetesGenerator/Program.cs @@ -70,8 +70,6 @@ namespace KubernetesWatchGenerator builder.RegisterType(); builder.RegisterType(); builder.RegisterType(); - builder.RegisterType(); - builder.RegisterType(); var container = builder.Build(); @@ -80,11 +78,6 @@ namespace KubernetesWatchGenerator helper.RegisterHelper(); } - //if (options.GenerateWatch) - //{ - // container.Resolve().Generate(swaggerUnprocessed, outputDirectory); - //} - if (options.GenerateApi) { container.Resolve().Generate(swaggerCooked, outputDirectory); @@ -99,11 +92,6 @@ namespace KubernetesWatchGenerator { container.Resolve().Generate(swaggerUnprocessed, outputDirectory); } - - if (options.GenerateVersionConverter) - { - container.Resolve().GenerateFromModels(outputDirectory); - } } [System.Diagnostics.CodeAnalysis.SuppressMessage("Usage", "CA1812", Justification = "Instanced in CommandLineParser")] @@ -112,9 +100,6 @@ namespace KubernetesWatchGenerator [Value(0, Required = true, HelpText = "path to src/KubernetesClient/generated")] public string OutputPath { get; set; } - //[Option("watch", Required = false, Default = true)] - //public bool GenerateWatch { get; set; } - [Option("api", Required = false, Default = true)] public bool GenerateApi { get; set; } @@ -123,9 +108,6 @@ namespace KubernetesWatchGenerator [Option("modelext", Required = false, Default = true)] public bool GenerateModelExt { get; set; } - - [Option("versionconverter", Required = false, Default = false)] - public bool GenerateVersionConverter { get; set; } } } } diff --git a/gen/KubernetesGenerator/UtilHelper.cs b/gen/KubernetesGenerator/UtilHelper.cs index 536dc8c..75a3cb9 100644 --- a/gen/KubernetesGenerator/UtilHelper.cs +++ b/gen/KubernetesGenerator/UtilHelper.cs @@ -10,22 +10,9 @@ namespace KubernetesGenerator { public void RegisterHelper() { - Helpers.Register(nameof(GetTuple), GetTuple); Helpers.Register(nameof(IfKindIs), IfKindIs); } - public static void GetTuple(RenderContext context, IList arguments, IDictionary options, - RenderBlock fn, RenderBlock inverse) - { - if (arguments != null && arguments.Count > 0 && arguments[0] is ITuple && - options.TryGetValue("index", out var indexObj) && int.TryParse(indexObj?.ToString(), out var index)) - { - var pair = (ITuple)arguments[0]; - var value = pair[index]; - context.Write(value.ToString()); - } - } - public static void IfKindIs(RenderContext context, IList arguments, IDictionary options, RenderBlock fn, RenderBlock inverse) { diff --git a/gen/KubernetesGenerator/VersionConverterGenerator.cs b/gen/KubernetesGenerator/VersionConverterGenerator.cs deleted file mode 100644 index d7d940b..0000000 --- a/gen/KubernetesGenerator/VersionConverterGenerator.cs +++ /dev/null @@ -1,52 +0,0 @@ -using System; -using System.IO; -using System.Linq; -using System.Runtime.CompilerServices; -using System.Text.RegularExpressions; -using Nustache.Core; - -namespace KubernetesGenerator -{ - internal class VersionConverterGenerator - { - public void GenerateFromModels(string outputDirectory) - { - // generate version converter maps - var allGeneratedModelClassNames = Directory - .EnumerateFiles(Path.Combine(outputDirectory, "Models")) - .Select(Path.GetFileNameWithoutExtension) - .ToList(); - - var versionRegex = @"(^V|v)[0-9]+((alpha|beta)[0-9]+)?"; - var typePairs = allGeneratedModelClassNames - .OrderBy(x => x) - .Select(x => new - { - Version = Regex.Match(x, versionRegex).Value?.ToLower(), - Kinda = Regex.Replace(x, versionRegex, string.Empty), - Type = x, - }) - .Where(x => !string.IsNullOrEmpty(x.Version)) - .GroupBy(x => x.Kinda) - .Where(x => x.Count() > 1) - .SelectMany(x => - x.SelectMany((value, index) => x.Skip(index + 1), (first, second) => new { first, second })) - .OrderBy(x => x.first.Kinda) - .ThenBy(x => x.first.Version) - .Select(x => (ITuple)Tuple.Create(x.first.Type, x.second.Type)) - .ToList(); - - var versionFile = - File.ReadAllText(Path.Combine(outputDirectory, "..", "Versioning", "VersionConverter.cs")); - var manualMaps = Regex.Matches(versionFile, @"\.CreateMap<(?.+?),\s?(?.+?)>") - .Select(x => Tuple.Create(x.Groups["T1"].Value, x.Groups["T2"].Value)) - .ToList(); - var versionConverterPairs = typePairs.Except(manualMaps).ToList(); - - Render.FileToFile(Path.Combine("templates", "VersionConverter.cs.template"), versionConverterPairs, - Path.Combine(outputDirectory, "VersionConverter.cs")); - Render.FileToFile(Path.Combine("templates", "ModelOperators.cs.template"), typePairs, - Path.Combine(outputDirectory, "ModelOperators.cs")); - } - } -} diff --git a/gen/KubernetesGenerator/WatchGenerator.cs b/gen/KubernetesGenerator/WatchGenerator.cs deleted file mode 100644 index f7065d4..0000000 --- a/gen/KubernetesGenerator/WatchGenerator.cs +++ /dev/null @@ -1,26 +0,0 @@ -using System.IO; -using System.Linq; -using NSwag; -using Nustache.Core; - -namespace KubernetesGenerator -{ - internal class WatchGenerator - { - public void Generate(OpenApiDocument swagger, string outputDirectory) - { - // Generate the Watcher operations - // We skip operations where the name of the class in the C# client could not be determined correctly. - // That's usually because there are different version of the same object (e.g. for deployments). - var watchOperations = swagger.Operations.Where( - o => o.Path.Contains("/watch/") - && o.Operation.ActualParameters.Any(p => p.Name == "name")).ToArray(); - - // Render. - Render.FileToFile(Path.Combine("templates", "IKubernetes.Watch.cs.template"), watchOperations, - Path.Combine(outputDirectory, "IKubernetes.Watch.cs")); - Render.FileToFile(Path.Combine("templates", "Kubernetes.Watch.cs.template"), watchOperations, - Path.Combine(outputDirectory, "Kubernetes.Watch.cs")); - } - } -} diff --git a/gen/KubernetesGenerator/templates/IKubernetes.Watch.cs.template b/gen/KubernetesGenerator/templates/IKubernetes.Watch.cs.template deleted file mode 100644 index 4129255..0000000 --- a/gen/KubernetesGenerator/templates/IKubernetes.Watch.cs.template +++ /dev/null @@ -1,71 +0,0 @@ -// -// 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. -// -using k8s.Models; -using System; -using System.Collections.Generic; -using System.Threading; -using System.Threading.Tasks; - -namespace k8s -{ - public partial interface IKubernetes - { - {{#.}} - /// - /// {{ToXmlDoc operation.description}} - /// - {{#operation.actualParameters}} - {{#isRequired}} - /// - /// {{ToXmlDoc description}} - /// - {{/isRequired}} - {{/operation.actualParameters}} - {{#operation.actualParameters}} - {{^isRequired}} - /// - /// {{ToXmlDoc description}} - /// - {{/isRequired}} - {{/operation.actualParameters}} - /// - /// The headers that will be added to request. - /// - /// - /// The action to invoke when the server sends a new event. - /// - /// - /// The action to invoke when an error occurs. - /// - /// - /// The action to invoke when the server closes the connection. - /// - /// - /// A which can be used to cancel the asynchronous operation. - /// - /// - /// A which represents the asynchronous operation, and returns a new watcher. - /// - Task> {{GetMethodName operation}}( -{{#operation.actualParameters}} -{{#isRequired}} - {{GetDotNetType type name isRequired format}} {{GetDotNetName name}}, -{{/isRequired}} -{{/operation.actualParameters}} -{{#operation.actualParameters}} -{{^isRequired}} - {{GetDotNetType .}} {{GetDotNetName .}} = null, -{{/isRequired}} -{{/operation.actualParameters}} - Dictionary> customHeaders = null, - Action onEvent = null, - Action onError = null, - Action onClosed = null, - CancellationToken cancellationToken = default(CancellationToken)); - - {{/.}} - } -} diff --git a/gen/KubernetesGenerator/templates/Kubernetes.Watch.cs.template b/gen/KubernetesGenerator/templates/Kubernetes.Watch.cs.template deleted file mode 100644 index 6f0fff3..0000000 --- a/gen/KubernetesGenerator/templates/Kubernetes.Watch.cs.template +++ /dev/null @@ -1,41 +0,0 @@ -// -// 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. -// -using k8s.Models; -using System; -using System.Collections.Generic; -using System.Threading; -using System.Threading.Tasks; - -namespace k8s -{ - public partial class Kubernetes - { - {{#.}} - /// - public Task> {{GetMethodName operation}}( -{{#operation.actualParameters}} -{{#isRequired}} - {{GetDotNetType type name isRequired format}} {{GetDotNetName name}}, -{{/isRequired}} -{{/operation.actualParameters}} -{{#operation.actualParameters}} -{{^isRequired}} - {{GetDotNetType .}} {{GetDotNetName .}} = null, -{{/isRequired}} -{{/operation.actualParameters}} - Dictionary> customHeaders = null, - Action onEvent = null, - Action onError = null, - Action onClosed = null, - CancellationToken cancellationToken = default(CancellationToken)) - { - string path = $"{{GetPathExpression .}}"; - return WatchObjectAsync<{{GetClassName operation}}>(path: path, @continue: continueParameter, fieldSelector: fieldSelector, labelSelector: labelSelector, limit: limit, pretty: pretty, timeoutSeconds: timeoutSeconds, resourceVersion: resourceVersion, customHeaders: customHeaders, onEvent: onEvent, onError: onError, onClosed: onClosed, cancellationToken: cancellationToken); - } - - {{/.}} - } -} diff --git a/gen/KubernetesGenerator/templates/ModelOperators.cs.template b/gen/KubernetesGenerator/templates/ModelOperators.cs.template deleted file mode 100644 index e932d26..0000000 --- a/gen/KubernetesGenerator/templates/ModelOperators.cs.template +++ /dev/null @@ -1,20 +0,0 @@ -// -// 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. -// -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); - } -{{/.}} -} diff --git a/gen/KubernetesGenerator/templates/VersionConverter.cs.template b/gen/KubernetesGenerator/templates/VersionConverter.cs.template deleted file mode 100644 index 0705c6d..0000000 --- a/gen/KubernetesGenerator/templates/VersionConverter.cs.template +++ /dev/null @@ -1,24 +0,0 @@ -// -// 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. -// -using AutoMapper; -using k8s.Models; - -namespace k8s.Versioning -{ - - - public static partial class VersionConverter - { - private static void AutoConfigurations(IMapperConfigurationExpression cfg) - { - {{#.}} - cfg.CreateMap<{{GetTuple . index="0"}}, {{GetTuple . index="1"}}>().ReverseMap(); - {{/.}} - } - } - - -} diff --git a/gen/LibKubernetesGenerator/LibKubernetesGenerator.csproj b/gen/LibKubernetesGenerator/LibKubernetesGenerator.csproj new file mode 100644 index 0000000..2474bb2 --- /dev/null +++ b/gen/LibKubernetesGenerator/LibKubernetesGenerator.csproj @@ -0,0 +1,12 @@ + + + netstandard2.0 + 10.0 + + + + + + + + diff --git a/gen/LibKubernetesGenerator/VersionConverterGenerator.cs b/gen/LibKubernetesGenerator/VersionConverterGenerator.cs new file mode 100644 index 0000000..39ce8b4 --- /dev/null +++ b/gen/LibKubernetesGenerator/VersionConverterGenerator.cs @@ -0,0 +1,116 @@ +using Microsoft.CodeAnalysis; +using Microsoft.CodeAnalysis.Text; +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Text.RegularExpressions; + +namespace LibKubernetesGenerator +{ + [Generator] + public class VersionConverterGenerator : ISourceGenerator + { + private IEnumerable PathSplit(string path) + { + var p = path; + + while (!string.IsNullOrEmpty(p)) + { + yield return Path.GetFileName(p); + p = Path.GetDirectoryName(p); + } + } + + private bool PathSuffixMath(string path, string suffix) + { + var s = PathSplit(suffix).ToList(); + return PathSplit(path).Take(s.Count).SequenceEqual(s); + } + + public void Execute(GeneratorExecutionContext context) + { + // TODO should parse syntax node instead of text + var allGeneratedModelClassNames = new List(); + var manualMaps = new List<(string, string)>(); + foreach (var s in context.Compilation.SyntaxTrees) + { + var p = s.FilePath; + if (PathSuffixMath(p, "Versioning/VersionConverter.cs")) + { + manualMaps = Regex.Matches(s.GetText().ToString(), @"\.CreateMap<(?.+?),\s?(?.+?)>") + .OfType() + .Select(x => (x.Groups["T1"].Value, x.Groups["T2"].Value)) + .ToList(); + } + else if (PathSuffixMath(Path.GetDirectoryName(p), "generated/Models")) + { + allGeneratedModelClassNames.Add(Path.GetFileNameWithoutExtension(p)); + } + } + + var versionRegex = @"(^V|v)[0-9]+((alpha|beta)[0-9]+)?"; + var typePairs = allGeneratedModelClassNames + .OrderBy(x => x) + .Select(x => new + { + Version = Regex.Match(x, versionRegex).Value?.ToLower(), + Kinda = Regex.Replace(x, versionRegex, string.Empty), + Type = x, + }) + .Where(x => !string.IsNullOrEmpty(x.Version)) + .GroupBy(x => x.Kinda) + .Where(x => x.Count() > 1) + .SelectMany(x => + x.SelectMany((value, index) => x.Skip(index + 1), (first, second) => new { first, second })) + .OrderBy(x => x.first.Kinda) + .ThenBy(x => x.first.Version) + .Select(x => (x.first.Type, x.second.Type)) + .ToList(); + + var versionConverterPairs = typePairs.Except(manualMaps).ToList(); + + var sbmodel = new StringBuilder(@"// +namespace k8s.Models; +using k8s.Versioning; +"); + + var sbversion = new StringBuilder(@"// +namespace k8s.Versioning; +using AutoMapper; +using k8s.Models; + + public static partial class VersionConverter + { + private static void AutoConfigurations(IMapperConfigurationExpression cfg) + { + +"); + + foreach (var (t0, t1) in versionConverterPairs) + { + sbmodel.AppendLine($@" + public partial class {t0} + {{ + public static explicit operator {t0}({t1} s) => VersionConverter.Mapper.Map<{t0}>(s); + }} + public partial class {t1} + {{ + public static explicit operator {t1}({t0} s) => VersionConverter.Mapper.Map<{t1}>(s); + }}"); + + sbversion.AppendLine($@"cfg.CreateMap<{t0}, {t1}>().ReverseMap();"); + } + + sbversion.AppendLine("}}"); + + context.AddSource($"generated_ModelOperators.cs", SourceText.From(sbmodel.ToString(), Encoding.UTF8)); + context.AddSource($"generated_VersionConverter.cs", SourceText.From(sbversion.ToString(), Encoding.UTF8)); + } + + public void Initialize(GeneratorInitializationContext context) + { + } + } +} diff --git a/kubernetes-client.sln b/kubernetes-client.sln index bb0940b..797918b 100644 --- a/kubernetes-client.sln +++ b/kubernetes-client.sln @@ -47,6 +47,8 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "GenericKubernetesApi", "exa EndProject Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "generic", "examples\generic\generic.csproj", "{F06D4C3A-7825-43A8-832B-6BDE3D355486}" EndProject +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "LibKubernetesGenerator", "gen\LibKubernetesGenerator\LibKubernetesGenerator.csproj", "{E92670D3-831E-430D-8FAC-138BF9977F3F}" +EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Any CPU = Debug|Any CPU @@ -273,6 +275,18 @@ Global {F06D4C3A-7825-43A8-832B-6BDE3D355486}.Release|x64.Build.0 = Release|Any CPU {F06D4C3A-7825-43A8-832B-6BDE3D355486}.Release|x86.ActiveCfg = Release|Any CPU {F06D4C3A-7825-43A8-832B-6BDE3D355486}.Release|x86.Build.0 = Release|Any CPU + {E92670D3-831E-430D-8FAC-138BF9977F3F}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {E92670D3-831E-430D-8FAC-138BF9977F3F}.Debug|Any CPU.Build.0 = Debug|Any CPU + {E92670D3-831E-430D-8FAC-138BF9977F3F}.Debug|x64.ActiveCfg = Debug|Any CPU + {E92670D3-831E-430D-8FAC-138BF9977F3F}.Debug|x64.Build.0 = Debug|Any CPU + {E92670D3-831E-430D-8FAC-138BF9977F3F}.Debug|x86.ActiveCfg = Debug|Any CPU + {E92670D3-831E-430D-8FAC-138BF9977F3F}.Debug|x86.Build.0 = Debug|Any CPU + {E92670D3-831E-430D-8FAC-138BF9977F3F}.Release|Any CPU.ActiveCfg = Release|Any CPU + {E92670D3-831E-430D-8FAC-138BF9977F3F}.Release|Any CPU.Build.0 = Release|Any CPU + {E92670D3-831E-430D-8FAC-138BF9977F3F}.Release|x64.ActiveCfg = Release|Any CPU + {E92670D3-831E-430D-8FAC-138BF9977F3F}.Release|x64.Build.0 = Release|Any CPU + {E92670D3-831E-430D-8FAC-138BF9977F3F}.Release|x86.ActiveCfg = Release|Any CPU + {E92670D3-831E-430D-8FAC-138BF9977F3F}.Release|x86.Build.0 = Release|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE @@ -296,6 +310,7 @@ Global {79BA7C4A-98AA-467E-80D4-0E4F03EE6DDE} = {879F8787-C3BB-43F3-A92D-6D4C7D3A5285} {F81AE4C4-E044-4225-BD76-385A0DE621FD} = {B70AFB57-57C9-46DC-84BE-11B7DDD34B40} {F06D4C3A-7825-43A8-832B-6BDE3D355486} = {B70AFB57-57C9-46DC-84BE-11B7DDD34B40} + {E92670D3-831E-430D-8FAC-138BF9977F3F} = {879F8787-C3BB-43F3-A92D-6D4C7D3A5285} EndGlobalSection GlobalSection(ExtensibilityGlobals) = postSolution SolutionGuid = {049A763A-C891-4E8D-80CF-89DD3E22ADC7} diff --git a/src/KubernetesClient/KubernetesClient.csproj b/src/KubernetesClient/KubernetesClient.csproj index b00bbe3..a1c4877 100644 --- a/src/KubernetesClient/KubernetesClient.csproj +++ b/src/KubernetesClient/KubernetesClient.csproj @@ -30,6 +30,10 @@ true + + + + @@ -44,6 +48,7 @@ + diff --git a/src/KubernetesClient/generated/ModelOperators.cs b/src/KubernetesClient/generated/ModelOperators.cs deleted file mode 100644 index 2652446..0000000 --- a/src/KubernetesClient/generated/ModelOperators.cs +++ /dev/null @@ -1,1034 +0,0 @@ -// -// 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. -// -using k8s.Versioning; - -namespace k8s.Models -{ - public partial class V2beta1ContainerResourceMetricSource - { - public static explicit operator V2beta1ContainerResourceMetricSource(V2beta2ContainerResourceMetricSource s) => VersionConverter.Mapper.Map(s); - } - public partial class V2beta2ContainerResourceMetricSource - { - public static explicit operator V2beta2ContainerResourceMetricSource(V2beta1ContainerResourceMetricSource s) => VersionConverter.Mapper.Map(s); - } - public partial class V2beta1ContainerResourceMetricSource - { - public static explicit operator V2beta1ContainerResourceMetricSource(V2ContainerResourceMetricSource s) => VersionConverter.Mapper.Map(s); - } - public partial class V2ContainerResourceMetricSource - { - public static explicit operator V2ContainerResourceMetricSource(V2beta1ContainerResourceMetricSource s) => VersionConverter.Mapper.Map(s); - } - public partial class V2beta2ContainerResourceMetricSource - { - public static explicit operator V2beta2ContainerResourceMetricSource(V2ContainerResourceMetricSource s) => VersionConverter.Mapper.Map(s); - } - public partial class V2ContainerResourceMetricSource - { - public static explicit operator V2ContainerResourceMetricSource(V2beta2ContainerResourceMetricSource s) => VersionConverter.Mapper.Map(s); - } - public partial class V2beta1ContainerResourceMetricStatus - { - public static explicit operator V2beta1ContainerResourceMetricStatus(V2beta2ContainerResourceMetricStatus s) => VersionConverter.Mapper.Map(s); - } - public partial class V2beta2ContainerResourceMetricStatus - { - public static explicit operator V2beta2ContainerResourceMetricStatus(V2beta1ContainerResourceMetricStatus s) => VersionConverter.Mapper.Map(s); - } - public partial class V2beta1ContainerResourceMetricStatus - { - public static explicit operator V2beta1ContainerResourceMetricStatus(V2ContainerResourceMetricStatus s) => VersionConverter.Mapper.Map(s); - } - public partial class V2ContainerResourceMetricStatus - { - public static explicit operator V2ContainerResourceMetricStatus(V2beta1ContainerResourceMetricStatus s) => VersionConverter.Mapper.Map(s); - } - public partial class V2beta2ContainerResourceMetricStatus - { - public static explicit operator V2beta2ContainerResourceMetricStatus(V2ContainerResourceMetricStatus s) => VersionConverter.Mapper.Map(s); - } - public partial class V2ContainerResourceMetricStatus - { - public static explicit operator V2ContainerResourceMetricStatus(V2beta2ContainerResourceMetricStatus s) => VersionConverter.Mapper.Map(s); - } - public partial class V1beta1CronJob - { - public static explicit operator V1beta1CronJob(V1CronJob s) => VersionConverter.Mapper.Map(s); - } - public partial class V1CronJob - { - public static explicit operator V1CronJob(V1beta1CronJob s) => VersionConverter.Mapper.Map(s); - } - public partial class V1beta1CronJobList - { - public static explicit operator V1beta1CronJobList(V1CronJobList s) => VersionConverter.Mapper.Map(s); - } - public partial class V1CronJobList - { - public static explicit operator V1CronJobList(V1beta1CronJobList s) => VersionConverter.Mapper.Map(s); - } - public partial class V1beta1CronJobSpec - { - public static explicit operator V1beta1CronJobSpec(V1CronJobSpec s) => VersionConverter.Mapper.Map(s); - } - public partial class V1CronJobSpec - { - public static explicit operator V1CronJobSpec(V1beta1CronJobSpec s) => VersionConverter.Mapper.Map(s); - } - public partial class V1beta1CronJobStatus - { - public static explicit operator V1beta1CronJobStatus(V1CronJobStatus s) => VersionConverter.Mapper.Map(s); - } - public partial class V1CronJobStatus - { - public static explicit operator V1CronJobStatus(V1beta1CronJobStatus s) => VersionConverter.Mapper.Map(s); - } - public partial class V1CrossVersionObjectReference - { - public static explicit operator V1CrossVersionObjectReference(V2beta1CrossVersionObjectReference s) => VersionConverter.Mapper.Map(s); - } - public partial class V2beta1CrossVersionObjectReference - { - public static explicit operator V2beta1CrossVersionObjectReference(V1CrossVersionObjectReference s) => VersionConverter.Mapper.Map(s); - } - public partial class V1CrossVersionObjectReference - { - public static explicit operator V1CrossVersionObjectReference(V2beta2CrossVersionObjectReference s) => VersionConverter.Mapper.Map(s); - } - public partial class V2beta2CrossVersionObjectReference - { - public static explicit operator V2beta2CrossVersionObjectReference(V1CrossVersionObjectReference s) => VersionConverter.Mapper.Map(s); - } - public partial class V1CrossVersionObjectReference - { - public static explicit operator V1CrossVersionObjectReference(V2CrossVersionObjectReference s) => VersionConverter.Mapper.Map(s); - } - public partial class V2CrossVersionObjectReference - { - public static explicit operator V2CrossVersionObjectReference(V1CrossVersionObjectReference s) => VersionConverter.Mapper.Map(s); - } - public partial class V2beta1CrossVersionObjectReference - { - public static explicit operator V2beta1CrossVersionObjectReference(V2beta2CrossVersionObjectReference s) => VersionConverter.Mapper.Map(s); - } - public partial class V2beta2CrossVersionObjectReference - { - public static explicit operator V2beta2CrossVersionObjectReference(V2beta1CrossVersionObjectReference s) => VersionConverter.Mapper.Map(s); - } - public partial class V2beta1CrossVersionObjectReference - { - public static explicit operator V2beta1CrossVersionObjectReference(V2CrossVersionObjectReference s) => VersionConverter.Mapper.Map(s); - } - public partial class V2CrossVersionObjectReference - { - public static explicit operator V2CrossVersionObjectReference(V2beta1CrossVersionObjectReference s) => VersionConverter.Mapper.Map(s); - } - public partial class V2beta2CrossVersionObjectReference - { - public static explicit operator V2beta2CrossVersionObjectReference(V2CrossVersionObjectReference s) => VersionConverter.Mapper.Map(s); - } - public partial class V2CrossVersionObjectReference - { - public static explicit operator V2CrossVersionObjectReference(V2beta2CrossVersionObjectReference s) => VersionConverter.Mapper.Map(s); - } - public partial class V1alpha1CSIStorageCapacity - { - public static explicit operator V1alpha1CSIStorageCapacity(V1beta1CSIStorageCapacity s) => VersionConverter.Mapper.Map(s); - } - public partial class V1beta1CSIStorageCapacity - { - public static explicit operator V1beta1CSIStorageCapacity(V1alpha1CSIStorageCapacity s) => VersionConverter.Mapper.Map(s); - } - public partial class V1alpha1CSIStorageCapacityList - { - public static explicit operator V1alpha1CSIStorageCapacityList(V1beta1CSIStorageCapacityList s) => VersionConverter.Mapper.Map(s); - } - public partial class V1beta1CSIStorageCapacityList - { - public static explicit operator V1beta1CSIStorageCapacityList(V1alpha1CSIStorageCapacityList s) => VersionConverter.Mapper.Map(s); - } - public partial class V1beta1Endpoint - { - public static explicit operator V1beta1Endpoint(V1Endpoint s) => VersionConverter.Mapper.Map(s); - } - public partial class V1Endpoint - { - public static explicit operator V1Endpoint(V1beta1Endpoint s) => VersionConverter.Mapper.Map(s); - } - public partial class V1beta1EndpointConditions - { - public static explicit operator V1beta1EndpointConditions(V1EndpointConditions s) => VersionConverter.Mapper.Map(s); - } - public partial class V1EndpointConditions - { - public static explicit operator V1EndpointConditions(V1beta1EndpointConditions s) => VersionConverter.Mapper.Map(s); - } - public partial class V1beta1EndpointHints - { - public static explicit operator V1beta1EndpointHints(V1EndpointHints s) => VersionConverter.Mapper.Map(s); - } - public partial class V1EndpointHints - { - public static explicit operator V1EndpointHints(V1beta1EndpointHints s) => VersionConverter.Mapper.Map(s); - } - public partial class V1beta1EndpointSlice - { - public static explicit operator V1beta1EndpointSlice(V1EndpointSlice s) => VersionConverter.Mapper.Map(s); - } - public partial class V1EndpointSlice - { - public static explicit operator V1EndpointSlice(V1beta1EndpointSlice s) => VersionConverter.Mapper.Map(s); - } - public partial class V1beta1EndpointSliceList - { - public static explicit operator V1beta1EndpointSliceList(V1EndpointSliceList s) => VersionConverter.Mapper.Map(s); - } - public partial class V1EndpointSliceList - { - public static explicit operator V1EndpointSliceList(V1beta1EndpointSliceList s) => VersionConverter.Mapper.Map(s); - } - public partial class V2beta1ExternalMetricSource - { - public static explicit operator V2beta1ExternalMetricSource(V2beta2ExternalMetricSource s) => VersionConverter.Mapper.Map(s); - } - public partial class V2beta2ExternalMetricSource - { - public static explicit operator V2beta2ExternalMetricSource(V2beta1ExternalMetricSource s) => VersionConverter.Mapper.Map(s); - } - public partial class V2beta1ExternalMetricSource - { - public static explicit operator V2beta1ExternalMetricSource(V2ExternalMetricSource s) => VersionConverter.Mapper.Map(s); - } - public partial class V2ExternalMetricSource - { - public static explicit operator V2ExternalMetricSource(V2beta1ExternalMetricSource s) => VersionConverter.Mapper.Map(s); - } - public partial class V2beta2ExternalMetricSource - { - public static explicit operator V2beta2ExternalMetricSource(V2ExternalMetricSource s) => VersionConverter.Mapper.Map(s); - } - public partial class V2ExternalMetricSource - { - public static explicit operator V2ExternalMetricSource(V2beta2ExternalMetricSource s) => VersionConverter.Mapper.Map(s); - } - public partial class V2beta1ExternalMetricStatus - { - public static explicit operator V2beta1ExternalMetricStatus(V2beta2ExternalMetricStatus s) => VersionConverter.Mapper.Map(s); - } - public partial class V2beta2ExternalMetricStatus - { - public static explicit operator V2beta2ExternalMetricStatus(V2beta1ExternalMetricStatus s) => VersionConverter.Mapper.Map(s); - } - public partial class V2beta1ExternalMetricStatus - { - public static explicit operator V2beta1ExternalMetricStatus(V2ExternalMetricStatus s) => VersionConverter.Mapper.Map(s); - } - public partial class V2ExternalMetricStatus - { - public static explicit operator V2ExternalMetricStatus(V2beta1ExternalMetricStatus s) => VersionConverter.Mapper.Map(s); - } - public partial class V2beta2ExternalMetricStatus - { - public static explicit operator V2beta2ExternalMetricStatus(V2ExternalMetricStatus s) => VersionConverter.Mapper.Map(s); - } - public partial class V2ExternalMetricStatus - { - public static explicit operator V2ExternalMetricStatus(V2beta2ExternalMetricStatus s) => VersionConverter.Mapper.Map(s); - } - public partial class V1beta1FlowDistinguisherMethod - { - public static explicit operator V1beta1FlowDistinguisherMethod(V1beta2FlowDistinguisherMethod s) => VersionConverter.Mapper.Map(s); - } - public partial class V1beta2FlowDistinguisherMethod - { - public static explicit operator V1beta2FlowDistinguisherMethod(V1beta1FlowDistinguisherMethod s) => VersionConverter.Mapper.Map(s); - } - public partial class V1beta1FlowSchema - { - public static explicit operator V1beta1FlowSchema(V1beta2FlowSchema s) => VersionConverter.Mapper.Map(s); - } - public partial class V1beta2FlowSchema - { - public static explicit operator V1beta2FlowSchema(V1beta1FlowSchema s) => VersionConverter.Mapper.Map(s); - } - public partial class V1beta1FlowSchemaCondition - { - public static explicit operator V1beta1FlowSchemaCondition(V1beta2FlowSchemaCondition s) => VersionConverter.Mapper.Map(s); - } - public partial class V1beta2FlowSchemaCondition - { - public static explicit operator V1beta2FlowSchemaCondition(V1beta1FlowSchemaCondition s) => VersionConverter.Mapper.Map(s); - } - public partial class V1beta1FlowSchemaList - { - public static explicit operator V1beta1FlowSchemaList(V1beta2FlowSchemaList s) => VersionConverter.Mapper.Map(s); - } - public partial class V1beta2FlowSchemaList - { - public static explicit operator V1beta2FlowSchemaList(V1beta1FlowSchemaList s) => VersionConverter.Mapper.Map(s); - } - public partial class V1beta1FlowSchemaSpec - { - public static explicit operator V1beta1FlowSchemaSpec(V1beta2FlowSchemaSpec s) => VersionConverter.Mapper.Map(s); - } - public partial class V1beta2FlowSchemaSpec - { - public static explicit operator V1beta2FlowSchemaSpec(V1beta1FlowSchemaSpec s) => VersionConverter.Mapper.Map(s); - } - public partial class V1beta1FlowSchemaStatus - { - public static explicit operator V1beta1FlowSchemaStatus(V1beta2FlowSchemaStatus s) => VersionConverter.Mapper.Map(s); - } - public partial class V1beta2FlowSchemaStatus - { - public static explicit operator V1beta2FlowSchemaStatus(V1beta1FlowSchemaStatus s) => VersionConverter.Mapper.Map(s); - } - public partial class V1beta1ForZone - { - public static explicit operator V1beta1ForZone(V1ForZone s) => VersionConverter.Mapper.Map(s); - } - public partial class V1ForZone - { - public static explicit operator V1ForZone(V1beta1ForZone s) => VersionConverter.Mapper.Map(s); - } - public partial class V1beta1GroupSubject - { - public static explicit operator V1beta1GroupSubject(V1beta2GroupSubject s) => VersionConverter.Mapper.Map(s); - } - public partial class V1beta2GroupSubject - { - public static explicit operator V1beta2GroupSubject(V1beta1GroupSubject s) => VersionConverter.Mapper.Map(s); - } - public partial class V1HorizontalPodAutoscaler - { - public static explicit operator V1HorizontalPodAutoscaler(V2beta1HorizontalPodAutoscaler s) => VersionConverter.Mapper.Map(s); - } - public partial class V2beta1HorizontalPodAutoscaler - { - public static explicit operator V2beta1HorizontalPodAutoscaler(V1HorizontalPodAutoscaler s) => VersionConverter.Mapper.Map(s); - } - public partial class V1HorizontalPodAutoscaler - { - public static explicit operator V1HorizontalPodAutoscaler(V2beta2HorizontalPodAutoscaler s) => VersionConverter.Mapper.Map(s); - } - public partial class V2beta2HorizontalPodAutoscaler - { - public static explicit operator V2beta2HorizontalPodAutoscaler(V1HorizontalPodAutoscaler s) => VersionConverter.Mapper.Map(s); - } - public partial class V1HorizontalPodAutoscaler - { - public static explicit operator V1HorizontalPodAutoscaler(V2HorizontalPodAutoscaler s) => VersionConverter.Mapper.Map(s); - } - public partial class V2HorizontalPodAutoscaler - { - public static explicit operator V2HorizontalPodAutoscaler(V1HorizontalPodAutoscaler s) => VersionConverter.Mapper.Map(s); - } - public partial class V2beta1HorizontalPodAutoscaler - { - public static explicit operator V2beta1HorizontalPodAutoscaler(V2beta2HorizontalPodAutoscaler s) => VersionConverter.Mapper.Map(s); - } - public partial class V2beta2HorizontalPodAutoscaler - { - public static explicit operator V2beta2HorizontalPodAutoscaler(V2beta1HorizontalPodAutoscaler s) => VersionConverter.Mapper.Map(s); - } - public partial class V2beta1HorizontalPodAutoscaler - { - public static explicit operator V2beta1HorizontalPodAutoscaler(V2HorizontalPodAutoscaler s) => VersionConverter.Mapper.Map(s); - } - public partial class V2HorizontalPodAutoscaler - { - public static explicit operator V2HorizontalPodAutoscaler(V2beta1HorizontalPodAutoscaler s) => VersionConverter.Mapper.Map(s); - } - public partial class V2beta2HorizontalPodAutoscaler - { - public static explicit operator V2beta2HorizontalPodAutoscaler(V2HorizontalPodAutoscaler s) => VersionConverter.Mapper.Map(s); - } - public partial class V2HorizontalPodAutoscaler - { - public static explicit operator V2HorizontalPodAutoscaler(V2beta2HorizontalPodAutoscaler s) => VersionConverter.Mapper.Map(s); - } - public partial class V2beta2HorizontalPodAutoscalerBehavior - { - public static explicit operator V2beta2HorizontalPodAutoscalerBehavior(V2HorizontalPodAutoscalerBehavior s) => VersionConverter.Mapper.Map(s); - } - public partial class V2HorizontalPodAutoscalerBehavior - { - public static explicit operator V2HorizontalPodAutoscalerBehavior(V2beta2HorizontalPodAutoscalerBehavior s) => VersionConverter.Mapper.Map(s); - } - public partial class V2beta1HorizontalPodAutoscalerCondition - { - public static explicit operator V2beta1HorizontalPodAutoscalerCondition(V2beta2HorizontalPodAutoscalerCondition s) => VersionConverter.Mapper.Map(s); - } - public partial class V2beta2HorizontalPodAutoscalerCondition - { - public static explicit operator V2beta2HorizontalPodAutoscalerCondition(V2beta1HorizontalPodAutoscalerCondition s) => VersionConverter.Mapper.Map(s); - } - public partial class V2beta1HorizontalPodAutoscalerCondition - { - public static explicit operator V2beta1HorizontalPodAutoscalerCondition(V2HorizontalPodAutoscalerCondition s) => VersionConverter.Mapper.Map(s); - } - public partial class V2HorizontalPodAutoscalerCondition - { - public static explicit operator V2HorizontalPodAutoscalerCondition(V2beta1HorizontalPodAutoscalerCondition s) => VersionConverter.Mapper.Map(s); - } - public partial class V2beta2HorizontalPodAutoscalerCondition - { - public static explicit operator V2beta2HorizontalPodAutoscalerCondition(V2HorizontalPodAutoscalerCondition s) => VersionConverter.Mapper.Map(s); - } - public partial class V2HorizontalPodAutoscalerCondition - { - public static explicit operator V2HorizontalPodAutoscalerCondition(V2beta2HorizontalPodAutoscalerCondition s) => VersionConverter.Mapper.Map(s); - } - public partial class V1HorizontalPodAutoscalerList - { - public static explicit operator V1HorizontalPodAutoscalerList(V2beta1HorizontalPodAutoscalerList s) => VersionConverter.Mapper.Map(s); - } - public partial class V2beta1HorizontalPodAutoscalerList - { - public static explicit operator V2beta1HorizontalPodAutoscalerList(V1HorizontalPodAutoscalerList s) => VersionConverter.Mapper.Map(s); - } - public partial class V1HorizontalPodAutoscalerList - { - public static explicit operator V1HorizontalPodAutoscalerList(V2beta2HorizontalPodAutoscalerList s) => VersionConverter.Mapper.Map(s); - } - public partial class V2beta2HorizontalPodAutoscalerList - { - public static explicit operator V2beta2HorizontalPodAutoscalerList(V1HorizontalPodAutoscalerList s) => VersionConverter.Mapper.Map(s); - } - public partial class V1HorizontalPodAutoscalerList - { - public static explicit operator V1HorizontalPodAutoscalerList(V2HorizontalPodAutoscalerList s) => VersionConverter.Mapper.Map(s); - } - public partial class V2HorizontalPodAutoscalerList - { - public static explicit operator V2HorizontalPodAutoscalerList(V1HorizontalPodAutoscalerList s) => VersionConverter.Mapper.Map(s); - } - public partial class V2beta1HorizontalPodAutoscalerList - { - public static explicit operator V2beta1HorizontalPodAutoscalerList(V2beta2HorizontalPodAutoscalerList s) => VersionConverter.Mapper.Map(s); - } - public partial class V2beta2HorizontalPodAutoscalerList - { - public static explicit operator V2beta2HorizontalPodAutoscalerList(V2beta1HorizontalPodAutoscalerList s) => VersionConverter.Mapper.Map(s); - } - public partial class V2beta1HorizontalPodAutoscalerList - { - public static explicit operator V2beta1HorizontalPodAutoscalerList(V2HorizontalPodAutoscalerList s) => VersionConverter.Mapper.Map(s); - } - public partial class V2HorizontalPodAutoscalerList - { - public static explicit operator V2HorizontalPodAutoscalerList(V2beta1HorizontalPodAutoscalerList s) => VersionConverter.Mapper.Map(s); - } - public partial class V2beta2HorizontalPodAutoscalerList - { - public static explicit operator V2beta2HorizontalPodAutoscalerList(V2HorizontalPodAutoscalerList s) => VersionConverter.Mapper.Map(s); - } - public partial class V2HorizontalPodAutoscalerList - { - public static explicit operator V2HorizontalPodAutoscalerList(V2beta2HorizontalPodAutoscalerList s) => VersionConverter.Mapper.Map(s); - } - public partial class V1HorizontalPodAutoscalerSpec - { - public static explicit operator V1HorizontalPodAutoscalerSpec(V2beta1HorizontalPodAutoscalerSpec s) => VersionConverter.Mapper.Map(s); - } - public partial class V2beta1HorizontalPodAutoscalerSpec - { - public static explicit operator V2beta1HorizontalPodAutoscalerSpec(V1HorizontalPodAutoscalerSpec s) => VersionConverter.Mapper.Map(s); - } - public partial class V1HorizontalPodAutoscalerSpec - { - public static explicit operator V1HorizontalPodAutoscalerSpec(V2beta2HorizontalPodAutoscalerSpec s) => VersionConverter.Mapper.Map(s); - } - public partial class V2beta2HorizontalPodAutoscalerSpec - { - public static explicit operator V2beta2HorizontalPodAutoscalerSpec(V1HorizontalPodAutoscalerSpec s) => VersionConverter.Mapper.Map(s); - } - public partial class V1HorizontalPodAutoscalerSpec - { - public static explicit operator V1HorizontalPodAutoscalerSpec(V2HorizontalPodAutoscalerSpec s) => VersionConverter.Mapper.Map(s); - } - public partial class V2HorizontalPodAutoscalerSpec - { - public static explicit operator V2HorizontalPodAutoscalerSpec(V1HorizontalPodAutoscalerSpec s) => VersionConverter.Mapper.Map(s); - } - public partial class V2beta1HorizontalPodAutoscalerSpec - { - public static explicit operator V2beta1HorizontalPodAutoscalerSpec(V2beta2HorizontalPodAutoscalerSpec s) => VersionConverter.Mapper.Map(s); - } - public partial class V2beta2HorizontalPodAutoscalerSpec - { - public static explicit operator V2beta2HorizontalPodAutoscalerSpec(V2beta1HorizontalPodAutoscalerSpec s) => VersionConverter.Mapper.Map(s); - } - public partial class V2beta1HorizontalPodAutoscalerSpec - { - public static explicit operator V2beta1HorizontalPodAutoscalerSpec(V2HorizontalPodAutoscalerSpec s) => VersionConverter.Mapper.Map(s); - } - public partial class V2HorizontalPodAutoscalerSpec - { - public static explicit operator V2HorizontalPodAutoscalerSpec(V2beta1HorizontalPodAutoscalerSpec s) => VersionConverter.Mapper.Map(s); - } - public partial class V2beta2HorizontalPodAutoscalerSpec - { - public static explicit operator V2beta2HorizontalPodAutoscalerSpec(V2HorizontalPodAutoscalerSpec s) => VersionConverter.Mapper.Map(s); - } - public partial class V2HorizontalPodAutoscalerSpec - { - public static explicit operator V2HorizontalPodAutoscalerSpec(V2beta2HorizontalPodAutoscalerSpec s) => VersionConverter.Mapper.Map(s); - } - public partial class V1HorizontalPodAutoscalerStatus - { - public static explicit operator V1HorizontalPodAutoscalerStatus(V2beta1HorizontalPodAutoscalerStatus s) => VersionConverter.Mapper.Map(s); - } - public partial class V2beta1HorizontalPodAutoscalerStatus - { - public static explicit operator V2beta1HorizontalPodAutoscalerStatus(V1HorizontalPodAutoscalerStatus s) => VersionConverter.Mapper.Map(s); - } - public partial class V1HorizontalPodAutoscalerStatus - { - public static explicit operator V1HorizontalPodAutoscalerStatus(V2beta2HorizontalPodAutoscalerStatus s) => VersionConverter.Mapper.Map(s); - } - public partial class V2beta2HorizontalPodAutoscalerStatus - { - public static explicit operator V2beta2HorizontalPodAutoscalerStatus(V1HorizontalPodAutoscalerStatus s) => VersionConverter.Mapper.Map(s); - } - public partial class V1HorizontalPodAutoscalerStatus - { - public static explicit operator V1HorizontalPodAutoscalerStatus(V2HorizontalPodAutoscalerStatus s) => VersionConverter.Mapper.Map(s); - } - public partial class V2HorizontalPodAutoscalerStatus - { - public static explicit operator V2HorizontalPodAutoscalerStatus(V1HorizontalPodAutoscalerStatus s) => VersionConverter.Mapper.Map(s); - } - public partial class V2beta1HorizontalPodAutoscalerStatus - { - public static explicit operator V2beta1HorizontalPodAutoscalerStatus(V2beta2HorizontalPodAutoscalerStatus s) => VersionConverter.Mapper.Map(s); - } - public partial class V2beta2HorizontalPodAutoscalerStatus - { - public static explicit operator V2beta2HorizontalPodAutoscalerStatus(V2beta1HorizontalPodAutoscalerStatus s) => VersionConverter.Mapper.Map(s); - } - public partial class V2beta1HorizontalPodAutoscalerStatus - { - public static explicit operator V2beta1HorizontalPodAutoscalerStatus(V2HorizontalPodAutoscalerStatus s) => VersionConverter.Mapper.Map(s); - } - public partial class V2HorizontalPodAutoscalerStatus - { - public static explicit operator V2HorizontalPodAutoscalerStatus(V2beta1HorizontalPodAutoscalerStatus s) => VersionConverter.Mapper.Map(s); - } - public partial class V2beta2HorizontalPodAutoscalerStatus - { - public static explicit operator V2beta2HorizontalPodAutoscalerStatus(V2HorizontalPodAutoscalerStatus s) => VersionConverter.Mapper.Map(s); - } - public partial class V2HorizontalPodAutoscalerStatus - { - public static explicit operator V2HorizontalPodAutoscalerStatus(V2beta2HorizontalPodAutoscalerStatus s) => VersionConverter.Mapper.Map(s); - } - public partial class V2beta2HPAScalingPolicy - { - public static explicit operator V2beta2HPAScalingPolicy(V2HPAScalingPolicy s) => VersionConverter.Mapper.Map(s); - } - public partial class V2HPAScalingPolicy - { - public static explicit operator V2HPAScalingPolicy(V2beta2HPAScalingPolicy s) => VersionConverter.Mapper.Map(s); - } - public partial class V2beta2HPAScalingRules - { - public static explicit operator V2beta2HPAScalingRules(V2HPAScalingRules s) => VersionConverter.Mapper.Map(s); - } - public partial class V2HPAScalingRules - { - public static explicit operator V2HPAScalingRules(V2beta2HPAScalingRules s) => VersionConverter.Mapper.Map(s); - } - public partial class V1beta1JobTemplateSpec - { - public static explicit operator V1beta1JobTemplateSpec(V1JobTemplateSpec s) => VersionConverter.Mapper.Map(s); - } - public partial class V1JobTemplateSpec - { - public static explicit operator V1JobTemplateSpec(V1beta1JobTemplateSpec s) => VersionConverter.Mapper.Map(s); - } - public partial class V1beta1LimitedPriorityLevelConfiguration - { - public static explicit operator V1beta1LimitedPriorityLevelConfiguration(V1beta2LimitedPriorityLevelConfiguration s) => VersionConverter.Mapper.Map(s); - } - public partial class V1beta2LimitedPriorityLevelConfiguration - { - public static explicit operator V1beta2LimitedPriorityLevelConfiguration(V1beta1LimitedPriorityLevelConfiguration s) => VersionConverter.Mapper.Map(s); - } - public partial class V1beta1LimitResponse - { - public static explicit operator V1beta1LimitResponse(V1beta2LimitResponse s) => VersionConverter.Mapper.Map(s); - } - public partial class V1beta2LimitResponse - { - public static explicit operator V1beta2LimitResponse(V1beta1LimitResponse s) => VersionConverter.Mapper.Map(s); - } - public partial class V2beta2MetricIdentifier - { - public static explicit operator V2beta2MetricIdentifier(V2MetricIdentifier s) => VersionConverter.Mapper.Map(s); - } - public partial class V2MetricIdentifier - { - public static explicit operator V2MetricIdentifier(V2beta2MetricIdentifier s) => VersionConverter.Mapper.Map(s); - } - public partial class V2beta1MetricSpec - { - public static explicit operator V2beta1MetricSpec(V2beta2MetricSpec s) => VersionConverter.Mapper.Map(s); - } - public partial class V2beta2MetricSpec - { - public static explicit operator V2beta2MetricSpec(V2beta1MetricSpec s) => VersionConverter.Mapper.Map(s); - } - public partial class V2beta1MetricSpec - { - public static explicit operator V2beta1MetricSpec(V2MetricSpec s) => VersionConverter.Mapper.Map(s); - } - public partial class V2MetricSpec - { - public static explicit operator V2MetricSpec(V2beta1MetricSpec s) => VersionConverter.Mapper.Map(s); - } - public partial class V2beta2MetricSpec - { - public static explicit operator V2beta2MetricSpec(V2MetricSpec s) => VersionConverter.Mapper.Map(s); - } - public partial class V2MetricSpec - { - public static explicit operator V2MetricSpec(V2beta2MetricSpec s) => VersionConverter.Mapper.Map(s); - } - public partial class V2beta1MetricStatus - { - public static explicit operator V2beta1MetricStatus(V2beta2MetricStatus s) => VersionConverter.Mapper.Map(s); - } - public partial class V2beta2MetricStatus - { - public static explicit operator V2beta2MetricStatus(V2beta1MetricStatus s) => VersionConverter.Mapper.Map(s); - } - public partial class V2beta1MetricStatus - { - public static explicit operator V2beta1MetricStatus(V2MetricStatus s) => VersionConverter.Mapper.Map(s); - } - public partial class V2MetricStatus - { - public static explicit operator V2MetricStatus(V2beta1MetricStatus s) => VersionConverter.Mapper.Map(s); - } - public partial class V2beta2MetricStatus - { - public static explicit operator V2beta2MetricStatus(V2MetricStatus s) => VersionConverter.Mapper.Map(s); - } - public partial class V2MetricStatus - { - public static explicit operator V2MetricStatus(V2beta2MetricStatus s) => VersionConverter.Mapper.Map(s); - } - public partial class V2beta2MetricTarget - { - public static explicit operator V2beta2MetricTarget(V2MetricTarget s) => VersionConverter.Mapper.Map(s); - } - public partial class V2MetricTarget - { - public static explicit operator V2MetricTarget(V2beta2MetricTarget s) => VersionConverter.Mapper.Map(s); - } - public partial class V2beta2MetricValueStatus - { - public static explicit operator V2beta2MetricValueStatus(V2MetricValueStatus s) => VersionConverter.Mapper.Map(s); - } - public partial class V2MetricValueStatus - { - public static explicit operator V2MetricValueStatus(V2beta2MetricValueStatus s) => VersionConverter.Mapper.Map(s); - } - public partial class V1beta1NonResourcePolicyRule - { - public static explicit operator V1beta1NonResourcePolicyRule(V1beta2NonResourcePolicyRule s) => VersionConverter.Mapper.Map(s); - } - public partial class V1beta2NonResourcePolicyRule - { - public static explicit operator V1beta2NonResourcePolicyRule(V1beta1NonResourcePolicyRule s) => VersionConverter.Mapper.Map(s); - } - public partial class V2beta1ObjectMetricSource - { - public static explicit operator V2beta1ObjectMetricSource(V2beta2ObjectMetricSource s) => VersionConverter.Mapper.Map(s); - } - public partial class V2beta2ObjectMetricSource - { - public static explicit operator V2beta2ObjectMetricSource(V2beta1ObjectMetricSource s) => VersionConverter.Mapper.Map(s); - } - public partial class V2beta1ObjectMetricSource - { - public static explicit operator V2beta1ObjectMetricSource(V2ObjectMetricSource s) => VersionConverter.Mapper.Map(s); - } - public partial class V2ObjectMetricSource - { - public static explicit operator V2ObjectMetricSource(V2beta1ObjectMetricSource s) => VersionConverter.Mapper.Map(s); - } - public partial class V2beta2ObjectMetricSource - { - public static explicit operator V2beta2ObjectMetricSource(V2ObjectMetricSource s) => VersionConverter.Mapper.Map(s); - } - public partial class V2ObjectMetricSource - { - public static explicit operator V2ObjectMetricSource(V2beta2ObjectMetricSource s) => VersionConverter.Mapper.Map(s); - } - public partial class V2beta1ObjectMetricStatus - { - public static explicit operator V2beta1ObjectMetricStatus(V2beta2ObjectMetricStatus s) => VersionConverter.Mapper.Map(s); - } - public partial class V2beta2ObjectMetricStatus - { - public static explicit operator V2beta2ObjectMetricStatus(V2beta1ObjectMetricStatus s) => VersionConverter.Mapper.Map(s); - } - public partial class V2beta1ObjectMetricStatus - { - public static explicit operator V2beta1ObjectMetricStatus(V2ObjectMetricStatus s) => VersionConverter.Mapper.Map(s); - } - public partial class V2ObjectMetricStatus - { - public static explicit operator V2ObjectMetricStatus(V2beta1ObjectMetricStatus s) => VersionConverter.Mapper.Map(s); - } - public partial class V2beta2ObjectMetricStatus - { - public static explicit operator V2beta2ObjectMetricStatus(V2ObjectMetricStatus s) => VersionConverter.Mapper.Map(s); - } - public partial class V2ObjectMetricStatus - { - public static explicit operator V2ObjectMetricStatus(V2beta2ObjectMetricStatus s) => VersionConverter.Mapper.Map(s); - } - public partial class V1alpha1Overhead - { - public static explicit operator V1alpha1Overhead(V1beta1Overhead s) => VersionConverter.Mapper.Map(s); - } - public partial class V1beta1Overhead - { - public static explicit operator V1beta1Overhead(V1alpha1Overhead s) => VersionConverter.Mapper.Map(s); - } - public partial class V1alpha1Overhead - { - public static explicit operator V1alpha1Overhead(V1Overhead s) => VersionConverter.Mapper.Map(s); - } - public partial class V1Overhead - { - public static explicit operator V1Overhead(V1alpha1Overhead s) => VersionConverter.Mapper.Map(s); - } - public partial class V1beta1Overhead - { - public static explicit operator V1beta1Overhead(V1Overhead s) => VersionConverter.Mapper.Map(s); - } - public partial class V1Overhead - { - public static explicit operator V1Overhead(V1beta1Overhead s) => VersionConverter.Mapper.Map(s); - } - public partial class V1beta1PodDisruptionBudget - { - public static explicit operator V1beta1PodDisruptionBudget(V1PodDisruptionBudget s) => VersionConverter.Mapper.Map(s); - } - public partial class V1PodDisruptionBudget - { - public static explicit operator V1PodDisruptionBudget(V1beta1PodDisruptionBudget s) => VersionConverter.Mapper.Map(s); - } - public partial class V1beta1PodDisruptionBudgetList - { - public static explicit operator V1beta1PodDisruptionBudgetList(V1PodDisruptionBudgetList s) => VersionConverter.Mapper.Map(s); - } - public partial class V1PodDisruptionBudgetList - { - public static explicit operator V1PodDisruptionBudgetList(V1beta1PodDisruptionBudgetList s) => VersionConverter.Mapper.Map(s); - } - public partial class V1beta1PodDisruptionBudgetSpec - { - public static explicit operator V1beta1PodDisruptionBudgetSpec(V1PodDisruptionBudgetSpec s) => VersionConverter.Mapper.Map(s); - } - public partial class V1PodDisruptionBudgetSpec - { - public static explicit operator V1PodDisruptionBudgetSpec(V1beta1PodDisruptionBudgetSpec s) => VersionConverter.Mapper.Map(s); - } - public partial class V1beta1PodDisruptionBudgetStatus - { - public static explicit operator V1beta1PodDisruptionBudgetStatus(V1PodDisruptionBudgetStatus s) => VersionConverter.Mapper.Map(s); - } - public partial class V1PodDisruptionBudgetStatus - { - public static explicit operator V1PodDisruptionBudgetStatus(V1beta1PodDisruptionBudgetStatus s) => VersionConverter.Mapper.Map(s); - } - public partial class V2beta1PodsMetricSource - { - public static explicit operator V2beta1PodsMetricSource(V2beta2PodsMetricSource s) => VersionConverter.Mapper.Map(s); - } - public partial class V2beta2PodsMetricSource - { - public static explicit operator V2beta2PodsMetricSource(V2beta1PodsMetricSource s) => VersionConverter.Mapper.Map(s); - } - public partial class V2beta1PodsMetricSource - { - public static explicit operator V2beta1PodsMetricSource(V2PodsMetricSource s) => VersionConverter.Mapper.Map(s); - } - public partial class V2PodsMetricSource - { - public static explicit operator V2PodsMetricSource(V2beta1PodsMetricSource s) => VersionConverter.Mapper.Map(s); - } - public partial class V2beta2PodsMetricSource - { - public static explicit operator V2beta2PodsMetricSource(V2PodsMetricSource s) => VersionConverter.Mapper.Map(s); - } - public partial class V2PodsMetricSource - { - public static explicit operator V2PodsMetricSource(V2beta2PodsMetricSource s) => VersionConverter.Mapper.Map(s); - } - public partial class V2beta1PodsMetricStatus - { - public static explicit operator V2beta1PodsMetricStatus(V2beta2PodsMetricStatus s) => VersionConverter.Mapper.Map(s); - } - public partial class V2beta2PodsMetricStatus - { - public static explicit operator V2beta2PodsMetricStatus(V2beta1PodsMetricStatus s) => VersionConverter.Mapper.Map(s); - } - public partial class V2beta1PodsMetricStatus - { - public static explicit operator V2beta1PodsMetricStatus(V2PodsMetricStatus s) => VersionConverter.Mapper.Map(s); - } - public partial class V2PodsMetricStatus - { - public static explicit operator V2PodsMetricStatus(V2beta1PodsMetricStatus s) => VersionConverter.Mapper.Map(s); - } - public partial class V2beta2PodsMetricStatus - { - public static explicit operator V2beta2PodsMetricStatus(V2PodsMetricStatus s) => VersionConverter.Mapper.Map(s); - } - public partial class V2PodsMetricStatus - { - public static explicit operator V2PodsMetricStatus(V2beta2PodsMetricStatus s) => VersionConverter.Mapper.Map(s); - } - public partial class V1beta1PolicyRulesWithSubjects - { - public static explicit operator V1beta1PolicyRulesWithSubjects(V1beta2PolicyRulesWithSubjects s) => VersionConverter.Mapper.Map(s); - } - public partial class V1beta2PolicyRulesWithSubjects - { - public static explicit operator V1beta2PolicyRulesWithSubjects(V1beta1PolicyRulesWithSubjects s) => VersionConverter.Mapper.Map(s); - } - public partial class V1beta1PriorityLevelConfiguration - { - public static explicit operator V1beta1PriorityLevelConfiguration(V1beta2PriorityLevelConfiguration s) => VersionConverter.Mapper.Map(s); - } - public partial class V1beta2PriorityLevelConfiguration - { - public static explicit operator V1beta2PriorityLevelConfiguration(V1beta1PriorityLevelConfiguration s) => VersionConverter.Mapper.Map(s); - } - public partial class V1beta1PriorityLevelConfigurationCondition - { - public static explicit operator V1beta1PriorityLevelConfigurationCondition(V1beta2PriorityLevelConfigurationCondition s) => VersionConverter.Mapper.Map(s); - } - public partial class V1beta2PriorityLevelConfigurationCondition - { - public static explicit operator V1beta2PriorityLevelConfigurationCondition(V1beta1PriorityLevelConfigurationCondition s) => VersionConverter.Mapper.Map(s); - } - public partial class V1beta1PriorityLevelConfigurationList - { - public static explicit operator V1beta1PriorityLevelConfigurationList(V1beta2PriorityLevelConfigurationList s) => VersionConverter.Mapper.Map(s); - } - public partial class V1beta2PriorityLevelConfigurationList - { - public static explicit operator V1beta2PriorityLevelConfigurationList(V1beta1PriorityLevelConfigurationList s) => VersionConverter.Mapper.Map(s); - } - public partial class V1beta1PriorityLevelConfigurationReference - { - public static explicit operator V1beta1PriorityLevelConfigurationReference(V1beta2PriorityLevelConfigurationReference s) => VersionConverter.Mapper.Map(s); - } - public partial class V1beta2PriorityLevelConfigurationReference - { - public static explicit operator V1beta2PriorityLevelConfigurationReference(V1beta1PriorityLevelConfigurationReference s) => VersionConverter.Mapper.Map(s); - } - public partial class V1beta1PriorityLevelConfigurationSpec - { - public static explicit operator V1beta1PriorityLevelConfigurationSpec(V1beta2PriorityLevelConfigurationSpec s) => VersionConverter.Mapper.Map(s); - } - public partial class V1beta2PriorityLevelConfigurationSpec - { - public static explicit operator V1beta2PriorityLevelConfigurationSpec(V1beta1PriorityLevelConfigurationSpec s) => VersionConverter.Mapper.Map(s); - } - public partial class V1beta1PriorityLevelConfigurationStatus - { - public static explicit operator V1beta1PriorityLevelConfigurationStatus(V1beta2PriorityLevelConfigurationStatus s) => VersionConverter.Mapper.Map(s); - } - public partial class V1beta2PriorityLevelConfigurationStatus - { - public static explicit operator V1beta2PriorityLevelConfigurationStatus(V1beta1PriorityLevelConfigurationStatus s) => VersionConverter.Mapper.Map(s); - } - public partial class V1beta1QueuingConfiguration - { - public static explicit operator V1beta1QueuingConfiguration(V1beta2QueuingConfiguration s) => VersionConverter.Mapper.Map(s); - } - public partial class V1beta2QueuingConfiguration - { - public static explicit operator V1beta2QueuingConfiguration(V1beta1QueuingConfiguration s) => VersionConverter.Mapper.Map(s); - } - public partial class V2beta1ResourceMetricSource - { - public static explicit operator V2beta1ResourceMetricSource(V2beta2ResourceMetricSource s) => VersionConverter.Mapper.Map(s); - } - public partial class V2beta2ResourceMetricSource - { - public static explicit operator V2beta2ResourceMetricSource(V2beta1ResourceMetricSource s) => VersionConverter.Mapper.Map(s); - } - public partial class V2beta1ResourceMetricSource - { - public static explicit operator V2beta1ResourceMetricSource(V2ResourceMetricSource s) => VersionConverter.Mapper.Map(s); - } - public partial class V2ResourceMetricSource - { - public static explicit operator V2ResourceMetricSource(V2beta1ResourceMetricSource s) => VersionConverter.Mapper.Map(s); - } - public partial class V2beta2ResourceMetricSource - { - public static explicit operator V2beta2ResourceMetricSource(V2ResourceMetricSource s) => VersionConverter.Mapper.Map(s); - } - public partial class V2ResourceMetricSource - { - public static explicit operator V2ResourceMetricSource(V2beta2ResourceMetricSource s) => VersionConverter.Mapper.Map(s); - } - public partial class V2beta1ResourceMetricStatus - { - public static explicit operator V2beta1ResourceMetricStatus(V2beta2ResourceMetricStatus s) => VersionConverter.Mapper.Map(s); - } - public partial class V2beta2ResourceMetricStatus - { - public static explicit operator V2beta2ResourceMetricStatus(V2beta1ResourceMetricStatus s) => VersionConverter.Mapper.Map(s); - } - public partial class V2beta1ResourceMetricStatus - { - public static explicit operator V2beta1ResourceMetricStatus(V2ResourceMetricStatus s) => VersionConverter.Mapper.Map(s); - } - public partial class V2ResourceMetricStatus - { - public static explicit operator V2ResourceMetricStatus(V2beta1ResourceMetricStatus s) => VersionConverter.Mapper.Map(s); - } - public partial class V2beta2ResourceMetricStatus - { - public static explicit operator V2beta2ResourceMetricStatus(V2ResourceMetricStatus s) => VersionConverter.Mapper.Map(s); - } - public partial class V2ResourceMetricStatus - { - public static explicit operator V2ResourceMetricStatus(V2beta2ResourceMetricStatus s) => VersionConverter.Mapper.Map(s); - } - public partial class V1beta1ResourcePolicyRule - { - public static explicit operator V1beta1ResourcePolicyRule(V1beta2ResourcePolicyRule s) => VersionConverter.Mapper.Map(s); - } - public partial class V1beta2ResourcePolicyRule - { - public static explicit operator V1beta2ResourcePolicyRule(V1beta1ResourcePolicyRule s) => VersionConverter.Mapper.Map(s); - } - public partial class V1alpha1RuntimeClass - { - public static explicit operator V1alpha1RuntimeClass(V1beta1RuntimeClass s) => VersionConverter.Mapper.Map(s); - } - public partial class V1beta1RuntimeClass - { - public static explicit operator V1beta1RuntimeClass(V1alpha1RuntimeClass s) => VersionConverter.Mapper.Map(s); - } - public partial class V1alpha1RuntimeClass - { - public static explicit operator V1alpha1RuntimeClass(V1RuntimeClass s) => VersionConverter.Mapper.Map(s); - } - public partial class V1RuntimeClass - { - public static explicit operator V1RuntimeClass(V1alpha1RuntimeClass s) => VersionConverter.Mapper.Map(s); - } - public partial class V1beta1RuntimeClass - { - public static explicit operator V1beta1RuntimeClass(V1RuntimeClass s) => VersionConverter.Mapper.Map(s); - } - public partial class V1RuntimeClass - { - public static explicit operator V1RuntimeClass(V1beta1RuntimeClass s) => VersionConverter.Mapper.Map(s); - } - public partial class V1alpha1RuntimeClassList - { - public static explicit operator V1alpha1RuntimeClassList(V1beta1RuntimeClassList s) => VersionConverter.Mapper.Map(s); - } - public partial class V1beta1RuntimeClassList - { - public static explicit operator V1beta1RuntimeClassList(V1alpha1RuntimeClassList s) => VersionConverter.Mapper.Map(s); - } - public partial class V1alpha1RuntimeClassList - { - public static explicit operator V1alpha1RuntimeClassList(V1RuntimeClassList s) => VersionConverter.Mapper.Map(s); - } - public partial class V1RuntimeClassList - { - public static explicit operator V1RuntimeClassList(V1alpha1RuntimeClassList s) => VersionConverter.Mapper.Map(s); - } - public partial class V1beta1RuntimeClassList - { - public static explicit operator V1beta1RuntimeClassList(V1RuntimeClassList s) => VersionConverter.Mapper.Map(s); - } - public partial class V1RuntimeClassList - { - public static explicit operator V1RuntimeClassList(V1beta1RuntimeClassList s) => VersionConverter.Mapper.Map(s); - } - public partial class V1alpha1Scheduling - { - public static explicit operator V1alpha1Scheduling(V1beta1Scheduling s) => VersionConverter.Mapper.Map(s); - } - public partial class V1beta1Scheduling - { - public static explicit operator V1beta1Scheduling(V1alpha1Scheduling s) => VersionConverter.Mapper.Map(s); - } - public partial class V1alpha1Scheduling - { - public static explicit operator V1alpha1Scheduling(V1Scheduling s) => VersionConverter.Mapper.Map(s); - } - public partial class V1Scheduling - { - public static explicit operator V1Scheduling(V1alpha1Scheduling s) => VersionConverter.Mapper.Map(s); - } - public partial class V1beta1Scheduling - { - public static explicit operator V1beta1Scheduling(V1Scheduling s) => VersionConverter.Mapper.Map(s); - } - public partial class V1Scheduling - { - public static explicit operator V1Scheduling(V1beta1Scheduling s) => VersionConverter.Mapper.Map(s); - } - public partial class V1beta1ServiceAccountSubject - { - public static explicit operator V1beta1ServiceAccountSubject(V1beta2ServiceAccountSubject s) => VersionConverter.Mapper.Map(s); - } - public partial class V1beta2ServiceAccountSubject - { - public static explicit operator V1beta2ServiceAccountSubject(V1beta1ServiceAccountSubject s) => VersionConverter.Mapper.Map(s); - } - public partial class V1beta1Subject - { - public static explicit operator V1beta1Subject(V1beta2Subject s) => VersionConverter.Mapper.Map(s); - } - public partial class V1beta2Subject - { - public static explicit operator V1beta2Subject(V1beta1Subject s) => VersionConverter.Mapper.Map(s); - } - public partial class V1beta1Subject - { - public static explicit operator V1beta1Subject(V1Subject s) => VersionConverter.Mapper.Map(s); - } - public partial class V1Subject - { - public static explicit operator V1Subject(V1beta1Subject s) => VersionConverter.Mapper.Map(s); - } - public partial class V1beta2Subject - { - public static explicit operator V1beta2Subject(V1Subject s) => VersionConverter.Mapper.Map(s); - } - public partial class V1Subject - { - public static explicit operator V1Subject(V1beta2Subject s) => VersionConverter.Mapper.Map(s); - } - public partial class V1beta1UserSubject - { - public static explicit operator V1beta1UserSubject(V1beta2UserSubject s) => VersionConverter.Mapper.Map(s); - } - public partial class V1beta2UserSubject - { - public static explicit operator V1beta2UserSubject(V1beta1UserSubject s) => VersionConverter.Mapper.Map(s); - } -} diff --git a/src/KubernetesClient/generated/VersionConverter.cs b/src/KubernetesClient/generated/VersionConverter.cs deleted file mode 100644 index be36bfd..0000000 --- a/src/KubernetesClient/generated/VersionConverter.cs +++ /dev/null @@ -1,121 +0,0 @@ -// -// 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. -// -using AutoMapper; -using k8s.Models; - -namespace k8s.Versioning -{ - - - public static partial class VersionConverter - { - private static void AutoConfigurations(IMapperConfigurationExpression cfg) - { - cfg.CreateMap().ReverseMap(); - cfg.CreateMap().ReverseMap(); - cfg.CreateMap().ReverseMap(); - cfg.CreateMap().ReverseMap(); - cfg.CreateMap().ReverseMap(); - cfg.CreateMap().ReverseMap(); - cfg.CreateMap().ReverseMap(); - cfg.CreateMap().ReverseMap(); - cfg.CreateMap().ReverseMap(); - cfg.CreateMap().ReverseMap(); - cfg.CreateMap().ReverseMap(); - cfg.CreateMap().ReverseMap(); - cfg.CreateMap().ReverseMap(); - cfg.CreateMap().ReverseMap(); - cfg.CreateMap().ReverseMap(); - cfg.CreateMap().ReverseMap(); - cfg.CreateMap().ReverseMap(); - cfg.CreateMap().ReverseMap(); - cfg.CreateMap().ReverseMap(); - cfg.CreateMap().ReverseMap(); - cfg.CreateMap().ReverseMap(); - cfg.CreateMap().ReverseMap(); - cfg.CreateMap().ReverseMap(); - cfg.CreateMap().ReverseMap(); - cfg.CreateMap().ReverseMap(); - cfg.CreateMap().ReverseMap(); - cfg.CreateMap().ReverseMap(); - cfg.CreateMap().ReverseMap(); - cfg.CreateMap().ReverseMap(); - cfg.CreateMap().ReverseMap(); - cfg.CreateMap().ReverseMap(); - cfg.CreateMap().ReverseMap(); - cfg.CreateMap().ReverseMap(); - cfg.CreateMap().ReverseMap(); - cfg.CreateMap().ReverseMap(); - cfg.CreateMap().ReverseMap(); - cfg.CreateMap().ReverseMap(); - cfg.CreateMap().ReverseMap(); - cfg.CreateMap().ReverseMap(); - cfg.CreateMap().ReverseMap(); - cfg.CreateMap().ReverseMap(); - cfg.CreateMap().ReverseMap(); - cfg.CreateMap().ReverseMap(); - cfg.CreateMap().ReverseMap(); - cfg.CreateMap().ReverseMap(); - cfg.CreateMap().ReverseMap(); - cfg.CreateMap().ReverseMap(); - cfg.CreateMap().ReverseMap(); - cfg.CreateMap().ReverseMap(); - cfg.CreateMap().ReverseMap(); - cfg.CreateMap().ReverseMap(); - cfg.CreateMap().ReverseMap(); - cfg.CreateMap().ReverseMap(); - cfg.CreateMap().ReverseMap(); - cfg.CreateMap().ReverseMap(); - cfg.CreateMap().ReverseMap(); - cfg.CreateMap().ReverseMap(); - cfg.CreateMap().ReverseMap(); - cfg.CreateMap().ReverseMap(); - cfg.CreateMap().ReverseMap(); - cfg.CreateMap().ReverseMap(); - cfg.CreateMap().ReverseMap(); - cfg.CreateMap().ReverseMap(); - cfg.CreateMap().ReverseMap(); - cfg.CreateMap().ReverseMap(); - cfg.CreateMap().ReverseMap(); - cfg.CreateMap().ReverseMap(); - cfg.CreateMap().ReverseMap(); - cfg.CreateMap().ReverseMap(); - cfg.CreateMap().ReverseMap(); - cfg.CreateMap().ReverseMap(); - cfg.CreateMap().ReverseMap(); - cfg.CreateMap().ReverseMap(); - cfg.CreateMap().ReverseMap(); - cfg.CreateMap().ReverseMap(); - cfg.CreateMap().ReverseMap(); - cfg.CreateMap().ReverseMap(); - cfg.CreateMap().ReverseMap(); - cfg.CreateMap().ReverseMap(); - cfg.CreateMap().ReverseMap(); - cfg.CreateMap().ReverseMap(); - cfg.CreateMap().ReverseMap(); - cfg.CreateMap().ReverseMap(); - cfg.CreateMap().ReverseMap(); - cfg.CreateMap().ReverseMap(); - cfg.CreateMap().ReverseMap(); - cfg.CreateMap().ReverseMap(); - cfg.CreateMap().ReverseMap(); - cfg.CreateMap().ReverseMap(); - cfg.CreateMap().ReverseMap(); - cfg.CreateMap().ReverseMap(); - cfg.CreateMap().ReverseMap(); - cfg.CreateMap().ReverseMap(); - cfg.CreateMap().ReverseMap(); - cfg.CreateMap().ReverseMap(); - cfg.CreateMap().ReverseMap(); - cfg.CreateMap().ReverseMap(); - cfg.CreateMap().ReverseMap(); - cfg.CreateMap().ReverseMap(); - cfg.CreateMap().ReverseMap(); - } - } - - -}