Exemplo n.º 1
0
 public static Output <Union <ChartArgsUnwrap, LocalChartArgsUnwrap> > Unwrap(this Union <ChartArgs, LocalChartArgs> options)
 {
     return(options.Match(
                v => Output.Tuple(v.ApiVersions, v.IncludeTestHookResources.ToNullable(), v.Namespace.ToNullable(), v.Values, v.Repo.ToNullable(), v.Chart, v.Version.ToNullable(), v.FetchOptions.Unwrap()).Apply(vs =>
                                                                                                                                                                                                                   Union <ChartArgsUnwrap, LocalChartArgsUnwrap> .FromT0(
                                                                                                                                                                                                                       new ChartArgsUnwrap
     {
         ApiVersions = vs.Item1,
         IncludeTestHookResources = vs.Item2,
         Namespace = vs.Item3,
         Values = vs.Item4,
         Transformations = v.Transformations,
         ResourcePrefix = v.ResourcePrefix,
         Repo = vs.Item5,
         Chart = vs.Item6,
         Version = vs.Item7,
         FetchOptions = vs.Item8
     })),
                v => Output.Tuple(v.ApiVersions, v.IncludeTestHookResources.ToNullable(), v.Namespace.ToNullable(), v.Values).Apply(vs =>
                                                                                                                                    Union <ChartArgsUnwrap, LocalChartArgsUnwrap> .FromT1(
                                                                                                                                        new LocalChartArgsUnwrap
     {
         ApiVersions = vs.Item1,
         IncludeTestHookResources = vs.Item2,
         Namespace = vs.Item3,
         Values = vs.Item4,
         Transformations = v.Transformations,
         ResourcePrefix = v.ResourcePrefix,
         Path = v.Path
     }))));
 }