deprecate net452 + generate model based on v1.20.0 (#536)
* remove most net452 related code * first net4 remove * migrate test proj to net5 base * fix format * update sta xunit to fix platform not support * Squashed commit of the following: commit 16e1f819058ad281e1571b356c10d4d6ce77cf38 Author: Boshi Lian <farmer1992@gmail.com> Date: Tue Dec 8 22:42:57 2020 -0800 temp disable some version converter commit 7d1a651f4e7d27d1e61c91f46f73ac8d04ea8ab9 Author: Boshi Lian <farmer1992@gmail.com> Date: Tue Dec 8 20:55:44 2020 -0800 add missing watcher generator files commit 3f3199aad269bf89406ea71d0bc63f1a7ec23245 Author: Boshi Lian <farmer1992@gmail.com> Date: Tue Dec 8 22:14:47 2020 +0000 gen v1.20.0 * bump version to 4.0 * support empty spec * fix version converter for generator * add generated header * fix warning * rerun generator
This commit is contained in:
@@ -1,3 +1,3 @@
|
||||
export KUBERNETES_BRANCH=v1.19.3
|
||||
export KUBERNETES_BRANCH=v1.20.0
|
||||
export CLIENT_VERSION=0.0.1
|
||||
export PACKAGE_NAME=k8s
|
||||
|
||||
@@ -302,7 +302,11 @@ namespace KubernetesWatchGenerator
|
||||
|
||||
if (definition.Properties.TryGetValue("spec", out var specProperty))
|
||||
{
|
||||
interfaces.Add($"ISpec<{GetClassNameForSchemaDefinition(specProperty.Reference)}>");
|
||||
// ignore empty spec placeholder
|
||||
if (specProperty.Reference.ActualProperties.Any())
|
||||
{
|
||||
interfaces.Add($"ISpec<{GetClassNameForSchemaDefinition(specProperty.Reference)}>");
|
||||
}
|
||||
}
|
||||
|
||||
if (_classesWithValidation.Contains(className))
|
||||
|
||||
@@ -1,3 +1,8 @@
|
||||
// <auto-generated>
|
||||
// Code generated by gen/KubernetesWatchGenerator
|
||||
// Changes may cause incorrect behavior and will be lost if the code is
|
||||
// regenerated.
|
||||
// </auto-generated>
|
||||
using AutoMapper;
|
||||
using k8s.Models;
|
||||
|
||||
|
||||
@@ -96,19 +96,8 @@ namespace k8s
|
||||
{
|
||||
if (config.SkipTlsVerify)
|
||||
{
|
||||
#if NET452
|
||||
((WebRequestHandler)HttpClientHandler).ServerCertificateValidationCallback =
|
||||
(sender, certificate, chain, sslPolicyErrors) => true;
|
||||
#elif XAMARINIOS1_0 || MONOANDROID8_1
|
||||
System.Net.ServicePointManager.ServerCertificateValidationCallback +=
|
||||
(sender, certificate, chain, sslPolicyErrors) =>
|
||||
{
|
||||
return true;
|
||||
};
|
||||
#else
|
||||
HttpClientHandler.ServerCertificateCustomValidationCallback =
|
||||
(sender, certificate, chain, sslPolicyErrors) => true;
|
||||
#endif
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -116,48 +105,13 @@ namespace k8s
|
||||
{
|
||||
throw new KubeConfigException("A CA must be set when SkipTlsVerify === false");
|
||||
}
|
||||
#if NET452
|
||||
((WebRequestHandler)HttpClientHandler).ServerCertificateValidationCallback =
|
||||
(sender, certificate, chain, sslPolicyErrors) =>
|
||||
{
|
||||
return Kubernetes.CertificateValidationCallBack(sender, CaCerts, certificate, chain, sslPolicyErrors);
|
||||
};
|
||||
#elif XAMARINIOS1_0
|
||||
System.Net.ServicePointManager.ServerCertificateValidationCallback +=
|
||||
(sender, certificate, chain, sslPolicyErrors) =>
|
||||
{
|
||||
var cert
|
||||
= new X509Certificate2(certificate);
|
||||
return Kubernetes.CertificateValidationCallBack(sender, CaCerts, cert, chain, sslPolicyErrors);
|
||||
};
|
||||
#elif MONOANDROID8_1
|
||||
var certList = new System.Collections.Generic.List<Java.Security.Cert.Certificate>();
|
||||
|
||||
foreach (X509Certificate2 caCert in CaCerts)
|
||||
{
|
||||
using (var certStream
|
||||
= new System.IO.MemoryStream(caCert.RawData))
|
||||
{
|
||||
Java.Security.Cert.Certificate cert
|
||||
= Java.Security.Cert.CertificateFactory.GetInstance("X509").GenerateCertificate(certStream);
|
||||
|
||||
certList.Add(cert);
|
||||
}
|
||||
}
|
||||
|
||||
var handler
|
||||
= (Xamarin.Android.Net.AndroidClientHandler)this.HttpClientHandler;
|
||||
|
||||
handler.TrustedCerts
|
||||
= certList;
|
||||
#else
|
||||
HttpClientHandler.ServerCertificateCustomValidationCallback =
|
||||
(sender, certificate, chain, sslPolicyErrors) =>
|
||||
{
|
||||
return CertificateValidationCallBack(sender, CaCerts, certificate, chain,
|
||||
sslPolicyErrors);
|
||||
};
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
||||
@@ -172,9 +126,6 @@ namespace k8s
|
||||
|
||||
partial void CustomInitialize()
|
||||
{
|
||||
#if NET452
|
||||
ServicePointManager.SecurityProtocol |= SecurityProtocolType.Tls12;
|
||||
#endif
|
||||
DeserializationSettings.Converters.Add(new V1Status.V1StatusObjectViewConverter());
|
||||
}
|
||||
|
||||
|
||||
@@ -7,9 +7,7 @@ using System.Linq;
|
||||
using System.Net;
|
||||
using System.Net.Http;
|
||||
using System.Net.WebSockets;
|
||||
#if (NET452 || NETSTANDARD2_0)
|
||||
using System.Net.Security;
|
||||
#endif
|
||||
using System.Security.Cryptography.X509Certificates;
|
||||
using System.Threading;
|
||||
using System.Threading.Tasks;
|
||||
@@ -297,11 +295,7 @@ namespace k8s
|
||||
}
|
||||
|
||||
// Set Credentials
|
||||
#if NET452
|
||||
foreach (var cert in ((WebRequestHandler)this.HttpClientHandler).ClientCertificates.OfType<X509Certificate2>())
|
||||
#else
|
||||
foreach (var cert in HttpClientHandler.ClientCertificates.OfType<X509Certificate2>())
|
||||
#endif
|
||||
foreach (var cert in this.HttpClientHandler.ClientCertificates.OfType<X509Certificate2>())
|
||||
{
|
||||
webSocketBuilder.AddClientCertificate(cert);
|
||||
}
|
||||
@@ -318,14 +312,14 @@ namespace k8s
|
||||
}
|
||||
}
|
||||
|
||||
#if (NET452 || NETSTANDARD2_0)
|
||||
if (CaCerts != null)
|
||||
#if (NETSTANDARD2_0)
|
||||
if (this.CaCerts != null)
|
||||
{
|
||||
webSocketBuilder.SetServerCertificateValidationCallback(ServerCertificateValidationCallback);
|
||||
}
|
||||
#endif
|
||||
|
||||
#if NETCOREAPP2_1
|
||||
#if NETSTANDARD2_1
|
||||
if (this.CaCerts != null)
|
||||
{
|
||||
webSocketBuilder.ExpectServerCertificate(this.CaCerts);
|
||||
@@ -340,7 +334,7 @@ namespace k8s
|
||||
{
|
||||
webSocketBuilder.Options.AddSubProtocol(webSocketSubProtocol);
|
||||
}
|
||||
#endif // NETCOREAPP2_1
|
||||
#endif // NETSTANDARD2_1
|
||||
|
||||
// Send Request
|
||||
cancellationToken.ThrowIfCancellationRequested();
|
||||
@@ -412,8 +406,8 @@ namespace k8s
|
||||
ServiceClientTracing.Exit(invocationId, null);
|
||||
}
|
||||
|
||||
#if (NET452 || NETSTANDARD2_0)
|
||||
if (CaCerts != null)
|
||||
#if (NETSTANDARD2_0)
|
||||
if (this.CaCerts != null)
|
||||
{
|
||||
webSocketBuilder.CleanupServerCertificateValidationCallback(
|
||||
ServerCertificateValidationCallback);
|
||||
@@ -424,7 +418,7 @@ namespace k8s
|
||||
return webSocket;
|
||||
}
|
||||
|
||||
#if (NET452 || NETSTANDARD2_0)
|
||||
#if (NETSTANDARD2_0)
|
||||
internal bool ServerCertificateValidationCallback(object sender, X509Certificate certificate, X509Chain chain,
|
||||
SslPolicyErrors sslPolicyErrors)
|
||||
{
|
||||
|
||||
@@ -9,12 +9,9 @@
|
||||
<PackageIconUrl>https://raw.githubusercontent.com/kubernetes/kubernetes/master/logo/logo.png</PackageIconUrl>
|
||||
<PackageTags>kubernetes;docker;containers;</PackageTags>
|
||||
|
||||
<LangVersion>7.3</LangVersion>
|
||||
<TargetFrameworks>netstandard2.0;net452;netcoreapp2.1</TargetFrameworks>
|
||||
<TargetFrameworks Condition="'$(OS)' != 'Windows_NT'">netstandard2.0;netcoreapp2.1</TargetFrameworks>
|
||||
<TargetFrameworks>netstandard2.0;netstandard2.1</TargetFrameworks>
|
||||
<RootNamespace>k8s</RootNamespace>
|
||||
<SignAssembly>true</SignAssembly>
|
||||
<AssemblyOriginatorKeyFile>kubernetes-client.snk</AssemblyOriginatorKeyFile>
|
||||
<GenerateDocumentationFile>true</GenerateDocumentationFile>
|
||||
|
||||
<!-- Publish the repository URL in the built .nupkg (in the NuSpec <Repository> element) -->
|
||||
@@ -26,22 +23,13 @@
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<PackageReference Include="AutoMapper" Version="7.0.1" Condition="'$(TargetFramework)' == 'net452'" />
|
||||
<PackageReference Include="AutoMapper" Version="9.0.0" Condition="'$(TargetFramework)' != 'net452'" />
|
||||
<PackageReference Include="AutoMapper" Version="9.0.0" />
|
||||
<PackageReference Include="Fractions" Version="4.0.1" />
|
||||
<PackageReference Include="Nerdbank.GitVersioning" Version="3.3.37" PrivateAssets="all" />
|
||||
<PackageReference Include="Portable.BouncyCastle" Version="1.8.1.3" />
|
||||
<PackageReference Include="Microsoft.Rest.ClientRuntime" Version="2.3.10" />
|
||||
<PackageReference Include="YamlDotNet" Version="8.1.2" />
|
||||
<PackageReference Include="System.Buffers" Version="4.5.1" Condition="'$(TargetFramework)' != 'netcoreapp2.1'" />
|
||||
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.0.0" PrivateAssets="All" />
|
||||
<PackageReference Include="System.Buffers" Version="4.5.1" />
|
||||
</ItemGroup>
|
||||
<ItemGroup Condition="'$(TargetFramework)' == 'net452'">
|
||||
<Reference Include="System.Runtime.InteropServices" />
|
||||
<Reference Include="System.Net.Http" />
|
||||
<Reference Include="System.Net.Http.WebRequest" />
|
||||
<PackageReference Include="System.ValueTuple" Version="4.5.0" />
|
||||
<PackageReference Include="System.Runtime.InteropServices.RuntimeInformation" Version="4.3.0"/>
|
||||
</ItemGroup>
|
||||
|
||||
</Project>
|
||||
|
||||
@@ -357,13 +357,7 @@ namespace k8s
|
||||
{
|
||||
var expiresOn = int.Parse(config["expires-on"]);
|
||||
DateTimeOffset expires;
|
||||
#if NET452
|
||||
var epoch = new DateTimeOffset(1970, 1, 1, 0, 0, 0, TimeSpan.Zero);
|
||||
expires
|
||||
= epoch.AddSeconds(expiresOn);
|
||||
#else
|
||||
expires = DateTimeOffset.FromUnixTimeSeconds(expiresOn);
|
||||
#endif
|
||||
|
||||
if (DateTimeOffset.Compare(
|
||||
expires,
|
||||
|
||||
@@ -9,8 +9,7 @@ namespace k8s
|
||||
{
|
||||
var httpClientHandler = new HttpClientHandler();
|
||||
|
||||
#if !NET452
|
||||
var uriScheme = new Uri(Host).Scheme;
|
||||
var uriScheme = new Uri(this.Host).Scheme;
|
||||
|
||||
if (uriScheme == "https")
|
||||
{
|
||||
@@ -29,7 +28,6 @@ namespace k8s
|
||||
};
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
AddCertificates(httpClientHandler);
|
||||
|
||||
@@ -50,11 +48,7 @@ namespace k8s
|
||||
{
|
||||
var cert = CertUtils.GeneratePfx(this);
|
||||
|
||||
#if NET452
|
||||
((WebRequestHandler)handler).ClientCertificates.Add(cert);
|
||||
#else
|
||||
handler.ClientCertificates.Add(cert);
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -1,8 +1,3 @@
|
||||
using System.Runtime.CompilerServices;
|
||||
|
||||
[assembly:
|
||||
InternalsVisibleTo(
|
||||
"KubernetesClient.Tests, PublicKey=00240000048000009400000006020000002400005253413100040000010001004917ad4e106c573cc5dbb3b7456de8b6c07128ae43de292752b339eb423de60f0db6a6c0cb21e6640fc672cc84df4a772db85df1505e5dd08c98d5d115eed7a7b59c67fe1f4b32fa716b7177743a417b3fcf88606861650a81f565ac6614abbf8b6b7710436edb497a83974165f9fe6995b70af13047a110bf63cdbfa45f89ac")]
|
||||
[assembly:
|
||||
InternalsVisibleTo(
|
||||
"KubernetesClient.Informers.Tests, PublicKey=00240000048000009400000006020000002400005253413100040000010001004917ad4e106c573cc5dbb3b7456de8b6c07128ae43de292752b339eb423de60f0db6a6c0cb21e6640fc672cc84df4a772db85df1505e5dd08c98d5d115eed7a7b59c67fe1f4b32fa716b7177743a417b3fcf88606861650a81f565ac6614abbf8b6b7710436edb497a83974165f9fe6995b70af13047a110bf63cdbfa45f89ac")]
|
||||
[assembly: InternalsVisibleTo("KubernetesClient.Tests")]
|
||||
|
||||
@@ -137,9 +137,23 @@ namespace k8s.Versioning
|
||||
cfg.CreateMap<V1Subject, Rbacv1alpha1Subject>()
|
||||
.ForMember(dest => dest.ApiVersion, opt => opt.Ignore())
|
||||
.ReverseMap();
|
||||
cfg.CreateMap<V1beta1Subject, Rbacv1alpha1Subject>()
|
||||
cfg.CreateMap<Rbacv1beta1Subject, Rbacv1alpha1Subject>()
|
||||
.ForMember(dest => dest.ApiVersion, opt => opt.Ignore())
|
||||
.ReverseMap();
|
||||
cfg.CreateMap<V1Subject, Rbacv1beta1Subject>()
|
||||
.ForMember(dest => dest.ApiGroup, opt => opt.Ignore())
|
||||
.ReverseMap();
|
||||
|
||||
cfg.CreateMap<V1alpha1RuntimeClass, V1RuntimeClass>()
|
||||
.ForMember(dest => dest.Handler, opt => opt.MapFrom(src => src.Spec.RuntimeHandler))
|
||||
.ForMember(dest => dest.Overhead, opt => opt.MapFrom(src => src.Spec.Overhead))
|
||||
.ForMember(dest => dest.Scheduling, opt => opt.MapFrom(src => src.Spec.Scheduling))
|
||||
.ReverseMap();
|
||||
cfg.CreateMap<V1beta1RuntimeClass, V1RuntimeClass>()
|
||||
.ForMember(dest => dest.Handler, opt => opt.MapFrom(src => src.Handler))
|
||||
.ForMember(dest => dest.Overhead, opt => opt.MapFrom(src => src.Overhead))
|
||||
.ForMember(dest => dest.Scheduling, opt => opt.MapFrom(src => src.Scheduling))
|
||||
.ReverseMap();
|
||||
cfg.CreateMap<V1alpha1RuntimeClass, V1beta1RuntimeClass>()
|
||||
.ForMember(dest => dest.Handler, opt => opt.MapFrom(src => src.Spec.RuntimeHandler))
|
||||
.ForMember(dest => dest.Overhead, opt => opt.MapFrom(src => src.Spec.Overhead))
|
||||
@@ -157,11 +171,7 @@ namespace k8s.Versioning
|
||||
cfg.CreateMap<V2beta1ResourceMetricSource, V2beta2MetricTarget>()
|
||||
.ForMember(dest => dest.AverageValue, opt => opt.MapFrom(src => src.TargetAverageValue))
|
||||
.ForMember(dest => dest.Value, opt => opt.Ignore())
|
||||
#if NET452
|
||||
.ForMember(dest => dest.Type, opt => opt.ResolveUsing(src => src.TargetAverageValue != null ? "AverageValue" : "Utilization"))
|
||||
#else
|
||||
.ForMember(dest => dest.Type, opt => opt.MapFrom((src, dest) => src.TargetAverageValue != null ? "AverageValue" : "Utilization"))
|
||||
#endif
|
||||
.ForMember(dest => dest.AverageUtilization, opt => opt.MapFrom(src => src.TargetAverageUtilization));
|
||||
cfg.CreateMap<V2beta1ResourceMetricSource, V2beta2ResourceMetricSource>()
|
||||
.ForMember(dest => dest.Target, opt => opt.MapFrom(src => src));
|
||||
@@ -188,11 +198,7 @@ namespace k8s.Versioning
|
||||
.ReverseMap();
|
||||
cfg.CreateMap<V2beta1PodsMetricSource, V2beta2MetricTarget>()
|
||||
.ForMember(dest => dest.AverageValue, opt => opt.MapFrom(src => src.TargetAverageValue))
|
||||
#if NET452
|
||||
.ForMember(dest => dest.Type, opt => opt.UseValue("AverageValue"))
|
||||
#else
|
||||
.ForMember(dest => dest.Type, opt => opt.MapFrom((src, dest) => "AverageValue"))
|
||||
#endif
|
||||
.ForMember(dest => dest.Value, opt => opt.Ignore())
|
||||
.ForMember(dest => dest.AverageUtilization, opt => opt.Ignore());
|
||||
cfg.CreateMap<V2beta1PodsMetricSource, V2beta2PodsMetricSource>()
|
||||
@@ -225,11 +231,7 @@ namespace k8s.Versioning
|
||||
.ForMember(x => x.Value, opt => opt.MapFrom(src => src.TargetValue))
|
||||
.ForMember(x => x.AverageValue, opt => opt.MapFrom(src => src.TargetAverageValue))
|
||||
.ForMember(x => x.AverageUtilization, opt => opt.Ignore())
|
||||
#if NET452
|
||||
.ForMember(x => x.Type, opt => opt.ResolveUsing(src => src.TargetValue != null ? "Value" : "AverageValue"));
|
||||
#else
|
||||
.ForMember(x => x.Type, opt => opt.MapFrom((src, dest) => src.TargetValue != null ? "Value" : "AverageValue"));
|
||||
#endif
|
||||
cfg.CreateMap<V2beta1ExternalMetricSource, V2beta2ExternalMetricSource>()
|
||||
.ForMember(x => x.Metric, opt => opt.MapFrom(src => src))
|
||||
.ForMember(x => x.Target, opt => opt.MapFrom(src => src));
|
||||
@@ -259,11 +261,7 @@ namespace k8s.Versioning
|
||||
.ForMember(dest => dest.Value, opt => opt.MapFrom(src => src.TargetValue))
|
||||
.ForMember(dest => dest.AverageUtilization, opt => opt.Ignore())
|
||||
.ForMember(dest => dest.AverageValue, opt => opt.MapFrom(src => src.AverageValue))
|
||||
#if NET452
|
||||
.ForMember(dest => dest.Type, opt => opt.ResolveUsing(src => src.TargetValue != null ? "Value" : "AverageValue"));
|
||||
#else
|
||||
.ForMember(dest => dest.Type, opt => opt.MapFrom((src, dest) => src.TargetValue != null ? "Value" : "AverageValue"));
|
||||
#endif
|
||||
cfg.CreateMap<V2beta1ObjectMetricSource, V2beta2ObjectMetricSource>()
|
||||
.ForMember(dest => dest.Metric, opt => opt.MapFrom(src => src))
|
||||
.ForMember(dest => dest.Target, opt => opt.MapFrom(src => src))
|
||||
@@ -421,6 +419,34 @@ namespace k8s.Versioning
|
||||
.ForMember(dest => dest.Regarding, opt => opt.MapFrom(src => src.InvolvedObject))
|
||||
.ForMember(dest => dest.ReportingController, opt => opt.MapFrom(src => src.ReportingComponent))
|
||||
.ReverseMap();
|
||||
|
||||
cfg.CreateMap<V2beta2ContainerResourceMetricSource, V2beta1ContainerResourceMetricSource>()
|
||||
.ForMember(dest => dest.TargetAverageValue, opt => opt.MapFrom(src => src.Target.AverageValue))
|
||||
.ForMember(dest => dest.TargetAverageUtilization, opt => opt.MapFrom(src => src.Target.AverageUtilization))
|
||||
.ReverseMap();
|
||||
|
||||
cfg.CreateMap<V2beta2ContainerResourceMetricStatus, V2beta1ContainerResourceMetricStatus>()
|
||||
.ForMember(dest => dest.CurrentAverageValue, opt => opt.MapFrom(src => src.Current.AverageValue))
|
||||
.ForMember(dest => dest.CurrentAverageUtilization, opt => opt.MapFrom(src => src.Current.AverageUtilization))
|
||||
.ReverseMap();
|
||||
|
||||
|
||||
cfg.CreateMap<V1alpha1RoleBinding, V1beta1RoleBinding>().ReverseMap();
|
||||
cfg.CreateMap<V1alpha1RoleBinding, V1RoleBinding>().ReverseMap();
|
||||
cfg.CreateMap<V1beta1RoleBinding, V1RoleBinding>().ReverseMap();
|
||||
|
||||
cfg.CreateMap<V1beta1CSIDriverSpec, V1CSIDriverSpec>()
|
||||
.ForMember(dest => dest.TokenRequests, opt => opt.Ignore());
|
||||
|
||||
cfg.CreateMap<V1CSIDriverSpec, V1beta1CSIDriverSpec>()
|
||||
.ForMember(dest => dest.TokenRequests, opt => opt.Ignore());
|
||||
|
||||
cfg.CreateMap<V1alpha1ClusterRoleBinding, V1beta1ClusterRoleBinding>().ReverseMap();
|
||||
cfg.CreateMap<V1alpha1ClusterRoleBinding, V1ClusterRoleBinding>().ReverseMap();
|
||||
cfg.CreateMap<V1beta1ClusterRoleBinding, V1ClusterRoleBinding>().ReverseMap();
|
||||
cfg.CreateMap<V1alpha1ClusterRoleBindingList, V1beta1ClusterRoleBindingList>().ReverseMap();
|
||||
cfg.CreateMap<V1alpha1ClusterRoleBindingList, V1ClusterRoleBindingList>().ReverseMap();
|
||||
cfg.CreateMap<V1beta1ClusterRoleBindingList, V1ClusterRoleBindingList>().ReverseMap();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,8 +1,6 @@
|
||||
using System;
|
||||
using System.Net.WebSockets;
|
||||
#if (NET452 || NETSTANDARD2_0)
|
||||
using System.Net.Security;
|
||||
#endif
|
||||
using System.Security.Cryptography.X509Certificates;
|
||||
using System.Threading;
|
||||
using System.Threading.Tasks;
|
||||
@@ -38,7 +36,7 @@ namespace k8s
|
||||
return this;
|
||||
}
|
||||
|
||||
#if (NET452 || NETSTANDARD2_0)
|
||||
#if (NETSTANDARD2_0)
|
||||
public WebSocketBuilder SetServerCertificateValidationCallback(
|
||||
RemoteCertificateValidationCallback validationCallback)
|
||||
{
|
||||
@@ -52,7 +50,7 @@ namespace k8s
|
||||
}
|
||||
#endif
|
||||
|
||||
#if NETCOREAPP2_1
|
||||
#if NETSTANDARD2_1
|
||||
public WebSocketBuilder ExpectServerCertificate(X509Certificate2Collection serverCertificate)
|
||||
{
|
||||
Options.RemoteCertificateValidationCallback
|
||||
@@ -72,7 +70,7 @@ namespace k8s
|
||||
return this;
|
||||
}
|
||||
|
||||
#endif // NETCOREAPP2_1
|
||||
#endif // NETSTANDARD2_1
|
||||
|
||||
public virtual async Task<WebSocket> BuildAndConnectAsync(Uri uri, CancellationToken cancellationToken)
|
||||
{
|
||||
|
||||
404
src/KubernetesClient/generated/IKubernetes.Watch.cs
generated
404
src/KubernetesClient/generated/IKubernetes.Watch.cs
generated
@@ -3649,6 +3649,246 @@ namespace k8s
|
||||
Action onClosed = null,
|
||||
CancellationToken cancellationToken = default(CancellationToken));
|
||||
|
||||
/// <summary>
|
||||
/// watch changes to an object of kind FlowSchema. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.
|
||||
/// </summary>
|
||||
/// <param name="name">
|
||||
/// name of the FlowSchema
|
||||
/// </param>
|
||||
/// <param name="allowWatchBookmarks">
|
||||
/// allowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.
|
||||
/// </param>
|
||||
/// <param name="continue">
|
||||
/// The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the "next key".
|
||||
///
|
||||
/// This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.
|
||||
/// </param>
|
||||
/// <param name="fieldSelector">
|
||||
/// A selector to restrict the list of returned objects by their fields. Defaults to everything.
|
||||
/// </param>
|
||||
/// <param name="labelSelector">
|
||||
/// A selector to restrict the list of returned objects by their labels. Defaults to everything.
|
||||
/// </param>
|
||||
/// <param name="limit">
|
||||
/// limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.
|
||||
///
|
||||
/// The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.
|
||||
/// </param>
|
||||
/// <param name="pretty">
|
||||
/// If 'true', then the output is pretty printed.
|
||||
/// </param>
|
||||
/// <param name="resourceVersion">
|
||||
/// resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.
|
||||
///
|
||||
/// Defaults to unset
|
||||
/// </param>
|
||||
/// <param name="resourceVersionMatch">
|
||||
/// resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.
|
||||
///
|
||||
/// Defaults to unset
|
||||
/// </param>
|
||||
/// <param name="timeoutSeconds">
|
||||
/// Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.
|
||||
/// </param>
|
||||
/// <param name="watch">
|
||||
/// Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.
|
||||
/// </param>
|
||||
/// <param name="customHeaders">
|
||||
/// The headers that will be added to request.
|
||||
/// </param>
|
||||
/// <param name="onEvent">
|
||||
/// The action to invoke when the server sends a new event.
|
||||
/// </param>
|
||||
/// <param name="onError">
|
||||
/// The action to invoke when an error occurs.
|
||||
/// </param>
|
||||
/// <param name="onClosed">
|
||||
/// The action to invoke when the server closes the connection.
|
||||
/// </param>
|
||||
/// <param name="cancellationToken">
|
||||
/// A <see cref="CancellationToken"/> which can be used to cancel the asynchronous operation.
|
||||
/// </param>
|
||||
/// <returns>
|
||||
/// A <see cref="Task"/> which represents the asynchronous operation, and returns a new watcher.
|
||||
/// </returns>
|
||||
Task<Watcher<V1beta1FlowSchema>> WatchFlowSchemaAsync(
|
||||
string name,
|
||||
bool? allowWatchBookmarks = null,
|
||||
string @continue = null,
|
||||
string fieldSelector = null,
|
||||
string labelSelector = null,
|
||||
int? limit = null,
|
||||
bool? pretty = null,
|
||||
string resourceVersion = null,
|
||||
string resourceVersionMatch = null,
|
||||
int? timeoutSeconds = null,
|
||||
bool? watch = null,
|
||||
Dictionary<string, List<string>> customHeaders = null,
|
||||
Action<WatchEventType, V1beta1FlowSchema> onEvent = null,
|
||||
Action<Exception> onError = null,
|
||||
Action onClosed = null,
|
||||
CancellationToken cancellationToken = default(CancellationToken));
|
||||
|
||||
/// <summary>
|
||||
/// watch changes to an object of kind PriorityLevelConfiguration. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.
|
||||
/// </summary>
|
||||
/// <param name="name">
|
||||
/// name of the PriorityLevelConfiguration
|
||||
/// </param>
|
||||
/// <param name="allowWatchBookmarks">
|
||||
/// allowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.
|
||||
/// </param>
|
||||
/// <param name="continue">
|
||||
/// The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the "next key".
|
||||
///
|
||||
/// This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.
|
||||
/// </param>
|
||||
/// <param name="fieldSelector">
|
||||
/// A selector to restrict the list of returned objects by their fields. Defaults to everything.
|
||||
/// </param>
|
||||
/// <param name="labelSelector">
|
||||
/// A selector to restrict the list of returned objects by their labels. Defaults to everything.
|
||||
/// </param>
|
||||
/// <param name="limit">
|
||||
/// limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.
|
||||
///
|
||||
/// The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.
|
||||
/// </param>
|
||||
/// <param name="pretty">
|
||||
/// If 'true', then the output is pretty printed.
|
||||
/// </param>
|
||||
/// <param name="resourceVersion">
|
||||
/// resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.
|
||||
///
|
||||
/// Defaults to unset
|
||||
/// </param>
|
||||
/// <param name="resourceVersionMatch">
|
||||
/// resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.
|
||||
///
|
||||
/// Defaults to unset
|
||||
/// </param>
|
||||
/// <param name="timeoutSeconds">
|
||||
/// Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.
|
||||
/// </param>
|
||||
/// <param name="watch">
|
||||
/// Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.
|
||||
/// </param>
|
||||
/// <param name="customHeaders">
|
||||
/// The headers that will be added to request.
|
||||
/// </param>
|
||||
/// <param name="onEvent">
|
||||
/// The action to invoke when the server sends a new event.
|
||||
/// </param>
|
||||
/// <param name="onError">
|
||||
/// The action to invoke when an error occurs.
|
||||
/// </param>
|
||||
/// <param name="onClosed">
|
||||
/// The action to invoke when the server closes the connection.
|
||||
/// </param>
|
||||
/// <param name="cancellationToken">
|
||||
/// A <see cref="CancellationToken"/> which can be used to cancel the asynchronous operation.
|
||||
/// </param>
|
||||
/// <returns>
|
||||
/// A <see cref="Task"/> which represents the asynchronous operation, and returns a new watcher.
|
||||
/// </returns>
|
||||
Task<Watcher<V1beta1PriorityLevelConfiguration>> WatchPriorityLevelConfigurationAsync(
|
||||
string name,
|
||||
bool? allowWatchBookmarks = null,
|
||||
string @continue = null,
|
||||
string fieldSelector = null,
|
||||
string labelSelector = null,
|
||||
int? limit = null,
|
||||
bool? pretty = null,
|
||||
string resourceVersion = null,
|
||||
string resourceVersionMatch = null,
|
||||
int? timeoutSeconds = null,
|
||||
bool? watch = null,
|
||||
Dictionary<string, List<string>> customHeaders = null,
|
||||
Action<WatchEventType, V1beta1PriorityLevelConfiguration> onEvent = null,
|
||||
Action<Exception> onError = null,
|
||||
Action onClosed = null,
|
||||
CancellationToken cancellationToken = default(CancellationToken));
|
||||
|
||||
/// <summary>
|
||||
/// watch changes to an object of kind StorageVersion. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.
|
||||
/// </summary>
|
||||
/// <param name="name">
|
||||
/// name of the StorageVersion
|
||||
/// </param>
|
||||
/// <param name="allowWatchBookmarks">
|
||||
/// allowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.
|
||||
/// </param>
|
||||
/// <param name="continue">
|
||||
/// The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the "next key".
|
||||
///
|
||||
/// This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.
|
||||
/// </param>
|
||||
/// <param name="fieldSelector">
|
||||
/// A selector to restrict the list of returned objects by their fields. Defaults to everything.
|
||||
/// </param>
|
||||
/// <param name="labelSelector">
|
||||
/// A selector to restrict the list of returned objects by their labels. Defaults to everything.
|
||||
/// </param>
|
||||
/// <param name="limit">
|
||||
/// limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.
|
||||
///
|
||||
/// The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.
|
||||
/// </param>
|
||||
/// <param name="pretty">
|
||||
/// If 'true', then the output is pretty printed.
|
||||
/// </param>
|
||||
/// <param name="resourceVersion">
|
||||
/// resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.
|
||||
///
|
||||
/// Defaults to unset
|
||||
/// </param>
|
||||
/// <param name="resourceVersionMatch">
|
||||
/// resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.
|
||||
///
|
||||
/// Defaults to unset
|
||||
/// </param>
|
||||
/// <param name="timeoutSeconds">
|
||||
/// Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.
|
||||
/// </param>
|
||||
/// <param name="watch">
|
||||
/// Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.
|
||||
/// </param>
|
||||
/// <param name="customHeaders">
|
||||
/// The headers that will be added to request.
|
||||
/// </param>
|
||||
/// <param name="onEvent">
|
||||
/// The action to invoke when the server sends a new event.
|
||||
/// </param>
|
||||
/// <param name="onError">
|
||||
/// The action to invoke when an error occurs.
|
||||
/// </param>
|
||||
/// <param name="onClosed">
|
||||
/// The action to invoke when the server closes the connection.
|
||||
/// </param>
|
||||
/// <param name="cancellationToken">
|
||||
/// A <see cref="CancellationToken"/> which can be used to cancel the asynchronous operation.
|
||||
/// </param>
|
||||
/// <returns>
|
||||
/// A <see cref="Task"/> which represents the asynchronous operation, and returns a new watcher.
|
||||
/// </returns>
|
||||
Task<Watcher<V1alpha1StorageVersion>> WatchStorageVersionAsync(
|
||||
string name,
|
||||
bool? allowWatchBookmarks = null,
|
||||
string @continue = null,
|
||||
string fieldSelector = null,
|
||||
string labelSelector = null,
|
||||
int? limit = null,
|
||||
bool? pretty = null,
|
||||
string resourceVersion = null,
|
||||
string resourceVersionMatch = null,
|
||||
int? timeoutSeconds = null,
|
||||
bool? watch = null,
|
||||
Dictionary<string, List<string>> customHeaders = null,
|
||||
Action<WatchEventType, V1alpha1StorageVersion> onEvent = null,
|
||||
Action<Exception> onError = null,
|
||||
Action onClosed = null,
|
||||
CancellationToken cancellationToken = default(CancellationToken));
|
||||
|
||||
/// <summary>
|
||||
/// watch changes to an object of kind IngressClass. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.
|
||||
/// </summary>
|
||||
@@ -4061,6 +4301,86 @@ namespace k8s
|
||||
Action onClosed = null,
|
||||
CancellationToken cancellationToken = default(CancellationToken));
|
||||
|
||||
/// <summary>
|
||||
/// watch changes to an object of kind RuntimeClass. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.
|
||||
/// </summary>
|
||||
/// <param name="name">
|
||||
/// name of the RuntimeClass
|
||||
/// </param>
|
||||
/// <param name="allowWatchBookmarks">
|
||||
/// allowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.
|
||||
/// </param>
|
||||
/// <param name="continue">
|
||||
/// The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the "next key".
|
||||
///
|
||||
/// This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.
|
||||
/// </param>
|
||||
/// <param name="fieldSelector">
|
||||
/// A selector to restrict the list of returned objects by their fields. Defaults to everything.
|
||||
/// </param>
|
||||
/// <param name="labelSelector">
|
||||
/// A selector to restrict the list of returned objects by their labels. Defaults to everything.
|
||||
/// </param>
|
||||
/// <param name="limit">
|
||||
/// limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.
|
||||
///
|
||||
/// The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.
|
||||
/// </param>
|
||||
/// <param name="pretty">
|
||||
/// If 'true', then the output is pretty printed.
|
||||
/// </param>
|
||||
/// <param name="resourceVersion">
|
||||
/// resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.
|
||||
///
|
||||
/// Defaults to unset
|
||||
/// </param>
|
||||
/// <param name="resourceVersionMatch">
|
||||
/// resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.
|
||||
///
|
||||
/// Defaults to unset
|
||||
/// </param>
|
||||
/// <param name="timeoutSeconds">
|
||||
/// Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.
|
||||
/// </param>
|
||||
/// <param name="watch">
|
||||
/// Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.
|
||||
/// </param>
|
||||
/// <param name="customHeaders">
|
||||
/// The headers that will be added to request.
|
||||
/// </param>
|
||||
/// <param name="onEvent">
|
||||
/// The action to invoke when the server sends a new event.
|
||||
/// </param>
|
||||
/// <param name="onError">
|
||||
/// The action to invoke when an error occurs.
|
||||
/// </param>
|
||||
/// <param name="onClosed">
|
||||
/// The action to invoke when the server closes the connection.
|
||||
/// </param>
|
||||
/// <param name="cancellationToken">
|
||||
/// A <see cref="CancellationToken"/> which can be used to cancel the asynchronous operation.
|
||||
/// </param>
|
||||
/// <returns>
|
||||
/// A <see cref="Task"/> which represents the asynchronous operation, and returns a new watcher.
|
||||
/// </returns>
|
||||
Task<Watcher<V1RuntimeClass>> WatchRuntimeClassAsync(
|
||||
string name,
|
||||
bool? allowWatchBookmarks = null,
|
||||
string @continue = null,
|
||||
string fieldSelector = null,
|
||||
string labelSelector = null,
|
||||
int? limit = null,
|
||||
bool? pretty = null,
|
||||
string resourceVersion = null,
|
||||
string resourceVersionMatch = null,
|
||||
int? timeoutSeconds = null,
|
||||
bool? watch = null,
|
||||
Dictionary<string, List<string>> customHeaders = null,
|
||||
Action<WatchEventType, V1RuntimeClass> onEvent = null,
|
||||
Action<Exception> onError = null,
|
||||
Action onClosed = null,
|
||||
CancellationToken cancellationToken = default(CancellationToken));
|
||||
|
||||
/// <summary>
|
||||
/// watch changes to an object of kind RuntimeClass. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.
|
||||
/// </summary>
|
||||
@@ -5609,90 +5929,6 @@ namespace k8s
|
||||
Action onClosed = null,
|
||||
CancellationToken cancellationToken = default(CancellationToken));
|
||||
|
||||
/// <summary>
|
||||
/// watch changes to an object of kind PodPreset. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.
|
||||
/// </summary>
|
||||
/// <param name="name">
|
||||
/// name of the PodPreset
|
||||
/// </param>
|
||||
/// <param name="namespace">
|
||||
/// object name and auth scope, such as for teams and projects
|
||||
/// </param>
|
||||
/// <param name="allowWatchBookmarks">
|
||||
/// allowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.
|
||||
/// </param>
|
||||
/// <param name="continue">
|
||||
/// The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the "next key".
|
||||
///
|
||||
/// This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.
|
||||
/// </param>
|
||||
/// <param name="fieldSelector">
|
||||
/// A selector to restrict the list of returned objects by their fields. Defaults to everything.
|
||||
/// </param>
|
||||
/// <param name="labelSelector">
|
||||
/// A selector to restrict the list of returned objects by their labels. Defaults to everything.
|
||||
/// </param>
|
||||
/// <param name="limit">
|
||||
/// limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.
|
||||
///
|
||||
/// The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.
|
||||
/// </param>
|
||||
/// <param name="pretty">
|
||||
/// If 'true', then the output is pretty printed.
|
||||
/// </param>
|
||||
/// <param name="resourceVersion">
|
||||
/// resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.
|
||||
///
|
||||
/// Defaults to unset
|
||||
/// </param>
|
||||
/// <param name="resourceVersionMatch">
|
||||
/// resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.
|
||||
///
|
||||
/// Defaults to unset
|
||||
/// </param>
|
||||
/// <param name="timeoutSeconds">
|
||||
/// Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.
|
||||
/// </param>
|
||||
/// <param name="watch">
|
||||
/// Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.
|
||||
/// </param>
|
||||
/// <param name="customHeaders">
|
||||
/// The headers that will be added to request.
|
||||
/// </param>
|
||||
/// <param name="onEvent">
|
||||
/// The action to invoke when the server sends a new event.
|
||||
/// </param>
|
||||
/// <param name="onError">
|
||||
/// The action to invoke when an error occurs.
|
||||
/// </param>
|
||||
/// <param name="onClosed">
|
||||
/// The action to invoke when the server closes the connection.
|
||||
/// </param>
|
||||
/// <param name="cancellationToken">
|
||||
/// A <see cref="CancellationToken"/> which can be used to cancel the asynchronous operation.
|
||||
/// </param>
|
||||
/// <returns>
|
||||
/// A <see cref="Task"/> which represents the asynchronous operation, and returns a new watcher.
|
||||
/// </returns>
|
||||
Task<Watcher<V1alpha1PodPreset>> WatchNamespacedPodPresetAsync(
|
||||
string name,
|
||||
string @namespace,
|
||||
bool? allowWatchBookmarks = null,
|
||||
string @continue = null,
|
||||
string fieldSelector = null,
|
||||
string labelSelector = null,
|
||||
int? limit = null,
|
||||
bool? pretty = null,
|
||||
string resourceVersion = null,
|
||||
string resourceVersionMatch = null,
|
||||
int? timeoutSeconds = null,
|
||||
bool? watch = null,
|
||||
Dictionary<string, List<string>> customHeaders = null,
|
||||
Action<WatchEventType, V1alpha1PodPreset> onEvent = null,
|
||||
Action<Exception> onError = null,
|
||||
Action onClosed = null,
|
||||
CancellationToken cancellationToken = default(CancellationToken));
|
||||
|
||||
/// <summary>
|
||||
/// watch changes to an object of kind CSIDriver. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.
|
||||
/// </summary>
|
||||
|
||||
2558
src/KubernetesClient/generated/IKubernetes.cs
generated
2558
src/KubernetesClient/generated/IKubernetes.cs
generated
File diff suppressed because it is too large
Load Diff
116
src/KubernetesClient/generated/Kubernetes.Watch.cs
generated
116
src/KubernetesClient/generated/Kubernetes.Watch.cs
generated
@@ -1054,6 +1054,75 @@ namespace k8s
|
||||
return WatchObjectAsync<V1alpha1PriorityLevelConfiguration>(path: path, @continue: @continue, fieldSelector: fieldSelector, labelSelector: labelSelector, limit: limit, pretty: pretty, timeoutSeconds: timeoutSeconds, resourceVersion: resourceVersion, customHeaders: customHeaders, onEvent: onEvent, onError: onError, onClosed: onClosed, cancellationToken: cancellationToken);
|
||||
}
|
||||
|
||||
/// <inheritdoc/>
|
||||
public Task<Watcher<V1beta1FlowSchema>> WatchFlowSchemaAsync(
|
||||
string name,
|
||||
bool? allowWatchBookmarks = null,
|
||||
string @continue = null,
|
||||
string fieldSelector = null,
|
||||
string labelSelector = null,
|
||||
int? limit = null,
|
||||
bool? pretty = null,
|
||||
string resourceVersion = null,
|
||||
string resourceVersionMatch = null,
|
||||
int? timeoutSeconds = null,
|
||||
bool? watch = null,
|
||||
Dictionary<string, List<string>> customHeaders = null,
|
||||
Action<WatchEventType, V1beta1FlowSchema> onEvent = null,
|
||||
Action<Exception> onError = null,
|
||||
Action onClosed = null,
|
||||
CancellationToken cancellationToken = default(CancellationToken))
|
||||
{
|
||||
string path = $"apis/flowcontrol.apiserver.k8s.io/v1beta1/watch/flowschemas/{name}";
|
||||
return WatchObjectAsync<V1beta1FlowSchema>(path: path, @continue: @continue, fieldSelector: fieldSelector, labelSelector: labelSelector, limit: limit, pretty: pretty, timeoutSeconds: timeoutSeconds, resourceVersion: resourceVersion, customHeaders: customHeaders, onEvent: onEvent, onError: onError, onClosed: onClosed, cancellationToken: cancellationToken);
|
||||
}
|
||||
|
||||
/// <inheritdoc/>
|
||||
public Task<Watcher<V1beta1PriorityLevelConfiguration>> WatchPriorityLevelConfigurationAsync(
|
||||
string name,
|
||||
bool? allowWatchBookmarks = null,
|
||||
string @continue = null,
|
||||
string fieldSelector = null,
|
||||
string labelSelector = null,
|
||||
int? limit = null,
|
||||
bool? pretty = null,
|
||||
string resourceVersion = null,
|
||||
string resourceVersionMatch = null,
|
||||
int? timeoutSeconds = null,
|
||||
bool? watch = null,
|
||||
Dictionary<string, List<string>> customHeaders = null,
|
||||
Action<WatchEventType, V1beta1PriorityLevelConfiguration> onEvent = null,
|
||||
Action<Exception> onError = null,
|
||||
Action onClosed = null,
|
||||
CancellationToken cancellationToken = default(CancellationToken))
|
||||
{
|
||||
string path = $"apis/flowcontrol.apiserver.k8s.io/v1beta1/watch/prioritylevelconfigurations/{name}";
|
||||
return WatchObjectAsync<V1beta1PriorityLevelConfiguration>(path: path, @continue: @continue, fieldSelector: fieldSelector, labelSelector: labelSelector, limit: limit, pretty: pretty, timeoutSeconds: timeoutSeconds, resourceVersion: resourceVersion, customHeaders: customHeaders, onEvent: onEvent, onError: onError, onClosed: onClosed, cancellationToken: cancellationToken);
|
||||
}
|
||||
|
||||
/// <inheritdoc/>
|
||||
public Task<Watcher<V1alpha1StorageVersion>> WatchStorageVersionAsync(
|
||||
string name,
|
||||
bool? allowWatchBookmarks = null,
|
||||
string @continue = null,
|
||||
string fieldSelector = null,
|
||||
string labelSelector = null,
|
||||
int? limit = null,
|
||||
bool? pretty = null,
|
||||
string resourceVersion = null,
|
||||
string resourceVersionMatch = null,
|
||||
int? timeoutSeconds = null,
|
||||
bool? watch = null,
|
||||
Dictionary<string, List<string>> customHeaders = null,
|
||||
Action<WatchEventType, V1alpha1StorageVersion> onEvent = null,
|
||||
Action<Exception> onError = null,
|
||||
Action onClosed = null,
|
||||
CancellationToken cancellationToken = default(CancellationToken))
|
||||
{
|
||||
string path = $"apis/internal.apiserver.k8s.io/v1alpha1/watch/storageversions/{name}";
|
||||
return WatchObjectAsync<V1alpha1StorageVersion>(path: path, @continue: @continue, fieldSelector: fieldSelector, labelSelector: labelSelector, limit: limit, pretty: pretty, timeoutSeconds: timeoutSeconds, resourceVersion: resourceVersion, customHeaders: customHeaders, onEvent: onEvent, onError: onError, onClosed: onClosed, cancellationToken: cancellationToken);
|
||||
}
|
||||
|
||||
/// <inheritdoc/>
|
||||
public Task<Watcher<V1IngressClass>> WatchIngressClassAsync(
|
||||
string name,
|
||||
@@ -1172,6 +1241,29 @@ namespace k8s
|
||||
return WatchObjectAsync<Networkingv1beta1Ingress>(path: path, @continue: @continue, fieldSelector: fieldSelector, labelSelector: labelSelector, limit: limit, pretty: pretty, timeoutSeconds: timeoutSeconds, resourceVersion: resourceVersion, customHeaders: customHeaders, onEvent: onEvent, onError: onError, onClosed: onClosed, cancellationToken: cancellationToken);
|
||||
}
|
||||
|
||||
/// <inheritdoc/>
|
||||
public Task<Watcher<V1RuntimeClass>> WatchRuntimeClassAsync(
|
||||
string name,
|
||||
bool? allowWatchBookmarks = null,
|
||||
string @continue = null,
|
||||
string fieldSelector = null,
|
||||
string labelSelector = null,
|
||||
int? limit = null,
|
||||
bool? pretty = null,
|
||||
string resourceVersion = null,
|
||||
string resourceVersionMatch = null,
|
||||
int? timeoutSeconds = null,
|
||||
bool? watch = null,
|
||||
Dictionary<string, List<string>> customHeaders = null,
|
||||
Action<WatchEventType, V1RuntimeClass> onEvent = null,
|
||||
Action<Exception> onError = null,
|
||||
Action onClosed = null,
|
||||
CancellationToken cancellationToken = default(CancellationToken))
|
||||
{
|
||||
string path = $"apis/node.k8s.io/v1/watch/runtimeclasses/{name}";
|
||||
return WatchObjectAsync<V1RuntimeClass>(path: path, @continue: @continue, fieldSelector: fieldSelector, labelSelector: labelSelector, limit: limit, pretty: pretty, timeoutSeconds: timeoutSeconds, resourceVersion: resourceVersion, customHeaders: customHeaders, onEvent: onEvent, onError: onError, onClosed: onClosed, cancellationToken: cancellationToken);
|
||||
}
|
||||
|
||||
/// <inheritdoc/>
|
||||
public Task<Watcher<V1alpha1RuntimeClass>> WatchRuntimeClassAsync(
|
||||
string name,
|
||||
@@ -1616,30 +1708,6 @@ namespace k8s
|
||||
return WatchObjectAsync<V1beta1PriorityClass>(path: path, @continue: @continue, fieldSelector: fieldSelector, labelSelector: labelSelector, limit: limit, pretty: pretty, timeoutSeconds: timeoutSeconds, resourceVersion: resourceVersion, customHeaders: customHeaders, onEvent: onEvent, onError: onError, onClosed: onClosed, cancellationToken: cancellationToken);
|
||||
}
|
||||
|
||||
/// <inheritdoc/>
|
||||
public Task<Watcher<V1alpha1PodPreset>> WatchNamespacedPodPresetAsync(
|
||||
string name,
|
||||
string @namespace,
|
||||
bool? allowWatchBookmarks = null,
|
||||
string @continue = null,
|
||||
string fieldSelector = null,
|
||||
string labelSelector = null,
|
||||
int? limit = null,
|
||||
bool? pretty = null,
|
||||
string resourceVersion = null,
|
||||
string resourceVersionMatch = null,
|
||||
int? timeoutSeconds = null,
|
||||
bool? watch = null,
|
||||
Dictionary<string, List<string>> customHeaders = null,
|
||||
Action<WatchEventType, V1alpha1PodPreset> onEvent = null,
|
||||
Action<Exception> onError = null,
|
||||
Action onClosed = null,
|
||||
CancellationToken cancellationToken = default(CancellationToken))
|
||||
{
|
||||
string path = $"apis/settings.k8s.io/v1alpha1/watch/namespaces/{@namespace}/podpresets/{name}";
|
||||
return WatchObjectAsync<V1alpha1PodPreset>(path: path, @continue: @continue, fieldSelector: fieldSelector, labelSelector: labelSelector, limit: limit, pretty: pretty, timeoutSeconds: timeoutSeconds, resourceVersion: resourceVersion, customHeaders: customHeaders, onEvent: onEvent, onError: onError, onClosed: onClosed, cancellationToken: cancellationToken);
|
||||
}
|
||||
|
||||
/// <inheritdoc/>
|
||||
public Task<Watcher<V1CSIDriver>> WatchCSIDriverAsync(
|
||||
string name,
|
||||
|
||||
11242
src/KubernetesClient/generated/Kubernetes.cs
generated
11242
src/KubernetesClient/generated/Kubernetes.cs
generated
File diff suppressed because it is too large
Load Diff
5304
src/KubernetesClient/generated/KubernetesExtensions.cs
generated
5304
src/KubernetesClient/generated/KubernetesExtensions.cs
generated
File diff suppressed because it is too large
Load Diff
82
src/KubernetesClient/generated/ModelExtensions.cs
generated
82
src/KubernetesClient/generated/ModelExtensions.cs
generated
@@ -69,6 +69,22 @@ namespace k8s.Models
|
||||
public const string KubeGroup = "admissionregistration.k8s.io";
|
||||
}
|
||||
|
||||
[KubernetesEntity(Group="internal.apiserver.k8s.io", Kind="StorageVersion", ApiVersion="v1alpha1", PluralName="storageversions")]
|
||||
public partial class V1alpha1StorageVersion : IKubernetesObject<V1ObjectMeta>, IValidate
|
||||
{
|
||||
public const string KubeApiVersion = "v1alpha1";
|
||||
public const string KubeKind = "StorageVersion";
|
||||
public const string KubeGroup = "internal.apiserver.k8s.io";
|
||||
}
|
||||
|
||||
[KubernetesEntity(Group="internal.apiserver.k8s.io", Kind="StorageVersionList", ApiVersion="v1alpha1", PluralName="storageversions")]
|
||||
public partial class V1alpha1StorageVersionList : IKubernetesObject<V1ListMeta>, IItems<V1alpha1StorageVersion>, IValidate
|
||||
{
|
||||
public const string KubeApiVersion = "v1alpha1";
|
||||
public const string KubeKind = "StorageVersionList";
|
||||
public const string KubeGroup = "internal.apiserver.k8s.io";
|
||||
}
|
||||
|
||||
[KubernetesEntity(Group="apps", Kind="ControllerRevision", ApiVersion="v1", PluralName="controllerrevisions")]
|
||||
public partial class V1ControllerRevision : IKubernetesObject<V1ObjectMeta>, IValidate
|
||||
{
|
||||
@@ -150,7 +166,7 @@ namespace k8s.Models
|
||||
}
|
||||
|
||||
[KubernetesEntity(Group="authentication.k8s.io", Kind="TokenRequest", ApiVersion="v1", PluralName=null)]
|
||||
public partial class V1TokenRequest : IKubernetesObject<V1ObjectMeta>, ISpec<V1TokenRequestSpec>, IValidate
|
||||
public partial class Authenticationv1TokenRequest : IKubernetesObject<V1ObjectMeta>, ISpec<V1TokenRequestSpec>, IValidate
|
||||
{
|
||||
public const string KubeApiVersion = "v1";
|
||||
public const string KubeKind = "TokenRequest";
|
||||
@@ -765,6 +781,38 @@ namespace k8s.Models
|
||||
public const string KubeGroup = "flowcontrol.apiserver.k8s.io";
|
||||
}
|
||||
|
||||
[KubernetesEntity(Group="flowcontrol.apiserver.k8s.io", Kind="FlowSchema", ApiVersion="v1beta1", PluralName="flowschemas")]
|
||||
public partial class V1beta1FlowSchema : IKubernetesObject<V1ObjectMeta>, ISpec<V1beta1FlowSchemaSpec>, IValidate
|
||||
{
|
||||
public const string KubeApiVersion = "v1beta1";
|
||||
public const string KubeKind = "FlowSchema";
|
||||
public const string KubeGroup = "flowcontrol.apiserver.k8s.io";
|
||||
}
|
||||
|
||||
[KubernetesEntity(Group="flowcontrol.apiserver.k8s.io", Kind="FlowSchemaList", ApiVersion="v1beta1", PluralName="flowschemas")]
|
||||
public partial class V1beta1FlowSchemaList : IKubernetesObject<V1ListMeta>, IItems<V1beta1FlowSchema>, IValidate
|
||||
{
|
||||
public const string KubeApiVersion = "v1beta1";
|
||||
public const string KubeKind = "FlowSchemaList";
|
||||
public const string KubeGroup = "flowcontrol.apiserver.k8s.io";
|
||||
}
|
||||
|
||||
[KubernetesEntity(Group="flowcontrol.apiserver.k8s.io", Kind="PriorityLevelConfiguration", ApiVersion="v1beta1", PluralName="prioritylevelconfigurations")]
|
||||
public partial class V1beta1PriorityLevelConfiguration : IKubernetesObject<V1ObjectMeta>, ISpec<V1beta1PriorityLevelConfigurationSpec>, IValidate
|
||||
{
|
||||
public const string KubeApiVersion = "v1beta1";
|
||||
public const string KubeKind = "PriorityLevelConfiguration";
|
||||
public const string KubeGroup = "flowcontrol.apiserver.k8s.io";
|
||||
}
|
||||
|
||||
[KubernetesEntity(Group="flowcontrol.apiserver.k8s.io", Kind="PriorityLevelConfigurationList", ApiVersion="v1beta1", PluralName="prioritylevelconfigurations")]
|
||||
public partial class V1beta1PriorityLevelConfigurationList : IKubernetesObject<V1ListMeta>, IItems<V1beta1PriorityLevelConfiguration>, IValidate
|
||||
{
|
||||
public const string KubeApiVersion = "v1beta1";
|
||||
public const string KubeKind = "PriorityLevelConfigurationList";
|
||||
public const string KubeGroup = "flowcontrol.apiserver.k8s.io";
|
||||
}
|
||||
|
||||
[KubernetesEntity(Group="networking.k8s.io", Kind="Ingress", ApiVersion="v1", PluralName="ingresses")]
|
||||
public partial class V1Ingress : IKubernetesObject<V1ObjectMeta>, ISpec<V1IngressSpec>, IValidate
|
||||
{
|
||||
@@ -845,6 +893,22 @@ namespace k8s.Models
|
||||
public const string KubeGroup = "networking.k8s.io";
|
||||
}
|
||||
|
||||
[KubernetesEntity(Group="node.k8s.io", Kind="RuntimeClass", ApiVersion="v1", PluralName="runtimeclasses")]
|
||||
public partial class V1RuntimeClass : IKubernetesObject<V1ObjectMeta>, IValidate
|
||||
{
|
||||
public const string KubeApiVersion = "v1";
|
||||
public const string KubeKind = "RuntimeClass";
|
||||
public const string KubeGroup = "node.k8s.io";
|
||||
}
|
||||
|
||||
[KubernetesEntity(Group="node.k8s.io", Kind="RuntimeClassList", ApiVersion="v1", PluralName="runtimeclasses")]
|
||||
public partial class V1RuntimeClassList : IKubernetesObject<V1ListMeta>, IItems<V1RuntimeClass>, IValidate
|
||||
{
|
||||
public const string KubeApiVersion = "v1";
|
||||
public const string KubeKind = "RuntimeClassList";
|
||||
public const string KubeGroup = "node.k8s.io";
|
||||
}
|
||||
|
||||
[KubernetesEntity(Group="node.k8s.io", Kind="RuntimeClass", ApiVersion="v1alpha1", PluralName="runtimeclasses")]
|
||||
public partial class V1alpha1RuntimeClass : IKubernetesObject<V1ObjectMeta>, ISpec<V1alpha1RuntimeClassSpec>, IValidate
|
||||
{
|
||||
@@ -1157,22 +1221,6 @@ namespace k8s.Models
|
||||
public const string KubeGroup = "scheduling.k8s.io";
|
||||
}
|
||||
|
||||
[KubernetesEntity(Group="settings.k8s.io", Kind="PodPreset", ApiVersion="v1alpha1", PluralName="podpresets")]
|
||||
public partial class V1alpha1PodPreset : IKubernetesObject<V1ObjectMeta>, ISpec<V1alpha1PodPresetSpec>
|
||||
{
|
||||
public const string KubeApiVersion = "v1alpha1";
|
||||
public const string KubeKind = "PodPreset";
|
||||
public const string KubeGroup = "settings.k8s.io";
|
||||
}
|
||||
|
||||
[KubernetesEntity(Group="settings.k8s.io", Kind="PodPresetList", ApiVersion="v1alpha1", PluralName="podpresets")]
|
||||
public partial class V1alpha1PodPresetList : IKubernetesObject<V1ListMeta>, IItems<V1alpha1PodPreset>, IValidate
|
||||
{
|
||||
public const string KubeApiVersion = "v1alpha1";
|
||||
public const string KubeKind = "PodPresetList";
|
||||
public const string KubeGroup = "settings.k8s.io";
|
||||
}
|
||||
|
||||
[KubernetesEntity(Group="storage.k8s.io", Kind="CSIDriver", ApiVersion="v1", PluralName="csidrivers")]
|
||||
public partial class V1CSIDriver : IKubernetesObject<V1ObjectMeta>, ISpec<V1CSIDriverSpec>, IValidate
|
||||
{
|
||||
|
||||
272
src/KubernetesClient/generated/ModelOperators.cs
generated
272
src/KubernetesClient/generated/ModelOperators.cs
generated
@@ -247,6 +247,22 @@ namespace k8s.Models
|
||||
{
|
||||
public static explicit operator V1ClusterRoleList(V1beta1ClusterRoleList s) => VersionConverter.Mapper.Map<V1ClusterRoleList>(s);
|
||||
}
|
||||
public partial class V2beta1ContainerResourceMetricSource
|
||||
{
|
||||
public static explicit operator V2beta1ContainerResourceMetricSource(V2beta2ContainerResourceMetricSource s) => VersionConverter.Mapper.Map<V2beta1ContainerResourceMetricSource>(s);
|
||||
}
|
||||
public partial class V2beta2ContainerResourceMetricSource
|
||||
{
|
||||
public static explicit operator V2beta2ContainerResourceMetricSource(V2beta1ContainerResourceMetricSource s) => VersionConverter.Mapper.Map<V2beta2ContainerResourceMetricSource>(s);
|
||||
}
|
||||
public partial class V2beta1ContainerResourceMetricStatus
|
||||
{
|
||||
public static explicit operator V2beta1ContainerResourceMetricStatus(V2beta2ContainerResourceMetricStatus s) => VersionConverter.Mapper.Map<V2beta1ContainerResourceMetricStatus>(s);
|
||||
}
|
||||
public partial class V2beta2ContainerResourceMetricStatus
|
||||
{
|
||||
public static explicit operator V2beta2ContainerResourceMetricStatus(V2beta1ContainerResourceMetricStatus s) => VersionConverter.Mapper.Map<V2beta2ContainerResourceMetricStatus>(s);
|
||||
}
|
||||
public partial class V1beta1CronJob
|
||||
{
|
||||
public static explicit operator V1beta1CronJob(V2alpha1CronJob s) => VersionConverter.Mapper.Map<V1beta1CronJob>(s);
|
||||
@@ -487,6 +503,70 @@ namespace k8s.Models
|
||||
{
|
||||
public static explicit operator V2beta2ExternalMetricStatus(V2beta1ExternalMetricStatus s) => VersionConverter.Mapper.Map<V2beta2ExternalMetricStatus>(s);
|
||||
}
|
||||
public partial class Flowcontrolv1alpha1Subject
|
||||
{
|
||||
public static explicit operator Flowcontrolv1alpha1Subject(Flowcontrolv1beta1Subject s) => VersionConverter.Mapper.Map<Flowcontrolv1alpha1Subject>(s);
|
||||
}
|
||||
public partial class Flowcontrolv1beta1Subject
|
||||
{
|
||||
public static explicit operator Flowcontrolv1beta1Subject(Flowcontrolv1alpha1Subject s) => VersionConverter.Mapper.Map<Flowcontrolv1beta1Subject>(s);
|
||||
}
|
||||
public partial class V1alpha1FlowDistinguisherMethod
|
||||
{
|
||||
public static explicit operator V1alpha1FlowDistinguisherMethod(V1beta1FlowDistinguisherMethod s) => VersionConverter.Mapper.Map<V1alpha1FlowDistinguisherMethod>(s);
|
||||
}
|
||||
public partial class V1beta1FlowDistinguisherMethod
|
||||
{
|
||||
public static explicit operator V1beta1FlowDistinguisherMethod(V1alpha1FlowDistinguisherMethod s) => VersionConverter.Mapper.Map<V1beta1FlowDistinguisherMethod>(s);
|
||||
}
|
||||
public partial class V1alpha1FlowSchema
|
||||
{
|
||||
public static explicit operator V1alpha1FlowSchema(V1beta1FlowSchema s) => VersionConverter.Mapper.Map<V1alpha1FlowSchema>(s);
|
||||
}
|
||||
public partial class V1beta1FlowSchema
|
||||
{
|
||||
public static explicit operator V1beta1FlowSchema(V1alpha1FlowSchema s) => VersionConverter.Mapper.Map<V1beta1FlowSchema>(s);
|
||||
}
|
||||
public partial class V1alpha1FlowSchemaCondition
|
||||
{
|
||||
public static explicit operator V1alpha1FlowSchemaCondition(V1beta1FlowSchemaCondition s) => VersionConverter.Mapper.Map<V1alpha1FlowSchemaCondition>(s);
|
||||
}
|
||||
public partial class V1beta1FlowSchemaCondition
|
||||
{
|
||||
public static explicit operator V1beta1FlowSchemaCondition(V1alpha1FlowSchemaCondition s) => VersionConverter.Mapper.Map<V1beta1FlowSchemaCondition>(s);
|
||||
}
|
||||
public partial class V1alpha1FlowSchemaList
|
||||
{
|
||||
public static explicit operator V1alpha1FlowSchemaList(V1beta1FlowSchemaList s) => VersionConverter.Mapper.Map<V1alpha1FlowSchemaList>(s);
|
||||
}
|
||||
public partial class V1beta1FlowSchemaList
|
||||
{
|
||||
public static explicit operator V1beta1FlowSchemaList(V1alpha1FlowSchemaList s) => VersionConverter.Mapper.Map<V1beta1FlowSchemaList>(s);
|
||||
}
|
||||
public partial class V1alpha1FlowSchemaSpec
|
||||
{
|
||||
public static explicit operator V1alpha1FlowSchemaSpec(V1beta1FlowSchemaSpec s) => VersionConverter.Mapper.Map<V1alpha1FlowSchemaSpec>(s);
|
||||
}
|
||||
public partial class V1beta1FlowSchemaSpec
|
||||
{
|
||||
public static explicit operator V1beta1FlowSchemaSpec(V1alpha1FlowSchemaSpec s) => VersionConverter.Mapper.Map<V1beta1FlowSchemaSpec>(s);
|
||||
}
|
||||
public partial class V1alpha1FlowSchemaStatus
|
||||
{
|
||||
public static explicit operator V1alpha1FlowSchemaStatus(V1beta1FlowSchemaStatus s) => VersionConverter.Mapper.Map<V1alpha1FlowSchemaStatus>(s);
|
||||
}
|
||||
public partial class V1beta1FlowSchemaStatus
|
||||
{
|
||||
public static explicit operator V1beta1FlowSchemaStatus(V1alpha1FlowSchemaStatus s) => VersionConverter.Mapper.Map<V1beta1FlowSchemaStatus>(s);
|
||||
}
|
||||
public partial class V1alpha1GroupSubject
|
||||
{
|
||||
public static explicit operator V1alpha1GroupSubject(V1beta1GroupSubject s) => VersionConverter.Mapper.Map<V1alpha1GroupSubject>(s);
|
||||
}
|
||||
public partial class V1beta1GroupSubject
|
||||
{
|
||||
public static explicit operator V1beta1GroupSubject(V1alpha1GroupSubject s) => VersionConverter.Mapper.Map<V1beta1GroupSubject>(s);
|
||||
}
|
||||
public partial class V1HorizontalPodAutoscaler
|
||||
{
|
||||
public static explicit operator V1HorizontalPodAutoscaler(V2beta1HorizontalPodAutoscaler s) => VersionConverter.Mapper.Map<V1HorizontalPodAutoscaler>(s);
|
||||
@@ -655,6 +735,22 @@ namespace k8s.Models
|
||||
{
|
||||
public static explicit operator V1LeaseSpec(V1beta1LeaseSpec s) => VersionConverter.Mapper.Map<V1LeaseSpec>(s);
|
||||
}
|
||||
public partial class V1alpha1LimitedPriorityLevelConfiguration
|
||||
{
|
||||
public static explicit operator V1alpha1LimitedPriorityLevelConfiguration(V1beta1LimitedPriorityLevelConfiguration s) => VersionConverter.Mapper.Map<V1alpha1LimitedPriorityLevelConfiguration>(s);
|
||||
}
|
||||
public partial class V1beta1LimitedPriorityLevelConfiguration
|
||||
{
|
||||
public static explicit operator V1beta1LimitedPriorityLevelConfiguration(V1alpha1LimitedPriorityLevelConfiguration s) => VersionConverter.Mapper.Map<V1beta1LimitedPriorityLevelConfiguration>(s);
|
||||
}
|
||||
public partial class V1alpha1LimitResponse
|
||||
{
|
||||
public static explicit operator V1alpha1LimitResponse(V1beta1LimitResponse s) => VersionConverter.Mapper.Map<V1alpha1LimitResponse>(s);
|
||||
}
|
||||
public partial class V1beta1LimitResponse
|
||||
{
|
||||
public static explicit operator V1beta1LimitResponse(V1alpha1LimitResponse s) => VersionConverter.Mapper.Map<V1beta1LimitResponse>(s);
|
||||
}
|
||||
public partial class V1beta1LocalSubjectAccessReview
|
||||
{
|
||||
public static explicit operator V1beta1LocalSubjectAccessReview(V1LocalSubjectAccessReview s) => VersionConverter.Mapper.Map<V1beta1LocalSubjectAccessReview>(s);
|
||||
@@ -711,6 +807,14 @@ namespace k8s.Models
|
||||
{
|
||||
public static explicit operator V1NonResourceAttributes(V1beta1NonResourceAttributes s) => VersionConverter.Mapper.Map<V1NonResourceAttributes>(s);
|
||||
}
|
||||
public partial class V1alpha1NonResourcePolicyRule
|
||||
{
|
||||
public static explicit operator V1alpha1NonResourcePolicyRule(V1beta1NonResourcePolicyRule s) => VersionConverter.Mapper.Map<V1alpha1NonResourcePolicyRule>(s);
|
||||
}
|
||||
public partial class V1beta1NonResourcePolicyRule
|
||||
{
|
||||
public static explicit operator V1beta1NonResourcePolicyRule(V1alpha1NonResourcePolicyRule s) => VersionConverter.Mapper.Map<V1beta1NonResourcePolicyRule>(s);
|
||||
}
|
||||
public partial class V1beta1NonResourceRule
|
||||
{
|
||||
public static explicit operator V1beta1NonResourceRule(V1NonResourceRule s) => VersionConverter.Mapper.Map<V1beta1NonResourceRule>(s);
|
||||
@@ -743,6 +847,22 @@ namespace k8s.Models
|
||||
{
|
||||
public static explicit operator V1beta1Overhead(V1alpha1Overhead s) => VersionConverter.Mapper.Map<V1beta1Overhead>(s);
|
||||
}
|
||||
public partial class V1alpha1Overhead
|
||||
{
|
||||
public static explicit operator V1alpha1Overhead(V1Overhead s) => VersionConverter.Mapper.Map<V1alpha1Overhead>(s);
|
||||
}
|
||||
public partial class V1Overhead
|
||||
{
|
||||
public static explicit operator V1Overhead(V1alpha1Overhead s) => VersionConverter.Mapper.Map<V1Overhead>(s);
|
||||
}
|
||||
public partial class V1beta1Overhead
|
||||
{
|
||||
public static explicit operator V1beta1Overhead(V1Overhead s) => VersionConverter.Mapper.Map<V1beta1Overhead>(s);
|
||||
}
|
||||
public partial class V1Overhead
|
||||
{
|
||||
public static explicit operator V1Overhead(V1beta1Overhead s) => VersionConverter.Mapper.Map<V1Overhead>(s);
|
||||
}
|
||||
public partial class V2beta1PodsMetricSource
|
||||
{
|
||||
public static explicit operator V2beta1PodsMetricSource(V2beta2PodsMetricSource s) => VersionConverter.Mapper.Map<V2beta1PodsMetricSource>(s);
|
||||
@@ -783,6 +903,14 @@ namespace k8s.Models
|
||||
{
|
||||
public static explicit operator V1PolicyRule(V1beta1PolicyRule s) => VersionConverter.Mapper.Map<V1PolicyRule>(s);
|
||||
}
|
||||
public partial class V1alpha1PolicyRulesWithSubjects
|
||||
{
|
||||
public static explicit operator V1alpha1PolicyRulesWithSubjects(V1beta1PolicyRulesWithSubjects s) => VersionConverter.Mapper.Map<V1alpha1PolicyRulesWithSubjects>(s);
|
||||
}
|
||||
public partial class V1beta1PolicyRulesWithSubjects
|
||||
{
|
||||
public static explicit operator V1beta1PolicyRulesWithSubjects(V1alpha1PolicyRulesWithSubjects s) => VersionConverter.Mapper.Map<V1beta1PolicyRulesWithSubjects>(s);
|
||||
}
|
||||
public partial class V1alpha1PriorityClass
|
||||
{
|
||||
public static explicit operator V1alpha1PriorityClass(V1beta1PriorityClass s) => VersionConverter.Mapper.Map<V1alpha1PriorityClass>(s);
|
||||
@@ -831,6 +959,70 @@ namespace k8s.Models
|
||||
{
|
||||
public static explicit operator V1PriorityClassList(V1beta1PriorityClassList s) => VersionConverter.Mapper.Map<V1PriorityClassList>(s);
|
||||
}
|
||||
public partial class V1alpha1PriorityLevelConfiguration
|
||||
{
|
||||
public static explicit operator V1alpha1PriorityLevelConfiguration(V1beta1PriorityLevelConfiguration s) => VersionConverter.Mapper.Map<V1alpha1PriorityLevelConfiguration>(s);
|
||||
}
|
||||
public partial class V1beta1PriorityLevelConfiguration
|
||||
{
|
||||
public static explicit operator V1beta1PriorityLevelConfiguration(V1alpha1PriorityLevelConfiguration s) => VersionConverter.Mapper.Map<V1beta1PriorityLevelConfiguration>(s);
|
||||
}
|
||||
public partial class V1alpha1PriorityLevelConfigurationCondition
|
||||
{
|
||||
public static explicit operator V1alpha1PriorityLevelConfigurationCondition(V1beta1PriorityLevelConfigurationCondition s) => VersionConverter.Mapper.Map<V1alpha1PriorityLevelConfigurationCondition>(s);
|
||||
}
|
||||
public partial class V1beta1PriorityLevelConfigurationCondition
|
||||
{
|
||||
public static explicit operator V1beta1PriorityLevelConfigurationCondition(V1alpha1PriorityLevelConfigurationCondition s) => VersionConverter.Mapper.Map<V1beta1PriorityLevelConfigurationCondition>(s);
|
||||
}
|
||||
public partial class V1alpha1PriorityLevelConfigurationList
|
||||
{
|
||||
public static explicit operator V1alpha1PriorityLevelConfigurationList(V1beta1PriorityLevelConfigurationList s) => VersionConverter.Mapper.Map<V1alpha1PriorityLevelConfigurationList>(s);
|
||||
}
|
||||
public partial class V1beta1PriorityLevelConfigurationList
|
||||
{
|
||||
public static explicit operator V1beta1PriorityLevelConfigurationList(V1alpha1PriorityLevelConfigurationList s) => VersionConverter.Mapper.Map<V1beta1PriorityLevelConfigurationList>(s);
|
||||
}
|
||||
public partial class V1alpha1PriorityLevelConfigurationReference
|
||||
{
|
||||
public static explicit operator V1alpha1PriorityLevelConfigurationReference(V1beta1PriorityLevelConfigurationReference s) => VersionConverter.Mapper.Map<V1alpha1PriorityLevelConfigurationReference>(s);
|
||||
}
|
||||
public partial class V1beta1PriorityLevelConfigurationReference
|
||||
{
|
||||
public static explicit operator V1beta1PriorityLevelConfigurationReference(V1alpha1PriorityLevelConfigurationReference s) => VersionConverter.Mapper.Map<V1beta1PriorityLevelConfigurationReference>(s);
|
||||
}
|
||||
public partial class V1alpha1PriorityLevelConfigurationSpec
|
||||
{
|
||||
public static explicit operator V1alpha1PriorityLevelConfigurationSpec(V1beta1PriorityLevelConfigurationSpec s) => VersionConverter.Mapper.Map<V1alpha1PriorityLevelConfigurationSpec>(s);
|
||||
}
|
||||
public partial class V1beta1PriorityLevelConfigurationSpec
|
||||
{
|
||||
public static explicit operator V1beta1PriorityLevelConfigurationSpec(V1alpha1PriorityLevelConfigurationSpec s) => VersionConverter.Mapper.Map<V1beta1PriorityLevelConfigurationSpec>(s);
|
||||
}
|
||||
public partial class V1alpha1PriorityLevelConfigurationStatus
|
||||
{
|
||||
public static explicit operator V1alpha1PriorityLevelConfigurationStatus(V1beta1PriorityLevelConfigurationStatus s) => VersionConverter.Mapper.Map<V1alpha1PriorityLevelConfigurationStatus>(s);
|
||||
}
|
||||
public partial class V1beta1PriorityLevelConfigurationStatus
|
||||
{
|
||||
public static explicit operator V1beta1PriorityLevelConfigurationStatus(V1alpha1PriorityLevelConfigurationStatus s) => VersionConverter.Mapper.Map<V1beta1PriorityLevelConfigurationStatus>(s);
|
||||
}
|
||||
public partial class V1alpha1QueuingConfiguration
|
||||
{
|
||||
public static explicit operator V1alpha1QueuingConfiguration(V1beta1QueuingConfiguration s) => VersionConverter.Mapper.Map<V1alpha1QueuingConfiguration>(s);
|
||||
}
|
||||
public partial class V1beta1QueuingConfiguration
|
||||
{
|
||||
public static explicit operator V1beta1QueuingConfiguration(V1alpha1QueuingConfiguration s) => VersionConverter.Mapper.Map<V1beta1QueuingConfiguration>(s);
|
||||
}
|
||||
public partial class Rbacv1alpha1Subject
|
||||
{
|
||||
public static explicit operator Rbacv1alpha1Subject(Rbacv1beta1Subject s) => VersionConverter.Mapper.Map<Rbacv1alpha1Subject>(s);
|
||||
}
|
||||
public partial class Rbacv1beta1Subject
|
||||
{
|
||||
public static explicit operator Rbacv1beta1Subject(Rbacv1alpha1Subject s) => VersionConverter.Mapper.Map<Rbacv1beta1Subject>(s);
|
||||
}
|
||||
public partial class V1beta1ResourceAttributes
|
||||
{
|
||||
public static explicit operator V1beta1ResourceAttributes(V1ResourceAttributes s) => VersionConverter.Mapper.Map<V1beta1ResourceAttributes>(s);
|
||||
@@ -855,6 +1047,14 @@ namespace k8s.Models
|
||||
{
|
||||
public static explicit operator V2beta2ResourceMetricStatus(V2beta1ResourceMetricStatus s) => VersionConverter.Mapper.Map<V2beta2ResourceMetricStatus>(s);
|
||||
}
|
||||
public partial class V1alpha1ResourcePolicyRule
|
||||
{
|
||||
public static explicit operator V1alpha1ResourcePolicyRule(V1beta1ResourcePolicyRule s) => VersionConverter.Mapper.Map<V1alpha1ResourcePolicyRule>(s);
|
||||
}
|
||||
public partial class V1beta1ResourcePolicyRule
|
||||
{
|
||||
public static explicit operator V1beta1ResourcePolicyRule(V1alpha1ResourcePolicyRule s) => VersionConverter.Mapper.Map<V1beta1ResourcePolicyRule>(s);
|
||||
}
|
||||
public partial class V1beta1ResourceRule
|
||||
{
|
||||
public static explicit operator V1beta1ResourceRule(V1ResourceRule s) => VersionConverter.Mapper.Map<V1beta1ResourceRule>(s);
|
||||
@@ -999,6 +1199,22 @@ namespace k8s.Models
|
||||
{
|
||||
public static explicit operator V1beta1RuntimeClass(V1alpha1RuntimeClass s) => VersionConverter.Mapper.Map<V1beta1RuntimeClass>(s);
|
||||
}
|
||||
public partial class V1alpha1RuntimeClass
|
||||
{
|
||||
public static explicit operator V1alpha1RuntimeClass(V1RuntimeClass s) => VersionConverter.Mapper.Map<V1alpha1RuntimeClass>(s);
|
||||
}
|
||||
public partial class V1RuntimeClass
|
||||
{
|
||||
public static explicit operator V1RuntimeClass(V1alpha1RuntimeClass s) => VersionConverter.Mapper.Map<V1RuntimeClass>(s);
|
||||
}
|
||||
public partial class V1beta1RuntimeClass
|
||||
{
|
||||
public static explicit operator V1beta1RuntimeClass(V1RuntimeClass s) => VersionConverter.Mapper.Map<V1beta1RuntimeClass>(s);
|
||||
}
|
||||
public partial class V1RuntimeClass
|
||||
{
|
||||
public static explicit operator V1RuntimeClass(V1beta1RuntimeClass s) => VersionConverter.Mapper.Map<V1RuntimeClass>(s);
|
||||
}
|
||||
public partial class V1alpha1RuntimeClassList
|
||||
{
|
||||
public static explicit operator V1alpha1RuntimeClassList(V1beta1RuntimeClassList s) => VersionConverter.Mapper.Map<V1alpha1RuntimeClassList>(s);
|
||||
@@ -1007,6 +1223,22 @@ namespace k8s.Models
|
||||
{
|
||||
public static explicit operator V1beta1RuntimeClassList(V1alpha1RuntimeClassList s) => VersionConverter.Mapper.Map<V1beta1RuntimeClassList>(s);
|
||||
}
|
||||
public partial class V1alpha1RuntimeClassList
|
||||
{
|
||||
public static explicit operator V1alpha1RuntimeClassList(V1RuntimeClassList s) => VersionConverter.Mapper.Map<V1alpha1RuntimeClassList>(s);
|
||||
}
|
||||
public partial class V1RuntimeClassList
|
||||
{
|
||||
public static explicit operator V1RuntimeClassList(V1alpha1RuntimeClassList s) => VersionConverter.Mapper.Map<V1RuntimeClassList>(s);
|
||||
}
|
||||
public partial class V1beta1RuntimeClassList
|
||||
{
|
||||
public static explicit operator V1beta1RuntimeClassList(V1RuntimeClassList s) => VersionConverter.Mapper.Map<V1beta1RuntimeClassList>(s);
|
||||
}
|
||||
public partial class V1RuntimeClassList
|
||||
{
|
||||
public static explicit operator V1RuntimeClassList(V1beta1RuntimeClassList s) => VersionConverter.Mapper.Map<V1RuntimeClassList>(s);
|
||||
}
|
||||
public partial class V1alpha1Scheduling
|
||||
{
|
||||
public static explicit operator V1alpha1Scheduling(V1beta1Scheduling s) => VersionConverter.Mapper.Map<V1alpha1Scheduling>(s);
|
||||
@@ -1015,6 +1247,22 @@ namespace k8s.Models
|
||||
{
|
||||
public static explicit operator V1beta1Scheduling(V1alpha1Scheduling s) => VersionConverter.Mapper.Map<V1beta1Scheduling>(s);
|
||||
}
|
||||
public partial class V1alpha1Scheduling
|
||||
{
|
||||
public static explicit operator V1alpha1Scheduling(V1Scheduling s) => VersionConverter.Mapper.Map<V1alpha1Scheduling>(s);
|
||||
}
|
||||
public partial class V1Scheduling
|
||||
{
|
||||
public static explicit operator V1Scheduling(V1alpha1Scheduling s) => VersionConverter.Mapper.Map<V1Scheduling>(s);
|
||||
}
|
||||
public partial class V1beta1Scheduling
|
||||
{
|
||||
public static explicit operator V1beta1Scheduling(V1Scheduling s) => VersionConverter.Mapper.Map<V1beta1Scheduling>(s);
|
||||
}
|
||||
public partial class V1Scheduling
|
||||
{
|
||||
public static explicit operator V1Scheduling(V1beta1Scheduling s) => VersionConverter.Mapper.Map<V1Scheduling>(s);
|
||||
}
|
||||
public partial class V1beta1SelfSubjectAccessReview
|
||||
{
|
||||
public static explicit operator V1beta1SelfSubjectAccessReview(V1SelfSubjectAccessReview s) => VersionConverter.Mapper.Map<V1beta1SelfSubjectAccessReview>(s);
|
||||
@@ -1047,6 +1295,14 @@ namespace k8s.Models
|
||||
{
|
||||
public static explicit operator V1SelfSubjectRulesReviewSpec(V1beta1SelfSubjectRulesReviewSpec s) => VersionConverter.Mapper.Map<V1SelfSubjectRulesReviewSpec>(s);
|
||||
}
|
||||
public partial class V1alpha1ServiceAccountSubject
|
||||
{
|
||||
public static explicit operator V1alpha1ServiceAccountSubject(V1beta1ServiceAccountSubject s) => VersionConverter.Mapper.Map<V1alpha1ServiceAccountSubject>(s);
|
||||
}
|
||||
public partial class V1beta1ServiceAccountSubject
|
||||
{
|
||||
public static explicit operator V1beta1ServiceAccountSubject(V1alpha1ServiceAccountSubject s) => VersionConverter.Mapper.Map<V1beta1ServiceAccountSubject>(s);
|
||||
}
|
||||
public partial class V1beta1StorageClass
|
||||
{
|
||||
public static explicit operator V1beta1StorageClass(V1StorageClass s) => VersionConverter.Mapper.Map<V1beta1StorageClass>(s);
|
||||
@@ -1063,14 +1319,6 @@ namespace k8s.Models
|
||||
{
|
||||
public static explicit operator V1StorageClassList(V1beta1StorageClassList s) => VersionConverter.Mapper.Map<V1StorageClassList>(s);
|
||||
}
|
||||
public partial class V1beta1Subject
|
||||
{
|
||||
public static explicit operator V1beta1Subject(V1Subject s) => VersionConverter.Mapper.Map<V1beta1Subject>(s);
|
||||
}
|
||||
public partial class V1Subject
|
||||
{
|
||||
public static explicit operator V1Subject(V1beta1Subject s) => VersionConverter.Mapper.Map<V1Subject>(s);
|
||||
}
|
||||
public partial class V1beta1SubjectAccessReview
|
||||
{
|
||||
public static explicit operator V1beta1SubjectAccessReview(V1SubjectAccessReview s) => VersionConverter.Mapper.Map<V1beta1SubjectAccessReview>(s);
|
||||
@@ -1135,6 +1383,14 @@ namespace k8s.Models
|
||||
{
|
||||
public static explicit operator V1UserInfo(V1beta1UserInfo s) => VersionConverter.Mapper.Map<V1UserInfo>(s);
|
||||
}
|
||||
public partial class V1alpha1UserSubject
|
||||
{
|
||||
public static explicit operator V1alpha1UserSubject(V1beta1UserSubject s) => VersionConverter.Mapper.Map<V1alpha1UserSubject>(s);
|
||||
}
|
||||
public partial class V1beta1UserSubject
|
||||
{
|
||||
public static explicit operator V1beta1UserSubject(V1alpha1UserSubject s) => VersionConverter.Mapper.Map<V1beta1UserSubject>(s);
|
||||
}
|
||||
public partial class V1beta1ValidatingWebhook
|
||||
{
|
||||
public static explicit operator V1beta1ValidatingWebhook(V1ValidatingWebhook s) => VersionConverter.Mapper.Map<V1beta1ValidatingWebhook>(s);
|
||||
|
||||
@@ -13,18 +13,20 @@ namespace k8s.Models
|
||||
/// <summary>
|
||||
/// TokenRequest requests a token for a given service account.
|
||||
/// </summary>
|
||||
public partial class V1TokenRequest
|
||||
public partial class Authenticationv1TokenRequest
|
||||
{
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the V1TokenRequest class.
|
||||
/// Initializes a new instance of the Authenticationv1TokenRequest
|
||||
/// class.
|
||||
/// </summary>
|
||||
public V1TokenRequest()
|
||||
public Authenticationv1TokenRequest()
|
||||
{
|
||||
CustomInit();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the V1TokenRequest class.
|
||||
/// Initializes a new instance of the Authenticationv1TokenRequest
|
||||
/// class.
|
||||
/// </summary>
|
||||
/// <param name="apiVersion">APIVersion defines the versioned schema of
|
||||
/// this representation of an object. Servers should convert recognized
|
||||
@@ -36,7 +38,7 @@ namespace k8s.Models
|
||||
/// endpoint the client submits requests to. Cannot be updated. In
|
||||
/// CamelCase. More info:
|
||||
/// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds</param>
|
||||
public V1TokenRequest(V1TokenRequestSpec spec, string apiVersion = default(string), string kind = default(string), V1ObjectMeta metadata = default(V1ObjectMeta), V1TokenRequestStatus status = default(V1TokenRequestStatus))
|
||||
public Authenticationv1TokenRequest(V1TokenRequestSpec spec, string apiVersion = default(string), string kind = default(string), V1ObjectMeta metadata = default(V1ObjectMeta), V1TokenRequestStatus status = default(V1TokenRequestStatus))
|
||||
{
|
||||
ApiVersion = apiVersion;
|
||||
Kind = kind;
|
||||
@@ -11,7 +11,12 @@ namespace k8s.Models
|
||||
using System.Linq;
|
||||
|
||||
/// <summary>
|
||||
/// Event is a report of an event somewhere in the cluster.
|
||||
/// Event is a report of an event somewhere in the cluster. Events have a
|
||||
/// limited retention time and triggers and messages may evolve with time.
|
||||
/// Event consumers should not rely on the timing of an event with a given
|
||||
/// Reason reflecting a consistent underlying trigger, or the continued
|
||||
/// existence of events with that Reason. Events should be treated as
|
||||
/// informative, best-effort, supplemental data.
|
||||
/// </summary>
|
||||
public partial class Corev1Event
|
||||
{
|
||||
|
||||
@@ -6,12 +6,18 @@
|
||||
|
||||
namespace k8s.Models
|
||||
{
|
||||
using Microsoft.Rest;
|
||||
using Newtonsoft.Json;
|
||||
using System.Linq;
|
||||
|
||||
/// <summary>
|
||||
/// Event is a report of an event somewhere in the cluster. It generally
|
||||
/// denotes some state change in the system.
|
||||
/// denotes some state change in the system. Events have a limited
|
||||
/// retention time and triggers and messages may evolve with time. Event
|
||||
/// consumers should not rely on the timing of an event with a given Reason
|
||||
/// reflecting a consistent underlying trigger, or the continued existence
|
||||
/// of events with that Reason. Events should be treated as informative,
|
||||
/// best-effort, supplemental data.
|
||||
/// </summary>
|
||||
public partial class Eventsv1Event
|
||||
{
|
||||
@@ -30,7 +36,8 @@ namespace k8s.Models
|
||||
/// first observed. It is required.</param>
|
||||
/// <param name="action">action is what action was taken/failed
|
||||
/// regarding to the regarding object. It is machine-readable. This
|
||||
/// field can have at most 128 characters.</param>
|
||||
/// field cannot be empty for new Events and it can have at most 128
|
||||
/// characters.</param>
|
||||
/// <param name="apiVersion">APIVersion defines the versioned schema of
|
||||
/// this representation of an object. Servers should convert recognized
|
||||
/// schemas to the latest internal value, and may reject unrecognized
|
||||
@@ -57,7 +64,8 @@ namespace k8s.Models
|
||||
/// status of this operation. Maximal length of the note is 1kB, but
|
||||
/// libraries should be prepared to handle values up to 64kB.</param>
|
||||
/// <param name="reason">reason is why the action was taken. It is
|
||||
/// human-readable. This field can have at most 128 characters.</param>
|
||||
/// human-readable. This field cannot be empty for new Events and it
|
||||
/// can have at most 128 characters.</param>
|
||||
/// <param name="regarding">regarding contains the object this Event is
|
||||
/// about. In most cases it's an Object reporting controller
|
||||
/// implements, e.g. ReplicaSetController implements ReplicaSets and
|
||||
@@ -78,8 +86,9 @@ namespace k8s.Models
|
||||
/// event represents or nil if it's a singleton Event.</param>
|
||||
/// <param name="type">type is the type of this event (Normal,
|
||||
/// Warning), new types could be added in the future. It is
|
||||
/// machine-readable.</param>
|
||||
public Eventsv1Event(System.DateTime eventTime, string action = default(string), string apiVersion = default(string), int? deprecatedCount = default(int?), System.DateTime? deprecatedFirstTimestamp = default(System.DateTime?), System.DateTime? deprecatedLastTimestamp = default(System.DateTime?), V1EventSource deprecatedSource = default(V1EventSource), string kind = default(string), V1ObjectMeta metadata = default(V1ObjectMeta), string note = default(string), string reason = default(string), V1ObjectReference regarding = default(V1ObjectReference), V1ObjectReference related = default(V1ObjectReference), string reportingController = default(string), string reportingInstance = default(string), Eventsv1EventSeries series = default(Eventsv1EventSeries), string type = default(string))
|
||||
/// machine-readable. This field cannot be empty for new
|
||||
/// Events.</param>
|
||||
public Eventsv1Event(System.DateTime eventTime, V1ObjectMeta metadata, string action = default(string), string apiVersion = default(string), int? deprecatedCount = default(int?), System.DateTime? deprecatedFirstTimestamp = default(System.DateTime?), System.DateTime? deprecatedLastTimestamp = default(System.DateTime?), V1EventSource deprecatedSource = default(V1EventSource), string kind = default(string), string note = default(string), string reason = default(string), V1ObjectReference regarding = default(V1ObjectReference), V1ObjectReference related = default(V1ObjectReference), string reportingController = default(string), string reportingInstance = default(string), Eventsv1EventSeries series = default(Eventsv1EventSeries), string type = default(string))
|
||||
{
|
||||
Action = action;
|
||||
ApiVersion = apiVersion;
|
||||
@@ -108,8 +117,8 @@ namespace k8s.Models
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets action is what action was taken/failed regarding to
|
||||
/// the regarding object. It is machine-readable. This field can have
|
||||
/// at most 128 characters.
|
||||
/// the regarding object. It is machine-readable. This field cannot be
|
||||
/// empty for new Events and it can have at most 128 characters.
|
||||
/// </summary>
|
||||
[JsonProperty(PropertyName = "action")]
|
||||
public string Action { get; set; }
|
||||
@@ -184,7 +193,8 @@ namespace k8s.Models
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets reason is why the action was taken. It is
|
||||
/// human-readable. This field can have at most 128 characters.
|
||||
/// human-readable. This field cannot be empty for new Events and it
|
||||
/// can have at most 128 characters.
|
||||
/// </summary>
|
||||
[JsonProperty(PropertyName = "reason")]
|
||||
public string Reason { get; set; }
|
||||
@@ -231,7 +241,8 @@ namespace k8s.Models
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets type is the type of this event (Normal, Warning), new
|
||||
/// types could be added in the future. It is machine-readable.
|
||||
/// types could be added in the future. It is machine-readable. This
|
||||
/// field cannot be empty for new Events.
|
||||
/// </summary>
|
||||
[JsonProperty(PropertyName = "type")]
|
||||
public string Type { get; set; }
|
||||
@@ -239,11 +250,15 @@ namespace k8s.Models
|
||||
/// <summary>
|
||||
/// Validate the object.
|
||||
/// </summary>
|
||||
/// <exception cref="Microsoft.Rest.ValidationException">
|
||||
/// <exception cref="ValidationException">
|
||||
/// Thrown if validation fails
|
||||
/// </exception>
|
||||
public virtual void Validate()
|
||||
{
|
||||
if (Metadata == null)
|
||||
{
|
||||
throw new ValidationException(ValidationRules.CannotBeNull, "Metadata");
|
||||
}
|
||||
if (Series != null)
|
||||
{
|
||||
Series.Validate();
|
||||
|
||||
93
src/KubernetesClient/generated/Models/Flowcontrolv1beta1Subject.cs
generated
Normal file
93
src/KubernetesClient/generated/Models/Flowcontrolv1beta1Subject.cs
generated
Normal file
@@ -0,0 +1,93 @@
|
||||
// <auto-generated>
|
||||
// Code generated by Microsoft (R) AutoRest Code Generator.
|
||||
// Changes may cause incorrect behavior and will be lost if the code is
|
||||
// regenerated.
|
||||
// </auto-generated>
|
||||
|
||||
namespace k8s.Models
|
||||
{
|
||||
using Microsoft.Rest;
|
||||
using Newtonsoft.Json;
|
||||
using System.Linq;
|
||||
|
||||
/// <summary>
|
||||
/// Subject matches the originator of a request, as identified by the
|
||||
/// request authentication system. There are three ways of matching an
|
||||
/// originator; by user, group, or service account.
|
||||
/// </summary>
|
||||
public partial class Flowcontrolv1beta1Subject
|
||||
{
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the Flowcontrolv1beta1Subject class.
|
||||
/// </summary>
|
||||
public Flowcontrolv1beta1Subject()
|
||||
{
|
||||
CustomInit();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the Flowcontrolv1beta1Subject class.
|
||||
/// </summary>
|
||||
/// <param name="kind">Required</param>
|
||||
public Flowcontrolv1beta1Subject(string kind, V1beta1GroupSubject group = default(V1beta1GroupSubject), V1beta1ServiceAccountSubject serviceAccount = default(V1beta1ServiceAccountSubject), V1beta1UserSubject user = default(V1beta1UserSubject))
|
||||
{
|
||||
Group = group;
|
||||
Kind = kind;
|
||||
ServiceAccount = serviceAccount;
|
||||
User = user;
|
||||
CustomInit();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// An initialization method that performs custom operations like setting defaults
|
||||
/// </summary>
|
||||
partial void CustomInit();
|
||||
|
||||
/// <summary>
|
||||
/// </summary>
|
||||
[JsonProperty(PropertyName = "group")]
|
||||
public V1beta1GroupSubject Group { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets required
|
||||
/// </summary>
|
||||
[JsonProperty(PropertyName = "kind")]
|
||||
public string Kind { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// </summary>
|
||||
[JsonProperty(PropertyName = "serviceAccount")]
|
||||
public V1beta1ServiceAccountSubject ServiceAccount { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// </summary>
|
||||
[JsonProperty(PropertyName = "user")]
|
||||
public V1beta1UserSubject User { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Validate the object.
|
||||
/// </summary>
|
||||
/// <exception cref="ValidationException">
|
||||
/// Thrown if validation fails
|
||||
/// </exception>
|
||||
public virtual void Validate()
|
||||
{
|
||||
if (Kind == null)
|
||||
{
|
||||
throw new ValidationException(ValidationRules.CannotBeNull, "Kind");
|
||||
}
|
||||
if (Group != null)
|
||||
{
|
||||
Group.Validate();
|
||||
}
|
||||
if (ServiceAccount != null)
|
||||
{
|
||||
ServiceAccount.Validate();
|
||||
}
|
||||
if (User != null)
|
||||
{
|
||||
User.Validate();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -15,18 +15,18 @@ namespace k8s.Models
|
||||
/// binding applies to. This can either hold a direct API object
|
||||
/// reference, or a value for non-objects such as user and group names.
|
||||
/// </summary>
|
||||
public partial class V1beta1Subject
|
||||
public partial class Rbacv1beta1Subject
|
||||
{
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the V1beta1Subject class.
|
||||
/// Initializes a new instance of the Rbacv1beta1Subject class.
|
||||
/// </summary>
|
||||
public V1beta1Subject()
|
||||
public Rbacv1beta1Subject()
|
||||
{
|
||||
CustomInit();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the V1beta1Subject class.
|
||||
/// Initializes a new instance of the Rbacv1beta1Subject class.
|
||||
/// </summary>
|
||||
/// <param name="kind">Kind of object being referenced. Values defined
|
||||
/// by this API group are "User", "Group", and "ServiceAccount". If the
|
||||
@@ -41,7 +41,7 @@ namespace k8s.Models
|
||||
/// If the object kind is non-namespace, such as "User" or "Group", and
|
||||
/// this value is not empty the Authorizer should report an
|
||||
/// error.</param>
|
||||
public V1beta1Subject(string kind, string name, string apiGroup = default(string), string namespaceProperty = default(string))
|
||||
public Rbacv1beta1Subject(string kind, string name, string apiGroup = default(string), string namespaceProperty = default(string))
|
||||
{
|
||||
ApiGroup = apiGroup;
|
||||
Kind = kind;
|
||||
77
src/KubernetesClient/generated/Models/Storagev1TokenRequest.cs
generated
Normal file
77
src/KubernetesClient/generated/Models/Storagev1TokenRequest.cs
generated
Normal file
@@ -0,0 +1,77 @@
|
||||
// <auto-generated>
|
||||
// Code generated by Microsoft (R) AutoRest Code Generator.
|
||||
// Changes may cause incorrect behavior and will be lost if the code is
|
||||
// regenerated.
|
||||
// </auto-generated>
|
||||
|
||||
namespace k8s.Models
|
||||
{
|
||||
using Microsoft.Rest;
|
||||
using Newtonsoft.Json;
|
||||
using System.Linq;
|
||||
|
||||
/// <summary>
|
||||
/// TokenRequest contains parameters of a service account token.
|
||||
/// </summary>
|
||||
public partial class Storagev1TokenRequest
|
||||
{
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the Storagev1TokenRequest class.
|
||||
/// </summary>
|
||||
public Storagev1TokenRequest()
|
||||
{
|
||||
CustomInit();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the Storagev1TokenRequest class.
|
||||
/// </summary>
|
||||
/// <param name="audience">Audience is the intended audience of the
|
||||
/// token in "TokenRequestSpec". It will default to the audiences of
|
||||
/// kube apiserver.</param>
|
||||
/// <param name="expirationSeconds">ExpirationSeconds is the duration
|
||||
/// of validity of the token in "TokenRequestSpec". It has the same
|
||||
/// default value of "ExpirationSeconds" in "TokenRequestSpec".</param>
|
||||
public Storagev1TokenRequest(string audience, long? expirationSeconds = default(long?))
|
||||
{
|
||||
Audience = audience;
|
||||
ExpirationSeconds = expirationSeconds;
|
||||
CustomInit();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// An initialization method that performs custom operations like setting defaults
|
||||
/// </summary>
|
||||
partial void CustomInit();
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets audience is the intended audience of the token in
|
||||
/// "TokenRequestSpec". It will default to the audiences of kube
|
||||
/// apiserver.
|
||||
/// </summary>
|
||||
[JsonProperty(PropertyName = "audience")]
|
||||
public string Audience { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets expirationSeconds is the duration of validity of the
|
||||
/// token in "TokenRequestSpec". It has the same default value of
|
||||
/// "ExpirationSeconds" in "TokenRequestSpec".
|
||||
/// </summary>
|
||||
[JsonProperty(PropertyName = "expirationSeconds")]
|
||||
public long? ExpirationSeconds { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Validate the object.
|
||||
/// </summary>
|
||||
/// <exception cref="ValidationException">
|
||||
/// Thrown if validation fails
|
||||
/// </exception>
|
||||
public virtual void Validate()
|
||||
{
|
||||
if (Audience == null)
|
||||
{
|
||||
throw new ValidationException(ValidationRules.CannotBeNull, "Audience");
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -68,6 +68,17 @@ namespace k8s.Models
|
||||
/// support this field, drivers can only support one mode when deployed
|
||||
/// on such a cluster and the deployment determines which mode that is,
|
||||
/// for example via a command line parameter of the driver.</param>
|
||||
/// <param name="requiresRepublish">RequiresRepublish indicates the CSI
|
||||
/// driver wants `NodePublishVolume` being periodically called to
|
||||
/// reflect any possible change in the mounted volume. This field
|
||||
/// defaults to false.
|
||||
///
|
||||
/// Note: After a successful initial NodePublishVolume call, subsequent
|
||||
/// calls to NodePublishVolume should only update the contents of the
|
||||
/// volume. New mount points will not be seen by a running container.
|
||||
///
|
||||
/// This is an alpha feature and only available when the
|
||||
/// CSIServiceAccountToken feature is enabled.</param>
|
||||
/// <param name="storageCapacity">If set to true, storageCapacity
|
||||
/// indicates that the CSI volume driver wants pod scheduling to
|
||||
/// consider the storage capacity that the driver deployment will
|
||||
@@ -86,6 +97,26 @@ namespace k8s.Models
|
||||
/// This is an alpha field and only available when the
|
||||
/// CSIStorageCapacity feature is enabled. The default is
|
||||
/// false.</param>
|
||||
/// <param name="tokenRequests">TokenRequests indicates the CSI driver
|
||||
/// needs pods' service account tokens it is mounting volume for to do
|
||||
/// necessary authentication. Kubelet will pass the tokens in
|
||||
/// VolumeContext in the CSI NodePublishVolume calls. The CSI driver
|
||||
/// should parse and validate the following VolumeContext:
|
||||
/// "csi.storage.k8s.io/serviceAccount.tokens": {
|
||||
/// "<audience>": {
|
||||
/// "token": <token>,
|
||||
/// "expirationTimestamp": <expiration timestamp in RFC3339>,
|
||||
/// },
|
||||
/// ...
|
||||
/// }
|
||||
///
|
||||
/// Note: Audience in each TokenRequest should be different and at most
|
||||
/// one token is empty string. To receive a new token after expiry,
|
||||
/// RequiresRepublish can be used to trigger NodePublishVolume
|
||||
/// periodically.
|
||||
///
|
||||
/// This is an alpha feature and only available when the
|
||||
/// CSIServiceAccountToken feature is enabled.</param>
|
||||
/// <param name="volumeLifecycleModes">volumeLifecycleModes defines
|
||||
/// what kind of volumes this CSI volume driver supports. The default
|
||||
/// if the list is empty is "Persistent", which is the usage defined by
|
||||
@@ -99,12 +130,14 @@ namespace k8s.Models
|
||||
/// https://kubernetes-csi.github.io/docs/ephemeral-local-volumes.html
|
||||
/// A driver can support one or more of these modes and more modes may
|
||||
/// be added in the future. This field is beta.</param>
|
||||
public V1CSIDriverSpec(bool? attachRequired = default(bool?), string fsGroupPolicy = default(string), bool? podInfoOnMount = default(bool?), bool? storageCapacity = default(bool?), IList<string> volumeLifecycleModes = default(IList<string>))
|
||||
public V1CSIDriverSpec(bool? attachRequired = default(bool?), string fsGroupPolicy = default(string), bool? podInfoOnMount = default(bool?), bool? requiresRepublish = default(bool?), bool? storageCapacity = default(bool?), IList<Storagev1TokenRequest> tokenRequests = default(IList<Storagev1TokenRequest>), IList<string> volumeLifecycleModes = default(IList<string>))
|
||||
{
|
||||
AttachRequired = attachRequired;
|
||||
FsGroupPolicy = fsGroupPolicy;
|
||||
PodInfoOnMount = podInfoOnMount;
|
||||
RequiresRepublish = requiresRepublish;
|
||||
StorageCapacity = storageCapacity;
|
||||
TokenRequests = tokenRequests;
|
||||
VolumeLifecycleModes = volumeLifecycleModes;
|
||||
CustomInit();
|
||||
}
|
||||
@@ -169,6 +202,22 @@ namespace k8s.Models
|
||||
[JsonProperty(PropertyName = "podInfoOnMount")]
|
||||
public bool? PodInfoOnMount { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets requiresRepublish indicates the CSI driver wants
|
||||
/// `NodePublishVolume` being periodically called to reflect any
|
||||
/// possible change in the mounted volume. This field defaults to
|
||||
/// false.
|
||||
///
|
||||
/// Note: After a successful initial NodePublishVolume call, subsequent
|
||||
/// calls to NodePublishVolume should only update the contents of the
|
||||
/// volume. New mount points will not be seen by a running container.
|
||||
///
|
||||
/// This is an alpha feature and only available when the
|
||||
/// CSIServiceAccountToken feature is enabled.
|
||||
/// </summary>
|
||||
[JsonProperty(PropertyName = "requiresRepublish")]
|
||||
public bool? RequiresRepublish { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets if set to true, storageCapacity indicates that the CSI
|
||||
/// volume driver wants pod scheduling to consider the storage capacity
|
||||
@@ -190,6 +239,32 @@ namespace k8s.Models
|
||||
[JsonProperty(PropertyName = "storageCapacity")]
|
||||
public bool? StorageCapacity { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets tokenRequests indicates the CSI driver needs pods'
|
||||
/// service account tokens it is mounting volume for to do necessary
|
||||
/// authentication. Kubelet will pass the tokens in VolumeContext in
|
||||
/// the CSI NodePublishVolume calls. The CSI driver should parse and
|
||||
/// validate the following VolumeContext:
|
||||
/// "csi.storage.k8s.io/serviceAccount.tokens": {
|
||||
/// "&lt;audience&gt;": {
|
||||
/// "token": &lt;token&gt;,
|
||||
/// "expirationTimestamp": &lt;expiration timestamp in
|
||||
/// RFC3339&gt;,
|
||||
/// },
|
||||
/// ...
|
||||
/// }
|
||||
///
|
||||
/// Note: Audience in each TokenRequest should be different and at most
|
||||
/// one token is empty string. To receive a new token after expiry,
|
||||
/// RequiresRepublish can be used to trigger NodePublishVolume
|
||||
/// periodically.
|
||||
///
|
||||
/// This is an alpha feature and only available when the
|
||||
/// CSIServiceAccountToken feature is enabled.
|
||||
/// </summary>
|
||||
[JsonProperty(PropertyName = "tokenRequests")]
|
||||
public IList<Storagev1TokenRequest> TokenRequests { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets volumeLifecycleModes defines what kind of volumes this
|
||||
/// CSI volume driver supports. The default if the list is empty is
|
||||
|
||||
145
src/KubernetesClient/generated/Models/V1Condition.cs
generated
Normal file
145
src/KubernetesClient/generated/Models/V1Condition.cs
generated
Normal file
@@ -0,0 +1,145 @@
|
||||
// <auto-generated>
|
||||
// Code generated by Microsoft (R) AutoRest Code Generator.
|
||||
// Changes may cause incorrect behavior and will be lost if the code is
|
||||
// regenerated.
|
||||
// </auto-generated>
|
||||
|
||||
namespace k8s.Models
|
||||
{
|
||||
using Microsoft.Rest;
|
||||
using Newtonsoft.Json;
|
||||
using System.Linq;
|
||||
|
||||
/// <summary>
|
||||
/// Condition contains details for one aspect of the current state of this
|
||||
/// API Resource.
|
||||
/// </summary>
|
||||
public partial class V1Condition
|
||||
{
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the V1Condition class.
|
||||
/// </summary>
|
||||
public V1Condition()
|
||||
{
|
||||
CustomInit();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the V1Condition class.
|
||||
/// </summary>
|
||||
/// <param name="lastTransitionTime">lastTransitionTime is the last
|
||||
/// time the condition transitioned from one status to another. This
|
||||
/// should be when the underlying condition changed. If that is not
|
||||
/// known, then using the time when the API field changed is
|
||||
/// acceptable.</param>
|
||||
/// <param name="message">message is a human readable message
|
||||
/// indicating details about the transition. This may be an empty
|
||||
/// string.</param>
|
||||
/// <param name="reason">reason contains a programmatic identifier
|
||||
/// indicating the reason for the condition's last transition.
|
||||
/// Producers of specific condition types may define expected values
|
||||
/// and meanings for this field, and whether the values are considered
|
||||
/// a guaranteed API. The value should be a CamelCase string. This
|
||||
/// field may not be empty.</param>
|
||||
/// <param name="status">status of the condition, one of True, False,
|
||||
/// Unknown.</param>
|
||||
/// <param name="type">type of condition in CamelCase or in
|
||||
/// foo.example.com/CamelCase.</param>
|
||||
/// <param name="observedGeneration">observedGeneration represents the
|
||||
/// .metadata.generation that the condition was set based upon. For
|
||||
/// instance, if .metadata.generation is currently 12, but the
|
||||
/// .status.conditions[x].observedGeneration is 9, the condition is out
|
||||
/// of date with respect to the current state of the instance.</param>
|
||||
public V1Condition(System.DateTime lastTransitionTime, string message, string reason, string status, string type, long? observedGeneration = default(long?))
|
||||
{
|
||||
LastTransitionTime = lastTransitionTime;
|
||||
Message = message;
|
||||
ObservedGeneration = observedGeneration;
|
||||
Reason = reason;
|
||||
Status = status;
|
||||
Type = type;
|
||||
CustomInit();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// An initialization method that performs custom operations like setting defaults
|
||||
/// </summary>
|
||||
partial void CustomInit();
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets lastTransitionTime is the last time the condition
|
||||
/// transitioned from one status to another. This should be when the
|
||||
/// underlying condition changed. If that is not known, then using the
|
||||
/// time when the API field changed is acceptable.
|
||||
/// </summary>
|
||||
[JsonProperty(PropertyName = "lastTransitionTime")]
|
||||
public System.DateTime LastTransitionTime { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets message is a human readable message indicating details
|
||||
/// about the transition. This may be an empty string.
|
||||
/// </summary>
|
||||
[JsonProperty(PropertyName = "message")]
|
||||
public string Message { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets observedGeneration represents the .metadata.generation
|
||||
/// that the condition was set based upon. For instance, if
|
||||
/// .metadata.generation is currently 12, but the
|
||||
/// .status.conditions[x].observedGeneration is 9, the condition is out
|
||||
/// of date with respect to the current state of the instance.
|
||||
/// </summary>
|
||||
[JsonProperty(PropertyName = "observedGeneration")]
|
||||
public long? ObservedGeneration { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets reason contains a programmatic identifier indicating
|
||||
/// the reason for the condition's last transition. Producers of
|
||||
/// specific condition types may define expected values and meanings
|
||||
/// for this field, and whether the values are considered a guaranteed
|
||||
/// API. The value should be a CamelCase string. This field may not be
|
||||
/// empty.
|
||||
/// </summary>
|
||||
[JsonProperty(PropertyName = "reason")]
|
||||
public string Reason { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets status of the condition, one of True, False, Unknown.
|
||||
/// </summary>
|
||||
[JsonProperty(PropertyName = "status")]
|
||||
public string Status { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets type of condition in CamelCase or in
|
||||
/// foo.example.com/CamelCase.
|
||||
/// </summary>
|
||||
[JsonProperty(PropertyName = "type")]
|
||||
public string Type { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Validate the object.
|
||||
/// </summary>
|
||||
/// <exception cref="ValidationException">
|
||||
/// Thrown if validation fails
|
||||
/// </exception>
|
||||
public virtual void Validate()
|
||||
{
|
||||
if (Message == null)
|
||||
{
|
||||
throw new ValidationException(ValidationRules.CannotBeNull, "Message");
|
||||
}
|
||||
if (Reason == null)
|
||||
{
|
||||
throw new ValidationException(ValidationRules.CannotBeNull, "Reason");
|
||||
}
|
||||
if (Status == null)
|
||||
{
|
||||
throw new ValidationException(ValidationRules.CannotBeNull, "Status");
|
||||
}
|
||||
if (Type == null)
|
||||
{
|
||||
throw new ValidationException(ValidationRules.CannotBeNull, "Type");
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -100,8 +100,7 @@ namespace k8s.Models
|
||||
/// This can be used to provide different probe parameters at the
|
||||
/// beginning of a Pod's lifecycle, when it might take a long time to
|
||||
/// load data or warm a cache, than during steady-state operation. This
|
||||
/// cannot be updated. This is a beta feature enabled by the
|
||||
/// StartupProbe feature flag. More info:
|
||||
/// cannot be updated. More info:
|
||||
/// https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes</param>
|
||||
/// <param name="stdin">Whether this container should allocate a buffer
|
||||
/// for stdin in the container runtime. If this is not set, reads from
|
||||
@@ -309,7 +308,6 @@ namespace k8s.Models
|
||||
/// provide different probe parameters at the beginning of a Pod's
|
||||
/// lifecycle, when it might take a long time to load data or warm a
|
||||
/// cache, than during steady-state operation. This cannot be updated.
|
||||
/// This is a beta feature enabled by the StartupProbe feature flag.
|
||||
/// More info:
|
||||
/// https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes
|
||||
/// </summary>
|
||||
|
||||
12
src/KubernetesClient/generated/Models/V1JobStatus.cs
generated
12
src/KubernetesClient/generated/Models/V1JobStatus.cs
generated
@@ -31,9 +31,11 @@ namespace k8s.Models
|
||||
/// <param name="completionTime">Represents time when the job was
|
||||
/// completed. It is not guaranteed to be set in happens-before order
|
||||
/// across separate operations. It is represented in RFC3339 form and
|
||||
/// is in UTC.</param>
|
||||
/// is in UTC. The completion time is only set when the job finishes
|
||||
/// successfully.</param>
|
||||
/// <param name="conditions">The latest available observations of an
|
||||
/// object's current state. More info:
|
||||
/// object's current state. When a job fails, one of the conditions
|
||||
/// will have type == "Failed". More info:
|
||||
/// https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/</param>
|
||||
/// <param name="failed">The number of pods which reached phase
|
||||
/// Failed.</param>
|
||||
@@ -68,14 +70,16 @@ namespace k8s.Models
|
||||
/// <summary>
|
||||
/// Gets or sets represents time when the job was completed. It is not
|
||||
/// guaranteed to be set in happens-before order across separate
|
||||
/// operations. It is represented in RFC3339 form and is in UTC.
|
||||
/// operations. It is represented in RFC3339 form and is in UTC. The
|
||||
/// completion time is only set when the job finishes successfully.
|
||||
/// </summary>
|
||||
[JsonProperty(PropertyName = "completionTime")]
|
||||
public System.DateTime? CompletionTime { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the latest available observations of an object's
|
||||
/// current state. More info:
|
||||
/// current state. When a job fails, one of the conditions will have
|
||||
/// type == "Failed". More info:
|
||||
/// https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/
|
||||
/// </summary>
|
||||
[JsonProperty(PropertyName = "conditions")]
|
||||
|
||||
@@ -7,6 +7,8 @@
|
||||
namespace k8s.Models
|
||||
{
|
||||
using Newtonsoft.Json;
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
|
||||
/// <summary>
|
||||
@@ -31,10 +33,14 @@ namespace k8s.Models
|
||||
/// points that are DNS based (typically AWS load-balancers)</param>
|
||||
/// <param name="ip">IP is set for load-balancer ingress points that
|
||||
/// are IP based (typically GCE or OpenStack load-balancers)</param>
|
||||
public V1LoadBalancerIngress(string hostname = default(string), string ip = default(string))
|
||||
/// <param name="ports">Ports is a list of records of service ports If
|
||||
/// used, every port defined in the service should have an entry in
|
||||
/// it</param>
|
||||
public V1LoadBalancerIngress(string hostname = default(string), string ip = default(string), IList<V1PortStatus> ports = default(IList<V1PortStatus>))
|
||||
{
|
||||
Hostname = hostname;
|
||||
Ip = ip;
|
||||
Ports = ports;
|
||||
CustomInit();
|
||||
}
|
||||
|
||||
@@ -57,5 +63,12 @@ namespace k8s.Models
|
||||
[JsonProperty(PropertyName = "ip")]
|
||||
public string Ip { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets ports is a list of records of service ports If used,
|
||||
/// every port defined in the service should have an entry in it
|
||||
/// </summary>
|
||||
[JsonProperty(PropertyName = "ports")]
|
||||
public IList<V1PortStatus> Ports { get; set; }
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
52
src/KubernetesClient/generated/Models/V1Overhead.cs
generated
Normal file
52
src/KubernetesClient/generated/Models/V1Overhead.cs
generated
Normal file
@@ -0,0 +1,52 @@
|
||||
// <auto-generated>
|
||||
// Code generated by Microsoft (R) AutoRest Code Generator.
|
||||
// Changes may cause incorrect behavior and will be lost if the code is
|
||||
// regenerated.
|
||||
// </auto-generated>
|
||||
|
||||
namespace k8s.Models
|
||||
{
|
||||
using Newtonsoft.Json;
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
|
||||
/// <summary>
|
||||
/// Overhead structure represents the resource overhead associated with
|
||||
/// running a pod.
|
||||
/// </summary>
|
||||
public partial class V1Overhead
|
||||
{
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the V1Overhead class.
|
||||
/// </summary>
|
||||
public V1Overhead()
|
||||
{
|
||||
CustomInit();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the V1Overhead class.
|
||||
/// </summary>
|
||||
/// <param name="podFixed">PodFixed represents the fixed resource
|
||||
/// overhead associated with running a pod.</param>
|
||||
public V1Overhead(IDictionary<string, ResourceQuantity> podFixed = default(IDictionary<string, ResourceQuantity>))
|
||||
{
|
||||
PodFixed = podFixed;
|
||||
CustomInit();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// An initialization method that performs custom operations like setting defaults
|
||||
/// </summary>
|
||||
partial void CustomInit();
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets podFixed represents the fixed resource overhead
|
||||
/// associated with running a pod.
|
||||
/// </summary>
|
||||
[JsonProperty(PropertyName = "podFixed")]
|
||||
public IDictionary<string, ResourceQuantity> PodFixed { get; set; }
|
||||
|
||||
}
|
||||
}
|
||||
@@ -35,18 +35,14 @@ namespace k8s.Models
|
||||
/// https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes-1</param>
|
||||
/// <param name="dataSource">This field can be used to specify either:
|
||||
/// * An existing VolumeSnapshot object
|
||||
/// (snapshot.storage.k8s.io/VolumeSnapshot - Beta) * An existing PVC
|
||||
/// (PersistentVolumeClaim) * An existing custom resource/object that
|
||||
/// implements data population (Alpha) In order to use VolumeSnapshot
|
||||
/// object types, the appropriate feature gate must be enabled
|
||||
/// (VolumeSnapshotDataSource or AnyVolumeDataSource) If the
|
||||
/// provisioner or an external controller can support the specified
|
||||
/// data source, it will create a new volume based on the contents of
|
||||
/// the specified data source. If the specified data source is not
|
||||
/// supported, the volume will not be created and the failure will be
|
||||
/// reported as an event. In the future, we plan to support more data
|
||||
/// source types and the behavior of the provisioner may
|
||||
/// change.</param>
|
||||
/// (snapshot.storage.k8s.io/VolumeSnapshot) * An existing PVC
|
||||
/// (PersistentVolumeClaim) * An existing custom resource that
|
||||
/// implements data population (Alpha) In order to use custom resource
|
||||
/// types that implement data population, the AnyVolumeDataSource
|
||||
/// feature gate must be enabled. If the provisioner or an external
|
||||
/// controller can support the specified data source, it will create a
|
||||
/// new volume based on the contents of the specified data
|
||||
/// source.</param>
|
||||
/// <param name="resources">Resources represents the minimum resources
|
||||
/// the volume should have. More info:
|
||||
/// https://kubernetes.io/docs/concepts/storage/persistent-volumes#resources</param>
|
||||
@@ -88,17 +84,13 @@ namespace k8s.Models
|
||||
/// <summary>
|
||||
/// Gets or sets this field can be used to specify either: * An
|
||||
/// existing VolumeSnapshot object
|
||||
/// (snapshot.storage.k8s.io/VolumeSnapshot - Beta) * An existing PVC
|
||||
/// (PersistentVolumeClaim) * An existing custom resource/object that
|
||||
/// implements data population (Alpha) In order to use VolumeSnapshot
|
||||
/// object types, the appropriate feature gate must be enabled
|
||||
/// (VolumeSnapshotDataSource or AnyVolumeDataSource) If the
|
||||
/// provisioner or an external controller can support the specified
|
||||
/// data source, it will create a new volume based on the contents of
|
||||
/// the specified data source. If the specified data source is not
|
||||
/// supported, the volume will not be created and the failure will be
|
||||
/// reported as an event. In the future, we plan to support more data
|
||||
/// source types and the behavior of the provisioner may change.
|
||||
/// (snapshot.storage.k8s.io/VolumeSnapshot) * An existing PVC
|
||||
/// (PersistentVolumeClaim) * An existing custom resource that
|
||||
/// implements data population (Alpha) In order to use custom resource
|
||||
/// types that implement data population, the AnyVolumeDataSource
|
||||
/// feature gate must be enabled. If the provisioner or an external
|
||||
/// controller can support the specified data source, it will create a
|
||||
/// new volume based on the contents of the specified data source.
|
||||
/// </summary>
|
||||
[JsonProperty(PropertyName = "dataSource")]
|
||||
public V1TypedLocalObjectReference DataSource { get; set; }
|
||||
|
||||
@@ -46,7 +46,7 @@ namespace k8s.Models
|
||||
/// types which support fsGroup based ownership(and permissions). It
|
||||
/// will have no effect on ephemeral volume types such as: secret,
|
||||
/// configmaps and emptydir. Valid values are "OnRootMismatch" and
|
||||
/// "Always". If not specified defaults to "Always".</param>
|
||||
/// "Always". If not specified, "Always" is used.</param>
|
||||
/// <param name="runAsGroup">The GID to run the entrypoint of the
|
||||
/// container process. Uses runtime default if unset. May also be set
|
||||
/// in SecurityContext. If set in both SecurityContext and
|
||||
@@ -125,8 +125,8 @@ namespace k8s.Models
|
||||
/// Pod. This field will only apply to volume types which support
|
||||
/// fsGroup based ownership(and permissions). It will have no effect on
|
||||
/// ephemeral volume types such as: secret, configmaps and emptydir.
|
||||
/// Valid values are "OnRootMismatch" and "Always". If not specified
|
||||
/// defaults to "Always".
|
||||
/// Valid values are "OnRootMismatch" and "Always". If not specified,
|
||||
/// "Always" is used.
|
||||
/// </summary>
|
||||
[JsonProperty(PropertyName = "fsGroupChangePolicy")]
|
||||
public string FsGroupChangePolicy { get; set; }
|
||||
|
||||
94
src/KubernetesClient/generated/Models/V1PortStatus.cs
generated
Normal file
94
src/KubernetesClient/generated/Models/V1PortStatus.cs
generated
Normal file
@@ -0,0 +1,94 @@
|
||||
// <auto-generated>
|
||||
// Code generated by Microsoft (R) AutoRest Code Generator.
|
||||
// Changes may cause incorrect behavior and will be lost if the code is
|
||||
// regenerated.
|
||||
// </auto-generated>
|
||||
|
||||
namespace k8s.Models
|
||||
{
|
||||
using Microsoft.Rest;
|
||||
using Newtonsoft.Json;
|
||||
using System.Linq;
|
||||
|
||||
public partial class V1PortStatus
|
||||
{
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the V1PortStatus class.
|
||||
/// </summary>
|
||||
public V1PortStatus()
|
||||
{
|
||||
CustomInit();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the V1PortStatus class.
|
||||
/// </summary>
|
||||
/// <param name="port">Port is the port number of the service port of
|
||||
/// which status is recorded here</param>
|
||||
/// <param name="protocol">Protocol is the protocol of the service port
|
||||
/// of which status is recorded here The supported values are: "TCP",
|
||||
/// "UDP", "SCTP"</param>
|
||||
/// <param name="error">Error is to record the problem with the service
|
||||
/// port The format of the error shall comply with the following rules:
|
||||
/// - built-in error values shall be specified in this file and those
|
||||
/// shall use
|
||||
/// CamelCase names
|
||||
/// - cloud provider specific error values must have names that comply
|
||||
/// with the
|
||||
/// format foo.example.com/CamelCase.</param>
|
||||
public V1PortStatus(int port, string protocol, string error = default(string))
|
||||
{
|
||||
Error = error;
|
||||
Port = port;
|
||||
Protocol = protocol;
|
||||
CustomInit();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// An initialization method that performs custom operations like setting defaults
|
||||
/// </summary>
|
||||
partial void CustomInit();
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets error is to record the problem with the service port
|
||||
/// The format of the error shall comply with the following rules: -
|
||||
/// built-in error values shall be specified in this file and those
|
||||
/// shall use
|
||||
/// CamelCase names
|
||||
/// - cloud provider specific error values must have names that comply
|
||||
/// with the
|
||||
/// format foo.example.com/CamelCase.
|
||||
/// </summary>
|
||||
[JsonProperty(PropertyName = "error")]
|
||||
public string Error { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets port is the port number of the service port of which
|
||||
/// status is recorded here
|
||||
/// </summary>
|
||||
[JsonProperty(PropertyName = "port")]
|
||||
public int Port { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets protocol is the protocol of the service port of which
|
||||
/// status is recorded here The supported values are: "TCP", "UDP",
|
||||
/// "SCTP"
|
||||
/// </summary>
|
||||
[JsonProperty(PropertyName = "protocol")]
|
||||
public string Protocol { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Validate the object.
|
||||
/// </summary>
|
||||
/// <exception cref="ValidationException">
|
||||
/// Thrown if validation fails
|
||||
/// </exception>
|
||||
public virtual void Validate()
|
||||
{
|
||||
if (Protocol == null)
|
||||
{
|
||||
throw new ValidationException(ValidationRules.CannotBeNull, "Protocol");
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -6,7 +6,6 @@
|
||||
|
||||
namespace k8s.Models
|
||||
{
|
||||
using Microsoft.Rest;
|
||||
using Newtonsoft.Json;
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
@@ -28,7 +27,6 @@ namespace k8s.Models
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the V1ProjectedVolumeSource class.
|
||||
/// </summary>
|
||||
/// <param name="sources">list of volume projections</param>
|
||||
/// <param name="defaultMode">Mode bits used to set permissions on
|
||||
/// created files by default. Must be an octal value between 0000 and
|
||||
/// 0777 or a decimal value between 0 and 511. YAML accepts both octal
|
||||
@@ -36,7 +34,8 @@ namespace k8s.Models
|
||||
/// Directories within the path are not affected by this setting. This
|
||||
/// might be in conflict with other options that affect the file mode,
|
||||
/// like fsGroup, and the result can be other mode bits set.</param>
|
||||
public V1ProjectedVolumeSource(IList<V1VolumeProjection> sources, int? defaultMode = default(int?))
|
||||
/// <param name="sources">list of volume projections</param>
|
||||
public V1ProjectedVolumeSource(int? defaultMode = default(int?), IList<V1VolumeProjection> sources = default(IList<V1VolumeProjection>))
|
||||
{
|
||||
DefaultMode = defaultMode;
|
||||
Sources = sources;
|
||||
@@ -66,28 +65,5 @@ namespace k8s.Models
|
||||
[JsonProperty(PropertyName = "sources")]
|
||||
public IList<V1VolumeProjection> Sources { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Validate the object.
|
||||
/// </summary>
|
||||
/// <exception cref="ValidationException">
|
||||
/// Thrown if validation fails
|
||||
/// </exception>
|
||||
public virtual void Validate()
|
||||
{
|
||||
if (Sources == null)
|
||||
{
|
||||
throw new ValidationException(ValidationRules.CannotBeNull, "Sources");
|
||||
}
|
||||
if (Sources != null)
|
||||
{
|
||||
foreach (var element in Sources)
|
||||
{
|
||||
if (element != null)
|
||||
{
|
||||
element.Validate();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
158
src/KubernetesClient/generated/Models/V1RuntimeClass.cs
generated
Normal file
158
src/KubernetesClient/generated/Models/V1RuntimeClass.cs
generated
Normal file
@@ -0,0 +1,158 @@
|
||||
// <auto-generated>
|
||||
// Code generated by Microsoft (R) AutoRest Code Generator.
|
||||
// Changes may cause incorrect behavior and will be lost if the code is
|
||||
// regenerated.
|
||||
// </auto-generated>
|
||||
|
||||
namespace k8s.Models
|
||||
{
|
||||
using Microsoft.Rest;
|
||||
using Newtonsoft.Json;
|
||||
using System.Linq;
|
||||
|
||||
/// <summary>
|
||||
/// RuntimeClass defines a class of container runtime supported in the
|
||||
/// cluster. The RuntimeClass is used to determine which container runtime
|
||||
/// is used to run all containers in a pod. RuntimeClasses are manually
|
||||
/// defined by a user or cluster provisioner, and referenced in the
|
||||
/// PodSpec. The Kubelet is responsible for resolving the RuntimeClassName
|
||||
/// reference before running the pod. For more details, see
|
||||
/// https://kubernetes.io/docs/concepts/containers/runtime-class/
|
||||
/// </summary>
|
||||
public partial class V1RuntimeClass
|
||||
{
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the V1RuntimeClass class.
|
||||
/// </summary>
|
||||
public V1RuntimeClass()
|
||||
{
|
||||
CustomInit();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the V1RuntimeClass class.
|
||||
/// </summary>
|
||||
/// <param name="handler">Handler specifies the underlying runtime and
|
||||
/// configuration that the CRI implementation will use to handle pods
|
||||
/// of this class. The possible values are specific to the node &
|
||||
/// CRI configuration. It is assumed that all handlers are available
|
||||
/// on every node, and handlers of the same name are equivalent on
|
||||
/// every node. For example, a handler called "runc" might specify that
|
||||
/// the runc OCI runtime (using native Linux containers) will be used
|
||||
/// to run the containers in a pod. The Handler must be lowercase,
|
||||
/// conform to the DNS Label (RFC 1123) requirements, and is
|
||||
/// immutable.</param>
|
||||
/// <param name="apiVersion">APIVersion defines the versioned schema of
|
||||
/// this representation of an object. Servers should convert recognized
|
||||
/// schemas to the latest internal value, and may reject unrecognized
|
||||
/// values. More info:
|
||||
/// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources</param>
|
||||
/// <param name="kind">Kind is a string value representing the REST
|
||||
/// resource this object represents. Servers may infer this from the
|
||||
/// endpoint the client submits requests to. Cannot be updated. In
|
||||
/// CamelCase. More info:
|
||||
/// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds</param>
|
||||
/// <param name="metadata">More info:
|
||||
/// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata</param>
|
||||
/// <param name="overhead">Overhead represents the resource overhead
|
||||
/// associated with running a pod for a given RuntimeClass. For more
|
||||
/// details, see
|
||||
/// https://kubernetes.io/docs/concepts/scheduling-eviction/pod-overhead/
|
||||
/// This field is in beta starting v1.18 and is only honored by servers
|
||||
/// that enable the PodOverhead feature.</param>
|
||||
/// <param name="scheduling">Scheduling holds the scheduling
|
||||
/// constraints to ensure that pods running with this RuntimeClass are
|
||||
/// scheduled to nodes that support it. If scheduling is nil, this
|
||||
/// RuntimeClass is assumed to be supported by all nodes.</param>
|
||||
public V1RuntimeClass(string handler, string apiVersion = default(string), string kind = default(string), V1ObjectMeta metadata = default(V1ObjectMeta), V1Overhead overhead = default(V1Overhead), V1Scheduling scheduling = default(V1Scheduling))
|
||||
{
|
||||
ApiVersion = apiVersion;
|
||||
Handler = handler;
|
||||
Kind = kind;
|
||||
Metadata = metadata;
|
||||
Overhead = overhead;
|
||||
Scheduling = scheduling;
|
||||
CustomInit();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// An initialization method that performs custom operations like setting defaults
|
||||
/// </summary>
|
||||
partial void CustomInit();
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets aPIVersion defines the versioned schema of this
|
||||
/// representation of an object. Servers should convert recognized
|
||||
/// schemas to the latest internal value, and may reject unrecognized
|
||||
/// values. More info:
|
||||
/// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
|
||||
/// </summary>
|
||||
[JsonProperty(PropertyName = "apiVersion")]
|
||||
public string ApiVersion { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets handler specifies the underlying runtime and
|
||||
/// configuration that the CRI implementation will use to handle pods
|
||||
/// of this class. The possible values are specific to the node
|
||||
/// &amp; CRI configuration. It is assumed that all handlers are
|
||||
/// available on every node, and handlers of the same name are
|
||||
/// equivalent on every node. For example, a handler called "runc"
|
||||
/// might specify that the runc OCI runtime (using native Linux
|
||||
/// containers) will be used to run the containers in a pod. The
|
||||
/// Handler must be lowercase, conform to the DNS Label (RFC 1123)
|
||||
/// requirements, and is immutable.
|
||||
/// </summary>
|
||||
[JsonProperty(PropertyName = "handler")]
|
||||
public string Handler { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets kind is a string value representing the REST resource
|
||||
/// this object represents. Servers may infer this from the endpoint
|
||||
/// the client submits requests to. Cannot be updated. In CamelCase.
|
||||
/// More info:
|
||||
/// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
|
||||
/// </summary>
|
||||
[JsonProperty(PropertyName = "kind")]
|
||||
public string Kind { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets more info:
|
||||
/// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
|
||||
/// </summary>
|
||||
[JsonProperty(PropertyName = "metadata")]
|
||||
public V1ObjectMeta Metadata { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets overhead represents the resource overhead associated
|
||||
/// with running a pod for a given RuntimeClass. For more details, see
|
||||
/// https://kubernetes.io/docs/concepts/scheduling-eviction/pod-overhead/
|
||||
/// This field is in beta starting v1.18 and is only honored by servers
|
||||
/// that enable the PodOverhead feature.
|
||||
/// </summary>
|
||||
[JsonProperty(PropertyName = "overhead")]
|
||||
public V1Overhead Overhead { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets scheduling holds the scheduling constraints to ensure
|
||||
/// that pods running with this RuntimeClass are scheduled to nodes
|
||||
/// that support it. If scheduling is nil, this RuntimeClass is assumed
|
||||
/// to be supported by all nodes.
|
||||
/// </summary>
|
||||
[JsonProperty(PropertyName = "scheduling")]
|
||||
public V1Scheduling Scheduling { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Validate the object.
|
||||
/// </summary>
|
||||
/// <exception cref="ValidationException">
|
||||
/// Thrown if validation fails
|
||||
/// </exception>
|
||||
public virtual void Validate()
|
||||
{
|
||||
if (Handler == null)
|
||||
{
|
||||
throw new ValidationException(ValidationRules.CannotBeNull, "Handler");
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -13,20 +13,20 @@ namespace k8s.Models
|
||||
using System.Linq;
|
||||
|
||||
/// <summary>
|
||||
/// PodPresetList is a list of PodPreset objects.
|
||||
/// RuntimeClassList is a list of RuntimeClass objects.
|
||||
/// </summary>
|
||||
public partial class V1alpha1PodPresetList
|
||||
public partial class V1RuntimeClassList
|
||||
{
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the V1alpha1PodPresetList class.
|
||||
/// Initializes a new instance of the V1RuntimeClassList class.
|
||||
/// </summary>
|
||||
public V1alpha1PodPresetList()
|
||||
public V1RuntimeClassList()
|
||||
{
|
||||
CustomInit();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the V1alpha1PodPresetList class.
|
||||
/// Initializes a new instance of the V1RuntimeClassList class.
|
||||
/// </summary>
|
||||
/// <param name="items">Items is a list of schema objects.</param>
|
||||
/// <param name="apiVersion">APIVersion defines the versioned schema of
|
||||
@@ -41,7 +41,7 @@ namespace k8s.Models
|
||||
/// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds</param>
|
||||
/// <param name="metadata">Standard list metadata. More info:
|
||||
/// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata</param>
|
||||
public V1alpha1PodPresetList(IList<V1alpha1PodPreset> items, string apiVersion = default(string), string kind = default(string), V1ListMeta metadata = default(V1ListMeta))
|
||||
public V1RuntimeClassList(IList<V1RuntimeClass> items, string apiVersion = default(string), string kind = default(string), V1ListMeta metadata = default(V1ListMeta))
|
||||
{
|
||||
ApiVersion = apiVersion;
|
||||
Items = items;
|
||||
@@ -69,7 +69,7 @@ namespace k8s.Models
|
||||
/// Gets or sets items is a list of schema objects.
|
||||
/// </summary>
|
||||
[JsonProperty(PropertyName = "items")]
|
||||
public IList<V1alpha1PodPreset> Items { get; set; }
|
||||
public IList<V1RuntimeClass> Items { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets kind is a string value representing the REST resource
|
||||
@@ -100,6 +100,16 @@ namespace k8s.Models
|
||||
{
|
||||
throw new ValidationException(ValidationRules.CannotBeNull, "Items");
|
||||
}
|
||||
if (Items != null)
|
||||
{
|
||||
foreach (var element in Items)
|
||||
{
|
||||
if (element != null)
|
||||
{
|
||||
element.Validate();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
74
src/KubernetesClient/generated/Models/V1Scheduling.cs
generated
Normal file
74
src/KubernetesClient/generated/Models/V1Scheduling.cs
generated
Normal file
@@ -0,0 +1,74 @@
|
||||
// <auto-generated>
|
||||
// Code generated by Microsoft (R) AutoRest Code Generator.
|
||||
// Changes may cause incorrect behavior and will be lost if the code is
|
||||
// regenerated.
|
||||
// </auto-generated>
|
||||
|
||||
namespace k8s.Models
|
||||
{
|
||||
using Newtonsoft.Json;
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
|
||||
/// <summary>
|
||||
/// Scheduling specifies the scheduling constraints for nodes supporting a
|
||||
/// RuntimeClass.
|
||||
/// </summary>
|
||||
public partial class V1Scheduling
|
||||
{
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the V1Scheduling class.
|
||||
/// </summary>
|
||||
public V1Scheduling()
|
||||
{
|
||||
CustomInit();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the V1Scheduling class.
|
||||
/// </summary>
|
||||
/// <param name="nodeSelector">nodeSelector lists labels that must be
|
||||
/// present on nodes that support this RuntimeClass. Pods using this
|
||||
/// RuntimeClass can only be scheduled to a node matched by this
|
||||
/// selector. The RuntimeClass nodeSelector is merged with a pod's
|
||||
/// existing nodeSelector. Any conflicts will cause the pod to be
|
||||
/// rejected in admission.</param>
|
||||
/// <param name="tolerations">tolerations are appended (excluding
|
||||
/// duplicates) to pods running with this RuntimeClass during
|
||||
/// admission, effectively unioning the set of nodes tolerated by the
|
||||
/// pod and the RuntimeClass.</param>
|
||||
public V1Scheduling(IDictionary<string, string> nodeSelector = default(IDictionary<string, string>), IList<V1Toleration> tolerations = default(IList<V1Toleration>))
|
||||
{
|
||||
NodeSelector = nodeSelector;
|
||||
Tolerations = tolerations;
|
||||
CustomInit();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// An initialization method that performs custom operations like setting defaults
|
||||
/// </summary>
|
||||
partial void CustomInit();
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets nodeSelector lists labels that must be present on
|
||||
/// nodes that support this RuntimeClass. Pods using this RuntimeClass
|
||||
/// can only be scheduled to a node matched by this selector. The
|
||||
/// RuntimeClass nodeSelector is merged with a pod's existing
|
||||
/// nodeSelector. Any conflicts will cause the pod to be rejected in
|
||||
/// admission.
|
||||
/// </summary>
|
||||
[JsonProperty(PropertyName = "nodeSelector")]
|
||||
public IDictionary<string, string> NodeSelector { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets tolerations are appended (excluding duplicates) to
|
||||
/// pods running with this RuntimeClass during admission, effectively
|
||||
/// unioning the set of nodes tolerated by the pod and the
|
||||
/// RuntimeClass.
|
||||
/// </summary>
|
||||
[JsonProperty(PropertyName = "tolerations")]
|
||||
public IList<V1Toleration> Tolerations { get; set; }
|
||||
|
||||
}
|
||||
}
|
||||
@@ -41,11 +41,14 @@ namespace k8s.Models
|
||||
/// must match the 'name' field in the EndpointPort. Optional if only
|
||||
/// one ServicePort is defined on this service.</param>
|
||||
/// <param name="nodePort">The port on each node on which this service
|
||||
/// is exposed when type=NodePort or LoadBalancer. Usually assigned by
|
||||
/// the system. If specified, it will be allocated to the service if
|
||||
/// unused or else creation of the service will fail. Default is to
|
||||
/// auto-allocate a port if the ServiceType of this Service requires
|
||||
/// one. More info:
|
||||
/// is exposed when type is NodePort or LoadBalancer. Usually assigned
|
||||
/// by the system. If a value is specified, in-range, and not in use it
|
||||
/// will be used, otherwise the operation will fail. If not specified,
|
||||
/// a port will be allocated if this Service requires one. If this
|
||||
/// field is specified when creating a Service which does not need it,
|
||||
/// creation will fail. This field will be wiped when updating a
|
||||
/// Service to no longer need it (e.g. changing type from NodePort to
|
||||
/// ClusterIP). More info:
|
||||
/// https://kubernetes.io/docs/concepts/services-networking/service/#type-nodeport</param>
|
||||
/// <param name="protocol">The IP protocol for this port. Supports
|
||||
/// "TCP", "UDP", and "SCTP". Default is TCP.</param>
|
||||
@@ -99,10 +102,14 @@ namespace k8s.Models
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the port on each node on which this service is exposed
|
||||
/// when type=NodePort or LoadBalancer. Usually assigned by the system.
|
||||
/// If specified, it will be allocated to the service if unused or else
|
||||
/// creation of the service will fail. Default is to auto-allocate a
|
||||
/// port if the ServiceType of this Service requires one. More info:
|
||||
/// when type is NodePort or LoadBalancer. Usually assigned by the
|
||||
/// system. If a value is specified, in-range, and not in use it will
|
||||
/// be used, otherwise the operation will fail. If not specified, a
|
||||
/// port will be allocated if this Service requires one. If this field
|
||||
/// is specified when creating a Service which does not need it,
|
||||
/// creation will fail. This field will be wiped when updating a
|
||||
/// Service to no longer need it (e.g. changing type from NodePort to
|
||||
/// ClusterIP). More info:
|
||||
/// https://kubernetes.io/docs/concepts/services-networking/service/#type-nodeport
|
||||
/// </summary>
|
||||
[JsonProperty(PropertyName = "nodePort")]
|
||||
|
||||
339
src/KubernetesClient/generated/Models/V1ServiceSpec.cs
generated
339
src/KubernetesClient/generated/Models/V1ServiceSpec.cs
generated
@@ -27,15 +27,60 @@ namespace k8s.Models
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the V1ServiceSpec class.
|
||||
/// </summary>
|
||||
/// <param
|
||||
/// name="allocateLoadBalancerNodePorts">allocateLoadBalancerNodePorts
|
||||
/// defines if NodePorts will be automatically allocated for services
|
||||
/// with type LoadBalancer. Default is "true". It may be set to
|
||||
/// "false" if the cluster load-balancer does not rely on NodePorts.
|
||||
/// allocateLoadBalancerNodePorts may only be set for services with
|
||||
/// type LoadBalancer and will be cleared if the type is changed to any
|
||||
/// other type. This field is alpha-level and is only honored by
|
||||
/// servers that enable the ServiceLBNodePortControl feature.</param>
|
||||
/// <param name="clusterIP">clusterIP is the IP address of the service
|
||||
/// and is usually assigned randomly by the master. If an address is
|
||||
/// specified manually and is not in use by others, it will be
|
||||
/// allocated to the service; otherwise, creation of the service will
|
||||
/// fail. This field can not be changed through updates. Valid values
|
||||
/// are "None", empty string (""), or a valid IP address. "None" can be
|
||||
/// specified for headless services when proxying is not required. Only
|
||||
/// applies to types ClusterIP, NodePort, and LoadBalancer. Ignored if
|
||||
/// type is ExternalName. More info:
|
||||
/// and is usually assigned randomly. If an address is specified
|
||||
/// manually, is in-range (as per system configuration), and is not in
|
||||
/// use, it will be allocated to the service; otherwise creation of the
|
||||
/// service will fail. This field may not be changed through updates
|
||||
/// unless the type field is also being changed to ExternalName (which
|
||||
/// requires this field to be blank) or the type field is being changed
|
||||
/// from ExternalName (in which case this field may optionally be
|
||||
/// specified, as describe above). Valid values are "None", empty
|
||||
/// string (""), or a valid IP address. Setting this to "None" makes a
|
||||
/// "headless service" (no virtual IP), which is useful when direct
|
||||
/// endpoint connections are preferred and proxying is not required.
|
||||
/// Only applies to types ClusterIP, NodePort, and LoadBalancer. If
|
||||
/// this field is specified when creating a Service of type
|
||||
/// ExternalName, creation will fail. This field will be wiped when
|
||||
/// updating a Service to type ExternalName. More info:
|
||||
/// https://kubernetes.io/docs/concepts/services-networking/service/#virtual-ips-and-service-proxies</param>
|
||||
/// <param name="clusterIPs">ClusterIPs is a list of IP addresses
|
||||
/// assigned to this service, and are usually assigned randomly. If an
|
||||
/// address is specified manually, is in-range (as per system
|
||||
/// configuration), and is not in use, it will be allocated to the
|
||||
/// service; otherwise creation of the service will fail. This field
|
||||
/// may not be changed through updates unless the type field is also
|
||||
/// being changed to ExternalName (which requires this field to be
|
||||
/// empty) or the type field is being changed from ExternalName (in
|
||||
/// which case this field may optionally be specified, as describe
|
||||
/// above). Valid values are "None", empty string (""), or a valid IP
|
||||
/// address. Setting this to "None" makes a "headless service" (no
|
||||
/// virtual IP), which is useful when direct endpoint connections are
|
||||
/// preferred and proxying is not required. Only applies to types
|
||||
/// ClusterIP, NodePort, and LoadBalancer. If this field is specified
|
||||
/// when creating a Service of type ExternalName, creation will fail.
|
||||
/// This field will be wiped when updating a Service to type
|
||||
/// ExternalName. If this field is not specified, it will be
|
||||
/// initialized from the clusterIP field. If this field is specified,
|
||||
/// clients must ensure that clusterIPs[0] and clusterIP have the same
|
||||
/// value.
|
||||
///
|
||||
/// Unless the "IPv6DualStack" feature gate is enabled, this field is
|
||||
/// limited to one value, which must be the same as the clusterIP
|
||||
/// field. If the feature gate is enabled, this field may hold a
|
||||
/// maximum of two entries (dual-stack IPs, in either order). These
|
||||
/// IPs must correspond to the values of the ipFamilies field. Both
|
||||
/// clusterIPs and ipFamilies are governed by the ipFamilyPolicy field.
|
||||
/// More info:
|
||||
/// https://kubernetes.io/docs/concepts/services-networking/service/#virtual-ips-and-service-proxies</param>
|
||||
/// <param name="externalIPs">externalIPs is a list of IP addresses for
|
||||
/// which nodes in the cluster will also accept traffic for this
|
||||
@@ -44,10 +89,10 @@ namespace k8s.Models
|
||||
/// IP. A common example is external load-balancers that are not part
|
||||
/// of the Kubernetes system.</param>
|
||||
/// <param name="externalName">externalName is the external reference
|
||||
/// that kubedns or equivalent will return as a CNAME record for this
|
||||
/// service. No proxying will be involved. Must be a valid RFC-1123
|
||||
/// hostname (https://tools.ietf.org/html/rfc1123) and requires Type to
|
||||
/// be ExternalName.</param>
|
||||
/// that discovery mechanisms will return as an alias for this service
|
||||
/// (e.g. a DNS CNAME record). No proxying will be involved. Must be a
|
||||
/// lowercase RFC-1123 hostname (https://tools.ietf.org/html/rfc1123)
|
||||
/// and requires Type to be</param>
|
||||
/// <param name="externalTrafficPolicy">externalTrafficPolicy denotes
|
||||
/// if this Service desires to route external traffic to node-local or
|
||||
/// cluster-wide endpoints. "Local" preserves the client source IP and
|
||||
@@ -56,30 +101,43 @@ namespace k8s.Models
|
||||
/// obscures the client source IP and may cause a second hop to another
|
||||
/// node, but should have good overall load-spreading.</param>
|
||||
/// <param name="healthCheckNodePort">healthCheckNodePort specifies the
|
||||
/// healthcheck nodePort for the service. If not specified,
|
||||
/// HealthCheckNodePort is created by the service api backend with the
|
||||
/// allocated nodePort. Will use user-specified nodePort value if
|
||||
/// specified by the client. Only effects when Type is set to
|
||||
/// LoadBalancer and ExternalTrafficPolicy is set to Local.</param>
|
||||
/// <param name="ipFamily">ipFamily specifies whether this Service has
|
||||
/// a preference for a particular IP family (e.g. IPv4 vs. IPv6) when
|
||||
/// the IPv6DualStack feature gate is enabled. In a dual-stack cluster,
|
||||
/// you can specify ipFamily when creating a ClusterIP Service to
|
||||
/// determine whether the controller will allocate an IPv4 or IPv6 IP
|
||||
/// for it, and you can specify ipFamily when creating a headless
|
||||
/// Service to determine whether it will have IPv4 or IPv6 Endpoints.
|
||||
/// In either case, if you do not specify an ipFamily explicitly, it
|
||||
/// will default to the cluster's primary IP family. This field is part
|
||||
/// of an alpha feature, and you should not make any assumptions about
|
||||
/// its semantics other than those described above. In particular, you
|
||||
/// should not assume that it can (or cannot) be changed after creation
|
||||
/// time; that it can only have the values "IPv4" and "IPv6"; or that
|
||||
/// its current value on a given Service correctly reflects the current
|
||||
/// state of that Service. (For ClusterIP Services, look at clusterIP
|
||||
/// to see if the Service is IPv4 or IPv6. For headless Services, look
|
||||
/// at the endpoints, which may be dual-stack in the future. For
|
||||
/// ExternalName Services, ipFamily has no meaning, but it may be set
|
||||
/// to an irrelevant value anyway.)</param>
|
||||
/// healthcheck nodePort for the service. This only applies when type
|
||||
/// is set to LoadBalancer and externalTrafficPolicy is set to Local.
|
||||
/// If a value is specified, is in-range, and is not in use, it will be
|
||||
/// used. If not specified, a value will be automatically allocated.
|
||||
/// External systems (e.g. load-balancers) can use this port to
|
||||
/// determine if a given node holds endpoints for this service or not.
|
||||
/// If this field is specified when creating a Service which does not
|
||||
/// need it, creation will fail. This field will be wiped when updating
|
||||
/// a Service to no longer need it (e.g. changing type).</param>
|
||||
/// <param name="ipFamilies">IPFamilies is a list of IP families (e.g.
|
||||
/// IPv4, IPv6) assigned to this service, and is gated by the
|
||||
/// "IPv6DualStack" feature gate. This field is usually assigned
|
||||
/// automatically based on cluster configuration and the ipFamilyPolicy
|
||||
/// field. If this field is specified manually, the requested family is
|
||||
/// available in the cluster, and ipFamilyPolicy allows it, it will be
|
||||
/// used; otherwise creation of the service will fail. This field is
|
||||
/// conditionally mutable: it allows for adding or removing a secondary
|
||||
/// IP family, but it does not allow changing the primary IP family of
|
||||
/// the Service. Valid values are "IPv4" and "IPv6". This field only
|
||||
/// applies to Services of types ClusterIP, NodePort, and LoadBalancer,
|
||||
/// and does apply to "headless" services. This field will be wiped
|
||||
/// when updating a Service to type ExternalName.
|
||||
///
|
||||
/// This field may hold a maximum of two entries (dual-stack families,
|
||||
/// in either order). These families must correspond to the values of
|
||||
/// the clusterIPs field, if specified. Both clusterIPs and ipFamilies
|
||||
/// are governed by the ipFamilyPolicy field.</param>
|
||||
/// <param name="ipFamilyPolicy">IPFamilyPolicy represents the
|
||||
/// dual-stack-ness requested or required by this Service, and is gated
|
||||
/// by the "IPv6DualStack" feature gate. If there is no value
|
||||
/// provided, then this field will be set to SingleStack. Services can
|
||||
/// be "SingleStack" (a single IP family), "PreferDualStack" (two IP
|
||||
/// families on dual-stack configured clusters or a single IP family on
|
||||
/// single-stack clusters), or "RequireDualStack" (two IP families on
|
||||
/// dual-stack configured clusters, otherwise fail). The ipFamilies and
|
||||
/// clusterIPs fields depend on the value of this field. This field
|
||||
/// will be wiped when updating a service to type ExternalName.</param>
|
||||
/// <param name="loadBalancerIP">Only applies to Service Type:
|
||||
/// LoadBalancer LoadBalancer will get created with the IP specified in
|
||||
/// this field. This feature depends on whether the underlying
|
||||
@@ -131,29 +189,35 @@ namespace k8s.Models
|
||||
/// special value "*" may be used to mean "any topology". This
|
||||
/// catch-all value, if used, only makes sense as the last value in the
|
||||
/// list. If this is not specified or empty, no topology constraints
|
||||
/// will be applied.</param>
|
||||
/// will be applied. This field is alpha-level and is only honored by
|
||||
/// servers that enable the ServiceTopology feature.</param>
|
||||
/// <param name="type">type determines how the Service is exposed.
|
||||
/// Defaults to ClusterIP. Valid options are ExternalName, ClusterIP,
|
||||
/// NodePort, and LoadBalancer. "ExternalName" maps to the specified
|
||||
/// externalName. "ClusterIP" allocates a cluster-internal IP address
|
||||
/// for load-balancing to endpoints. Endpoints are determined by the
|
||||
/// selector or if that is not specified, by manual construction of an
|
||||
/// Endpoints object. If clusterIP is "None", no virtual IP is
|
||||
/// NodePort, and LoadBalancer. "ClusterIP" allocates a
|
||||
/// cluster-internal IP address for load-balancing to endpoints.
|
||||
/// Endpoints are determined by the selector or if that is not
|
||||
/// specified, by manual construction of an Endpoints object or
|
||||
/// EndpointSlice objects. If clusterIP is "None", no virtual IP is
|
||||
/// allocated and the endpoints are published as a set of endpoints
|
||||
/// rather than a stable IP. "NodePort" builds on ClusterIP and
|
||||
/// allocates a port on every node which routes to the clusterIP.
|
||||
/// "LoadBalancer" builds on NodePort and creates an external
|
||||
/// load-balancer (if supported in the current cloud) which routes to
|
||||
/// the clusterIP. More info:
|
||||
/// rather than a virtual IP. "NodePort" builds on ClusterIP and
|
||||
/// allocates a port on every node which routes to the same endpoints
|
||||
/// as the clusterIP. "LoadBalancer" builds on NodePort and creates an
|
||||
/// external load-balancer (if supported in the current cloud) which
|
||||
/// routes to the same endpoints as the clusterIP. "ExternalName"
|
||||
/// aliases this service to the specified externalName. Several other
|
||||
/// fields do not apply to ExternalName services. More info:
|
||||
/// https://kubernetes.io/docs/concepts/services-networking/service/#publishing-services-service-types</param>
|
||||
public V1ServiceSpec(string clusterIP = default(string), IList<string> externalIPs = default(IList<string>), string externalName = default(string), string externalTrafficPolicy = default(string), int? healthCheckNodePort = default(int?), string ipFamily = default(string), string loadBalancerIP = default(string), IList<string> loadBalancerSourceRanges = default(IList<string>), IList<V1ServicePort> ports = default(IList<V1ServicePort>), bool? publishNotReadyAddresses = default(bool?), IDictionary<string, string> selector = default(IDictionary<string, string>), string sessionAffinity = default(string), V1SessionAffinityConfig sessionAffinityConfig = default(V1SessionAffinityConfig), IList<string> topologyKeys = default(IList<string>), string type = default(string))
|
||||
public V1ServiceSpec(bool? allocateLoadBalancerNodePorts = default(bool?), string clusterIP = default(string), IList<string> clusterIPs = default(IList<string>), IList<string> externalIPs = default(IList<string>), string externalName = default(string), string externalTrafficPolicy = default(string), int? healthCheckNodePort = default(int?), IList<string> ipFamilies = default(IList<string>), string ipFamilyPolicy = default(string), string loadBalancerIP = default(string), IList<string> loadBalancerSourceRanges = default(IList<string>), IList<V1ServicePort> ports = default(IList<V1ServicePort>), bool? publishNotReadyAddresses = default(bool?), IDictionary<string, string> selector = default(IDictionary<string, string>), string sessionAffinity = default(string), V1SessionAffinityConfig sessionAffinityConfig = default(V1SessionAffinityConfig), IList<string> topologyKeys = default(IList<string>), string type = default(string))
|
||||
{
|
||||
AllocateLoadBalancerNodePorts = allocateLoadBalancerNodePorts;
|
||||
ClusterIP = clusterIP;
|
||||
ClusterIPs = clusterIPs;
|
||||
ExternalIPs = externalIPs;
|
||||
ExternalName = externalName;
|
||||
ExternalTrafficPolicy = externalTrafficPolicy;
|
||||
HealthCheckNodePort = healthCheckNodePort;
|
||||
IpFamily = ipFamily;
|
||||
IpFamilies = ipFamilies;
|
||||
IpFamilyPolicy = ipFamilyPolicy;
|
||||
LoadBalancerIP = loadBalancerIP;
|
||||
LoadBalancerSourceRanges = loadBalancerSourceRanges;
|
||||
Ports = ports;
|
||||
@@ -171,21 +235,74 @@ namespace k8s.Models
|
||||
/// </summary>
|
||||
partial void CustomInit();
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets allocateLoadBalancerNodePorts defines if NodePorts
|
||||
/// will be automatically allocated for services with type
|
||||
/// LoadBalancer. Default is "true". It may be set to "false" if the
|
||||
/// cluster load-balancer does not rely on NodePorts.
|
||||
/// allocateLoadBalancerNodePorts may only be set for services with
|
||||
/// type LoadBalancer and will be cleared if the type is changed to any
|
||||
/// other type. This field is alpha-level and is only honored by
|
||||
/// servers that enable the ServiceLBNodePortControl feature.
|
||||
/// </summary>
|
||||
[JsonProperty(PropertyName = "allocateLoadBalancerNodePorts")]
|
||||
public bool? AllocateLoadBalancerNodePorts { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets clusterIP is the IP address of the service and is
|
||||
/// usually assigned randomly by the master. If an address is specified
|
||||
/// manually and is not in use by others, it will be allocated to the
|
||||
/// service; otherwise, creation of the service will fail. This field
|
||||
/// can not be changed through updates. Valid values are "None", empty
|
||||
/// string (""), or a valid IP address. "None" can be specified for
|
||||
/// headless services when proxying is not required. Only applies to
|
||||
/// types ClusterIP, NodePort, and LoadBalancer. Ignored if type is
|
||||
/// ExternalName. More info:
|
||||
/// usually assigned randomly. If an address is specified manually, is
|
||||
/// in-range (as per system configuration), and is not in use, it will
|
||||
/// be allocated to the service; otherwise creation of the service will
|
||||
/// fail. This field may not be changed through updates unless the type
|
||||
/// field is also being changed to ExternalName (which requires this
|
||||
/// field to be blank) or the type field is being changed from
|
||||
/// ExternalName (in which case this field may optionally be specified,
|
||||
/// as describe above). Valid values are "None", empty string (""), or
|
||||
/// a valid IP address. Setting this to "None" makes a "headless
|
||||
/// service" (no virtual IP), which is useful when direct endpoint
|
||||
/// connections are preferred and proxying is not required. Only
|
||||
/// applies to types ClusterIP, NodePort, and LoadBalancer. If this
|
||||
/// field is specified when creating a Service of type ExternalName,
|
||||
/// creation will fail. This field will be wiped when updating a
|
||||
/// Service to type ExternalName. More info:
|
||||
/// https://kubernetes.io/docs/concepts/services-networking/service/#virtual-ips-and-service-proxies
|
||||
/// </summary>
|
||||
[JsonProperty(PropertyName = "clusterIP")]
|
||||
public string ClusterIP { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets clusterIPs is a list of IP addresses assigned to this
|
||||
/// service, and are usually assigned randomly. If an address is
|
||||
/// specified manually, is in-range (as per system configuration), and
|
||||
/// is not in use, it will be allocated to the service; otherwise
|
||||
/// creation of the service will fail. This field may not be changed
|
||||
/// through updates unless the type field is also being changed to
|
||||
/// ExternalName (which requires this field to be empty) or the type
|
||||
/// field is being changed from ExternalName (in which case this field
|
||||
/// may optionally be specified, as describe above). Valid values are
|
||||
/// "None", empty string (""), or a valid IP address. Setting this to
|
||||
/// "None" makes a "headless service" (no virtual IP), which is useful
|
||||
/// when direct endpoint connections are preferred and proxying is not
|
||||
/// required. Only applies to types ClusterIP, NodePort, and
|
||||
/// LoadBalancer. If this field is specified when creating a Service of
|
||||
/// type ExternalName, creation will fail. This field will be wiped
|
||||
/// when updating a Service to type ExternalName. If this field is not
|
||||
/// specified, it will be initialized from the clusterIP field. If
|
||||
/// this field is specified, clients must ensure that clusterIPs[0] and
|
||||
/// clusterIP have the same value.
|
||||
///
|
||||
/// Unless the "IPv6DualStack" feature gate is enabled, this field is
|
||||
/// limited to one value, which must be the same as the clusterIP
|
||||
/// field. If the feature gate is enabled, this field may hold a
|
||||
/// maximum of two entries (dual-stack IPs, in either order). These
|
||||
/// IPs must correspond to the values of the ipFamilies field. Both
|
||||
/// clusterIPs and ipFamilies are governed by the ipFamilyPolicy field.
|
||||
/// More info:
|
||||
/// https://kubernetes.io/docs/concepts/services-networking/service/#virtual-ips-and-service-proxies
|
||||
/// </summary>
|
||||
[JsonProperty(PropertyName = "clusterIPs")]
|
||||
public IList<string> ClusterIPs { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets externalIPs is a list of IP addresses for which nodes
|
||||
/// in the cluster will also accept traffic for this service. These
|
||||
@@ -198,11 +315,11 @@ namespace k8s.Models
|
||||
public IList<string> ExternalIPs { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets externalName is the external reference that kubedns or
|
||||
/// equivalent will return as a CNAME record for this service. No
|
||||
/// proxying will be involved. Must be a valid RFC-1123 hostname
|
||||
/// (https://tools.ietf.org/html/rfc1123) and requires Type to be
|
||||
/// ExternalName.
|
||||
/// Gets or sets externalName is the external reference that discovery
|
||||
/// mechanisms will return as an alias for this service (e.g. a DNS
|
||||
/// CNAME record). No proxying will be involved. Must be a lowercase
|
||||
/// RFC-1123 hostname (https://tools.ietf.org/html/rfc1123) and
|
||||
/// requires Type to be
|
||||
/// </summary>
|
||||
[JsonProperty(PropertyName = "externalName")]
|
||||
public string ExternalName { get; set; }
|
||||
@@ -221,38 +338,56 @@ namespace k8s.Models
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets healthCheckNodePort specifies the healthcheck nodePort
|
||||
/// for the service. If not specified, HealthCheckNodePort is created
|
||||
/// by the service api backend with the allocated nodePort. Will use
|
||||
/// user-specified nodePort value if specified by the client. Only
|
||||
/// effects when Type is set to LoadBalancer and ExternalTrafficPolicy
|
||||
/// is set to Local.
|
||||
/// for the service. This only applies when type is set to LoadBalancer
|
||||
/// and externalTrafficPolicy is set to Local. If a value is specified,
|
||||
/// is in-range, and is not in use, it will be used. If not specified,
|
||||
/// a value will be automatically allocated. External systems (e.g.
|
||||
/// load-balancers) can use this port to determine if a given node
|
||||
/// holds endpoints for this service or not. If this field is
|
||||
/// specified when creating a Service which does not need it, creation
|
||||
/// will fail. This field will be wiped when updating a Service to no
|
||||
/// longer need it (e.g. changing type).
|
||||
/// </summary>
|
||||
[JsonProperty(PropertyName = "healthCheckNodePort")]
|
||||
public int? HealthCheckNodePort { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets ipFamily specifies whether this Service has a
|
||||
/// preference for a particular IP family (e.g. IPv4 vs. IPv6) when the
|
||||
/// IPv6DualStack feature gate is enabled. In a dual-stack cluster, you
|
||||
/// can specify ipFamily when creating a ClusterIP Service to determine
|
||||
/// whether the controller will allocate an IPv4 or IPv6 IP for it, and
|
||||
/// you can specify ipFamily when creating a headless Service to
|
||||
/// determine whether it will have IPv4 or IPv6 Endpoints. In either
|
||||
/// case, if you do not specify an ipFamily explicitly, it will default
|
||||
/// to the cluster's primary IP family. This field is part of an alpha
|
||||
/// feature, and you should not make any assumptions about its
|
||||
/// semantics other than those described above. In particular, you
|
||||
/// should not assume that it can (or cannot) be changed after creation
|
||||
/// time; that it can only have the values "IPv4" and "IPv6"; or that
|
||||
/// its current value on a given Service correctly reflects the current
|
||||
/// state of that Service. (For ClusterIP Services, look at clusterIP
|
||||
/// to see if the Service is IPv4 or IPv6. For headless Services, look
|
||||
/// at the endpoints, which may be dual-stack in the future. For
|
||||
/// ExternalName Services, ipFamily has no meaning, but it may be set
|
||||
/// to an irrelevant value anyway.)
|
||||
/// Gets or sets iPFamilies is a list of IP families (e.g. IPv4, IPv6)
|
||||
/// assigned to this service, and is gated by the "IPv6DualStack"
|
||||
/// feature gate. This field is usually assigned automatically based
|
||||
/// on cluster configuration and the ipFamilyPolicy field. If this
|
||||
/// field is specified manually, the requested family is available in
|
||||
/// the cluster, and ipFamilyPolicy allows it, it will be used;
|
||||
/// otherwise creation of the service will fail. This field is
|
||||
/// conditionally mutable: it allows for adding or removing a secondary
|
||||
/// IP family, but it does not allow changing the primary IP family of
|
||||
/// the Service. Valid values are "IPv4" and "IPv6". This field only
|
||||
/// applies to Services of types ClusterIP, NodePort, and LoadBalancer,
|
||||
/// and does apply to "headless" services. This field will be wiped
|
||||
/// when updating a Service to type ExternalName.
|
||||
///
|
||||
/// This field may hold a maximum of two entries (dual-stack families,
|
||||
/// in either order). These families must correspond to the values of
|
||||
/// the clusterIPs field, if specified. Both clusterIPs and ipFamilies
|
||||
/// are governed by the ipFamilyPolicy field.
|
||||
/// </summary>
|
||||
[JsonProperty(PropertyName = "ipFamily")]
|
||||
public string IpFamily { get; set; }
|
||||
[JsonProperty(PropertyName = "ipFamilies")]
|
||||
public IList<string> IpFamilies { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets iPFamilyPolicy represents the dual-stack-ness
|
||||
/// requested or required by this Service, and is gated by the
|
||||
/// "IPv6DualStack" feature gate. If there is no value provided, then
|
||||
/// this field will be set to SingleStack. Services can be
|
||||
/// "SingleStack" (a single IP family), "PreferDualStack" (two IP
|
||||
/// families on dual-stack configured clusters or a single IP family on
|
||||
/// single-stack clusters), or "RequireDualStack" (two IP families on
|
||||
/// dual-stack configured clusters, otherwise fail). The ipFamilies and
|
||||
/// clusterIPs fields depend on the value of this field. This field
|
||||
/// will be wiped when updating a service to type ExternalName.
|
||||
/// </summary>
|
||||
[JsonProperty(PropertyName = "ipFamilyPolicy")]
|
||||
public string IpFamilyPolicy { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets only applies to Service Type: LoadBalancer
|
||||
@@ -339,7 +474,9 @@ namespace k8s.Models
|
||||
/// that client and connections should fail. The special value "*" may
|
||||
/// be used to mean "any topology". This catch-all value, if used, only
|
||||
/// makes sense as the last value in the list. If this is not specified
|
||||
/// or empty, no topology constraints will be applied.
|
||||
/// or empty, no topology constraints will be applied. This field is
|
||||
/// alpha-level and is only honored by servers that enable the
|
||||
/// ServiceTopology feature.
|
||||
/// </summary>
|
||||
[JsonProperty(PropertyName = "topologyKeys")]
|
||||
public IList<string> TopologyKeys { get; set; }
|
||||
@@ -347,17 +484,19 @@ namespace k8s.Models
|
||||
/// <summary>
|
||||
/// Gets or sets type determines how the Service is exposed. Defaults
|
||||
/// to ClusterIP. Valid options are ExternalName, ClusterIP, NodePort,
|
||||
/// and LoadBalancer. "ExternalName" maps to the specified
|
||||
/// externalName. "ClusterIP" allocates a cluster-internal IP address
|
||||
/// for load-balancing to endpoints. Endpoints are determined by the
|
||||
/// selector or if that is not specified, by manual construction of an
|
||||
/// Endpoints object. If clusterIP is "None", no virtual IP is
|
||||
/// allocated and the endpoints are published as a set of endpoints
|
||||
/// rather than a stable IP. "NodePort" builds on ClusterIP and
|
||||
/// allocates a port on every node which routes to the clusterIP.
|
||||
/// "LoadBalancer" builds on NodePort and creates an external
|
||||
/// load-balancer (if supported in the current cloud) which routes to
|
||||
/// the clusterIP. More info:
|
||||
/// and LoadBalancer. "ClusterIP" allocates a cluster-internal IP
|
||||
/// address for load-balancing to endpoints. Endpoints are determined
|
||||
/// by the selector or if that is not specified, by manual construction
|
||||
/// of an Endpoints object or EndpointSlice objects. If clusterIP is
|
||||
/// "None", no virtual IP is allocated and the endpoints are published
|
||||
/// as a set of endpoints rather than a virtual IP. "NodePort" builds
|
||||
/// on ClusterIP and allocates a port on every node which routes to the
|
||||
/// same endpoints as the clusterIP. "LoadBalancer" builds on NodePort
|
||||
/// and creates an external load-balancer (if supported in the current
|
||||
/// cloud) which routes to the same endpoints as the clusterIP.
|
||||
/// "ExternalName" aliases this service to the specified externalName.
|
||||
/// Several other fields do not apply to ExternalName services. More
|
||||
/// info:
|
||||
/// https://kubernetes.io/docs/concepts/services-networking/service/#publishing-services-service-types
|
||||
/// </summary>
|
||||
[JsonProperty(PropertyName = "type")]
|
||||
|
||||
@@ -7,6 +7,8 @@
|
||||
namespace k8s.Models
|
||||
{
|
||||
using Newtonsoft.Json;
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
|
||||
/// <summary>
|
||||
@@ -25,10 +27,12 @@ namespace k8s.Models
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the V1ServiceStatus class.
|
||||
/// </summary>
|
||||
/// <param name="conditions">Current service state</param>
|
||||
/// <param name="loadBalancer">LoadBalancer contains the current status
|
||||
/// of the load-balancer, if one is present.</param>
|
||||
public V1ServiceStatus(V1LoadBalancerStatus loadBalancer = default(V1LoadBalancerStatus))
|
||||
public V1ServiceStatus(IList<V1Condition> conditions = default(IList<V1Condition>), V1LoadBalancerStatus loadBalancer = default(V1LoadBalancerStatus))
|
||||
{
|
||||
Conditions = conditions;
|
||||
LoadBalancer = loadBalancer;
|
||||
CustomInit();
|
||||
}
|
||||
@@ -38,6 +42,12 @@ namespace k8s.Models
|
||||
/// </summary>
|
||||
partial void CustomInit();
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets current service state
|
||||
/// </summary>
|
||||
[JsonProperty(PropertyName = "conditions")]
|
||||
public IList<V1Condition> Conditions { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets loadBalancer contains the current status of the
|
||||
/// load-balancer, if one is present.
|
||||
|
||||
@@ -511,10 +511,6 @@ namespace k8s.Models
|
||||
{
|
||||
PortworxVolume.Validate();
|
||||
}
|
||||
if (Projected != null)
|
||||
{
|
||||
Projected.Validate();
|
||||
}
|
||||
if (Quobyte != null)
|
||||
{
|
||||
Quobyte.Validate();
|
||||
|
||||
@@ -1,91 +0,0 @@
|
||||
// <auto-generated>
|
||||
// Code generated by Microsoft (R) AutoRest Code Generator.
|
||||
// Changes may cause incorrect behavior and will be lost if the code is
|
||||
// regenerated.
|
||||
// </auto-generated>
|
||||
|
||||
namespace k8s.Models
|
||||
{
|
||||
using Newtonsoft.Json;
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
|
||||
/// <summary>
|
||||
/// PodPresetSpec is a description of a pod preset.
|
||||
/// </summary>
|
||||
public partial class V1alpha1PodPresetSpec
|
||||
{
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the V1alpha1PodPresetSpec class.
|
||||
/// </summary>
|
||||
public V1alpha1PodPresetSpec()
|
||||
{
|
||||
CustomInit();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the V1alpha1PodPresetSpec class.
|
||||
/// </summary>
|
||||
/// <param name="env">Env defines the collection of EnvVar to inject
|
||||
/// into containers.</param>
|
||||
/// <param name="envFrom">EnvFrom defines the collection of
|
||||
/// EnvFromSource to inject into containers.</param>
|
||||
/// <param name="selector">Selector is a label query over a set of
|
||||
/// resources, in this case pods. Required.</param>
|
||||
/// <param name="volumeMounts">VolumeMounts defines the collection of
|
||||
/// VolumeMount to inject into containers.</param>
|
||||
/// <param name="volumes">Volumes defines the collection of Volume to
|
||||
/// inject into the pod.</param>
|
||||
public V1alpha1PodPresetSpec(IList<V1EnvVar> env = default(IList<V1EnvVar>), IList<V1EnvFromSource> envFrom = default(IList<V1EnvFromSource>), V1LabelSelector selector = default(V1LabelSelector), IList<V1VolumeMount> volumeMounts = default(IList<V1VolumeMount>), IList<V1Volume> volumes = default(IList<V1Volume>))
|
||||
{
|
||||
Env = env;
|
||||
EnvFrom = envFrom;
|
||||
Selector = selector;
|
||||
VolumeMounts = volumeMounts;
|
||||
Volumes = volumes;
|
||||
CustomInit();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// An initialization method that performs custom operations like setting defaults
|
||||
/// </summary>
|
||||
partial void CustomInit();
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets env defines the collection of EnvVar to inject into
|
||||
/// containers.
|
||||
/// </summary>
|
||||
[JsonProperty(PropertyName = "env")]
|
||||
public IList<V1EnvVar> Env { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets envFrom defines the collection of EnvFromSource to
|
||||
/// inject into containers.
|
||||
/// </summary>
|
||||
[JsonProperty(PropertyName = "envFrom")]
|
||||
public IList<V1EnvFromSource> EnvFrom { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets selector is a label query over a set of resources, in
|
||||
/// this case pods. Required.
|
||||
/// </summary>
|
||||
[JsonProperty(PropertyName = "selector")]
|
||||
public V1LabelSelector Selector { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets volumeMounts defines the collection of VolumeMount to
|
||||
/// inject into containers.
|
||||
/// </summary>
|
||||
[JsonProperty(PropertyName = "volumeMounts")]
|
||||
public IList<V1VolumeMount> VolumeMounts { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets volumes defines the collection of Volume to inject
|
||||
/// into the pod.
|
||||
/// </summary>
|
||||
[JsonProperty(PropertyName = "volumes")]
|
||||
public IList<V1Volume> Volumes { get; set; }
|
||||
|
||||
}
|
||||
}
|
||||
@@ -38,8 +38,8 @@ namespace k8s.Models
|
||||
/// name are equivalent on every node. For example, a handler called
|
||||
/// "runc" might specify that the runc OCI runtime (using native Linux
|
||||
/// containers) will be used to run the containers in a pod. The
|
||||
/// RuntimeHandler must conform to the DNS Label (RFC 1123)
|
||||
/// requirements and is immutable.</param>
|
||||
/// RuntimeHandler must be lowercase, conform to the DNS Label (RFC
|
||||
/// 1123) requirements, and is immutable.</param>
|
||||
/// <param name="overhead">Overhead represents the resource overhead
|
||||
/// associated with running a pod for a given RuntimeClass. For more
|
||||
/// details, see
|
||||
@@ -82,8 +82,8 @@ namespace k8s.Models
|
||||
/// equivalent on every node. For example, a handler called "runc"
|
||||
/// might specify that the runc OCI runtime (using native Linux
|
||||
/// containers) will be used to run the containers in a pod. The
|
||||
/// RuntimeHandler must conform to the DNS Label (RFC 1123)
|
||||
/// requirements and is immutable.
|
||||
/// RuntimeHandler must be lowercase, conform to the DNS Label (RFC
|
||||
/// 1123) requirements, and is immutable.
|
||||
/// </summary>
|
||||
[JsonProperty(PropertyName = "runtimeHandler")]
|
||||
public string RuntimeHandler { get; set; }
|
||||
|
||||
76
src/KubernetesClient/generated/Models/V1alpha1ServerStorageVersion.cs
generated
Normal file
76
src/KubernetesClient/generated/Models/V1alpha1ServerStorageVersion.cs
generated
Normal file
@@ -0,0 +1,76 @@
|
||||
// <auto-generated>
|
||||
// Code generated by Microsoft (R) AutoRest Code Generator.
|
||||
// Changes may cause incorrect behavior and will be lost if the code is
|
||||
// regenerated.
|
||||
// </auto-generated>
|
||||
|
||||
namespace k8s.Models
|
||||
{
|
||||
using Newtonsoft.Json;
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
|
||||
/// <summary>
|
||||
/// An API server instance reports the version it can decode and the
|
||||
/// version it encodes objects to when persisting objects in the backend.
|
||||
/// </summary>
|
||||
public partial class V1alpha1ServerStorageVersion
|
||||
{
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the V1alpha1ServerStorageVersion
|
||||
/// class.
|
||||
/// </summary>
|
||||
public V1alpha1ServerStorageVersion()
|
||||
{
|
||||
CustomInit();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the V1alpha1ServerStorageVersion
|
||||
/// class.
|
||||
/// </summary>
|
||||
/// <param name="apiServerID">The ID of the reporting API
|
||||
/// server.</param>
|
||||
/// <param name="decodableVersions">The API server can decode objects
|
||||
/// encoded in these versions. The encodingVersion must be included in
|
||||
/// the decodableVersions.</param>
|
||||
/// <param name="encodingVersion">The API server encodes the object to
|
||||
/// this version when persisting it in the backend (e.g.,
|
||||
/// etcd).</param>
|
||||
public V1alpha1ServerStorageVersion(string apiServerID = default(string), IList<string> decodableVersions = default(IList<string>), string encodingVersion = default(string))
|
||||
{
|
||||
ApiServerID = apiServerID;
|
||||
DecodableVersions = decodableVersions;
|
||||
EncodingVersion = encodingVersion;
|
||||
CustomInit();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// An initialization method that performs custom operations like setting defaults
|
||||
/// </summary>
|
||||
partial void CustomInit();
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the ID of the reporting API server.
|
||||
/// </summary>
|
||||
[JsonProperty(PropertyName = "apiServerID")]
|
||||
public string ApiServerID { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the API server can decode objects encoded in these
|
||||
/// versions. The encodingVersion must be included in the
|
||||
/// decodableVersions.
|
||||
/// </summary>
|
||||
[JsonProperty(PropertyName = "decodableVersions")]
|
||||
public IList<string> DecodableVersions { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the API server encodes the object to this version when
|
||||
/// persisting it in the backend (e.g., etcd).
|
||||
/// </summary>
|
||||
[JsonProperty(PropertyName = "encodingVersion")]
|
||||
public string EncodingVersion { get; set; }
|
||||
|
||||
}
|
||||
}
|
||||
122
src/KubernetesClient/generated/Models/V1alpha1StorageVersion.cs
generated
Normal file
122
src/KubernetesClient/generated/Models/V1alpha1StorageVersion.cs
generated
Normal file
@@ -0,0 +1,122 @@
|
||||
// <auto-generated>
|
||||
// Code generated by Microsoft (R) AutoRest Code Generator.
|
||||
// Changes may cause incorrect behavior and will be lost if the code is
|
||||
// regenerated.
|
||||
// </auto-generated>
|
||||
|
||||
namespace k8s.Models
|
||||
{
|
||||
using Microsoft.Rest;
|
||||
using Newtonsoft.Json;
|
||||
using System.Linq;
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// Storage version of a specific resource.
|
||||
/// </summary>
|
||||
public partial class V1alpha1StorageVersion
|
||||
{
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the V1alpha1StorageVersion class.
|
||||
/// </summary>
|
||||
public V1alpha1StorageVersion()
|
||||
{
|
||||
CustomInit();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the V1alpha1StorageVersion class.
|
||||
/// </summary>
|
||||
/// <param name="spec">Spec is an empty spec. It is here to comply with
|
||||
/// Kubernetes API style.</param>
|
||||
/// <param name="status">API server instances report the version they
|
||||
/// can decode and the version they encode objects to when persisting
|
||||
/// objects in the backend.</param>
|
||||
/// <param name="apiVersion">APIVersion defines the versioned schema of
|
||||
/// this representation of an object. Servers should convert recognized
|
||||
/// schemas to the latest internal value, and may reject unrecognized
|
||||
/// values. More info:
|
||||
/// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources</param>
|
||||
/// <param name="kind">Kind is a string value representing the REST
|
||||
/// resource this object represents. Servers may infer this from the
|
||||
/// endpoint the client submits requests to. Cannot be updated. In
|
||||
/// CamelCase. More info:
|
||||
/// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds</param>
|
||||
/// <param name="metadata">The name is
|
||||
/// <group>.<resource>.</param>
|
||||
public V1alpha1StorageVersion(object spec, V1alpha1StorageVersionStatus status, string apiVersion = default(string), string kind = default(string), V1ObjectMeta metadata = default(V1ObjectMeta))
|
||||
{
|
||||
ApiVersion = apiVersion;
|
||||
Kind = kind;
|
||||
Metadata = metadata;
|
||||
Spec = spec;
|
||||
Status = status;
|
||||
CustomInit();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// An initialization method that performs custom operations like setting defaults
|
||||
/// </summary>
|
||||
partial void CustomInit();
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets aPIVersion defines the versioned schema of this
|
||||
/// representation of an object. Servers should convert recognized
|
||||
/// schemas to the latest internal value, and may reject unrecognized
|
||||
/// values. More info:
|
||||
/// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
|
||||
/// </summary>
|
||||
[JsonProperty(PropertyName = "apiVersion")]
|
||||
public string ApiVersion { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets kind is a string value representing the REST resource
|
||||
/// this object represents. Servers may infer this from the endpoint
|
||||
/// the client submits requests to. Cannot be updated. In CamelCase.
|
||||
/// More info:
|
||||
/// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
|
||||
/// </summary>
|
||||
[JsonProperty(PropertyName = "kind")]
|
||||
public string Kind { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the name is
|
||||
/// &lt;group&gt;.&lt;resource&gt;.
|
||||
/// </summary>
|
||||
[JsonProperty(PropertyName = "metadata")]
|
||||
public V1ObjectMeta Metadata { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets spec is an empty spec. It is here to comply with
|
||||
/// Kubernetes API style.
|
||||
/// </summary>
|
||||
[JsonProperty(PropertyName = "spec")]
|
||||
public object Spec { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets API server instances report the version they can
|
||||
/// decode and the version they encode objects to when persisting
|
||||
/// objects in the backend.
|
||||
/// </summary>
|
||||
[JsonProperty(PropertyName = "status")]
|
||||
public V1alpha1StorageVersionStatus Status { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Validate the object.
|
||||
/// </summary>
|
||||
/// <exception cref="ValidationException">
|
||||
/// Thrown if validation fails
|
||||
/// </exception>
|
||||
public virtual void Validate()
|
||||
{
|
||||
if (Spec == null)
|
||||
{
|
||||
throw new ValidationException(ValidationRules.CannotBeNull, "Spec");
|
||||
}
|
||||
if (Status == null)
|
||||
{
|
||||
throw new ValidationException(ValidationRules.CannotBeNull, "Status");
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
119
src/KubernetesClient/generated/Models/V1alpha1StorageVersionCondition.cs
generated
Normal file
119
src/KubernetesClient/generated/Models/V1alpha1StorageVersionCondition.cs
generated
Normal file
@@ -0,0 +1,119 @@
|
||||
// <auto-generated>
|
||||
// Code generated by Microsoft (R) AutoRest Code Generator.
|
||||
// Changes may cause incorrect behavior and will be lost if the code is
|
||||
// regenerated.
|
||||
// </auto-generated>
|
||||
|
||||
namespace k8s.Models
|
||||
{
|
||||
using Microsoft.Rest;
|
||||
using Newtonsoft.Json;
|
||||
using System.Linq;
|
||||
|
||||
/// <summary>
|
||||
/// Describes the state of the storageVersion at a certain point.
|
||||
/// </summary>
|
||||
public partial class V1alpha1StorageVersionCondition
|
||||
{
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the V1alpha1StorageVersionCondition
|
||||
/// class.
|
||||
/// </summary>
|
||||
public V1alpha1StorageVersionCondition()
|
||||
{
|
||||
CustomInit();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the V1alpha1StorageVersionCondition
|
||||
/// class.
|
||||
/// </summary>
|
||||
/// <param name="reason">The reason for the condition's last
|
||||
/// transition.</param>
|
||||
/// <param name="status">Status of the condition, one of True, False,
|
||||
/// Unknown.</param>
|
||||
/// <param name="type">Type of the condition.</param>
|
||||
/// <param name="lastTransitionTime">Last time the condition
|
||||
/// transitioned from one status to another.</param>
|
||||
/// <param name="message">A human readable message indicating details
|
||||
/// about the transition.</param>
|
||||
/// <param name="observedGeneration">If set, this represents the
|
||||
/// .metadata.generation that the condition was set based upon.</param>
|
||||
public V1alpha1StorageVersionCondition(string reason, string status, string type, System.DateTime? lastTransitionTime = default(System.DateTime?), string message = default(string), long? observedGeneration = default(long?))
|
||||
{
|
||||
LastTransitionTime = lastTransitionTime;
|
||||
Message = message;
|
||||
ObservedGeneration = observedGeneration;
|
||||
Reason = reason;
|
||||
Status = status;
|
||||
Type = type;
|
||||
CustomInit();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// An initialization method that performs custom operations like setting defaults
|
||||
/// </summary>
|
||||
partial void CustomInit();
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets last time the condition transitioned from one status
|
||||
/// to another.
|
||||
/// </summary>
|
||||
[JsonProperty(PropertyName = "lastTransitionTime")]
|
||||
public System.DateTime? LastTransitionTime { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets a human readable message indicating details about the
|
||||
/// transition.
|
||||
/// </summary>
|
||||
[JsonProperty(PropertyName = "message")]
|
||||
public string Message { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets if set, this represents the .metadata.generation that
|
||||
/// the condition was set based upon.
|
||||
/// </summary>
|
||||
[JsonProperty(PropertyName = "observedGeneration")]
|
||||
public long? ObservedGeneration { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the reason for the condition's last transition.
|
||||
/// </summary>
|
||||
[JsonProperty(PropertyName = "reason")]
|
||||
public string Reason { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets status of the condition, one of True, False, Unknown.
|
||||
/// </summary>
|
||||
[JsonProperty(PropertyName = "status")]
|
||||
public string Status { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets type of the condition.
|
||||
/// </summary>
|
||||
[JsonProperty(PropertyName = "type")]
|
||||
public string Type { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Validate the object.
|
||||
/// </summary>
|
||||
/// <exception cref="ValidationException">
|
||||
/// Thrown if validation fails
|
||||
/// </exception>
|
||||
public virtual void Validate()
|
||||
{
|
||||
if (Reason == null)
|
||||
{
|
||||
throw new ValidationException(ValidationRules.CannotBeNull, "Reason");
|
||||
}
|
||||
if (Status == null)
|
||||
{
|
||||
throw new ValidationException(ValidationRules.CannotBeNull, "Status");
|
||||
}
|
||||
if (Type == null)
|
||||
{
|
||||
throw new ValidationException(ValidationRules.CannotBeNull, "Type");
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -6,25 +6,27 @@
|
||||
|
||||
namespace k8s.Models
|
||||
{
|
||||
using Microsoft.Rest;
|
||||
using Newtonsoft.Json;
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
|
||||
/// <summary>
|
||||
/// PodPreset is a policy resource that defines additional runtime
|
||||
/// requirements for a Pod.
|
||||
/// A list of StorageVersions.
|
||||
/// </summary>
|
||||
public partial class V1alpha1PodPreset
|
||||
public partial class V1alpha1StorageVersionList
|
||||
{
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the V1alpha1PodPreset class.
|
||||
/// Initializes a new instance of the V1alpha1StorageVersionList class.
|
||||
/// </summary>
|
||||
public V1alpha1PodPreset()
|
||||
public V1alpha1StorageVersionList()
|
||||
{
|
||||
CustomInit();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the V1alpha1PodPreset class.
|
||||
/// Initializes a new instance of the V1alpha1StorageVersionList class.
|
||||
/// </summary>
|
||||
/// <param name="apiVersion">APIVersion defines the versioned schema of
|
||||
/// this representation of an object. Servers should convert recognized
|
||||
@@ -36,12 +38,12 @@ namespace k8s.Models
|
||||
/// endpoint the client submits requests to. Cannot be updated. In
|
||||
/// CamelCase. More info:
|
||||
/// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds</param>
|
||||
public V1alpha1PodPreset(string apiVersion = default(string), string kind = default(string), V1ObjectMeta metadata = default(V1ObjectMeta), V1alpha1PodPresetSpec spec = default(V1alpha1PodPresetSpec))
|
||||
public V1alpha1StorageVersionList(IList<V1alpha1StorageVersion> items, string apiVersion = default(string), string kind = default(string), V1ListMeta metadata = default(V1ListMeta))
|
||||
{
|
||||
ApiVersion = apiVersion;
|
||||
Items = items;
|
||||
Kind = kind;
|
||||
Metadata = metadata;
|
||||
Spec = spec;
|
||||
CustomInit();
|
||||
}
|
||||
|
||||
@@ -60,6 +62,11 @@ namespace k8s.Models
|
||||
[JsonProperty(PropertyName = "apiVersion")]
|
||||
public string ApiVersion { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// </summary>
|
||||
[JsonProperty(PropertyName = "items")]
|
||||
public IList<V1alpha1StorageVersion> Items { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets kind is a string value representing the REST resource
|
||||
/// this object represents. Servers may infer this from the endpoint
|
||||
@@ -73,12 +80,30 @@ namespace k8s.Models
|
||||
/// <summary>
|
||||
/// </summary>
|
||||
[JsonProperty(PropertyName = "metadata")]
|
||||
public V1ObjectMeta Metadata { get; set; }
|
||||
public V1ListMeta Metadata { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Validate the object.
|
||||
/// </summary>
|
||||
[JsonProperty(PropertyName = "spec")]
|
||||
public V1alpha1PodPresetSpec Spec { get; set; }
|
||||
|
||||
/// <exception cref="ValidationException">
|
||||
/// Thrown if validation fails
|
||||
/// </exception>
|
||||
public virtual void Validate()
|
||||
{
|
||||
if (Items == null)
|
||||
{
|
||||
throw new ValidationException(ValidationRules.CannotBeNull, "Items");
|
||||
}
|
||||
if (Items != null)
|
||||
{
|
||||
foreach (var element in Items)
|
||||
{
|
||||
if (element != null)
|
||||
{
|
||||
element.Validate();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
80
src/KubernetesClient/generated/Models/V1alpha1StorageVersionStatus.cs
generated
Normal file
80
src/KubernetesClient/generated/Models/V1alpha1StorageVersionStatus.cs
generated
Normal file
@@ -0,0 +1,80 @@
|
||||
// <auto-generated>
|
||||
// Code generated by Microsoft (R) AutoRest Code Generator.
|
||||
// Changes may cause incorrect behavior and will be lost if the code is
|
||||
// regenerated.
|
||||
// </auto-generated>
|
||||
|
||||
namespace k8s.Models
|
||||
{
|
||||
using Newtonsoft.Json;
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
|
||||
/// <summary>
|
||||
/// API server instances report the versions they can decode and the
|
||||
/// version they encode objects to when persisting objects in the backend.
|
||||
/// </summary>
|
||||
public partial class V1alpha1StorageVersionStatus
|
||||
{
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the V1alpha1StorageVersionStatus
|
||||
/// class.
|
||||
/// </summary>
|
||||
public V1alpha1StorageVersionStatus()
|
||||
{
|
||||
CustomInit();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the V1alpha1StorageVersionStatus
|
||||
/// class.
|
||||
/// </summary>
|
||||
/// <param name="commonEncodingVersion">If all API server instances
|
||||
/// agree on the same encoding storage version, then this field is set
|
||||
/// to that version. Otherwise this field is left empty. API servers
|
||||
/// should finish updating its storageVersionStatus entry before
|
||||
/// serving write operations, so that this field will be in sync with
|
||||
/// the reality.</param>
|
||||
/// <param name="conditions">The latest available observations of the
|
||||
/// storageVersion's state.</param>
|
||||
/// <param name="storageVersions">The reported versions per API server
|
||||
/// instance.</param>
|
||||
public V1alpha1StorageVersionStatus(string commonEncodingVersion = default(string), IList<V1alpha1StorageVersionCondition> conditions = default(IList<V1alpha1StorageVersionCondition>), IList<V1alpha1ServerStorageVersion> storageVersions = default(IList<V1alpha1ServerStorageVersion>))
|
||||
{
|
||||
CommonEncodingVersion = commonEncodingVersion;
|
||||
Conditions = conditions;
|
||||
StorageVersions = storageVersions;
|
||||
CustomInit();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// An initialization method that performs custom operations like setting defaults
|
||||
/// </summary>
|
||||
partial void CustomInit();
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets if all API server instances agree on the same encoding
|
||||
/// storage version, then this field is set to that version. Otherwise
|
||||
/// this field is left empty. API servers should finish updating its
|
||||
/// storageVersionStatus entry before serving write operations, so that
|
||||
/// this field will be in sync with the reality.
|
||||
/// </summary>
|
||||
[JsonProperty(PropertyName = "commonEncodingVersion")]
|
||||
public string CommonEncodingVersion { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the latest available observations of the
|
||||
/// storageVersion's state.
|
||||
/// </summary>
|
||||
[JsonProperty(PropertyName = "conditions")]
|
||||
public IList<V1alpha1StorageVersionCondition> Conditions { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the reported versions per API server instance.
|
||||
/// </summary>
|
||||
[JsonProperty(PropertyName = "storageVersions")]
|
||||
public IList<V1alpha1ServerStorageVersion> StorageVersions { get; set; }
|
||||
|
||||
}
|
||||
}
|
||||
@@ -68,6 +68,17 @@ namespace k8s.Models
|
||||
/// support this field, drivers can only support one mode when deployed
|
||||
/// on such a cluster and the deployment determines which mode that is,
|
||||
/// for example via a command line parameter of the driver.</param>
|
||||
/// <param name="requiresRepublish">RequiresRepublish indicates the CSI
|
||||
/// driver wants `NodePublishVolume` being periodically called to
|
||||
/// reflect any possible change in the mounted volume. This field
|
||||
/// defaults to false.
|
||||
///
|
||||
/// Note: After a successful initial NodePublishVolume call, subsequent
|
||||
/// calls to NodePublishVolume should only update the contents of the
|
||||
/// volume. New mount points will not be seen by a running container.
|
||||
///
|
||||
/// This is an alpha feature and only available when the
|
||||
/// CSIServiceAccountToken feature is enabled.</param>
|
||||
/// <param name="storageCapacity">If set to true, storageCapacity
|
||||
/// indicates that the CSI volume driver wants pod scheduling to
|
||||
/// consider the storage capacity that the driver deployment will
|
||||
@@ -86,6 +97,26 @@ namespace k8s.Models
|
||||
/// This is an alpha field and only available when the
|
||||
/// CSIStorageCapacity feature is enabled. The default is
|
||||
/// false.</param>
|
||||
/// <param name="tokenRequests">TokenRequests indicates the CSI driver
|
||||
/// needs pods' service account tokens it is mounting volume for to do
|
||||
/// necessary authentication. Kubelet will pass the tokens in
|
||||
/// VolumeContext in the CSI NodePublishVolume calls. The CSI driver
|
||||
/// should parse and validate the following VolumeContext:
|
||||
/// "csi.storage.k8s.io/serviceAccount.tokens": {
|
||||
/// "<audience>": {
|
||||
/// "token": <token>,
|
||||
/// "expirationTimestamp": <expiration timestamp in RFC3339>,
|
||||
/// },
|
||||
/// ...
|
||||
/// }
|
||||
///
|
||||
/// Note: Audience in each TokenRequest should be different and at most
|
||||
/// one token is empty string. To receive a new token after expiry,
|
||||
/// RequiresRepublish can be used to trigger NodePublishVolume
|
||||
/// periodically.
|
||||
///
|
||||
/// This is an alpha feature and only available when the
|
||||
/// CSIServiceAccountToken feature is enabled.</param>
|
||||
/// <param name="volumeLifecycleModes">VolumeLifecycleModes defines
|
||||
/// what kind of volumes this CSI volume driver supports. The default
|
||||
/// if the list is empty is "Persistent", which is the usage defined by
|
||||
@@ -99,12 +130,14 @@ namespace k8s.Models
|
||||
/// https://kubernetes-csi.github.io/docs/ephemeral-local-volumes.html
|
||||
/// A driver can support one or more of these modes and more modes may
|
||||
/// be added in the future.</param>
|
||||
public V1beta1CSIDriverSpec(bool? attachRequired = default(bool?), string fsGroupPolicy = default(string), bool? podInfoOnMount = default(bool?), bool? storageCapacity = default(bool?), IList<string> volumeLifecycleModes = default(IList<string>))
|
||||
public V1beta1CSIDriverSpec(bool? attachRequired = default(bool?), string fsGroupPolicy = default(string), bool? podInfoOnMount = default(bool?), bool? requiresRepublish = default(bool?), bool? storageCapacity = default(bool?), IList<V1beta1TokenRequest> tokenRequests = default(IList<V1beta1TokenRequest>), IList<string> volumeLifecycleModes = default(IList<string>))
|
||||
{
|
||||
AttachRequired = attachRequired;
|
||||
FsGroupPolicy = fsGroupPolicy;
|
||||
PodInfoOnMount = podInfoOnMount;
|
||||
RequiresRepublish = requiresRepublish;
|
||||
StorageCapacity = storageCapacity;
|
||||
TokenRequests = tokenRequests;
|
||||
VolumeLifecycleModes = volumeLifecycleModes;
|
||||
CustomInit();
|
||||
}
|
||||
@@ -169,6 +202,22 @@ namespace k8s.Models
|
||||
[JsonProperty(PropertyName = "podInfoOnMount")]
|
||||
public bool? PodInfoOnMount { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets requiresRepublish indicates the CSI driver wants
|
||||
/// `NodePublishVolume` being periodically called to reflect any
|
||||
/// possible change in the mounted volume. This field defaults to
|
||||
/// false.
|
||||
///
|
||||
/// Note: After a successful initial NodePublishVolume call, subsequent
|
||||
/// calls to NodePublishVolume should only update the contents of the
|
||||
/// volume. New mount points will not be seen by a running container.
|
||||
///
|
||||
/// This is an alpha feature and only available when the
|
||||
/// CSIServiceAccountToken feature is enabled.
|
||||
/// </summary>
|
||||
[JsonProperty(PropertyName = "requiresRepublish")]
|
||||
public bool? RequiresRepublish { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets if set to true, storageCapacity indicates that the CSI
|
||||
/// volume driver wants pod scheduling to consider the storage capacity
|
||||
@@ -190,6 +239,32 @@ namespace k8s.Models
|
||||
[JsonProperty(PropertyName = "storageCapacity")]
|
||||
public bool? StorageCapacity { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets tokenRequests indicates the CSI driver needs pods'
|
||||
/// service account tokens it is mounting volume for to do necessary
|
||||
/// authentication. Kubelet will pass the tokens in VolumeContext in
|
||||
/// the CSI NodePublishVolume calls. The CSI driver should parse and
|
||||
/// validate the following VolumeContext:
|
||||
/// "csi.storage.k8s.io/serviceAccount.tokens": {
|
||||
/// "&lt;audience&gt;": {
|
||||
/// "token": &lt;token&gt;,
|
||||
/// "expirationTimestamp": &lt;expiration timestamp in
|
||||
/// RFC3339&gt;,
|
||||
/// },
|
||||
/// ...
|
||||
/// }
|
||||
///
|
||||
/// Note: Audience in each TokenRequest should be different and at most
|
||||
/// one token is empty string. To receive a new token after expiry,
|
||||
/// RequiresRepublish can be used to trigger NodePublishVolume
|
||||
/// periodically.
|
||||
///
|
||||
/// This is an alpha feature and only available when the
|
||||
/// CSIServiceAccountToken feature is enabled.
|
||||
/// </summary>
|
||||
[JsonProperty(PropertyName = "tokenRequests")]
|
||||
public IList<V1beta1TokenRequest> TokenRequests { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets volumeLifecycleModes defines what kind of volumes this
|
||||
/// CSI volume driver supports. The default if the list is empty is
|
||||
|
||||
@@ -48,7 +48,7 @@ namespace k8s.Models
|
||||
/// <param name="metadata">Standard object's metadata.</param>
|
||||
/// <param name="subjects">Subjects holds references to the objects the
|
||||
/// role applies to.</param>
|
||||
public V1beta1ClusterRoleBinding(V1beta1RoleRef roleRef, string apiVersion = default(string), string kind = default(string), V1ObjectMeta metadata = default(V1ObjectMeta), IList<V1beta1Subject> subjects = default(IList<V1beta1Subject>))
|
||||
public V1beta1ClusterRoleBinding(V1beta1RoleRef roleRef, string apiVersion = default(string), string kind = default(string), V1ObjectMeta metadata = default(V1ObjectMeta), IList<Rbacv1beta1Subject> subjects = default(IList<Rbacv1beta1Subject>))
|
||||
{
|
||||
ApiVersion = apiVersion;
|
||||
Kind = kind;
|
||||
@@ -102,7 +102,7 @@ namespace k8s.Models
|
||||
/// applies to.
|
||||
/// </summary>
|
||||
[JsonProperty(PropertyName = "subjects")]
|
||||
public IList<V1beta1Subject> Subjects { get; set; }
|
||||
public IList<Rbacv1beta1Subject> Subjects { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Validate the object.
|
||||
|
||||
@@ -39,7 +39,12 @@ namespace k8s.Models
|
||||
/// used by consumers of endpoints to distinguish endpoints from each
|
||||
/// other (e.g. in DNS names). Multiple endpoints which use the same
|
||||
/// hostname should be considered fungible (e.g. multiple A values in
|
||||
/// DNS). Must pass DNS Label (RFC 1123) validation.</param>
|
||||
/// DNS). Must be lowercase and pass DNS Label (RFC 1123)
|
||||
/// validation.</param>
|
||||
/// <param name="nodeName">nodeName represents the name of the Node
|
||||
/// hosting this endpoint. This can be used to determine endpoints
|
||||
/// local to a Node. This field can be enabled with the
|
||||
/// EndpointSliceNodeName feature gate.</param>
|
||||
/// <param name="targetRef">targetRef is a reference to a Kubernetes
|
||||
/// object that represents this endpoint.</param>
|
||||
/// <param name="topology">topology contains arbitrary topology
|
||||
@@ -59,12 +64,15 @@ namespace k8s.Models
|
||||
/// * topology.kubernetes.io/region: the value indicates the region
|
||||
/// where the
|
||||
/// endpoint is located. This should match the corresponding node
|
||||
/// label.</param>
|
||||
public V1beta1Endpoint(IList<string> addresses, V1beta1EndpointConditions conditions = default(V1beta1EndpointConditions), string hostname = default(string), V1ObjectReference targetRef = default(V1ObjectReference), IDictionary<string, string> topology = default(IDictionary<string, string>))
|
||||
/// label.
|
||||
/// This field is deprecated and will be removed in future api
|
||||
/// versions.</param>
|
||||
public V1beta1Endpoint(IList<string> addresses, V1beta1EndpointConditions conditions = default(V1beta1EndpointConditions), string hostname = default(string), string nodeName = default(string), V1ObjectReference targetRef = default(V1ObjectReference), IDictionary<string, string> topology = default(IDictionary<string, string>))
|
||||
{
|
||||
Addresses = addresses;
|
||||
Conditions = conditions;
|
||||
Hostname = hostname;
|
||||
NodeName = nodeName;
|
||||
TargetRef = targetRef;
|
||||
Topology = topology;
|
||||
CustomInit();
|
||||
@@ -97,11 +105,20 @@ namespace k8s.Models
|
||||
/// consumers of endpoints to distinguish endpoints from each other
|
||||
/// (e.g. in DNS names). Multiple endpoints which use the same hostname
|
||||
/// should be considered fungible (e.g. multiple A values in DNS). Must
|
||||
/// pass DNS Label (RFC 1123) validation.
|
||||
/// be lowercase and pass DNS Label (RFC 1123) validation.
|
||||
/// </summary>
|
||||
[JsonProperty(PropertyName = "hostname")]
|
||||
public string Hostname { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets nodeName represents the name of the Node hosting this
|
||||
/// endpoint. This can be used to determine endpoints local to a Node.
|
||||
/// This field can be enabled with the EndpointSliceNodeName feature
|
||||
/// gate.
|
||||
/// </summary>
|
||||
[JsonProperty(PropertyName = "nodeName")]
|
||||
public string NodeName { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets targetRef is a reference to a Kubernetes object that
|
||||
/// represents this endpoint.
|
||||
@@ -128,6 +145,8 @@ namespace k8s.Models
|
||||
/// where the
|
||||
/// endpoint is located. This should match the corresponding node
|
||||
/// label.
|
||||
/// This field is deprecated and will be removed in future api
|
||||
/// versions.
|
||||
/// </summary>
|
||||
[JsonProperty(PropertyName = "topology")]
|
||||
public IDictionary<string, string> Topology { get; set; }
|
||||
|
||||
@@ -28,10 +28,25 @@ namespace k8s.Models
|
||||
/// <param name="ready">ready indicates that this endpoint is prepared
|
||||
/// to receive traffic, according to whatever system is managing the
|
||||
/// endpoint. A nil value indicates an unknown state. In most cases
|
||||
/// consumers should interpret this unknown state as ready.</param>
|
||||
public V1beta1EndpointConditions(bool? ready = default(bool?))
|
||||
/// consumers should interpret this unknown state as ready. For
|
||||
/// compatibility reasons, ready should never be "true" for terminating
|
||||
/// endpoints.</param>
|
||||
/// <param name="serving">serving is identical to ready except that it
|
||||
/// is set regardless of the terminating state of endpoints. This
|
||||
/// condition should be set to true for a ready endpoint that is
|
||||
/// terminating. If nil, consumers should defer to the ready condition.
|
||||
/// This field can be enabled with the
|
||||
/// EndpointSliceTerminatingCondition feature gate.</param>
|
||||
/// <param name="terminating">terminating indicates that this endpoint
|
||||
/// is terminating. A nil value indicates an unknown state. Consumers
|
||||
/// should interpret this unknown state to mean that the endpoint is
|
||||
/// not terminating. This field can be enabled with the
|
||||
/// EndpointSliceTerminatingCondition feature gate.</param>
|
||||
public V1beta1EndpointConditions(bool? ready = default(bool?), bool? serving = default(bool?), bool? terminating = default(bool?))
|
||||
{
|
||||
Ready = ready;
|
||||
Serving = serving;
|
||||
Terminating = terminating;
|
||||
CustomInit();
|
||||
}
|
||||
|
||||
@@ -44,10 +59,32 @@ namespace k8s.Models
|
||||
/// Gets or sets ready indicates that this endpoint is prepared to
|
||||
/// receive traffic, according to whatever system is managing the
|
||||
/// endpoint. A nil value indicates an unknown state. In most cases
|
||||
/// consumers should interpret this unknown state as ready.
|
||||
/// consumers should interpret this unknown state as ready. For
|
||||
/// compatibility reasons, ready should never be "true" for terminating
|
||||
/// endpoints.
|
||||
/// </summary>
|
||||
[JsonProperty(PropertyName = "ready")]
|
||||
public bool? Ready { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets serving is identical to ready except that it is set
|
||||
/// regardless of the terminating state of endpoints. This condition
|
||||
/// should be set to true for a ready endpoint that is terminating. If
|
||||
/// nil, consumers should defer to the ready condition. This field can
|
||||
/// be enabled with the EndpointSliceTerminatingCondition feature gate.
|
||||
/// </summary>
|
||||
[JsonProperty(PropertyName = "serving")]
|
||||
public bool? Serving { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets terminating indicates that this endpoint is
|
||||
/// terminating. A nil value indicates an unknown state. Consumers
|
||||
/// should interpret this unknown state to mean that the endpoint is
|
||||
/// not terminating. This field can be enabled with the
|
||||
/// EndpointSliceTerminatingCondition feature gate.
|
||||
/// </summary>
|
||||
[JsonProperty(PropertyName = "terminating")]
|
||||
public bool? Terminating { get; set; }
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -6,12 +6,18 @@
|
||||
|
||||
namespace k8s.Models
|
||||
{
|
||||
using Microsoft.Rest;
|
||||
using Newtonsoft.Json;
|
||||
using System.Linq;
|
||||
|
||||
/// <summary>
|
||||
/// Event is a report of an event somewhere in the cluster. It generally
|
||||
/// denotes some state change in the system.
|
||||
/// denotes some state change in the system. Events have a limited
|
||||
/// retention time and triggers and messages may evolve with time. Event
|
||||
/// consumers should not rely on the timing of an event with a given Reason
|
||||
/// reflecting a consistent underlying trigger, or the continued existence
|
||||
/// of events with that Reason. Events should be treated as informative,
|
||||
/// best-effort, supplemental data.
|
||||
/// </summary>
|
||||
public partial class V1beta1Event
|
||||
{
|
||||
@@ -79,7 +85,7 @@ namespace k8s.Models
|
||||
/// <param name="type">type is the type of this event (Normal,
|
||||
/// Warning), new types could be added in the future. It is
|
||||
/// machine-readable.</param>
|
||||
public V1beta1Event(System.DateTime eventTime, string action = default(string), string apiVersion = default(string), int? deprecatedCount = default(int?), System.DateTime? deprecatedFirstTimestamp = default(System.DateTime?), System.DateTime? deprecatedLastTimestamp = default(System.DateTime?), V1EventSource deprecatedSource = default(V1EventSource), string kind = default(string), V1ObjectMeta metadata = default(V1ObjectMeta), string note = default(string), string reason = default(string), V1ObjectReference regarding = default(V1ObjectReference), V1ObjectReference related = default(V1ObjectReference), string reportingController = default(string), string reportingInstance = default(string), V1beta1EventSeries series = default(V1beta1EventSeries), string type = default(string))
|
||||
public V1beta1Event(System.DateTime eventTime, V1ObjectMeta metadata, string action = default(string), string apiVersion = default(string), int? deprecatedCount = default(int?), System.DateTime? deprecatedFirstTimestamp = default(System.DateTime?), System.DateTime? deprecatedLastTimestamp = default(System.DateTime?), V1EventSource deprecatedSource = default(V1EventSource), string kind = default(string), string note = default(string), string reason = default(string), V1ObjectReference regarding = default(V1ObjectReference), V1ObjectReference related = default(V1ObjectReference), string reportingController = default(string), string reportingInstance = default(string), V1beta1EventSeries series = default(V1beta1EventSeries), string type = default(string))
|
||||
{
|
||||
Action = action;
|
||||
ApiVersion = apiVersion;
|
||||
@@ -239,11 +245,15 @@ namespace k8s.Models
|
||||
/// <summary>
|
||||
/// Validate the object.
|
||||
/// </summary>
|
||||
/// <exception cref="Microsoft.Rest.ValidationException">
|
||||
/// <exception cref="ValidationException">
|
||||
/// Thrown if validation fails
|
||||
/// </exception>
|
||||
public virtual void Validate()
|
||||
{
|
||||
if (Metadata == null)
|
||||
{
|
||||
throw new ValidationException(ValidationRules.CannotBeNull, "Metadata");
|
||||
}
|
||||
if (Series != null)
|
||||
{
|
||||
Series.Validate();
|
||||
|
||||
66
src/KubernetesClient/generated/Models/V1beta1FlowDistinguisherMethod.cs
generated
Normal file
66
src/KubernetesClient/generated/Models/V1beta1FlowDistinguisherMethod.cs
generated
Normal file
@@ -0,0 +1,66 @@
|
||||
// <auto-generated>
|
||||
// Code generated by Microsoft (R) AutoRest Code Generator.
|
||||
// Changes may cause incorrect behavior and will be lost if the code is
|
||||
// regenerated.
|
||||
// </auto-generated>
|
||||
|
||||
namespace k8s.Models
|
||||
{
|
||||
using Microsoft.Rest;
|
||||
using Newtonsoft.Json;
|
||||
using System.Linq;
|
||||
|
||||
/// <summary>
|
||||
/// FlowDistinguisherMethod specifies the method of a flow distinguisher.
|
||||
/// </summary>
|
||||
public partial class V1beta1FlowDistinguisherMethod
|
||||
{
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the V1beta1FlowDistinguisherMethod
|
||||
/// class.
|
||||
/// </summary>
|
||||
public V1beta1FlowDistinguisherMethod()
|
||||
{
|
||||
CustomInit();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the V1beta1FlowDistinguisherMethod
|
||||
/// class.
|
||||
/// </summary>
|
||||
/// <param name="type">`type` is the type of flow distinguisher method
|
||||
/// The supported types are "ByUser" and "ByNamespace".
|
||||
/// Required.</param>
|
||||
public V1beta1FlowDistinguisherMethod(string type)
|
||||
{
|
||||
Type = type;
|
||||
CustomInit();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// An initialization method that performs custom operations like setting defaults
|
||||
/// </summary>
|
||||
partial void CustomInit();
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets `type` is the type of flow distinguisher method The
|
||||
/// supported types are "ByUser" and "ByNamespace". Required.
|
||||
/// </summary>
|
||||
[JsonProperty(PropertyName = "type")]
|
||||
public string Type { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Validate the object.
|
||||
/// </summary>
|
||||
/// <exception cref="ValidationException">
|
||||
/// Thrown if validation fails
|
||||
/// </exception>
|
||||
public virtual void Validate()
|
||||
{
|
||||
if (Type == null)
|
||||
{
|
||||
throw new ValidationException(ValidationRules.CannotBeNull, "Type");
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
123
src/KubernetesClient/generated/Models/V1beta1FlowSchema.cs
generated
Normal file
123
src/KubernetesClient/generated/Models/V1beta1FlowSchema.cs
generated
Normal file
@@ -0,0 +1,123 @@
|
||||
// <auto-generated>
|
||||
// Code generated by Microsoft (R) AutoRest Code Generator.
|
||||
// Changes may cause incorrect behavior and will be lost if the code is
|
||||
// regenerated.
|
||||
// </auto-generated>
|
||||
|
||||
namespace k8s.Models
|
||||
{
|
||||
using Newtonsoft.Json;
|
||||
using System.Linq;
|
||||
|
||||
/// <summary>
|
||||
/// FlowSchema defines the schema of a group of flows. Note that a flow is
|
||||
/// made up of a set of inbound API requests with similar attributes and is
|
||||
/// identified by a pair of strings: the name of the FlowSchema and a "flow
|
||||
/// distinguisher".
|
||||
/// </summary>
|
||||
public partial class V1beta1FlowSchema
|
||||
{
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the V1beta1FlowSchema class.
|
||||
/// </summary>
|
||||
public V1beta1FlowSchema()
|
||||
{
|
||||
CustomInit();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the V1beta1FlowSchema class.
|
||||
/// </summary>
|
||||
/// <param name="apiVersion">APIVersion defines the versioned schema of
|
||||
/// this representation of an object. Servers should convert recognized
|
||||
/// schemas to the latest internal value, and may reject unrecognized
|
||||
/// values. More info:
|
||||
/// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources</param>
|
||||
/// <param name="kind">Kind is a string value representing the REST
|
||||
/// resource this object represents. Servers may infer this from the
|
||||
/// endpoint the client submits requests to. Cannot be updated. In
|
||||
/// CamelCase. More info:
|
||||
/// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds</param>
|
||||
/// <param name="metadata">`metadata` is the standard object's
|
||||
/// metadata. More info:
|
||||
/// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata</param>
|
||||
/// <param name="spec">`spec` is the specification of the desired
|
||||
/// behavior of a FlowSchema. More info:
|
||||
/// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status</param>
|
||||
/// <param name="status">`status` is the current status of a
|
||||
/// FlowSchema. More info:
|
||||
/// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status</param>
|
||||
public V1beta1FlowSchema(string apiVersion = default(string), string kind = default(string), V1ObjectMeta metadata = default(V1ObjectMeta), V1beta1FlowSchemaSpec spec = default(V1beta1FlowSchemaSpec), V1beta1FlowSchemaStatus status = default(V1beta1FlowSchemaStatus))
|
||||
{
|
||||
ApiVersion = apiVersion;
|
||||
Kind = kind;
|
||||
Metadata = metadata;
|
||||
Spec = spec;
|
||||
Status = status;
|
||||
CustomInit();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// An initialization method that performs custom operations like setting defaults
|
||||
/// </summary>
|
||||
partial void CustomInit();
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets aPIVersion defines the versioned schema of this
|
||||
/// representation of an object. Servers should convert recognized
|
||||
/// schemas to the latest internal value, and may reject unrecognized
|
||||
/// values. More info:
|
||||
/// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
|
||||
/// </summary>
|
||||
[JsonProperty(PropertyName = "apiVersion")]
|
||||
public string ApiVersion { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets kind is a string value representing the REST resource
|
||||
/// this object represents. Servers may infer this from the endpoint
|
||||
/// the client submits requests to. Cannot be updated. In CamelCase.
|
||||
/// More info:
|
||||
/// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
|
||||
/// </summary>
|
||||
[JsonProperty(PropertyName = "kind")]
|
||||
public string Kind { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets `metadata` is the standard object's metadata. More
|
||||
/// info:
|
||||
/// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
|
||||
/// </summary>
|
||||
[JsonProperty(PropertyName = "metadata")]
|
||||
public V1ObjectMeta Metadata { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets `spec` is the specification of the desired behavior of
|
||||
/// a FlowSchema. More info:
|
||||
/// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
|
||||
/// </summary>
|
||||
[JsonProperty(PropertyName = "spec")]
|
||||
public V1beta1FlowSchemaSpec Spec { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets `status` is the current status of a FlowSchema. More
|
||||
/// info:
|
||||
/// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
|
||||
/// </summary>
|
||||
[JsonProperty(PropertyName = "status")]
|
||||
public V1beta1FlowSchemaStatus Status { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Validate the object.
|
||||
/// </summary>
|
||||
/// <exception cref="Microsoft.Rest.ValidationException">
|
||||
/// Thrown if validation fails
|
||||
/// </exception>
|
||||
public virtual void Validate()
|
||||
{
|
||||
if (Spec != null)
|
||||
{
|
||||
Spec.Validate();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
88
src/KubernetesClient/generated/Models/V1beta1FlowSchemaCondition.cs
generated
Normal file
88
src/KubernetesClient/generated/Models/V1beta1FlowSchemaCondition.cs
generated
Normal file
@@ -0,0 +1,88 @@
|
||||
// <auto-generated>
|
||||
// Code generated by Microsoft (R) AutoRest Code Generator.
|
||||
// Changes may cause incorrect behavior and will be lost if the code is
|
||||
// regenerated.
|
||||
// </auto-generated>
|
||||
|
||||
namespace k8s.Models
|
||||
{
|
||||
using Newtonsoft.Json;
|
||||
using System.Linq;
|
||||
|
||||
/// <summary>
|
||||
/// FlowSchemaCondition describes conditions for a FlowSchema.
|
||||
/// </summary>
|
||||
public partial class V1beta1FlowSchemaCondition
|
||||
{
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the V1beta1FlowSchemaCondition class.
|
||||
/// </summary>
|
||||
public V1beta1FlowSchemaCondition()
|
||||
{
|
||||
CustomInit();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the V1beta1FlowSchemaCondition class.
|
||||
/// </summary>
|
||||
/// <param name="lastTransitionTime">`lastTransitionTime` is the last
|
||||
/// time the condition transitioned from one status to another.</param>
|
||||
/// <param name="message">`message` is a human-readable message
|
||||
/// indicating details about last transition.</param>
|
||||
/// <param name="reason">`reason` is a unique, one-word, CamelCase
|
||||
/// reason for the condition's last transition.</param>
|
||||
/// <param name="status">`status` is the status of the condition. Can
|
||||
/// be True, False, Unknown. Required.</param>
|
||||
/// <param name="type">`type` is the type of the condition.
|
||||
/// Required.</param>
|
||||
public V1beta1FlowSchemaCondition(System.DateTime? lastTransitionTime = default(System.DateTime?), string message = default(string), string reason = default(string), string status = default(string), string type = default(string))
|
||||
{
|
||||
LastTransitionTime = lastTransitionTime;
|
||||
Message = message;
|
||||
Reason = reason;
|
||||
Status = status;
|
||||
Type = type;
|
||||
CustomInit();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// An initialization method that performs custom operations like setting defaults
|
||||
/// </summary>
|
||||
partial void CustomInit();
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets `lastTransitionTime` is the last time the condition
|
||||
/// transitioned from one status to another.
|
||||
/// </summary>
|
||||
[JsonProperty(PropertyName = "lastTransitionTime")]
|
||||
public System.DateTime? LastTransitionTime { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets `message` is a human-readable message indicating
|
||||
/// details about last transition.
|
||||
/// </summary>
|
||||
[JsonProperty(PropertyName = "message")]
|
||||
public string Message { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets `reason` is a unique, one-word, CamelCase reason for
|
||||
/// the condition's last transition.
|
||||
/// </summary>
|
||||
[JsonProperty(PropertyName = "reason")]
|
||||
public string Reason { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets `status` is the status of the condition. Can be True,
|
||||
/// False, Unknown. Required.
|
||||
/// </summary>
|
||||
[JsonProperty(PropertyName = "status")]
|
||||
public string Status { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets `type` is the type of the condition. Required.
|
||||
/// </summary>
|
||||
[JsonProperty(PropertyName = "type")]
|
||||
public string Type { get; set; }
|
||||
|
||||
}
|
||||
}
|
||||
116
src/KubernetesClient/generated/Models/V1beta1FlowSchemaList.cs
generated
Normal file
116
src/KubernetesClient/generated/Models/V1beta1FlowSchemaList.cs
generated
Normal file
@@ -0,0 +1,116 @@
|
||||
// <auto-generated>
|
||||
// Code generated by Microsoft (R) AutoRest Code Generator.
|
||||
// Changes may cause incorrect behavior and will be lost if the code is
|
||||
// regenerated.
|
||||
// </auto-generated>
|
||||
|
||||
namespace k8s.Models
|
||||
{
|
||||
using Microsoft.Rest;
|
||||
using Newtonsoft.Json;
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
|
||||
/// <summary>
|
||||
/// FlowSchemaList is a list of FlowSchema objects.
|
||||
/// </summary>
|
||||
public partial class V1beta1FlowSchemaList
|
||||
{
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the V1beta1FlowSchemaList class.
|
||||
/// </summary>
|
||||
public V1beta1FlowSchemaList()
|
||||
{
|
||||
CustomInit();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the V1beta1FlowSchemaList class.
|
||||
/// </summary>
|
||||
/// <param name="items">`items` is a list of FlowSchemas.</param>
|
||||
/// <param name="apiVersion">APIVersion defines the versioned schema of
|
||||
/// this representation of an object. Servers should convert recognized
|
||||
/// schemas to the latest internal value, and may reject unrecognized
|
||||
/// values. More info:
|
||||
/// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources</param>
|
||||
/// <param name="kind">Kind is a string value representing the REST
|
||||
/// resource this object represents. Servers may infer this from the
|
||||
/// endpoint the client submits requests to. Cannot be updated. In
|
||||
/// CamelCase. More info:
|
||||
/// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds</param>
|
||||
/// <param name="metadata">`metadata` is the standard list metadata.
|
||||
/// More info:
|
||||
/// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata</param>
|
||||
public V1beta1FlowSchemaList(IList<V1beta1FlowSchema> items, string apiVersion = default(string), string kind = default(string), V1ListMeta metadata = default(V1ListMeta))
|
||||
{
|
||||
ApiVersion = apiVersion;
|
||||
Items = items;
|
||||
Kind = kind;
|
||||
Metadata = metadata;
|
||||
CustomInit();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// An initialization method that performs custom operations like setting defaults
|
||||
/// </summary>
|
||||
partial void CustomInit();
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets aPIVersion defines the versioned schema of this
|
||||
/// representation of an object. Servers should convert recognized
|
||||
/// schemas to the latest internal value, and may reject unrecognized
|
||||
/// values. More info:
|
||||
/// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
|
||||
/// </summary>
|
||||
[JsonProperty(PropertyName = "apiVersion")]
|
||||
public string ApiVersion { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets `items` is a list of FlowSchemas.
|
||||
/// </summary>
|
||||
[JsonProperty(PropertyName = "items")]
|
||||
public IList<V1beta1FlowSchema> Items { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets kind is a string value representing the REST resource
|
||||
/// this object represents. Servers may infer this from the endpoint
|
||||
/// the client submits requests to. Cannot be updated. In CamelCase.
|
||||
/// More info:
|
||||
/// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
|
||||
/// </summary>
|
||||
[JsonProperty(PropertyName = "kind")]
|
||||
public string Kind { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets `metadata` is the standard list metadata. More info:
|
||||
/// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
|
||||
/// </summary>
|
||||
[JsonProperty(PropertyName = "metadata")]
|
||||
public V1ListMeta Metadata { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Validate the object.
|
||||
/// </summary>
|
||||
/// <exception cref="ValidationException">
|
||||
/// Thrown if validation fails
|
||||
/// </exception>
|
||||
public virtual void Validate()
|
||||
{
|
||||
if (Items == null)
|
||||
{
|
||||
throw new ValidationException(ValidationRules.CannotBeNull, "Items");
|
||||
}
|
||||
if (Items != null)
|
||||
{
|
||||
foreach (var element in Items)
|
||||
{
|
||||
if (element != null)
|
||||
{
|
||||
element.Validate();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
135
src/KubernetesClient/generated/Models/V1beta1FlowSchemaSpec.cs
generated
Normal file
135
src/KubernetesClient/generated/Models/V1beta1FlowSchemaSpec.cs
generated
Normal file
@@ -0,0 +1,135 @@
|
||||
// <auto-generated>
|
||||
// Code generated by Microsoft (R) AutoRest Code Generator.
|
||||
// Changes may cause incorrect behavior and will be lost if the code is
|
||||
// regenerated.
|
||||
// </auto-generated>
|
||||
|
||||
namespace k8s.Models
|
||||
{
|
||||
using Microsoft.Rest;
|
||||
using Newtonsoft.Json;
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
|
||||
/// <summary>
|
||||
/// FlowSchemaSpec describes how the FlowSchema's specification looks like.
|
||||
/// </summary>
|
||||
public partial class V1beta1FlowSchemaSpec
|
||||
{
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the V1beta1FlowSchemaSpec class.
|
||||
/// </summary>
|
||||
public V1beta1FlowSchemaSpec()
|
||||
{
|
||||
CustomInit();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the V1beta1FlowSchemaSpec class.
|
||||
/// </summary>
|
||||
/// <param
|
||||
/// name="priorityLevelConfiguration">`priorityLevelConfiguration`
|
||||
/// should reference a PriorityLevelConfiguration in the cluster. If
|
||||
/// the reference cannot be resolved, the FlowSchema will be ignored
|
||||
/// and marked as invalid in its status. Required.</param>
|
||||
/// <param name="distinguisherMethod">`distinguisherMethod` defines how
|
||||
/// to compute the flow distinguisher for requests that match this
|
||||
/// schema. `nil` specifies that the distinguisher is disabled and thus
|
||||
/// will always be the empty string.</param>
|
||||
/// <param name="matchingPrecedence">`matchingPrecedence` is used to
|
||||
/// choose among the FlowSchemas that match a given request. The chosen
|
||||
/// FlowSchema is among those with the numerically lowest (which we
|
||||
/// take to be logically highest) MatchingPrecedence. Each
|
||||
/// MatchingPrecedence value must be ranged in [1,10000]. Note that if
|
||||
/// the precedence is not specified, it will be set to 1000 as
|
||||
/// default.</param>
|
||||
/// <param name="rules">`rules` describes which requests will match
|
||||
/// this flow schema. This FlowSchema matches a request if and only if
|
||||
/// at least one member of rules matches the request. if it is an empty
|
||||
/// slice, there will be no requests matching the FlowSchema.</param>
|
||||
public V1beta1FlowSchemaSpec(V1beta1PriorityLevelConfigurationReference priorityLevelConfiguration, V1beta1FlowDistinguisherMethod distinguisherMethod = default(V1beta1FlowDistinguisherMethod), int? matchingPrecedence = default(int?), IList<V1beta1PolicyRulesWithSubjects> rules = default(IList<V1beta1PolicyRulesWithSubjects>))
|
||||
{
|
||||
DistinguisherMethod = distinguisherMethod;
|
||||
MatchingPrecedence = matchingPrecedence;
|
||||
PriorityLevelConfiguration = priorityLevelConfiguration;
|
||||
Rules = rules;
|
||||
CustomInit();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// An initialization method that performs custom operations like setting defaults
|
||||
/// </summary>
|
||||
partial void CustomInit();
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets `distinguisherMethod` defines how to compute the flow
|
||||
/// distinguisher for requests that match this schema. `nil` specifies
|
||||
/// that the distinguisher is disabled and thus will always be the
|
||||
/// empty string.
|
||||
/// </summary>
|
||||
[JsonProperty(PropertyName = "distinguisherMethod")]
|
||||
public V1beta1FlowDistinguisherMethod DistinguisherMethod { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets `matchingPrecedence` is used to choose among the
|
||||
/// FlowSchemas that match a given request. The chosen FlowSchema is
|
||||
/// among those with the numerically lowest (which we take to be
|
||||
/// logically highest) MatchingPrecedence. Each MatchingPrecedence
|
||||
/// value must be ranged in [1,10000]. Note that if the precedence is
|
||||
/// not specified, it will be set to 1000 as default.
|
||||
/// </summary>
|
||||
[JsonProperty(PropertyName = "matchingPrecedence")]
|
||||
public int? MatchingPrecedence { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets `priorityLevelConfiguration` should reference a
|
||||
/// PriorityLevelConfiguration in the cluster. If the reference cannot
|
||||
/// be resolved, the FlowSchema will be ignored and marked as invalid
|
||||
/// in its status. Required.
|
||||
/// </summary>
|
||||
[JsonProperty(PropertyName = "priorityLevelConfiguration")]
|
||||
public V1beta1PriorityLevelConfigurationReference PriorityLevelConfiguration { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets `rules` describes which requests will match this flow
|
||||
/// schema. This FlowSchema matches a request if and only if at least
|
||||
/// one member of rules matches the request. if it is an empty slice,
|
||||
/// there will be no requests matching the FlowSchema.
|
||||
/// </summary>
|
||||
[JsonProperty(PropertyName = "rules")]
|
||||
public IList<V1beta1PolicyRulesWithSubjects> Rules { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Validate the object.
|
||||
/// </summary>
|
||||
/// <exception cref="ValidationException">
|
||||
/// Thrown if validation fails
|
||||
/// </exception>
|
||||
public virtual void Validate()
|
||||
{
|
||||
if (PriorityLevelConfiguration == null)
|
||||
{
|
||||
throw new ValidationException(ValidationRules.CannotBeNull, "PriorityLevelConfiguration");
|
||||
}
|
||||
if (DistinguisherMethod != null)
|
||||
{
|
||||
DistinguisherMethod.Validate();
|
||||
}
|
||||
if (PriorityLevelConfiguration != null)
|
||||
{
|
||||
PriorityLevelConfiguration.Validate();
|
||||
}
|
||||
if (Rules != null)
|
||||
{
|
||||
foreach (var element in Rules)
|
||||
{
|
||||
if (element != null)
|
||||
{
|
||||
element.Validate();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
51
src/KubernetesClient/generated/Models/V1beta1FlowSchemaStatus.cs
generated
Normal file
51
src/KubernetesClient/generated/Models/V1beta1FlowSchemaStatus.cs
generated
Normal file
@@ -0,0 +1,51 @@
|
||||
// <auto-generated>
|
||||
// Code generated by Microsoft (R) AutoRest Code Generator.
|
||||
// Changes may cause incorrect behavior and will be lost if the code is
|
||||
// regenerated.
|
||||
// </auto-generated>
|
||||
|
||||
namespace k8s.Models
|
||||
{
|
||||
using Newtonsoft.Json;
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
|
||||
/// <summary>
|
||||
/// FlowSchemaStatus represents the current state of a FlowSchema.
|
||||
/// </summary>
|
||||
public partial class V1beta1FlowSchemaStatus
|
||||
{
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the V1beta1FlowSchemaStatus class.
|
||||
/// </summary>
|
||||
public V1beta1FlowSchemaStatus()
|
||||
{
|
||||
CustomInit();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the V1beta1FlowSchemaStatus class.
|
||||
/// </summary>
|
||||
/// <param name="conditions">`conditions` is a list of the current
|
||||
/// states of FlowSchema.</param>
|
||||
public V1beta1FlowSchemaStatus(IList<V1beta1FlowSchemaCondition> conditions = default(IList<V1beta1FlowSchemaCondition>))
|
||||
{
|
||||
Conditions = conditions;
|
||||
CustomInit();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// An initialization method that performs custom operations like setting defaults
|
||||
/// </summary>
|
||||
partial void CustomInit();
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets `conditions` is a list of the current states of
|
||||
/// FlowSchema.
|
||||
/// </summary>
|
||||
[JsonProperty(PropertyName = "conditions")]
|
||||
public IList<V1beta1FlowSchemaCondition> Conditions { get; set; }
|
||||
|
||||
}
|
||||
}
|
||||
67
src/KubernetesClient/generated/Models/V1beta1GroupSubject.cs
generated
Normal file
67
src/KubernetesClient/generated/Models/V1beta1GroupSubject.cs
generated
Normal file
@@ -0,0 +1,67 @@
|
||||
// <auto-generated>
|
||||
// Code generated by Microsoft (R) AutoRest Code Generator.
|
||||
// Changes may cause incorrect behavior and will be lost if the code is
|
||||
// regenerated.
|
||||
// </auto-generated>
|
||||
|
||||
namespace k8s.Models
|
||||
{
|
||||
using Microsoft.Rest;
|
||||
using Newtonsoft.Json;
|
||||
using System.Linq;
|
||||
|
||||
/// <summary>
|
||||
/// GroupSubject holds detailed information for group-kind subject.
|
||||
/// </summary>
|
||||
public partial class V1beta1GroupSubject
|
||||
{
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the V1beta1GroupSubject class.
|
||||
/// </summary>
|
||||
public V1beta1GroupSubject()
|
||||
{
|
||||
CustomInit();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the V1beta1GroupSubject class.
|
||||
/// </summary>
|
||||
/// <param name="name">name is the user group that matches, or "*" to
|
||||
/// match all user groups. See
|
||||
/// https://github.com/kubernetes/apiserver/blob/master/pkg/authentication/user/user.go
|
||||
/// for some well-known group names. Required.</param>
|
||||
public V1beta1GroupSubject(string name)
|
||||
{
|
||||
Name = name;
|
||||
CustomInit();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// An initialization method that performs custom operations like setting defaults
|
||||
/// </summary>
|
||||
partial void CustomInit();
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets name is the user group that matches, or "*" to match
|
||||
/// all user groups. See
|
||||
/// https://github.com/kubernetes/apiserver/blob/master/pkg/authentication/user/user.go
|
||||
/// for some well-known group names. Required.
|
||||
/// </summary>
|
||||
[JsonProperty(PropertyName = "name")]
|
||||
public string Name { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Validate the object.
|
||||
/// </summary>
|
||||
/// <exception cref="ValidationException">
|
||||
/// Thrown if validation fails
|
||||
/// </exception>
|
||||
public virtual void Validate()
|
||||
{
|
||||
if (Name == null)
|
||||
{
|
||||
throw new ValidationException(ValidationRules.CannotBeNull, "Name");
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
81
src/KubernetesClient/generated/Models/V1beta1LimitResponse.cs
generated
Normal file
81
src/KubernetesClient/generated/Models/V1beta1LimitResponse.cs
generated
Normal file
@@ -0,0 +1,81 @@
|
||||
// <auto-generated>
|
||||
// Code generated by Microsoft (R) AutoRest Code Generator.
|
||||
// Changes may cause incorrect behavior and will be lost if the code is
|
||||
// regenerated.
|
||||
// </auto-generated>
|
||||
|
||||
namespace k8s.Models
|
||||
{
|
||||
using Microsoft.Rest;
|
||||
using Newtonsoft.Json;
|
||||
using System.Linq;
|
||||
|
||||
/// <summary>
|
||||
/// LimitResponse defines how to handle requests that can not be executed
|
||||
/// right now.
|
||||
/// </summary>
|
||||
public partial class V1beta1LimitResponse
|
||||
{
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the V1beta1LimitResponse class.
|
||||
/// </summary>
|
||||
public V1beta1LimitResponse()
|
||||
{
|
||||
CustomInit();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the V1beta1LimitResponse class.
|
||||
/// </summary>
|
||||
/// <param name="type">`type` is "Queue" or "Reject". "Queue" means
|
||||
/// that requests that can not be executed upon arrival are held in a
|
||||
/// queue until they can be executed or a queuing limit is reached.
|
||||
/// "Reject" means that requests that can not be executed upon arrival
|
||||
/// are rejected. Required.</param>
|
||||
/// <param name="queuing">`queuing` holds the configuration parameters
|
||||
/// for queuing. This field may be non-empty only if `type` is
|
||||
/// `"Queue"`.</param>
|
||||
public V1beta1LimitResponse(string type, V1beta1QueuingConfiguration queuing = default(V1beta1QueuingConfiguration))
|
||||
{
|
||||
Queuing = queuing;
|
||||
Type = type;
|
||||
CustomInit();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// An initialization method that performs custom operations like setting defaults
|
||||
/// </summary>
|
||||
partial void CustomInit();
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets `queuing` holds the configuration parameters for
|
||||
/// queuing. This field may be non-empty only if `type` is `"Queue"`.
|
||||
/// </summary>
|
||||
[JsonProperty(PropertyName = "queuing")]
|
||||
public V1beta1QueuingConfiguration Queuing { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets `type` is "Queue" or "Reject". "Queue" means that
|
||||
/// requests that can not be executed upon arrival are held in a queue
|
||||
/// until they can be executed or a queuing limit is reached. "Reject"
|
||||
/// means that requests that can not be executed upon arrival are
|
||||
/// rejected. Required.
|
||||
/// </summary>
|
||||
[JsonProperty(PropertyName = "type")]
|
||||
public string Type { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Validate the object.
|
||||
/// </summary>
|
||||
/// <exception cref="ValidationException">
|
||||
/// Thrown if validation fails
|
||||
/// </exception>
|
||||
public virtual void Validate()
|
||||
{
|
||||
if (Type == null)
|
||||
{
|
||||
throw new ValidationException(ValidationRules.CannotBeNull, "Type");
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
102
src/KubernetesClient/generated/Models/V1beta1LimitedPriorityLevelConfiguration.cs
generated
Normal file
102
src/KubernetesClient/generated/Models/V1beta1LimitedPriorityLevelConfiguration.cs
generated
Normal file
@@ -0,0 +1,102 @@
|
||||
// <auto-generated>
|
||||
// Code generated by Microsoft (R) AutoRest Code Generator.
|
||||
// Changes may cause incorrect behavior and will be lost if the code is
|
||||
// regenerated.
|
||||
// </auto-generated>
|
||||
|
||||
namespace k8s.Models
|
||||
{
|
||||
using Newtonsoft.Json;
|
||||
using System.Linq;
|
||||
|
||||
/// <summary>
|
||||
/// LimitedPriorityLevelConfiguration specifies how to handle requests that
|
||||
/// are subject to limits. It addresses two issues:
|
||||
/// * How are requests for this priority level limited?
|
||||
/// * What should be done with requests that exceed the limit?
|
||||
/// </summary>
|
||||
public partial class V1beta1LimitedPriorityLevelConfiguration
|
||||
{
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the
|
||||
/// V1beta1LimitedPriorityLevelConfiguration class.
|
||||
/// </summary>
|
||||
public V1beta1LimitedPriorityLevelConfiguration()
|
||||
{
|
||||
CustomInit();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the
|
||||
/// V1beta1LimitedPriorityLevelConfiguration class.
|
||||
/// </summary>
|
||||
/// <param name="assuredConcurrencyShares">`assuredConcurrencyShares`
|
||||
/// (ACS) configures the execution limit, which is a limit on the
|
||||
/// number of requests of this priority level that may be exeucting at
|
||||
/// a given time. ACS must be a positive number. The server's
|
||||
/// concurrency limit (SCL) is divided among the concurrency-controlled
|
||||
/// priority levels in proportion to their assured concurrency shares.
|
||||
/// This produces the assured concurrency value (ACV) --- the number of
|
||||
/// requests that may be executing at a time --- for each such priority
|
||||
/// level:
|
||||
///
|
||||
/// ACV(l) = ceil( SCL * ACS(l) / ( sum[priority levels k] ACS(k) ) )
|
||||
///
|
||||
/// bigger numbers of ACS mean more reserved concurrent requests (at
|
||||
/// the expense of every other PL). This field has a default value of
|
||||
/// 30.</param>
|
||||
/// <param name="limitResponse">`limitResponse` indicates what to do
|
||||
/// with requests that can not be executed right now</param>
|
||||
public V1beta1LimitedPriorityLevelConfiguration(int? assuredConcurrencyShares = default(int?), V1beta1LimitResponse limitResponse = default(V1beta1LimitResponse))
|
||||
{
|
||||
AssuredConcurrencyShares = assuredConcurrencyShares;
|
||||
LimitResponse = limitResponse;
|
||||
CustomInit();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// An initialization method that performs custom operations like setting defaults
|
||||
/// </summary>
|
||||
partial void CustomInit();
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets `assuredConcurrencyShares` (ACS) configures the
|
||||
/// execution limit, which is a limit on the number of requests of this
|
||||
/// priority level that may be exeucting at a given time. ACS must be
|
||||
/// a positive number. The server's concurrency limit (SCL) is divided
|
||||
/// among the concurrency-controlled priority levels in proportion to
|
||||
/// their assured concurrency shares. This produces the assured
|
||||
/// concurrency value (ACV) --- the number of requests that may be
|
||||
/// executing at a time --- for each such priority level:
|
||||
///
|
||||
/// ACV(l) = ceil( SCL * ACS(l) / ( sum[priority levels k] ACS(k) ) )
|
||||
///
|
||||
/// bigger numbers of ACS mean more reserved concurrent requests (at
|
||||
/// the expense of every other PL). This field has a default value of
|
||||
/// 30.
|
||||
/// </summary>
|
||||
[JsonProperty(PropertyName = "assuredConcurrencyShares")]
|
||||
public int? AssuredConcurrencyShares { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets `limitResponse` indicates what to do with requests
|
||||
/// that can not be executed right now
|
||||
/// </summary>
|
||||
[JsonProperty(PropertyName = "limitResponse")]
|
||||
public V1beta1LimitResponse LimitResponse { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Validate the object.
|
||||
/// </summary>
|
||||
/// <exception cref="Microsoft.Rest.ValidationException">
|
||||
/// Thrown if validation fails
|
||||
/// </exception>
|
||||
public virtual void Validate()
|
||||
{
|
||||
if (LimitResponse != null)
|
||||
{
|
||||
LimitResponse.Validate();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
102
src/KubernetesClient/generated/Models/V1beta1NonResourcePolicyRule.cs
generated
Normal file
102
src/KubernetesClient/generated/Models/V1beta1NonResourcePolicyRule.cs
generated
Normal file
@@ -0,0 +1,102 @@
|
||||
// <auto-generated>
|
||||
// Code generated by Microsoft (R) AutoRest Code Generator.
|
||||
// Changes may cause incorrect behavior and will be lost if the code is
|
||||
// regenerated.
|
||||
// </auto-generated>
|
||||
|
||||
namespace k8s.Models
|
||||
{
|
||||
using Microsoft.Rest;
|
||||
using Newtonsoft.Json;
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
|
||||
/// <summary>
|
||||
/// NonResourcePolicyRule is a predicate that matches non-resource requests
|
||||
/// according to their verb and the target non-resource URL. A
|
||||
/// NonResourcePolicyRule matches a request if and only if both (a) at
|
||||
/// least one member of verbs matches the request and (b) at least one
|
||||
/// member of nonResourceURLs matches the request.
|
||||
/// </summary>
|
||||
public partial class V1beta1NonResourcePolicyRule
|
||||
{
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the V1beta1NonResourcePolicyRule
|
||||
/// class.
|
||||
/// </summary>
|
||||
public V1beta1NonResourcePolicyRule()
|
||||
{
|
||||
CustomInit();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the V1beta1NonResourcePolicyRule
|
||||
/// class.
|
||||
/// </summary>
|
||||
/// <param name="nonResourceURLs">`nonResourceURLs` is a set of url
|
||||
/// prefixes that a user should have access to and may not be empty.
|
||||
/// For example:
|
||||
/// - "/healthz" is legal
|
||||
/// - "/hea*" is illegal
|
||||
/// - "/hea" is legal but matches nothing
|
||||
/// - "/hea/*" also matches nothing
|
||||
/// - "/healthz/*" matches all per-component health checks.
|
||||
/// "*" matches all non-resource urls. if it is present, it must be the
|
||||
/// only entry. Required.</param>
|
||||
/// <param name="verbs">`verbs` is a list of matching verbs and may not
|
||||
/// be empty. "*" matches all verbs. If it is present, it must be the
|
||||
/// only entry. Required.</param>
|
||||
public V1beta1NonResourcePolicyRule(IList<string> nonResourceURLs, IList<string> verbs)
|
||||
{
|
||||
NonResourceURLs = nonResourceURLs;
|
||||
Verbs = verbs;
|
||||
CustomInit();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// An initialization method that performs custom operations like setting defaults
|
||||
/// </summary>
|
||||
partial void CustomInit();
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets `nonResourceURLs` is a set of url prefixes that a user
|
||||
/// should have access to and may not be empty. For example:
|
||||
/// - "/healthz" is legal
|
||||
/// - "/hea*" is illegal
|
||||
/// - "/hea" is legal but matches nothing
|
||||
/// - "/hea/*" also matches nothing
|
||||
/// - "/healthz/*" matches all per-component health checks.
|
||||
/// "*" matches all non-resource urls. if it is present, it must be the
|
||||
/// only entry. Required.
|
||||
/// </summary>
|
||||
[JsonProperty(PropertyName = "nonResourceURLs")]
|
||||
public IList<string> NonResourceURLs { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets `verbs` is a list of matching verbs and may not be
|
||||
/// empty. "*" matches all verbs. If it is present, it must be the only
|
||||
/// entry. Required.
|
||||
/// </summary>
|
||||
[JsonProperty(PropertyName = "verbs")]
|
||||
public IList<string> Verbs { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Validate the object.
|
||||
/// </summary>
|
||||
/// <exception cref="ValidationException">
|
||||
/// Thrown if validation fails
|
||||
/// </exception>
|
||||
public virtual void Validate()
|
||||
{
|
||||
if (NonResourceURLs == null)
|
||||
{
|
||||
throw new ValidationException(ValidationRules.CannotBeNull, "NonResourceURLs");
|
||||
}
|
||||
if (Verbs == null)
|
||||
{
|
||||
throw new ValidationException(ValidationRules.CannotBeNull, "Verbs");
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
134
src/KubernetesClient/generated/Models/V1beta1PolicyRulesWithSubjects.cs
generated
Normal file
134
src/KubernetesClient/generated/Models/V1beta1PolicyRulesWithSubjects.cs
generated
Normal file
@@ -0,0 +1,134 @@
|
||||
// <auto-generated>
|
||||
// Code generated by Microsoft (R) AutoRest Code Generator.
|
||||
// Changes may cause incorrect behavior and will be lost if the code is
|
||||
// regenerated.
|
||||
// </auto-generated>
|
||||
|
||||
namespace k8s.Models
|
||||
{
|
||||
using Microsoft.Rest;
|
||||
using Newtonsoft.Json;
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
|
||||
/// <summary>
|
||||
/// PolicyRulesWithSubjects prescribes a test that applies to a request to
|
||||
/// an apiserver. The test considers the subject making the request, the
|
||||
/// verb being requested, and the resource to be acted upon. This
|
||||
/// PolicyRulesWithSubjects matches a request if and only if both (a) at
|
||||
/// least one member of subjects matches the request and (b) at least one
|
||||
/// member of resourceRules or nonResourceRules matches the request.
|
||||
/// </summary>
|
||||
public partial class V1beta1PolicyRulesWithSubjects
|
||||
{
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the V1beta1PolicyRulesWithSubjects
|
||||
/// class.
|
||||
/// </summary>
|
||||
public V1beta1PolicyRulesWithSubjects()
|
||||
{
|
||||
CustomInit();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the V1beta1PolicyRulesWithSubjects
|
||||
/// class.
|
||||
/// </summary>
|
||||
/// <param name="subjects">subjects is the list of normal user,
|
||||
/// serviceaccount, or group that this rule cares about. There must be
|
||||
/// at least one member in this slice. A slice that includes both the
|
||||
/// system:authenticated and system:unauthenticated user groups matches
|
||||
/// every request. Required.</param>
|
||||
/// <param name="nonResourceRules">`nonResourceRules` is a list of
|
||||
/// NonResourcePolicyRules that identify matching requests according to
|
||||
/// their verb and the target non-resource URL.</param>
|
||||
/// <param name="resourceRules">`resourceRules` is a slice of
|
||||
/// ResourcePolicyRules that identify matching requests according to
|
||||
/// their verb and the target resource. At least one of `resourceRules`
|
||||
/// and `nonResourceRules` has to be non-empty.</param>
|
||||
public V1beta1PolicyRulesWithSubjects(IList<Flowcontrolv1beta1Subject> subjects, IList<V1beta1NonResourcePolicyRule> nonResourceRules = default(IList<V1beta1NonResourcePolicyRule>), IList<V1beta1ResourcePolicyRule> resourceRules = default(IList<V1beta1ResourcePolicyRule>))
|
||||
{
|
||||
NonResourceRules = nonResourceRules;
|
||||
ResourceRules = resourceRules;
|
||||
Subjects = subjects;
|
||||
CustomInit();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// An initialization method that performs custom operations like setting defaults
|
||||
/// </summary>
|
||||
partial void CustomInit();
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets `nonResourceRules` is a list of NonResourcePolicyRules
|
||||
/// that identify matching requests according to their verb and the
|
||||
/// target non-resource URL.
|
||||
/// </summary>
|
||||
[JsonProperty(PropertyName = "nonResourceRules")]
|
||||
public IList<V1beta1NonResourcePolicyRule> NonResourceRules { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets `resourceRules` is a slice of ResourcePolicyRules that
|
||||
/// identify matching requests according to their verb and the target
|
||||
/// resource. At least one of `resourceRules` and `nonResourceRules`
|
||||
/// has to be non-empty.
|
||||
/// </summary>
|
||||
[JsonProperty(PropertyName = "resourceRules")]
|
||||
public IList<V1beta1ResourcePolicyRule> ResourceRules { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets subjects is the list of normal user, serviceaccount,
|
||||
/// or group that this rule cares about. There must be at least one
|
||||
/// member in this slice. A slice that includes both the
|
||||
/// system:authenticated and system:unauthenticated user groups matches
|
||||
/// every request. Required.
|
||||
/// </summary>
|
||||
[JsonProperty(PropertyName = "subjects")]
|
||||
public IList<Flowcontrolv1beta1Subject> Subjects { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Validate the object.
|
||||
/// </summary>
|
||||
/// <exception cref="ValidationException">
|
||||
/// Thrown if validation fails
|
||||
/// </exception>
|
||||
public virtual void Validate()
|
||||
{
|
||||
if (Subjects == null)
|
||||
{
|
||||
throw new ValidationException(ValidationRules.CannotBeNull, "Subjects");
|
||||
}
|
||||
if (NonResourceRules != null)
|
||||
{
|
||||
foreach (var element in NonResourceRules)
|
||||
{
|
||||
if (element != null)
|
||||
{
|
||||
element.Validate();
|
||||
}
|
||||
}
|
||||
}
|
||||
if (ResourceRules != null)
|
||||
{
|
||||
foreach (var element1 in ResourceRules)
|
||||
{
|
||||
if (element1 != null)
|
||||
{
|
||||
element1.Validate();
|
||||
}
|
||||
}
|
||||
}
|
||||
if (Subjects != null)
|
||||
{
|
||||
foreach (var element2 in Subjects)
|
||||
{
|
||||
if (element2 != null)
|
||||
{
|
||||
element2.Validate();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
123
src/KubernetesClient/generated/Models/V1beta1PriorityLevelConfiguration.cs
generated
Normal file
123
src/KubernetesClient/generated/Models/V1beta1PriorityLevelConfiguration.cs
generated
Normal file
@@ -0,0 +1,123 @@
|
||||
// <auto-generated>
|
||||
// Code generated by Microsoft (R) AutoRest Code Generator.
|
||||
// Changes may cause incorrect behavior and will be lost if the code is
|
||||
// regenerated.
|
||||
// </auto-generated>
|
||||
|
||||
namespace k8s.Models
|
||||
{
|
||||
using Newtonsoft.Json;
|
||||
using System.Linq;
|
||||
|
||||
/// <summary>
|
||||
/// PriorityLevelConfiguration represents the configuration of a priority
|
||||
/// level.
|
||||
/// </summary>
|
||||
public partial class V1beta1PriorityLevelConfiguration
|
||||
{
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the V1beta1PriorityLevelConfiguration
|
||||
/// class.
|
||||
/// </summary>
|
||||
public V1beta1PriorityLevelConfiguration()
|
||||
{
|
||||
CustomInit();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the V1beta1PriorityLevelConfiguration
|
||||
/// class.
|
||||
/// </summary>
|
||||
/// <param name="apiVersion">APIVersion defines the versioned schema of
|
||||
/// this representation of an object. Servers should convert recognized
|
||||
/// schemas to the latest internal value, and may reject unrecognized
|
||||
/// values. More info:
|
||||
/// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources</param>
|
||||
/// <param name="kind">Kind is a string value representing the REST
|
||||
/// resource this object represents. Servers may infer this from the
|
||||
/// endpoint the client submits requests to. Cannot be updated. In
|
||||
/// CamelCase. More info:
|
||||
/// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds</param>
|
||||
/// <param name="metadata">`metadata` is the standard object's
|
||||
/// metadata. More info:
|
||||
/// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata</param>
|
||||
/// <param name="spec">`spec` is the specification of the desired
|
||||
/// behavior of a "request-priority". More info:
|
||||
/// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status</param>
|
||||
/// <param name="status">`status` is the current status of a
|
||||
/// "request-priority". More info:
|
||||
/// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status</param>
|
||||
public V1beta1PriorityLevelConfiguration(string apiVersion = default(string), string kind = default(string), V1ObjectMeta metadata = default(V1ObjectMeta), V1beta1PriorityLevelConfigurationSpec spec = default(V1beta1PriorityLevelConfigurationSpec), V1beta1PriorityLevelConfigurationStatus status = default(V1beta1PriorityLevelConfigurationStatus))
|
||||
{
|
||||
ApiVersion = apiVersion;
|
||||
Kind = kind;
|
||||
Metadata = metadata;
|
||||
Spec = spec;
|
||||
Status = status;
|
||||
CustomInit();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// An initialization method that performs custom operations like setting defaults
|
||||
/// </summary>
|
||||
partial void CustomInit();
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets aPIVersion defines the versioned schema of this
|
||||
/// representation of an object. Servers should convert recognized
|
||||
/// schemas to the latest internal value, and may reject unrecognized
|
||||
/// values. More info:
|
||||
/// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
|
||||
/// </summary>
|
||||
[JsonProperty(PropertyName = "apiVersion")]
|
||||
public string ApiVersion { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets kind is a string value representing the REST resource
|
||||
/// this object represents. Servers may infer this from the endpoint
|
||||
/// the client submits requests to. Cannot be updated. In CamelCase.
|
||||
/// More info:
|
||||
/// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
|
||||
/// </summary>
|
||||
[JsonProperty(PropertyName = "kind")]
|
||||
public string Kind { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets `metadata` is the standard object's metadata. More
|
||||
/// info:
|
||||
/// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
|
||||
/// </summary>
|
||||
[JsonProperty(PropertyName = "metadata")]
|
||||
public V1ObjectMeta Metadata { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets `spec` is the specification of the desired behavior of
|
||||
/// a "request-priority". More info:
|
||||
/// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
|
||||
/// </summary>
|
||||
[JsonProperty(PropertyName = "spec")]
|
||||
public V1beta1PriorityLevelConfigurationSpec Spec { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets `status` is the current status of a
|
||||
/// "request-priority". More info:
|
||||
/// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
|
||||
/// </summary>
|
||||
[JsonProperty(PropertyName = "status")]
|
||||
public V1beta1PriorityLevelConfigurationStatus Status { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Validate the object.
|
||||
/// </summary>
|
||||
/// <exception cref="Microsoft.Rest.ValidationException">
|
||||
/// Thrown if validation fails
|
||||
/// </exception>
|
||||
public virtual void Validate()
|
||||
{
|
||||
if (Spec != null)
|
||||
{
|
||||
Spec.Validate();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
91
src/KubernetesClient/generated/Models/V1beta1PriorityLevelConfigurationCondition.cs
generated
Normal file
91
src/KubernetesClient/generated/Models/V1beta1PriorityLevelConfigurationCondition.cs
generated
Normal file
@@ -0,0 +1,91 @@
|
||||
// <auto-generated>
|
||||
// Code generated by Microsoft (R) AutoRest Code Generator.
|
||||
// Changes may cause incorrect behavior and will be lost if the code is
|
||||
// regenerated.
|
||||
// </auto-generated>
|
||||
|
||||
namespace k8s.Models
|
||||
{
|
||||
using Newtonsoft.Json;
|
||||
using System.Linq;
|
||||
|
||||
/// <summary>
|
||||
/// PriorityLevelConfigurationCondition defines the condition of priority
|
||||
/// level.
|
||||
/// </summary>
|
||||
public partial class V1beta1PriorityLevelConfigurationCondition
|
||||
{
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the
|
||||
/// V1beta1PriorityLevelConfigurationCondition class.
|
||||
/// </summary>
|
||||
public V1beta1PriorityLevelConfigurationCondition()
|
||||
{
|
||||
CustomInit();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the
|
||||
/// V1beta1PriorityLevelConfigurationCondition class.
|
||||
/// </summary>
|
||||
/// <param name="lastTransitionTime">`lastTransitionTime` is the last
|
||||
/// time the condition transitioned from one status to another.</param>
|
||||
/// <param name="message">`message` is a human-readable message
|
||||
/// indicating details about last transition.</param>
|
||||
/// <param name="reason">`reason` is a unique, one-word, CamelCase
|
||||
/// reason for the condition's last transition.</param>
|
||||
/// <param name="status">`status` is the status of the condition. Can
|
||||
/// be True, False, Unknown. Required.</param>
|
||||
/// <param name="type">`type` is the type of the condition.
|
||||
/// Required.</param>
|
||||
public V1beta1PriorityLevelConfigurationCondition(System.DateTime? lastTransitionTime = default(System.DateTime?), string message = default(string), string reason = default(string), string status = default(string), string type = default(string))
|
||||
{
|
||||
LastTransitionTime = lastTransitionTime;
|
||||
Message = message;
|
||||
Reason = reason;
|
||||
Status = status;
|
||||
Type = type;
|
||||
CustomInit();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// An initialization method that performs custom operations like setting defaults
|
||||
/// </summary>
|
||||
partial void CustomInit();
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets `lastTransitionTime` is the last time the condition
|
||||
/// transitioned from one status to another.
|
||||
/// </summary>
|
||||
[JsonProperty(PropertyName = "lastTransitionTime")]
|
||||
public System.DateTime? LastTransitionTime { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets `message` is a human-readable message indicating
|
||||
/// details about last transition.
|
||||
/// </summary>
|
||||
[JsonProperty(PropertyName = "message")]
|
||||
public string Message { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets `reason` is a unique, one-word, CamelCase reason for
|
||||
/// the condition's last transition.
|
||||
/// </summary>
|
||||
[JsonProperty(PropertyName = "reason")]
|
||||
public string Reason { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets `status` is the status of the condition. Can be True,
|
||||
/// False, Unknown. Required.
|
||||
/// </summary>
|
||||
[JsonProperty(PropertyName = "status")]
|
||||
public string Status { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets `type` is the type of the condition. Required.
|
||||
/// </summary>
|
||||
[JsonProperty(PropertyName = "type")]
|
||||
public string Type { get; set; }
|
||||
|
||||
}
|
||||
}
|
||||
121
src/KubernetesClient/generated/Models/V1beta1PriorityLevelConfigurationList.cs
generated
Normal file
121
src/KubernetesClient/generated/Models/V1beta1PriorityLevelConfigurationList.cs
generated
Normal file
@@ -0,0 +1,121 @@
|
||||
// <auto-generated>
|
||||
// Code generated by Microsoft (R) AutoRest Code Generator.
|
||||
// Changes may cause incorrect behavior and will be lost if the code is
|
||||
// regenerated.
|
||||
// </auto-generated>
|
||||
|
||||
namespace k8s.Models
|
||||
{
|
||||
using Microsoft.Rest;
|
||||
using Newtonsoft.Json;
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
|
||||
/// <summary>
|
||||
/// PriorityLevelConfigurationList is a list of PriorityLevelConfiguration
|
||||
/// objects.
|
||||
/// </summary>
|
||||
public partial class V1beta1PriorityLevelConfigurationList
|
||||
{
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the
|
||||
/// V1beta1PriorityLevelConfigurationList class.
|
||||
/// </summary>
|
||||
public V1beta1PriorityLevelConfigurationList()
|
||||
{
|
||||
CustomInit();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the
|
||||
/// V1beta1PriorityLevelConfigurationList class.
|
||||
/// </summary>
|
||||
/// <param name="items">`items` is a list of
|
||||
/// request-priorities.</param>
|
||||
/// <param name="apiVersion">APIVersion defines the versioned schema of
|
||||
/// this representation of an object. Servers should convert recognized
|
||||
/// schemas to the latest internal value, and may reject unrecognized
|
||||
/// values. More info:
|
||||
/// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources</param>
|
||||
/// <param name="kind">Kind is a string value representing the REST
|
||||
/// resource this object represents. Servers may infer this from the
|
||||
/// endpoint the client submits requests to. Cannot be updated. In
|
||||
/// CamelCase. More info:
|
||||
/// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds</param>
|
||||
/// <param name="metadata">`metadata` is the standard object's
|
||||
/// metadata. More info:
|
||||
/// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata</param>
|
||||
public V1beta1PriorityLevelConfigurationList(IList<V1beta1PriorityLevelConfiguration> items, string apiVersion = default(string), string kind = default(string), V1ListMeta metadata = default(V1ListMeta))
|
||||
{
|
||||
ApiVersion = apiVersion;
|
||||
Items = items;
|
||||
Kind = kind;
|
||||
Metadata = metadata;
|
||||
CustomInit();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// An initialization method that performs custom operations like setting defaults
|
||||
/// </summary>
|
||||
partial void CustomInit();
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets aPIVersion defines the versioned schema of this
|
||||
/// representation of an object. Servers should convert recognized
|
||||
/// schemas to the latest internal value, and may reject unrecognized
|
||||
/// values. More info:
|
||||
/// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
|
||||
/// </summary>
|
||||
[JsonProperty(PropertyName = "apiVersion")]
|
||||
public string ApiVersion { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets `items` is a list of request-priorities.
|
||||
/// </summary>
|
||||
[JsonProperty(PropertyName = "items")]
|
||||
public IList<V1beta1PriorityLevelConfiguration> Items { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets kind is a string value representing the REST resource
|
||||
/// this object represents. Servers may infer this from the endpoint
|
||||
/// the client submits requests to. Cannot be updated. In CamelCase.
|
||||
/// More info:
|
||||
/// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
|
||||
/// </summary>
|
||||
[JsonProperty(PropertyName = "kind")]
|
||||
public string Kind { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets `metadata` is the standard object's metadata. More
|
||||
/// info:
|
||||
/// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
|
||||
/// </summary>
|
||||
[JsonProperty(PropertyName = "metadata")]
|
||||
public V1ListMeta Metadata { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Validate the object.
|
||||
/// </summary>
|
||||
/// <exception cref="ValidationException">
|
||||
/// Thrown if validation fails
|
||||
/// </exception>
|
||||
public virtual void Validate()
|
||||
{
|
||||
if (Items == null)
|
||||
{
|
||||
throw new ValidationException(ValidationRules.CannotBeNull, "Items");
|
||||
}
|
||||
if (Items != null)
|
||||
{
|
||||
foreach (var element in Items)
|
||||
{
|
||||
if (element != null)
|
||||
{
|
||||
element.Validate();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
66
src/KubernetesClient/generated/Models/V1beta1PriorityLevelConfigurationReference.cs
generated
Normal file
66
src/KubernetesClient/generated/Models/V1beta1PriorityLevelConfigurationReference.cs
generated
Normal file
@@ -0,0 +1,66 @@
|
||||
// <auto-generated>
|
||||
// Code generated by Microsoft (R) AutoRest Code Generator.
|
||||
// Changes may cause incorrect behavior and will be lost if the code is
|
||||
// regenerated.
|
||||
// </auto-generated>
|
||||
|
||||
namespace k8s.Models
|
||||
{
|
||||
using Microsoft.Rest;
|
||||
using Newtonsoft.Json;
|
||||
using System.Linq;
|
||||
|
||||
/// <summary>
|
||||
/// PriorityLevelConfigurationReference contains information that points to
|
||||
/// the "request-priority" being used.
|
||||
/// </summary>
|
||||
public partial class V1beta1PriorityLevelConfigurationReference
|
||||
{
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the
|
||||
/// V1beta1PriorityLevelConfigurationReference class.
|
||||
/// </summary>
|
||||
public V1beta1PriorityLevelConfigurationReference()
|
||||
{
|
||||
CustomInit();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the
|
||||
/// V1beta1PriorityLevelConfigurationReference class.
|
||||
/// </summary>
|
||||
/// <param name="name">`name` is the name of the priority level
|
||||
/// configuration being referenced Required.</param>
|
||||
public V1beta1PriorityLevelConfigurationReference(string name)
|
||||
{
|
||||
Name = name;
|
||||
CustomInit();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// An initialization method that performs custom operations like setting defaults
|
||||
/// </summary>
|
||||
partial void CustomInit();
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets `name` is the name of the priority level configuration
|
||||
/// being referenced Required.
|
||||
/// </summary>
|
||||
[JsonProperty(PropertyName = "name")]
|
||||
public string Name { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Validate the object.
|
||||
/// </summary>
|
||||
/// <exception cref="ValidationException">
|
||||
/// Thrown if validation fails
|
||||
/// </exception>
|
||||
public virtual void Validate()
|
||||
{
|
||||
if (Name == null)
|
||||
{
|
||||
throw new ValidationException(ValidationRules.CannotBeNull, "Name");
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
95
src/KubernetesClient/generated/Models/V1beta1PriorityLevelConfigurationSpec.cs
generated
Normal file
95
src/KubernetesClient/generated/Models/V1beta1PriorityLevelConfigurationSpec.cs
generated
Normal file
@@ -0,0 +1,95 @@
|
||||
// <auto-generated>
|
||||
// Code generated by Microsoft (R) AutoRest Code Generator.
|
||||
// Changes may cause incorrect behavior and will be lost if the code is
|
||||
// regenerated.
|
||||
// </auto-generated>
|
||||
|
||||
namespace k8s.Models
|
||||
{
|
||||
using Microsoft.Rest;
|
||||
using Newtonsoft.Json;
|
||||
using System.Linq;
|
||||
|
||||
/// <summary>
|
||||
/// PriorityLevelConfigurationSpec specifies the configuration of a
|
||||
/// priority level.
|
||||
/// </summary>
|
||||
public partial class V1beta1PriorityLevelConfigurationSpec
|
||||
{
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the
|
||||
/// V1beta1PriorityLevelConfigurationSpec class.
|
||||
/// </summary>
|
||||
public V1beta1PriorityLevelConfigurationSpec()
|
||||
{
|
||||
CustomInit();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the
|
||||
/// V1beta1PriorityLevelConfigurationSpec class.
|
||||
/// </summary>
|
||||
/// <param name="type">`type` indicates whether this priority level is
|
||||
/// subject to limitation on request execution. A value of `"Exempt"`
|
||||
/// means that requests of this priority level are not subject to a
|
||||
/// limit (and thus are never queued) and do not detract from the
|
||||
/// capacity made available to other priority levels. A value of
|
||||
/// `"Limited"` means that (a) requests of this priority level _are_
|
||||
/// subject to limits and (b) some of the server's limited capacity is
|
||||
/// made available exclusively to this priority level.
|
||||
/// Required.</param>
|
||||
/// <param name="limited">`limited` specifies how requests are handled
|
||||
/// for a Limited priority level. This field must be non-empty if and
|
||||
/// only if `type` is `"Limited"`.</param>
|
||||
public V1beta1PriorityLevelConfigurationSpec(string type, V1beta1LimitedPriorityLevelConfiguration limited = default(V1beta1LimitedPriorityLevelConfiguration))
|
||||
{
|
||||
Limited = limited;
|
||||
Type = type;
|
||||
CustomInit();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// An initialization method that performs custom operations like setting defaults
|
||||
/// </summary>
|
||||
partial void CustomInit();
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets `limited` specifies how requests are handled for a
|
||||
/// Limited priority level. This field must be non-empty if and only if
|
||||
/// `type` is `"Limited"`.
|
||||
/// </summary>
|
||||
[JsonProperty(PropertyName = "limited")]
|
||||
public V1beta1LimitedPriorityLevelConfiguration Limited { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets `type` indicates whether this priority level is
|
||||
/// subject to limitation on request execution. A value of `"Exempt"`
|
||||
/// means that requests of this priority level are not subject to a
|
||||
/// limit (and thus are never queued) and do not detract from the
|
||||
/// capacity made available to other priority levels. A value of
|
||||
/// `"Limited"` means that (a) requests of this priority level _are_
|
||||
/// subject to limits and (b) some of the server's limited capacity is
|
||||
/// made available exclusively to this priority level. Required.
|
||||
/// </summary>
|
||||
[JsonProperty(PropertyName = "type")]
|
||||
public string Type { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Validate the object.
|
||||
/// </summary>
|
||||
/// <exception cref="ValidationException">
|
||||
/// Thrown if validation fails
|
||||
/// </exception>
|
||||
public virtual void Validate()
|
||||
{
|
||||
if (Type == null)
|
||||
{
|
||||
throw new ValidationException(ValidationRules.CannotBeNull, "Type");
|
||||
}
|
||||
if (Limited != null)
|
||||
{
|
||||
Limited.Validate();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
54
src/KubernetesClient/generated/Models/V1beta1PriorityLevelConfigurationStatus.cs
generated
Normal file
54
src/KubernetesClient/generated/Models/V1beta1PriorityLevelConfigurationStatus.cs
generated
Normal file
@@ -0,0 +1,54 @@
|
||||
// <auto-generated>
|
||||
// Code generated by Microsoft (R) AutoRest Code Generator.
|
||||
// Changes may cause incorrect behavior and will be lost if the code is
|
||||
// regenerated.
|
||||
// </auto-generated>
|
||||
|
||||
namespace k8s.Models
|
||||
{
|
||||
using Newtonsoft.Json;
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
|
||||
/// <summary>
|
||||
/// PriorityLevelConfigurationStatus represents the current state of a
|
||||
/// "request-priority".
|
||||
/// </summary>
|
||||
public partial class V1beta1PriorityLevelConfigurationStatus
|
||||
{
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the
|
||||
/// V1beta1PriorityLevelConfigurationStatus class.
|
||||
/// </summary>
|
||||
public V1beta1PriorityLevelConfigurationStatus()
|
||||
{
|
||||
CustomInit();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the
|
||||
/// V1beta1PriorityLevelConfigurationStatus class.
|
||||
/// </summary>
|
||||
/// <param name="conditions">`conditions` is the current state of
|
||||
/// "request-priority".</param>
|
||||
public V1beta1PriorityLevelConfigurationStatus(IList<V1beta1PriorityLevelConfigurationCondition> conditions = default(IList<V1beta1PriorityLevelConfigurationCondition>))
|
||||
{
|
||||
Conditions = conditions;
|
||||
CustomInit();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// An initialization method that performs custom operations like setting defaults
|
||||
/// </summary>
|
||||
partial void CustomInit();
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets `conditions` is the current state of
|
||||
/// "request-priority".
|
||||
/// </summary>
|
||||
[JsonProperty(PropertyName = "conditions")]
|
||||
public IList<V1beta1PriorityLevelConfigurationCondition> Conditions { get; set; }
|
||||
|
||||
}
|
||||
}
|
||||
102
src/KubernetesClient/generated/Models/V1beta1QueuingConfiguration.cs
generated
Normal file
102
src/KubernetesClient/generated/Models/V1beta1QueuingConfiguration.cs
generated
Normal file
@@ -0,0 +1,102 @@
|
||||
// <auto-generated>
|
||||
// Code generated by Microsoft (R) AutoRest Code Generator.
|
||||
// Changes may cause incorrect behavior and will be lost if the code is
|
||||
// regenerated.
|
||||
// </auto-generated>
|
||||
|
||||
namespace k8s.Models
|
||||
{
|
||||
using Newtonsoft.Json;
|
||||
using System.Linq;
|
||||
|
||||
/// <summary>
|
||||
/// QueuingConfiguration holds the configuration parameters for queuing
|
||||
/// </summary>
|
||||
public partial class V1beta1QueuingConfiguration
|
||||
{
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the V1beta1QueuingConfiguration
|
||||
/// class.
|
||||
/// </summary>
|
||||
public V1beta1QueuingConfiguration()
|
||||
{
|
||||
CustomInit();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the V1beta1QueuingConfiguration
|
||||
/// class.
|
||||
/// </summary>
|
||||
/// <param name="handSize">`handSize` is a small positive number that
|
||||
/// configures the shuffle sharding of requests into queues. When
|
||||
/// enqueuing a request at this priority level the request's flow
|
||||
/// identifier (a string pair) is hashed and the hash value is used to
|
||||
/// shuffle the list of queues and deal a hand of the size specified
|
||||
/// here. The request is put into one of the shortest queues in that
|
||||
/// hand. `handSize` must be no larger than `queues`, and should be
|
||||
/// significantly smaller (so that a few heavy flows do not saturate
|
||||
/// most of the queues). See the user-facing documentation for more
|
||||
/// extensive guidance on setting this field. This field has a default
|
||||
/// value of 8.</param>
|
||||
/// <param name="queueLengthLimit">`queueLengthLimit` is the maximum
|
||||
/// number of requests allowed to be waiting in a given queue of this
|
||||
/// priority level at a time; excess requests are rejected. This value
|
||||
/// must be positive. If not specified, it will be defaulted to
|
||||
/// 50.</param>
|
||||
/// <param name="queues">`queues` is the number of queues for this
|
||||
/// priority level. The queues exist independently at each apiserver.
|
||||
/// The value must be positive. Setting it to 1 effectively precludes
|
||||
/// shufflesharding and thus makes the distinguisher method of
|
||||
/// associated flow schemas irrelevant. This field has a default value
|
||||
/// of 64.</param>
|
||||
public V1beta1QueuingConfiguration(int? handSize = default(int?), int? queueLengthLimit = default(int?), int? queues = default(int?))
|
||||
{
|
||||
HandSize = handSize;
|
||||
QueueLengthLimit = queueLengthLimit;
|
||||
Queues = queues;
|
||||
CustomInit();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// An initialization method that performs custom operations like setting defaults
|
||||
/// </summary>
|
||||
partial void CustomInit();
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets `handSize` is a small positive number that configures
|
||||
/// the shuffle sharding of requests into queues. When enqueuing a
|
||||
/// request at this priority level the request's flow identifier (a
|
||||
/// string pair) is hashed and the hash value is used to shuffle the
|
||||
/// list of queues and deal a hand of the size specified here. The
|
||||
/// request is put into one of the shortest queues in that hand.
|
||||
/// `handSize` must be no larger than `queues`, and should be
|
||||
/// significantly smaller (so that a few heavy flows do not saturate
|
||||
/// most of the queues). See the user-facing documentation for more
|
||||
/// extensive guidance on setting this field. This field has a default
|
||||
/// value of 8.
|
||||
/// </summary>
|
||||
[JsonProperty(PropertyName = "handSize")]
|
||||
public int? HandSize { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets `queueLengthLimit` is the maximum number of requests
|
||||
/// allowed to be waiting in a given queue of this priority level at a
|
||||
/// time; excess requests are rejected. This value must be positive.
|
||||
/// If not specified, it will be defaulted to 50.
|
||||
/// </summary>
|
||||
[JsonProperty(PropertyName = "queueLengthLimit")]
|
||||
public int? QueueLengthLimit { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets `queues` is the number of queues for this priority
|
||||
/// level. The queues exist independently at each apiserver. The value
|
||||
/// must be positive. Setting it to 1 effectively precludes
|
||||
/// shufflesharding and thus makes the distinguisher method of
|
||||
/// associated flow schemas irrelevant. This field has a default value
|
||||
/// of 64.
|
||||
/// </summary>
|
||||
[JsonProperty(PropertyName = "queues")]
|
||||
public int? Queues { get; set; }
|
||||
|
||||
}
|
||||
}
|
||||
146
src/KubernetesClient/generated/Models/V1beta1ResourcePolicyRule.cs
generated
Normal file
146
src/KubernetesClient/generated/Models/V1beta1ResourcePolicyRule.cs
generated
Normal file
@@ -0,0 +1,146 @@
|
||||
// <auto-generated>
|
||||
// Code generated by Microsoft (R) AutoRest Code Generator.
|
||||
// Changes may cause incorrect behavior and will be lost if the code is
|
||||
// regenerated.
|
||||
// </auto-generated>
|
||||
|
||||
namespace k8s.Models
|
||||
{
|
||||
using Microsoft.Rest;
|
||||
using Newtonsoft.Json;
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
|
||||
/// <summary>
|
||||
/// ResourcePolicyRule is a predicate that matches some resource requests,
|
||||
/// testing the request's verb and the target resource. A
|
||||
/// ResourcePolicyRule matches a resource request if and only if: (a) at
|
||||
/// least one member of verbs matches the request, (b) at least one member
|
||||
/// of apiGroups matches the request, (c) at least one member of resources
|
||||
/// matches the request, and (d) least one member of namespaces matches the
|
||||
/// request.
|
||||
/// </summary>
|
||||
public partial class V1beta1ResourcePolicyRule
|
||||
{
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the V1beta1ResourcePolicyRule class.
|
||||
/// </summary>
|
||||
public V1beta1ResourcePolicyRule()
|
||||
{
|
||||
CustomInit();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the V1beta1ResourcePolicyRule class.
|
||||
/// </summary>
|
||||
/// <param name="apiGroups">`apiGroups` is a list of matching API
|
||||
/// groups and may not be empty. "*" matches all API groups and, if
|
||||
/// present, must be the only entry. Required.</param>
|
||||
/// <param name="resources">`resources` is a list of matching resources
|
||||
/// (i.e., lowercase and plural) with, if desired, subresource. For
|
||||
/// example, [ "services", "nodes/status" ]. This list may not be
|
||||
/// empty. "*" matches all resources and, if present, must be the only
|
||||
/// entry. Required.</param>
|
||||
/// <param name="verbs">`verbs` is a list of matching verbs and may not
|
||||
/// be empty. "*" matches all verbs and, if present, must be the only
|
||||
/// entry. Required.</param>
|
||||
/// <param name="clusterScope">`clusterScope` indicates whether to
|
||||
/// match requests that do not specify a namespace (which happens
|
||||
/// either because the resource is not namespaced or the request
|
||||
/// targets all namespaces). If this field is omitted or false then the
|
||||
/// `namespaces` field must contain a non-empty list.</param>
|
||||
/// <param name="namespaces">`namespaces` is a list of target
|
||||
/// namespaces that restricts matches. A request that specifies a
|
||||
/// target namespace matches only if either (a) this list contains that
|
||||
/// target namespace or (b) this list contains "*". Note that "*"
|
||||
/// matches any specified namespace but does not match a request that
|
||||
/// _does not specify_ a namespace (see the `clusterScope` field for
|
||||
/// that). This list may be empty, but only if `clusterScope` is
|
||||
/// true.</param>
|
||||
public V1beta1ResourcePolicyRule(IList<string> apiGroups, IList<string> resources, IList<string> verbs, bool? clusterScope = default(bool?), IList<string> namespaces = default(IList<string>))
|
||||
{
|
||||
ApiGroups = apiGroups;
|
||||
ClusterScope = clusterScope;
|
||||
Namespaces = namespaces;
|
||||
Resources = resources;
|
||||
Verbs = verbs;
|
||||
CustomInit();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// An initialization method that performs custom operations like setting defaults
|
||||
/// </summary>
|
||||
partial void CustomInit();
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets `apiGroups` is a list of matching API groups and may
|
||||
/// not be empty. "*" matches all API groups and, if present, must be
|
||||
/// the only entry. Required.
|
||||
/// </summary>
|
||||
[JsonProperty(PropertyName = "apiGroups")]
|
||||
public IList<string> ApiGroups { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets `clusterScope` indicates whether to match requests
|
||||
/// that do not specify a namespace (which happens either because the
|
||||
/// resource is not namespaced or the request targets all namespaces).
|
||||
/// If this field is omitted or false then the `namespaces` field must
|
||||
/// contain a non-empty list.
|
||||
/// </summary>
|
||||
[JsonProperty(PropertyName = "clusterScope")]
|
||||
public bool? ClusterScope { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets `namespaces` is a list of target namespaces that
|
||||
/// restricts matches. A request that specifies a target namespace
|
||||
/// matches only if either (a) this list contains that target namespace
|
||||
/// or (b) this list contains "*". Note that "*" matches any specified
|
||||
/// namespace but does not match a request that _does not specify_ a
|
||||
/// namespace (see the `clusterScope` field for that). This list may be
|
||||
/// empty, but only if `clusterScope` is true.
|
||||
/// </summary>
|
||||
[JsonProperty(PropertyName = "namespaces")]
|
||||
public IList<string> Namespaces { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets `resources` is a list of matching resources (i.e.,
|
||||
/// lowercase and plural) with, if desired, subresource. For example,
|
||||
/// [ "services", "nodes/status" ]. This list may not be empty. "*"
|
||||
/// matches all resources and, if present, must be the only entry.
|
||||
/// Required.
|
||||
/// </summary>
|
||||
[JsonProperty(PropertyName = "resources")]
|
||||
public IList<string> Resources { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets `verbs` is a list of matching verbs and may not be
|
||||
/// empty. "*" matches all verbs and, if present, must be the only
|
||||
/// entry. Required.
|
||||
/// </summary>
|
||||
[JsonProperty(PropertyName = "verbs")]
|
||||
public IList<string> Verbs { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Validate the object.
|
||||
/// </summary>
|
||||
/// <exception cref="ValidationException">
|
||||
/// Thrown if validation fails
|
||||
/// </exception>
|
||||
public virtual void Validate()
|
||||
{
|
||||
if (ApiGroups == null)
|
||||
{
|
||||
throw new ValidationException(ValidationRules.CannotBeNull, "ApiGroups");
|
||||
}
|
||||
if (Resources == null)
|
||||
{
|
||||
throw new ValidationException(ValidationRules.CannotBeNull, "Resources");
|
||||
}
|
||||
if (Verbs == null)
|
||||
{
|
||||
throw new ValidationException(ValidationRules.CannotBeNull, "Verbs");
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -50,7 +50,7 @@ namespace k8s.Models
|
||||
/// <param name="metadata">Standard object's metadata.</param>
|
||||
/// <param name="subjects">Subjects holds references to the objects the
|
||||
/// role applies to.</param>
|
||||
public V1beta1RoleBinding(V1beta1RoleRef roleRef, string apiVersion = default(string), string kind = default(string), V1ObjectMeta metadata = default(V1ObjectMeta), IList<V1beta1Subject> subjects = default(IList<V1beta1Subject>))
|
||||
public V1beta1RoleBinding(V1beta1RoleRef roleRef, string apiVersion = default(string), string kind = default(string), V1ObjectMeta metadata = default(V1ObjectMeta), IList<Rbacv1beta1Subject> subjects = default(IList<Rbacv1beta1Subject>))
|
||||
{
|
||||
ApiVersion = apiVersion;
|
||||
Kind = kind;
|
||||
@@ -104,7 +104,7 @@ namespace k8s.Models
|
||||
/// applies to.
|
||||
/// </summary>
|
||||
[JsonProperty(PropertyName = "subjects")]
|
||||
public IList<V1beta1Subject> Subjects { get; set; }
|
||||
public IList<Rbacv1beta1Subject> Subjects { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Validate the object.
|
||||
|
||||
@@ -39,8 +39,9 @@ namespace k8s.Models
|
||||
/// on every node, and handlers of the same name are equivalent on
|
||||
/// every node. For example, a handler called "runc" might specify that
|
||||
/// the runc OCI runtime (using native Linux containers) will be used
|
||||
/// to run the containers in a pod. The Handler must conform to the DNS
|
||||
/// Label (RFC 1123) requirements, and is immutable.</param>
|
||||
/// to run the containers in a pod. The Handler must be lowercase,
|
||||
/// conform to the DNS Label (RFC 1123) requirements, and is
|
||||
/// immutable.</param>
|
||||
/// <param name="apiVersion">APIVersion defines the versioned schema of
|
||||
/// this representation of an object. Servers should convert recognized
|
||||
/// schemas to the latest internal value, and may reject unrecognized
|
||||
@@ -98,8 +99,8 @@ namespace k8s.Models
|
||||
/// equivalent on every node. For example, a handler called "runc"
|
||||
/// might specify that the runc OCI runtime (using native Linux
|
||||
/// containers) will be used to run the containers in a pod. The
|
||||
/// Handler must conform to the DNS Label (RFC 1123) requirements, and
|
||||
/// is immutable.
|
||||
/// Handler must be lowercase, conform to the DNS Label (RFC 1123)
|
||||
/// requirements, and is immutable.
|
||||
/// </summary>
|
||||
[JsonProperty(PropertyName = "handler")]
|
||||
public string Handler { get; set; }
|
||||
|
||||
80
src/KubernetesClient/generated/Models/V1beta1ServiceAccountSubject.cs
generated
Normal file
80
src/KubernetesClient/generated/Models/V1beta1ServiceAccountSubject.cs
generated
Normal file
@@ -0,0 +1,80 @@
|
||||
// <auto-generated>
|
||||
// Code generated by Microsoft (R) AutoRest Code Generator.
|
||||
// Changes may cause incorrect behavior and will be lost if the code is
|
||||
// regenerated.
|
||||
// </auto-generated>
|
||||
|
||||
namespace k8s.Models
|
||||
{
|
||||
using Microsoft.Rest;
|
||||
using Newtonsoft.Json;
|
||||
using System.Linq;
|
||||
|
||||
/// <summary>
|
||||
/// ServiceAccountSubject holds detailed information for
|
||||
/// service-account-kind subject.
|
||||
/// </summary>
|
||||
public partial class V1beta1ServiceAccountSubject
|
||||
{
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the V1beta1ServiceAccountSubject
|
||||
/// class.
|
||||
/// </summary>
|
||||
public V1beta1ServiceAccountSubject()
|
||||
{
|
||||
CustomInit();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the V1beta1ServiceAccountSubject
|
||||
/// class.
|
||||
/// </summary>
|
||||
/// <param name="name">`name` is the name of matching ServiceAccount
|
||||
/// objects, or "*" to match regardless of name. Required.</param>
|
||||
/// <param name="namespaceProperty">`namespace` is the namespace of
|
||||
/// matching ServiceAccount objects. Required.</param>
|
||||
public V1beta1ServiceAccountSubject(string name, string namespaceProperty)
|
||||
{
|
||||
Name = name;
|
||||
NamespaceProperty = namespaceProperty;
|
||||
CustomInit();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// An initialization method that performs custom operations like setting defaults
|
||||
/// </summary>
|
||||
partial void CustomInit();
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets `name` is the name of matching ServiceAccount objects,
|
||||
/// or "*" to match regardless of name. Required.
|
||||
/// </summary>
|
||||
[JsonProperty(PropertyName = "name")]
|
||||
public string Name { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets `namespace` is the namespace of matching
|
||||
/// ServiceAccount objects. Required.
|
||||
/// </summary>
|
||||
[JsonProperty(PropertyName = "namespace")]
|
||||
public string NamespaceProperty { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Validate the object.
|
||||
/// </summary>
|
||||
/// <exception cref="ValidationException">
|
||||
/// Thrown if validation fails
|
||||
/// </exception>
|
||||
public virtual void Validate()
|
||||
{
|
||||
if (Name == null)
|
||||
{
|
||||
throw new ValidationException(ValidationRules.CannotBeNull, "Name");
|
||||
}
|
||||
if (NamespaceProperty == null)
|
||||
{
|
||||
throw new ValidationException(ValidationRules.CannotBeNull, "NamespaceProperty");
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
77
src/KubernetesClient/generated/Models/V1beta1TokenRequest.cs
generated
Normal file
77
src/KubernetesClient/generated/Models/V1beta1TokenRequest.cs
generated
Normal file
@@ -0,0 +1,77 @@
|
||||
// <auto-generated>
|
||||
// Code generated by Microsoft (R) AutoRest Code Generator.
|
||||
// Changes may cause incorrect behavior and will be lost if the code is
|
||||
// regenerated.
|
||||
// </auto-generated>
|
||||
|
||||
namespace k8s.Models
|
||||
{
|
||||
using Microsoft.Rest;
|
||||
using Newtonsoft.Json;
|
||||
using System.Linq;
|
||||
|
||||
/// <summary>
|
||||
/// TokenRequest contains parameters of a service account token.
|
||||
/// </summary>
|
||||
public partial class V1beta1TokenRequest
|
||||
{
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the V1beta1TokenRequest class.
|
||||
/// </summary>
|
||||
public V1beta1TokenRequest()
|
||||
{
|
||||
CustomInit();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the V1beta1TokenRequest class.
|
||||
/// </summary>
|
||||
/// <param name="audience">Audience is the intended audience of the
|
||||
/// token in "TokenRequestSpec". It will default to the audiences of
|
||||
/// kube apiserver.</param>
|
||||
/// <param name="expirationSeconds">ExpirationSeconds is the duration
|
||||
/// of validity of the token in "TokenRequestSpec". It has the same
|
||||
/// default value of "ExpirationSeconds" in "TokenRequestSpec"</param>
|
||||
public V1beta1TokenRequest(string audience, long? expirationSeconds = default(long?))
|
||||
{
|
||||
Audience = audience;
|
||||
ExpirationSeconds = expirationSeconds;
|
||||
CustomInit();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// An initialization method that performs custom operations like setting defaults
|
||||
/// </summary>
|
||||
partial void CustomInit();
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets audience is the intended audience of the token in
|
||||
/// "TokenRequestSpec". It will default to the audiences of kube
|
||||
/// apiserver.
|
||||
/// </summary>
|
||||
[JsonProperty(PropertyName = "audience")]
|
||||
public string Audience { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets expirationSeconds is the duration of validity of the
|
||||
/// token in "TokenRequestSpec". It has the same default value of
|
||||
/// "ExpirationSeconds" in "TokenRequestSpec"
|
||||
/// </summary>
|
||||
[JsonProperty(PropertyName = "expirationSeconds")]
|
||||
public long? ExpirationSeconds { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Validate the object.
|
||||
/// </summary>
|
||||
/// <exception cref="ValidationException">
|
||||
/// Thrown if validation fails
|
||||
/// </exception>
|
||||
public virtual void Validate()
|
||||
{
|
||||
if (Audience == null)
|
||||
{
|
||||
throw new ValidationException(ValidationRules.CannotBeNull, "Audience");
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
63
src/KubernetesClient/generated/Models/V1beta1UserSubject.cs
generated
Normal file
63
src/KubernetesClient/generated/Models/V1beta1UserSubject.cs
generated
Normal file
@@ -0,0 +1,63 @@
|
||||
// <auto-generated>
|
||||
// Code generated by Microsoft (R) AutoRest Code Generator.
|
||||
// Changes may cause incorrect behavior and will be lost if the code is
|
||||
// regenerated.
|
||||
// </auto-generated>
|
||||
|
||||
namespace k8s.Models
|
||||
{
|
||||
using Microsoft.Rest;
|
||||
using Newtonsoft.Json;
|
||||
using System.Linq;
|
||||
|
||||
/// <summary>
|
||||
/// UserSubject holds detailed information for user-kind subject.
|
||||
/// </summary>
|
||||
public partial class V1beta1UserSubject
|
||||
{
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the V1beta1UserSubject class.
|
||||
/// </summary>
|
||||
public V1beta1UserSubject()
|
||||
{
|
||||
CustomInit();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the V1beta1UserSubject class.
|
||||
/// </summary>
|
||||
/// <param name="name">`name` is the username that matches, or "*" to
|
||||
/// match all usernames. Required.</param>
|
||||
public V1beta1UserSubject(string name)
|
||||
{
|
||||
Name = name;
|
||||
CustomInit();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// An initialization method that performs custom operations like setting defaults
|
||||
/// </summary>
|
||||
partial void CustomInit();
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets `name` is the username that matches, or "*" to match
|
||||
/// all usernames. Required.
|
||||
/// </summary>
|
||||
[JsonProperty(PropertyName = "name")]
|
||||
public string Name { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Validate the object.
|
||||
/// </summary>
|
||||
/// <exception cref="ValidationException">
|
||||
/// Thrown if validation fails
|
||||
/// </exception>
|
||||
public virtual void Validate()
|
||||
{
|
||||
if (Name == null)
|
||||
{
|
||||
throw new ValidationException(ValidationRules.CannotBeNull, "Name");
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
112
src/KubernetesClient/generated/Models/V2beta1ContainerResourceMetricSource.cs
generated
Normal file
112
src/KubernetesClient/generated/Models/V2beta1ContainerResourceMetricSource.cs
generated
Normal file
@@ -0,0 +1,112 @@
|
||||
// <auto-generated>
|
||||
// Code generated by Microsoft (R) AutoRest Code Generator.
|
||||
// Changes may cause incorrect behavior and will be lost if the code is
|
||||
// regenerated.
|
||||
// </auto-generated>
|
||||
|
||||
namespace k8s.Models
|
||||
{
|
||||
using Microsoft.Rest;
|
||||
using Newtonsoft.Json;
|
||||
using System.Linq;
|
||||
|
||||
/// <summary>
|
||||
/// ContainerResourceMetricSource indicates how to scale on a resource
|
||||
/// metric known to Kubernetes, as specified in requests and limits,
|
||||
/// describing each pod in the current scale target (e.g. CPU or memory).
|
||||
/// The values will be averaged together before being compared to the
|
||||
/// target. Such metrics are built in to Kubernetes, and have special
|
||||
/// scaling options on top of those available to normal per-pod metrics
|
||||
/// using the "pods" source. Only one "target" type should be set.
|
||||
/// </summary>
|
||||
public partial class V2beta1ContainerResourceMetricSource
|
||||
{
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the
|
||||
/// V2beta1ContainerResourceMetricSource class.
|
||||
/// </summary>
|
||||
public V2beta1ContainerResourceMetricSource()
|
||||
{
|
||||
CustomInit();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the
|
||||
/// V2beta1ContainerResourceMetricSource class.
|
||||
/// </summary>
|
||||
/// <param name="container">container is the name of the container in
|
||||
/// the pods of the scaling target</param>
|
||||
/// <param name="name">name is the name of the resource in
|
||||
/// question.</param>
|
||||
/// <param name="targetAverageUtilization">targetAverageUtilization is
|
||||
/// the target value of the average of the resource metric across all
|
||||
/// relevant pods, represented as a percentage of the requested value
|
||||
/// of the resource for the pods.</param>
|
||||
/// <param name="targetAverageValue">targetAverageValue is the target
|
||||
/// value of the average of the resource metric across all relevant
|
||||
/// pods, as a raw value (instead of as a percentage of the request),
|
||||
/// similar to the "pods" metric source type.</param>
|
||||
public V2beta1ContainerResourceMetricSource(string container, string name, int? targetAverageUtilization = default(int?), ResourceQuantity targetAverageValue = default(ResourceQuantity))
|
||||
{
|
||||
Container = container;
|
||||
Name = name;
|
||||
TargetAverageUtilization = targetAverageUtilization;
|
||||
TargetAverageValue = targetAverageValue;
|
||||
CustomInit();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// An initialization method that performs custom operations like setting defaults
|
||||
/// </summary>
|
||||
partial void CustomInit();
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets container is the name of the container in the pods of
|
||||
/// the scaling target
|
||||
/// </summary>
|
||||
[JsonProperty(PropertyName = "container")]
|
||||
public string Container { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets name is the name of the resource in question.
|
||||
/// </summary>
|
||||
[JsonProperty(PropertyName = "name")]
|
||||
public string Name { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets targetAverageUtilization is the target value of the
|
||||
/// average of the resource metric across all relevant pods,
|
||||
/// represented as a percentage of the requested value of the resource
|
||||
/// for the pods.
|
||||
/// </summary>
|
||||
[JsonProperty(PropertyName = "targetAverageUtilization")]
|
||||
public int? TargetAverageUtilization { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets targetAverageValue is the target value of the average
|
||||
/// of the resource metric across all relevant pods, as a raw value
|
||||
/// (instead of as a percentage of the request), similar to the "pods"
|
||||
/// metric source type.
|
||||
/// </summary>
|
||||
[JsonProperty(PropertyName = "targetAverageValue")]
|
||||
public ResourceQuantity TargetAverageValue { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Validate the object.
|
||||
/// </summary>
|
||||
/// <exception cref="ValidationException">
|
||||
/// Thrown if validation fails
|
||||
/// </exception>
|
||||
public virtual void Validate()
|
||||
{
|
||||
if (Container == null)
|
||||
{
|
||||
throw new ValidationException(ValidationRules.CannotBeNull, "Container");
|
||||
}
|
||||
if (Name == null)
|
||||
{
|
||||
throw new ValidationException(ValidationRules.CannotBeNull, "Name");
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
121
src/KubernetesClient/generated/Models/V2beta1ContainerResourceMetricStatus.cs
generated
Normal file
121
src/KubernetesClient/generated/Models/V2beta1ContainerResourceMetricStatus.cs
generated
Normal file
@@ -0,0 +1,121 @@
|
||||
// <auto-generated>
|
||||
// Code generated by Microsoft (R) AutoRest Code Generator.
|
||||
// Changes may cause incorrect behavior and will be lost if the code is
|
||||
// regenerated.
|
||||
// </auto-generated>
|
||||
|
||||
namespace k8s.Models
|
||||
{
|
||||
using Microsoft.Rest;
|
||||
using Newtonsoft.Json;
|
||||
using System.Linq;
|
||||
|
||||
/// <summary>
|
||||
/// ContainerResourceMetricStatus indicates the current value of a resource
|
||||
/// metric known to Kubernetes, as specified in requests and limits,
|
||||
/// describing a single container in each pod in the current scale target
|
||||
/// (e.g. CPU or memory). Such metrics are built in to Kubernetes, and
|
||||
/// have special scaling options on top of those available to normal
|
||||
/// per-pod metrics using the "pods" source.
|
||||
/// </summary>
|
||||
public partial class V2beta1ContainerResourceMetricStatus
|
||||
{
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the
|
||||
/// V2beta1ContainerResourceMetricStatus class.
|
||||
/// </summary>
|
||||
public V2beta1ContainerResourceMetricStatus()
|
||||
{
|
||||
CustomInit();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the
|
||||
/// V2beta1ContainerResourceMetricStatus class.
|
||||
/// </summary>
|
||||
/// <param name="container">container is the name of the container in
|
||||
/// the pods of the scaling target</param>
|
||||
/// <param name="currentAverageValue">currentAverageValue is the
|
||||
/// current value of the average of the resource metric across all
|
||||
/// relevant pods, as a raw value (instead of as a percentage of the
|
||||
/// request), similar to the "pods" metric source type. It will always
|
||||
/// be set, regardless of the corresponding metric
|
||||
/// specification.</param>
|
||||
/// <param name="name">name is the name of the resource in
|
||||
/// question.</param>
|
||||
/// <param name="currentAverageUtilization">currentAverageUtilization
|
||||
/// is the current value of the average of the resource metric across
|
||||
/// all relevant pods, represented as a percentage of the requested
|
||||
/// value of the resource for the pods. It will only be present if
|
||||
/// `targetAverageValue` was set in the corresponding metric
|
||||
/// specification.</param>
|
||||
public V2beta1ContainerResourceMetricStatus(string container, ResourceQuantity currentAverageValue, string name, int? currentAverageUtilization = default(int?))
|
||||
{
|
||||
Container = container;
|
||||
CurrentAverageUtilization = currentAverageUtilization;
|
||||
CurrentAverageValue = currentAverageValue;
|
||||
Name = name;
|
||||
CustomInit();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// An initialization method that performs custom operations like setting defaults
|
||||
/// </summary>
|
||||
partial void CustomInit();
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets container is the name of the container in the pods of
|
||||
/// the scaling target
|
||||
/// </summary>
|
||||
[JsonProperty(PropertyName = "container")]
|
||||
public string Container { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets currentAverageUtilization is the current value of the
|
||||
/// average of the resource metric across all relevant pods,
|
||||
/// represented as a percentage of the requested value of the resource
|
||||
/// for the pods. It will only be present if `targetAverageValue` was
|
||||
/// set in the corresponding metric specification.
|
||||
/// </summary>
|
||||
[JsonProperty(PropertyName = "currentAverageUtilization")]
|
||||
public int? CurrentAverageUtilization { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets currentAverageValue is the current value of the
|
||||
/// average of the resource metric across all relevant pods, as a raw
|
||||
/// value (instead of as a percentage of the request), similar to the
|
||||
/// "pods" metric source type. It will always be set, regardless of the
|
||||
/// corresponding metric specification.
|
||||
/// </summary>
|
||||
[JsonProperty(PropertyName = "currentAverageValue")]
|
||||
public ResourceQuantity CurrentAverageValue { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets name is the name of the resource in question.
|
||||
/// </summary>
|
||||
[JsonProperty(PropertyName = "name")]
|
||||
public string Name { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Validate the object.
|
||||
/// </summary>
|
||||
/// <exception cref="ValidationException">
|
||||
/// Thrown if validation fails
|
||||
/// </exception>
|
||||
public virtual void Validate()
|
||||
{
|
||||
if (Container == null)
|
||||
{
|
||||
throw new ValidationException(ValidationRules.CannotBeNull, "Container");
|
||||
}
|
||||
if (CurrentAverageValue == null)
|
||||
{
|
||||
throw new ValidationException(ValidationRules.CannotBeNull, "CurrentAverageValue");
|
||||
}
|
||||
if (Name == null)
|
||||
{
|
||||
throw new ValidationException(ValidationRules.CannotBeNull, "Name");
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -28,8 +28,18 @@ namespace k8s.Models
|
||||
/// Initializes a new instance of the V2beta1MetricSpec class.
|
||||
/// </summary>
|
||||
/// <param name="type">type is the type of metric source. It should be
|
||||
/// one of "Object", "Pods" or "Resource", each mapping to a matching
|
||||
/// field in the object.</param>
|
||||
/// one of "ContainerResource", "External", "Object", "Pods" or
|
||||
/// "Resource", each mapping to a matching field in the object. Note:
|
||||
/// "ContainerResource" type is available on when the feature-gate
|
||||
/// HPAContainerMetrics is enabled</param>
|
||||
/// <param name="containerResource">container resource refers to a
|
||||
/// resource metric (such as those specified in requests and limits)
|
||||
/// known to Kubernetes describing a single container in each pod of
|
||||
/// the current scale target (e.g. CPU or memory). Such metrics are
|
||||
/// built in to Kubernetes, and have special scaling options on top of
|
||||
/// those available to normal per-pod metrics using the "pods" source.
|
||||
/// This is an alpha feature and can be enabled by the
|
||||
/// HPAContainerMetrics feature flag.</param>
|
||||
/// <param name="external">external refers to a global metric that is
|
||||
/// not associated with any Kubernetes object. It allows autoscaling
|
||||
/// based on information coming from components running outside of
|
||||
@@ -48,8 +58,9 @@ namespace k8s.Models
|
||||
/// memory). Such metrics are built in to Kubernetes, and have special
|
||||
/// scaling options on top of those available to normal per-pod metrics
|
||||
/// using the "pods" source.</param>
|
||||
public V2beta1MetricSpec(string type, V2beta1ExternalMetricSource external = default(V2beta1ExternalMetricSource), V2beta1ObjectMetricSource objectProperty = default(V2beta1ObjectMetricSource), V2beta1PodsMetricSource pods = default(V2beta1PodsMetricSource), V2beta1ResourceMetricSource resource = default(V2beta1ResourceMetricSource))
|
||||
public V2beta1MetricSpec(string type, V2beta1ContainerResourceMetricSource containerResource = default(V2beta1ContainerResourceMetricSource), V2beta1ExternalMetricSource external = default(V2beta1ExternalMetricSource), V2beta1ObjectMetricSource objectProperty = default(V2beta1ObjectMetricSource), V2beta1PodsMetricSource pods = default(V2beta1PodsMetricSource), V2beta1ResourceMetricSource resource = default(V2beta1ResourceMetricSource))
|
||||
{
|
||||
ContainerResource = containerResource;
|
||||
External = external;
|
||||
ObjectProperty = objectProperty;
|
||||
Pods = pods;
|
||||
@@ -63,6 +74,19 @@ namespace k8s.Models
|
||||
/// </summary>
|
||||
partial void CustomInit();
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets container resource refers to a resource metric (such
|
||||
/// as those specified in requests and limits) known to Kubernetes
|
||||
/// describing a single container in each pod of the current scale
|
||||
/// target (e.g. CPU or memory). Such metrics are built in to
|
||||
/// Kubernetes, and have special scaling options on top of those
|
||||
/// available to normal per-pod metrics using the "pods" source. This
|
||||
/// is an alpha feature and can be enabled by the HPAContainerMetrics
|
||||
/// feature flag.
|
||||
/// </summary>
|
||||
[JsonProperty(PropertyName = "containerResource")]
|
||||
public V2beta1ContainerResourceMetricSource ContainerResource { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets external refers to a global metric that is not
|
||||
/// associated with any Kubernetes object. It allows autoscaling based
|
||||
@@ -103,8 +127,10 @@ namespace k8s.Models
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets type is the type of metric source. It should be one
|
||||
/// of "Object", "Pods" or "Resource", each mapping to a matching field
|
||||
/// in the object.
|
||||
/// of "ContainerResource", "External", "Object", "Pods" or "Resource",
|
||||
/// each mapping to a matching field in the object. Note:
|
||||
/// "ContainerResource" type is available on when the feature-gate
|
||||
/// HPAContainerMetrics is enabled
|
||||
/// </summary>
|
||||
[JsonProperty(PropertyName = "type")]
|
||||
public string Type { get; set; }
|
||||
@@ -121,6 +147,10 @@ namespace k8s.Models
|
||||
{
|
||||
throw new ValidationException(ValidationRules.CannotBeNull, "Type");
|
||||
}
|
||||
if (ContainerResource != null)
|
||||
{
|
||||
ContainerResource.Validate();
|
||||
}
|
||||
if (External != null)
|
||||
{
|
||||
External.Validate();
|
||||
|
||||
@@ -27,8 +27,17 @@ namespace k8s.Models
|
||||
/// Initializes a new instance of the V2beta1MetricStatus class.
|
||||
/// </summary>
|
||||
/// <param name="type">type is the type of metric source. It will be
|
||||
/// one of "Object", "Pods" or "Resource", each corresponds to a
|
||||
/// matching field in the object.</param>
|
||||
/// one of "ContainerResource", "External", "Object", "Pods" or
|
||||
/// "Resource", each corresponds to a matching field in the object.
|
||||
/// Note: "ContainerResource" type is available on when the
|
||||
/// feature-gate HPAContainerMetrics is enabled</param>
|
||||
/// <param name="containerResource">container resource refers to a
|
||||
/// resource metric (such as those specified in requests and limits)
|
||||
/// known to Kubernetes describing a single container in each pod in
|
||||
/// the current scale target (e.g. CPU or memory). Such metrics are
|
||||
/// built in to Kubernetes, and have special scaling options on top of
|
||||
/// those available to normal per-pod metrics using the "pods"
|
||||
/// source.</param>
|
||||
/// <param name="external">external refers to a global metric that is
|
||||
/// not associated with any Kubernetes object. It allows autoscaling
|
||||
/// based on information coming from components running outside of
|
||||
@@ -47,8 +56,9 @@ namespace k8s.Models
|
||||
/// memory). Such metrics are built in to Kubernetes, and have special
|
||||
/// scaling options on top of those available to normal per-pod metrics
|
||||
/// using the "pods" source.</param>
|
||||
public V2beta1MetricStatus(string type, V2beta1ExternalMetricStatus external = default(V2beta1ExternalMetricStatus), V2beta1ObjectMetricStatus objectProperty = default(V2beta1ObjectMetricStatus), V2beta1PodsMetricStatus pods = default(V2beta1PodsMetricStatus), V2beta1ResourceMetricStatus resource = default(V2beta1ResourceMetricStatus))
|
||||
public V2beta1MetricStatus(string type, V2beta1ContainerResourceMetricStatus containerResource = default(V2beta1ContainerResourceMetricStatus), V2beta1ExternalMetricStatus external = default(V2beta1ExternalMetricStatus), V2beta1ObjectMetricStatus objectProperty = default(V2beta1ObjectMetricStatus), V2beta1PodsMetricStatus pods = default(V2beta1PodsMetricStatus), V2beta1ResourceMetricStatus resource = default(V2beta1ResourceMetricStatus))
|
||||
{
|
||||
ContainerResource = containerResource;
|
||||
External = external;
|
||||
ObjectProperty = objectProperty;
|
||||
Pods = pods;
|
||||
@@ -62,6 +72,17 @@ namespace k8s.Models
|
||||
/// </summary>
|
||||
partial void CustomInit();
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets container resource refers to a resource metric (such
|
||||
/// as those specified in requests and limits) known to Kubernetes
|
||||
/// describing a single container in each pod in the current scale
|
||||
/// target (e.g. CPU or memory). Such metrics are built in to
|
||||
/// Kubernetes, and have special scaling options on top of those
|
||||
/// available to normal per-pod metrics using the "pods" source.
|
||||
/// </summary>
|
||||
[JsonProperty(PropertyName = "containerResource")]
|
||||
public V2beta1ContainerResourceMetricStatus ContainerResource { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets external refers to a global metric that is not
|
||||
/// associated with any Kubernetes object. It allows autoscaling based
|
||||
@@ -102,8 +123,10 @@ namespace k8s.Models
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets type is the type of metric source. It will be one of
|
||||
/// "Object", "Pods" or "Resource", each corresponds to a matching
|
||||
/// field in the object.
|
||||
/// "ContainerResource", "External", "Object", "Pods" or "Resource",
|
||||
/// each corresponds to a matching field in the object. Note:
|
||||
/// "ContainerResource" type is available on when the feature-gate
|
||||
/// HPAContainerMetrics is enabled
|
||||
/// </summary>
|
||||
[JsonProperty(PropertyName = "type")]
|
||||
public string Type { get; set; }
|
||||
@@ -120,6 +143,10 @@ namespace k8s.Models
|
||||
{
|
||||
throw new ValidationException(ValidationRules.CannotBeNull, "Type");
|
||||
}
|
||||
if (ContainerResource != null)
|
||||
{
|
||||
ContainerResource.Validate();
|
||||
}
|
||||
if (External != null)
|
||||
{
|
||||
External.Validate();
|
||||
|
||||
101
src/KubernetesClient/generated/Models/V2beta2ContainerResourceMetricSource.cs
generated
Normal file
101
src/KubernetesClient/generated/Models/V2beta2ContainerResourceMetricSource.cs
generated
Normal file
@@ -0,0 +1,101 @@
|
||||
// <auto-generated>
|
||||
// Code generated by Microsoft (R) AutoRest Code Generator.
|
||||
// Changes may cause incorrect behavior and will be lost if the code is
|
||||
// regenerated.
|
||||
// </auto-generated>
|
||||
|
||||
namespace k8s.Models
|
||||
{
|
||||
using Microsoft.Rest;
|
||||
using Newtonsoft.Json;
|
||||
using System.Linq;
|
||||
|
||||
/// <summary>
|
||||
/// ContainerResourceMetricSource indicates how to scale on a resource
|
||||
/// metric known to Kubernetes, as specified in requests and limits,
|
||||
/// describing each pod in the current scale target (e.g. CPU or memory).
|
||||
/// The values will be averaged together before being compared to the
|
||||
/// target. Such metrics are built in to Kubernetes, and have special
|
||||
/// scaling options on top of those available to normal per-pod metrics
|
||||
/// using the "pods" source. Only one "target" type should be set.
|
||||
/// </summary>
|
||||
public partial class V2beta2ContainerResourceMetricSource
|
||||
{
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the
|
||||
/// V2beta2ContainerResourceMetricSource class.
|
||||
/// </summary>
|
||||
public V2beta2ContainerResourceMetricSource()
|
||||
{
|
||||
CustomInit();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the
|
||||
/// V2beta2ContainerResourceMetricSource class.
|
||||
/// </summary>
|
||||
/// <param name="container">container is the name of the container in
|
||||
/// the pods of the scaling target</param>
|
||||
/// <param name="name">name is the name of the resource in
|
||||
/// question.</param>
|
||||
/// <param name="target">target specifies the target value for the
|
||||
/// given metric</param>
|
||||
public V2beta2ContainerResourceMetricSource(string container, string name, V2beta2MetricTarget target)
|
||||
{
|
||||
Container = container;
|
||||
Name = name;
|
||||
Target = target;
|
||||
CustomInit();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// An initialization method that performs custom operations like setting defaults
|
||||
/// </summary>
|
||||
partial void CustomInit();
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets container is the name of the container in the pods of
|
||||
/// the scaling target
|
||||
/// </summary>
|
||||
[JsonProperty(PropertyName = "container")]
|
||||
public string Container { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets name is the name of the resource in question.
|
||||
/// </summary>
|
||||
[JsonProperty(PropertyName = "name")]
|
||||
public string Name { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets target specifies the target value for the given metric
|
||||
/// </summary>
|
||||
[JsonProperty(PropertyName = "target")]
|
||||
public V2beta2MetricTarget Target { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Validate the object.
|
||||
/// </summary>
|
||||
/// <exception cref="ValidationException">
|
||||
/// Thrown if validation fails
|
||||
/// </exception>
|
||||
public virtual void Validate()
|
||||
{
|
||||
if (Container == null)
|
||||
{
|
||||
throw new ValidationException(ValidationRules.CannotBeNull, "Container");
|
||||
}
|
||||
if (Name == null)
|
||||
{
|
||||
throw new ValidationException(ValidationRules.CannotBeNull, "Name");
|
||||
}
|
||||
if (Target == null)
|
||||
{
|
||||
throw new ValidationException(ValidationRules.CannotBeNull, "Target");
|
||||
}
|
||||
if (Target != null)
|
||||
{
|
||||
Target.Validate();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
97
src/KubernetesClient/generated/Models/V2beta2ContainerResourceMetricStatus.cs
generated
Normal file
97
src/KubernetesClient/generated/Models/V2beta2ContainerResourceMetricStatus.cs
generated
Normal file
@@ -0,0 +1,97 @@
|
||||
// <auto-generated>
|
||||
// Code generated by Microsoft (R) AutoRest Code Generator.
|
||||
// Changes may cause incorrect behavior and will be lost if the code is
|
||||
// regenerated.
|
||||
// </auto-generated>
|
||||
|
||||
namespace k8s.Models
|
||||
{
|
||||
using Microsoft.Rest;
|
||||
using Newtonsoft.Json;
|
||||
using System.Linq;
|
||||
|
||||
/// <summary>
|
||||
/// ContainerResourceMetricStatus indicates the current value of a resource
|
||||
/// metric known to Kubernetes, as specified in requests and limits,
|
||||
/// describing a single container in each pod in the current scale target
|
||||
/// (e.g. CPU or memory). Such metrics are built in to Kubernetes, and
|
||||
/// have special scaling options on top of those available to normal
|
||||
/// per-pod metrics using the "pods" source.
|
||||
/// </summary>
|
||||
public partial class V2beta2ContainerResourceMetricStatus
|
||||
{
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the
|
||||
/// V2beta2ContainerResourceMetricStatus class.
|
||||
/// </summary>
|
||||
public V2beta2ContainerResourceMetricStatus()
|
||||
{
|
||||
CustomInit();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the
|
||||
/// V2beta2ContainerResourceMetricStatus class.
|
||||
/// </summary>
|
||||
/// <param name="container">Container is the name of the container in
|
||||
/// the pods of the scaling target</param>
|
||||
/// <param name="current">current contains the current value for the
|
||||
/// given metric</param>
|
||||
/// <param name="name">Name is the name of the resource in
|
||||
/// question.</param>
|
||||
public V2beta2ContainerResourceMetricStatus(string container, V2beta2MetricValueStatus current, string name)
|
||||
{
|
||||
Container = container;
|
||||
Current = current;
|
||||
Name = name;
|
||||
CustomInit();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// An initialization method that performs custom operations like setting defaults
|
||||
/// </summary>
|
||||
partial void CustomInit();
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets container is the name of the container in the pods of
|
||||
/// the scaling target
|
||||
/// </summary>
|
||||
[JsonProperty(PropertyName = "container")]
|
||||
public string Container { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets current contains the current value for the given
|
||||
/// metric
|
||||
/// </summary>
|
||||
[JsonProperty(PropertyName = "current")]
|
||||
public V2beta2MetricValueStatus Current { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets name is the name of the resource in question.
|
||||
/// </summary>
|
||||
[JsonProperty(PropertyName = "name")]
|
||||
public string Name { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Validate the object.
|
||||
/// </summary>
|
||||
/// <exception cref="ValidationException">
|
||||
/// Thrown if validation fails
|
||||
/// </exception>
|
||||
public virtual void Validate()
|
||||
{
|
||||
if (Container == null)
|
||||
{
|
||||
throw new ValidationException(ValidationRules.CannotBeNull, "Container");
|
||||
}
|
||||
if (Current == null)
|
||||
{
|
||||
throw new ValidationException(ValidationRules.CannotBeNull, "Current");
|
||||
}
|
||||
if (Name == null)
|
||||
{
|
||||
throw new ValidationException(ValidationRules.CannotBeNull, "Name");
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -28,8 +28,18 @@ namespace k8s.Models
|
||||
/// Initializes a new instance of the V2beta2MetricSpec class.
|
||||
/// </summary>
|
||||
/// <param name="type">type is the type of metric source. It should be
|
||||
/// one of "Object", "Pods" or "Resource", each mapping to a matching
|
||||
/// field in the object.</param>
|
||||
/// one of "ContainerResource", "External", "Object", "Pods" or
|
||||
/// "Resource", each mapping to a matching field in the object. Note:
|
||||
/// "ContainerResource" type is available on when the feature-gate
|
||||
/// HPAContainerMetrics is enabled</param>
|
||||
/// <param name="containerResource">container resource refers to a
|
||||
/// resource metric (such as those specified in requests and limits)
|
||||
/// known to Kubernetes describing a single container in each pod of
|
||||
/// the current scale target (e.g. CPU or memory). Such metrics are
|
||||
/// built in to Kubernetes, and have special scaling options on top of
|
||||
/// those available to normal per-pod metrics using the "pods" source.
|
||||
/// This is an alpha feature and can be enabled by the
|
||||
/// HPAContainerMetrics feature flag.</param>
|
||||
/// <param name="external">external refers to a global metric that is
|
||||
/// not associated with any Kubernetes object. It allows autoscaling
|
||||
/// based on information coming from components running outside of
|
||||
@@ -48,8 +58,9 @@ namespace k8s.Models
|
||||
/// memory). Such metrics are built in to Kubernetes, and have special
|
||||
/// scaling options on top of those available to normal per-pod metrics
|
||||
/// using the "pods" source.</param>
|
||||
public V2beta2MetricSpec(string type, V2beta2ExternalMetricSource external = default(V2beta2ExternalMetricSource), V2beta2ObjectMetricSource objectProperty = default(V2beta2ObjectMetricSource), V2beta2PodsMetricSource pods = default(V2beta2PodsMetricSource), V2beta2ResourceMetricSource resource = default(V2beta2ResourceMetricSource))
|
||||
public V2beta2MetricSpec(string type, V2beta2ContainerResourceMetricSource containerResource = default(V2beta2ContainerResourceMetricSource), V2beta2ExternalMetricSource external = default(V2beta2ExternalMetricSource), V2beta2ObjectMetricSource objectProperty = default(V2beta2ObjectMetricSource), V2beta2PodsMetricSource pods = default(V2beta2PodsMetricSource), V2beta2ResourceMetricSource resource = default(V2beta2ResourceMetricSource))
|
||||
{
|
||||
ContainerResource = containerResource;
|
||||
External = external;
|
||||
ObjectProperty = objectProperty;
|
||||
Pods = pods;
|
||||
@@ -63,6 +74,19 @@ namespace k8s.Models
|
||||
/// </summary>
|
||||
partial void CustomInit();
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets container resource refers to a resource metric (such
|
||||
/// as those specified in requests and limits) known to Kubernetes
|
||||
/// describing a single container in each pod of the current scale
|
||||
/// target (e.g. CPU or memory). Such metrics are built in to
|
||||
/// Kubernetes, and have special scaling options on top of those
|
||||
/// available to normal per-pod metrics using the "pods" source. This
|
||||
/// is an alpha feature and can be enabled by the HPAContainerMetrics
|
||||
/// feature flag.
|
||||
/// </summary>
|
||||
[JsonProperty(PropertyName = "containerResource")]
|
||||
public V2beta2ContainerResourceMetricSource ContainerResource { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets external refers to a global metric that is not
|
||||
/// associated with any Kubernetes object. It allows autoscaling based
|
||||
@@ -103,8 +127,10 @@ namespace k8s.Models
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets type is the type of metric source. It should be one
|
||||
/// of "Object", "Pods" or "Resource", each mapping to a matching field
|
||||
/// in the object.
|
||||
/// of "ContainerResource", "External", "Object", "Pods" or "Resource",
|
||||
/// each mapping to a matching field in the object. Note:
|
||||
/// "ContainerResource" type is available on when the feature-gate
|
||||
/// HPAContainerMetrics is enabled
|
||||
/// </summary>
|
||||
[JsonProperty(PropertyName = "type")]
|
||||
public string Type { get; set; }
|
||||
@@ -121,6 +147,10 @@ namespace k8s.Models
|
||||
{
|
||||
throw new ValidationException(ValidationRules.CannotBeNull, "Type");
|
||||
}
|
||||
if (ContainerResource != null)
|
||||
{
|
||||
ContainerResource.Validate();
|
||||
}
|
||||
if (External != null)
|
||||
{
|
||||
External.Validate();
|
||||
|
||||
@@ -27,8 +27,17 @@ namespace k8s.Models
|
||||
/// Initializes a new instance of the V2beta2MetricStatus class.
|
||||
/// </summary>
|
||||
/// <param name="type">type is the type of metric source. It will be
|
||||
/// one of "Object", "Pods" or "Resource", each corresponds to a
|
||||
/// matching field in the object.</param>
|
||||
/// one of "ContainerResource", "External", "Object", "Pods" or
|
||||
/// "Resource", each corresponds to a matching field in the object.
|
||||
/// Note: "ContainerResource" type is available on when the
|
||||
/// feature-gate HPAContainerMetrics is enabled</param>
|
||||
/// <param name="containerResource">container resource refers to a
|
||||
/// resource metric (such as those specified in requests and limits)
|
||||
/// known to Kubernetes describing a single container in each pod in
|
||||
/// the current scale target (e.g. CPU or memory). Such metrics are
|
||||
/// built in to Kubernetes, and have special scaling options on top of
|
||||
/// those available to normal per-pod metrics using the "pods"
|
||||
/// source.</param>
|
||||
/// <param name="external">external refers to a global metric that is
|
||||
/// not associated with any Kubernetes object. It allows autoscaling
|
||||
/// based on information coming from components running outside of
|
||||
@@ -47,8 +56,9 @@ namespace k8s.Models
|
||||
/// memory). Such metrics are built in to Kubernetes, and have special
|
||||
/// scaling options on top of those available to normal per-pod metrics
|
||||
/// using the "pods" source.</param>
|
||||
public V2beta2MetricStatus(string type, V2beta2ExternalMetricStatus external = default(V2beta2ExternalMetricStatus), V2beta2ObjectMetricStatus objectProperty = default(V2beta2ObjectMetricStatus), V2beta2PodsMetricStatus pods = default(V2beta2PodsMetricStatus), V2beta2ResourceMetricStatus resource = default(V2beta2ResourceMetricStatus))
|
||||
public V2beta2MetricStatus(string type, V2beta2ContainerResourceMetricStatus containerResource = default(V2beta2ContainerResourceMetricStatus), V2beta2ExternalMetricStatus external = default(V2beta2ExternalMetricStatus), V2beta2ObjectMetricStatus objectProperty = default(V2beta2ObjectMetricStatus), V2beta2PodsMetricStatus pods = default(V2beta2PodsMetricStatus), V2beta2ResourceMetricStatus resource = default(V2beta2ResourceMetricStatus))
|
||||
{
|
||||
ContainerResource = containerResource;
|
||||
External = external;
|
||||
ObjectProperty = objectProperty;
|
||||
Pods = pods;
|
||||
@@ -62,6 +72,17 @@ namespace k8s.Models
|
||||
/// </summary>
|
||||
partial void CustomInit();
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets container resource refers to a resource metric (such
|
||||
/// as those specified in requests and limits) known to Kubernetes
|
||||
/// describing a single container in each pod in the current scale
|
||||
/// target (e.g. CPU or memory). Such metrics are built in to
|
||||
/// Kubernetes, and have special scaling options on top of those
|
||||
/// available to normal per-pod metrics using the "pods" source.
|
||||
/// </summary>
|
||||
[JsonProperty(PropertyName = "containerResource")]
|
||||
public V2beta2ContainerResourceMetricStatus ContainerResource { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets external refers to a global metric that is not
|
||||
/// associated with any Kubernetes object. It allows autoscaling based
|
||||
@@ -102,8 +123,10 @@ namespace k8s.Models
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets type is the type of metric source. It will be one of
|
||||
/// "Object", "Pods" or "Resource", each corresponds to a matching
|
||||
/// field in the object.
|
||||
/// "ContainerResource", "External", "Object", "Pods" or "Resource",
|
||||
/// each corresponds to a matching field in the object. Note:
|
||||
/// "ContainerResource" type is available on when the feature-gate
|
||||
/// HPAContainerMetrics is enabled
|
||||
/// </summary>
|
||||
[JsonProperty(PropertyName = "type")]
|
||||
public string Type { get; set; }
|
||||
@@ -120,6 +143,10 @@ namespace k8s.Models
|
||||
{
|
||||
throw new ValidationException(ValidationRules.CannotBeNull, "Type");
|
||||
}
|
||||
if (ContainerResource != null)
|
||||
{
|
||||
ContainerResource.Validate();
|
||||
}
|
||||
if (External != null)
|
||||
{
|
||||
External.Validate();
|
||||
|
||||
51
src/KubernetesClient/generated/VersionConverter.cs
generated
51
src/KubernetesClient/generated/VersionConverter.cs
generated
@@ -1,8 +1,15 @@
|
||||
// <auto-generated>
|
||||
// Code generated by gen/KubernetesWatchGenerator
|
||||
// Changes may cause incorrect behavior and will be lost if the code is
|
||||
// regenerated.
|
||||
// </auto-generated>
|
||||
using AutoMapper;
|
||||
using k8s.Models;
|
||||
|
||||
namespace k8s.Versioning
|
||||
{
|
||||
|
||||
|
||||
public static partial class VersionConverter
|
||||
{
|
||||
private static void AutoConfigurations(IMapperConfigurationExpression cfg)
|
||||
@@ -28,15 +35,11 @@ namespace k8s.Versioning
|
||||
cfg.CreateMap<V1alpha1ClusterRole, V1beta1ClusterRole>().ReverseMap();
|
||||
cfg.CreateMap<V1alpha1ClusterRole, V1ClusterRole>().ReverseMap();
|
||||
cfg.CreateMap<V1beta1ClusterRole, V1ClusterRole>().ReverseMap();
|
||||
cfg.CreateMap<V1alpha1ClusterRoleBinding, V1beta1ClusterRoleBinding>().ReverseMap();
|
||||
cfg.CreateMap<V1alpha1ClusterRoleBinding, V1ClusterRoleBinding>().ReverseMap();
|
||||
cfg.CreateMap<V1beta1ClusterRoleBinding, V1ClusterRoleBinding>().ReverseMap();
|
||||
cfg.CreateMap<V1alpha1ClusterRoleBindingList, V1beta1ClusterRoleBindingList>().ReverseMap();
|
||||
cfg.CreateMap<V1alpha1ClusterRoleBindingList, V1ClusterRoleBindingList>().ReverseMap();
|
||||
cfg.CreateMap<V1beta1ClusterRoleBindingList, V1ClusterRoleBindingList>().ReverseMap();
|
||||
cfg.CreateMap<V1alpha1ClusterRoleList, V1beta1ClusterRoleList>().ReverseMap();
|
||||
cfg.CreateMap<V1alpha1ClusterRoleList, V1ClusterRoleList>().ReverseMap();
|
||||
cfg.CreateMap<V1beta1ClusterRoleList, V1ClusterRoleList>().ReverseMap();
|
||||
cfg.CreateMap<V2beta1ContainerResourceMetricSource, V2beta2ContainerResourceMetricSource>().ReverseMap();
|
||||
cfg.CreateMap<V2beta1ContainerResourceMetricStatus, V2beta2ContainerResourceMetricStatus>().ReverseMap();
|
||||
cfg.CreateMap<V1beta1CronJob, V2alpha1CronJob>().ReverseMap();
|
||||
cfg.CreateMap<V1beta1CronJobList, V2alpha1CronJobList>().ReverseMap();
|
||||
cfg.CreateMap<V1beta1CronJobSpec, V2alpha1CronJobSpec>().ReverseMap();
|
||||
@@ -46,7 +49,6 @@ namespace k8s.Versioning
|
||||
cfg.CreateMap<V2beta1CrossVersionObjectReference, V2beta2CrossVersionObjectReference>().ReverseMap();
|
||||
cfg.CreateMap<V1beta1CSIDriver, V1CSIDriver>().ReverseMap();
|
||||
cfg.CreateMap<V1beta1CSIDriverList, V1CSIDriverList>().ReverseMap();
|
||||
cfg.CreateMap<V1beta1CSIDriverSpec, V1CSIDriverSpec>().ReverseMap();
|
||||
cfg.CreateMap<V1beta1CSINode, V1CSINode>().ReverseMap();
|
||||
cfg.CreateMap<V1beta1CSINodeDriver, V1CSINodeDriver>().ReverseMap();
|
||||
cfg.CreateMap<V1beta1CSINodeList, V1CSINodeList>().ReverseMap();
|
||||
@@ -65,6 +67,14 @@ namespace k8s.Versioning
|
||||
cfg.CreateMap<V1beta1CustomResourceValidation, V1CustomResourceValidation>().ReverseMap();
|
||||
cfg.CreateMap<V1beta1EndpointPort, V1EndpointPort>().ReverseMap();
|
||||
cfg.CreateMap<V1beta1ExternalDocumentation, V1ExternalDocumentation>().ReverseMap();
|
||||
cfg.CreateMap<Flowcontrolv1alpha1Subject, Flowcontrolv1beta1Subject>().ReverseMap();
|
||||
cfg.CreateMap<V1alpha1FlowDistinguisherMethod, V1beta1FlowDistinguisherMethod>().ReverseMap();
|
||||
cfg.CreateMap<V1alpha1FlowSchema, V1beta1FlowSchema>().ReverseMap();
|
||||
cfg.CreateMap<V1alpha1FlowSchemaCondition, V1beta1FlowSchemaCondition>().ReverseMap();
|
||||
cfg.CreateMap<V1alpha1FlowSchemaList, V1beta1FlowSchemaList>().ReverseMap();
|
||||
cfg.CreateMap<V1alpha1FlowSchemaSpec, V1beta1FlowSchemaSpec>().ReverseMap();
|
||||
cfg.CreateMap<V1alpha1FlowSchemaStatus, V1beta1FlowSchemaStatus>().ReverseMap();
|
||||
cfg.CreateMap<V1alpha1GroupSubject, V1beta1GroupSubject>().ReverseMap();
|
||||
cfg.CreateMap<V1HorizontalPodAutoscaler, V2beta1HorizontalPodAutoscaler>().ReverseMap();
|
||||
cfg.CreateMap<V1HorizontalPodAutoscaler, V2beta2HorizontalPodAutoscaler>().ReverseMap();
|
||||
cfg.CreateMap<V2beta1HorizontalPodAutoscaler, V2beta2HorizontalPodAutoscaler>().ReverseMap();
|
||||
@@ -81,6 +91,8 @@ namespace k8s.Versioning
|
||||
cfg.CreateMap<V1beta1Lease, V1Lease>().ReverseMap();
|
||||
cfg.CreateMap<V1beta1LeaseList, V1LeaseList>().ReverseMap();
|
||||
cfg.CreateMap<V1beta1LeaseSpec, V1LeaseSpec>().ReverseMap();
|
||||
cfg.CreateMap<V1alpha1LimitedPriorityLevelConfiguration, V1beta1LimitedPriorityLevelConfiguration>().ReverseMap();
|
||||
cfg.CreateMap<V1alpha1LimitResponse, V1beta1LimitResponse>().ReverseMap();
|
||||
cfg.CreateMap<V1beta1LocalSubjectAccessReview, V1LocalSubjectAccessReview>().ReverseMap();
|
||||
cfg.CreateMap<V2beta1MetricSpec, V2beta2MetricSpec>().ReverseMap();
|
||||
cfg.CreateMap<V2beta1MetricStatus, V2beta2MetricStatus>().ReverseMap();
|
||||
@@ -88,25 +100,35 @@ namespace k8s.Versioning
|
||||
cfg.CreateMap<V1beta1MutatingWebhookConfiguration, V1MutatingWebhookConfiguration>().ReverseMap();
|
||||
cfg.CreateMap<V1beta1MutatingWebhookConfigurationList, V1MutatingWebhookConfigurationList>().ReverseMap();
|
||||
cfg.CreateMap<V1beta1NonResourceAttributes, V1NonResourceAttributes>().ReverseMap();
|
||||
cfg.CreateMap<V1alpha1NonResourcePolicyRule, V1beta1NonResourcePolicyRule>().ReverseMap();
|
||||
cfg.CreateMap<V1beta1NonResourceRule, V1NonResourceRule>().ReverseMap();
|
||||
cfg.CreateMap<V1alpha1Overhead, V1beta1Overhead>().ReverseMap();
|
||||
cfg.CreateMap<V1alpha1Overhead, V1Overhead>().ReverseMap();
|
||||
cfg.CreateMap<V1beta1Overhead, V1Overhead>().ReverseMap();
|
||||
cfg.CreateMap<V1alpha1PolicyRule, V1beta1PolicyRule>().ReverseMap();
|
||||
cfg.CreateMap<V1alpha1PolicyRule, V1PolicyRule>().ReverseMap();
|
||||
cfg.CreateMap<V1beta1PolicyRule, V1PolicyRule>().ReverseMap();
|
||||
cfg.CreateMap<V1alpha1PolicyRulesWithSubjects, V1beta1PolicyRulesWithSubjects>().ReverseMap();
|
||||
cfg.CreateMap<V1alpha1PriorityClass, V1beta1PriorityClass>().ReverseMap();
|
||||
cfg.CreateMap<V1alpha1PriorityClass, V1PriorityClass>().ReverseMap();
|
||||
cfg.CreateMap<V1beta1PriorityClass, V1PriorityClass>().ReverseMap();
|
||||
cfg.CreateMap<V1alpha1PriorityClassList, V1beta1PriorityClassList>().ReverseMap();
|
||||
cfg.CreateMap<V1alpha1PriorityClassList, V1PriorityClassList>().ReverseMap();
|
||||
cfg.CreateMap<V1beta1PriorityClassList, V1PriorityClassList>().ReverseMap();
|
||||
cfg.CreateMap<V1alpha1PriorityLevelConfiguration, V1beta1PriorityLevelConfiguration>().ReverseMap();
|
||||
cfg.CreateMap<V1alpha1PriorityLevelConfigurationCondition, V1beta1PriorityLevelConfigurationCondition>().ReverseMap();
|
||||
cfg.CreateMap<V1alpha1PriorityLevelConfigurationList, V1beta1PriorityLevelConfigurationList>().ReverseMap();
|
||||
cfg.CreateMap<V1alpha1PriorityLevelConfigurationReference, V1beta1PriorityLevelConfigurationReference>().ReverseMap();
|
||||
cfg.CreateMap<V1alpha1PriorityLevelConfigurationSpec, V1beta1PriorityLevelConfigurationSpec>().ReverseMap();
|
||||
cfg.CreateMap<V1alpha1PriorityLevelConfigurationStatus, V1beta1PriorityLevelConfigurationStatus>().ReverseMap();
|
||||
cfg.CreateMap<V1alpha1QueuingConfiguration, V1beta1QueuingConfiguration>().ReverseMap();
|
||||
cfg.CreateMap<Rbacv1alpha1Subject, Rbacv1beta1Subject>().ReverseMap();
|
||||
cfg.CreateMap<V1beta1ResourceAttributes, V1ResourceAttributes>().ReverseMap();
|
||||
cfg.CreateMap<V1alpha1ResourcePolicyRule, V1beta1ResourcePolicyRule>().ReverseMap();
|
||||
cfg.CreateMap<V1beta1ResourceRule, V1ResourceRule>().ReverseMap();
|
||||
cfg.CreateMap<V1alpha1Role, V1beta1Role>().ReverseMap();
|
||||
cfg.CreateMap<V1alpha1Role, V1Role>().ReverseMap();
|
||||
cfg.CreateMap<V1beta1Role, V1Role>().ReverseMap();
|
||||
cfg.CreateMap<V1alpha1RoleBinding, V1beta1RoleBinding>().ReverseMap();
|
||||
cfg.CreateMap<V1alpha1RoleBinding, V1RoleBinding>().ReverseMap();
|
||||
cfg.CreateMap<V1beta1RoleBinding, V1RoleBinding>().ReverseMap();
|
||||
cfg.CreateMap<V1alpha1RoleBindingList, V1beta1RoleBindingList>().ReverseMap();
|
||||
cfg.CreateMap<V1alpha1RoleBindingList, V1RoleBindingList>().ReverseMap();
|
||||
cfg.CreateMap<V1beta1RoleBindingList, V1RoleBindingList>().ReverseMap();
|
||||
@@ -118,14 +140,18 @@ namespace k8s.Versioning
|
||||
cfg.CreateMap<V1beta1RoleRef, V1RoleRef>().ReverseMap();
|
||||
cfg.CreateMap<V1beta1RuleWithOperations, V1RuleWithOperations>().ReverseMap();
|
||||
cfg.CreateMap<V1alpha1RuntimeClassList, V1beta1RuntimeClassList>().ReverseMap();
|
||||
cfg.CreateMap<V1alpha1RuntimeClassList, V1RuntimeClassList>().ReverseMap();
|
||||
cfg.CreateMap<V1beta1RuntimeClassList, V1RuntimeClassList>().ReverseMap();
|
||||
cfg.CreateMap<V1alpha1Scheduling, V1beta1Scheduling>().ReverseMap();
|
||||
cfg.CreateMap<V1alpha1Scheduling, V1Scheduling>().ReverseMap();
|
||||
cfg.CreateMap<V1beta1Scheduling, V1Scheduling>().ReverseMap();
|
||||
cfg.CreateMap<V1beta1SelfSubjectAccessReview, V1SelfSubjectAccessReview>().ReverseMap();
|
||||
cfg.CreateMap<V1beta1SelfSubjectAccessReviewSpec, V1SelfSubjectAccessReviewSpec>().ReverseMap();
|
||||
cfg.CreateMap<V1beta1SelfSubjectRulesReview, V1SelfSubjectRulesReview>().ReverseMap();
|
||||
cfg.CreateMap<V1beta1SelfSubjectRulesReviewSpec, V1SelfSubjectRulesReviewSpec>().ReverseMap();
|
||||
cfg.CreateMap<V1alpha1ServiceAccountSubject, V1beta1ServiceAccountSubject>().ReverseMap();
|
||||
cfg.CreateMap<V1beta1StorageClass, V1StorageClass>().ReverseMap();
|
||||
cfg.CreateMap<V1beta1StorageClassList, V1StorageClassList>().ReverseMap();
|
||||
cfg.CreateMap<V1beta1Subject, V1Subject>().ReverseMap();
|
||||
cfg.CreateMap<V1beta1SubjectAccessReview, V1SubjectAccessReview>().ReverseMap();
|
||||
cfg.CreateMap<V1beta1SubjectAccessReviewSpec, V1SubjectAccessReviewSpec>().ReverseMap();
|
||||
cfg.CreateMap<V1beta1SubjectAccessReviewStatus, V1SubjectAccessReviewStatus>().ReverseMap();
|
||||
@@ -134,6 +160,7 @@ namespace k8s.Versioning
|
||||
cfg.CreateMap<V1beta1TokenReviewSpec, V1TokenReviewSpec>().ReverseMap();
|
||||
cfg.CreateMap<V1beta1TokenReviewStatus, V1TokenReviewStatus>().ReverseMap();
|
||||
cfg.CreateMap<V1beta1UserInfo, V1UserInfo>().ReverseMap();
|
||||
cfg.CreateMap<V1alpha1UserSubject, V1beta1UserSubject>().ReverseMap();
|
||||
cfg.CreateMap<V1beta1ValidatingWebhook, V1ValidatingWebhook>().ReverseMap();
|
||||
cfg.CreateMap<V1beta1ValidatingWebhookConfiguration, V1ValidatingWebhookConfiguration>().ReverseMap();
|
||||
cfg.CreateMap<V1beta1ValidatingWebhookConfigurationList, V1ValidatingWebhookConfigurationList>().ReverseMap();
|
||||
@@ -158,4 +185,6 @@ namespace k8s.Versioning
|
||||
cfg.CreateMap<V1beta1VolumeNodeResources, V1VolumeNodeResources>().ReverseMap();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
7309
src/KubernetesClient/generated/swagger.json
generated
7309
src/KubernetesClient/generated/swagger.json
generated
File diff suppressed because it is too large
Load Diff
6466
src/KubernetesClient/generated/swagger.json.unprocessed
generated
6466
src/KubernetesClient/generated/swagger.json.unprocessed
generated
File diff suppressed because it is too large
Load Diff
Binary file not shown.
@@ -2,7 +2,6 @@
|
||||
<PropertyGroup>
|
||||
<IsPackable>false</IsPackable>
|
||||
<SignAssembly>true</SignAssembly>
|
||||
<AssemblyOriginatorKeyFile>..\..\src\KubernetesClient\kubernetes-client.snk</AssemblyOriginatorKeyFile>
|
||||
<RootNamespace>k8s.E2E</RootNamespace>
|
||||
<TargetFramework>net5.0</TargetFramework>
|
||||
</PropertyGroup>
|
||||
|
||||
@@ -165,7 +165,7 @@ namespace k8s.Tests
|
||||
}
|
||||
}
|
||||
|
||||
#if NETCOREAPP2_1 // The functionality under test, here, is dependent on managed HTTP / WebSocket in .NET Core 2.1 or newer.
|
||||
#if NETSTANDARD2_1 // The functionality under test, here, is dependent on managed HTTP / WebSocket in .NET Core 2.1 or newer.
|
||||
// this test doesn't work on OSX and is inconsistent on windows
|
||||
[OperatingSystemDependentFact(Exclude = OperatingSystems.OSX | OperatingSystems.Windows)]
|
||||
public void Cert()
|
||||
@@ -338,7 +338,7 @@ namespace k8s.Tests
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // NETCOREAPP2_1
|
||||
#endif // NETSTANDARD2_1
|
||||
|
||||
[Fact]
|
||||
public void ExternalToken()
|
||||
|
||||
@@ -1,20 +1,14 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
<Project Sdk="Microsoft.NET.Sdk.Web">
|
||||
<PropertyGroup>
|
||||
<IsPackable>false</IsPackable>
|
||||
<LangVersion>8</LangVersion>
|
||||
<SignAssembly>true</SignAssembly>
|
||||
<AssemblyOriginatorKeyFile>..\..\src\KubernetesClient\kubernetes-client.snk</AssemblyOriginatorKeyFile>
|
||||
<RootNamespace>k8s.Tests</RootNamespace>
|
||||
<TargetFrameworks>netcoreapp2.1</TargetFrameworks>
|
||||
<TargetFrameworks>net5</TargetFrameworks>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<PackageReference Include="FluentAssertions" Version="5.10.3" />
|
||||
<PackageReference Include="Microsoft.AspNetCore.All" Version="2.0.9">
|
||||
<!-- this is due to aspnet core 2.1 is not compatible with our code -->
|
||||
<AllowExplicitVersion>true</AllowExplicitVersion>
|
||||
</PackageReference>
|
||||
|
||||
<PackageReference Include="Microsoft.Extensions.Logging" Version="2.2.0" />
|
||||
<PackageReference Include="System.Reactive" Version="4.3.2" />
|
||||
<PackageReference Include="Nito.AsyncEx" Version="5.1.0" />
|
||||
@@ -33,7 +27,7 @@
|
||||
<PrivateAssets>all</PrivateAssets>
|
||||
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
|
||||
</PackageReference>
|
||||
<PackageReference Include="Xunit.StaFact" Version="0.3.18" />
|
||||
<PackageReference Include="Xunit.StaFact" Version="1.0.37" />
|
||||
<PackageReference Include="Moq" Version="4.13.1" />
|
||||
|
||||
<DotNetCliToolReference Include="dotnet-xunit" Version="2.3.1" />
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
#if !NETCOREAPP2_1
|
||||
#if !NETSTANDARD2_1
|
||||
/*
|
||||
* These tests are only for the netstandard version of the client (there are separate tests for netcoreapp that connect to a local test-hosted server).
|
||||
*/
|
||||
@@ -48,17 +48,18 @@ namespace k8s.Tests
|
||||
tty: true,
|
||||
customHeaders: new Dictionary<string, List<string>>()
|
||||
{
|
||||
{"X-My-Header", new List<string>() {"myHeaderValue", "myHeaderValue2" } },
|
||||
{ "X-My-Header", new List<string>() { "myHeaderValue", "myHeaderValue2" } },
|
||||
},
|
||||
cancellationToken: CancellationToken.None).ConfigureAwait(false);
|
||||
|
||||
var expectedHeaders = new Dictionary<string, string>()
|
||||
{
|
||||
{"X-My-Header", "myHeaderValue myHeaderValue2" },
|
||||
{"Authorization", "Basic bXktdXNlcjpteS1zZWNyZXQtcGFzc3dvcmQ=" },
|
||||
{ "X-My-Header", "myHeaderValue myHeaderValue2" },
|
||||
{ "Authorization", "Basic bXktdXNlcjpteS1zZWNyZXQtcGFzc3dvcmQ=" },
|
||||
};
|
||||
|
||||
Assert.Equal(mockWebSocketBuilder.PublicWebSocket,
|
||||
Assert.Equal(
|
||||
mockWebSocketBuilder.PublicWebSocket,
|
||||
webSocket); // Did the method return the correct web socket?
|
||||
Assert.Equal(
|
||||
new Uri(
|
||||
@@ -89,17 +90,18 @@ namespace k8s.Tests
|
||||
ports: new int[] { 80, 8080 },
|
||||
customHeaders: new Dictionary<string, List<string>>()
|
||||
{
|
||||
{"X-My-Header", new List<string>() {"myHeaderValue", "myHeaderValue2" } },
|
||||
{ "X-My-Header", new List<string>() { "myHeaderValue", "myHeaderValue2" } },
|
||||
},
|
||||
cancellationToken: CancellationToken.None).ConfigureAwait(false);
|
||||
|
||||
var expectedHeaders = new Dictionary<string, string>()
|
||||
{
|
||||
{"X-My-Header", "myHeaderValue myHeaderValue2" },
|
||||
{"Authorization", "Basic bXktdXNlcjpteS1zZWNyZXQtcGFzc3dvcmQ=" },
|
||||
{ "X-My-Header", "myHeaderValue myHeaderValue2" },
|
||||
{ "Authorization", "Basic bXktdXNlcjpteS1zZWNyZXQtcGFzc3dvcmQ=" },
|
||||
};
|
||||
|
||||
Assert.Equal(mockWebSocketBuilder.PublicWebSocket,
|
||||
Assert.Equal(
|
||||
mockWebSocketBuilder.PublicWebSocket,
|
||||
webSocket); // Did the method return the correct web socket?
|
||||
Assert.Equal(
|
||||
new Uri("ws://localhost/api/v1/namespaces/mynamespace/pods/mypod/portforward?ports=80&ports=8080"),
|
||||
@@ -133,17 +135,18 @@ namespace k8s.Tests
|
||||
tty: true,
|
||||
customHeaders: new Dictionary<string, List<string>>()
|
||||
{
|
||||
{"X-My-Header", new List<string>() {"myHeaderValue", "myHeaderValue2" } },
|
||||
{ "X-My-Header", new List<string>() { "myHeaderValue", "myHeaderValue2" } },
|
||||
},
|
||||
cancellationToken: CancellationToken.None).ConfigureAwait(false);
|
||||
|
||||
var expectedHeaders = new Dictionary<string, string>()
|
||||
{
|
||||
{"X-My-Header", "myHeaderValue myHeaderValue2" },
|
||||
{"Authorization", "Basic bXktdXNlcjpteS1zZWNyZXQtcGFzc3dvcmQ=" },
|
||||
{ "X-My-Header", "myHeaderValue myHeaderValue2" },
|
||||
{ "Authorization", "Basic bXktdXNlcjpteS1zZWNyZXQtcGFzc3dvcmQ=" },
|
||||
};
|
||||
|
||||
Assert.Equal(mockWebSocketBuilder.PublicWebSocket,
|
||||
Assert.Equal(
|
||||
mockWebSocketBuilder.PublicWebSocket,
|
||||
webSocket); // Did the method return the correct web socket?
|
||||
Assert.Equal(
|
||||
new Uri(
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
#if !NETCOREAPP2_1
|
||||
#if !NETSTANDARD2_1
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Collections.ObjectModel;
|
||||
@@ -43,4 +43,4 @@ namespace k8s.Tests.Mock
|
||||
}
|
||||
}
|
||||
|
||||
#endif // !NETCOREAPP2_1
|
||||
#endif // !NETSTANDARD2_1
|
||||
|
||||
@@ -2,6 +2,7 @@ using Microsoft.AspNetCore.Builder;
|
||||
using Microsoft.Extensions.DependencyInjection;
|
||||
using Microsoft.Extensions.Logging;
|
||||
using System;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
|
||||
namespace k8s.Tests.Mock.Server
|
||||
{
|
||||
@@ -35,7 +36,7 @@ namespace k8s.Tests.Mock.Server
|
||||
{
|
||||
logging.ClearProviders(); // Logger provider will be added by the calling test.
|
||||
});
|
||||
services.AddMvc();
|
||||
services.AddMvc(opt => opt.EnableEndpointRouting = false);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -49,7 +50,6 @@ namespace k8s.Tests.Mock.Server
|
||||
app.UseWebSockets(new WebSocketOptions
|
||||
{
|
||||
KeepAliveInterval = TimeSpan.FromSeconds(5),
|
||||
ReceiveBufferSize = 2048,
|
||||
});
|
||||
app.UseMvc();
|
||||
}
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<PackageReference Include="Microsoft.TestPlatform.ObjectModel" Version="16.7.1" />
|
||||
<PackageReference Include="Microsoft.TestPlatform.ObjectModel" Version="16.8.0" />
|
||||
</ItemGroup>
|
||||
|
||||
</Project>
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"$schema": "https://raw.githubusercontent.com/AArnott/Nerdbank.GitVersioning/master/src/NerdBank.GitVersioning/version.schema.json",
|
||||
"version": "3.0",
|
||||
"version": "4.0",
|
||||
"publicReleaseRefSpec": [
|
||||
"^refs/heads/master$", // we release out of master
|
||||
],
|
||||
|
||||
Reference in New Issue
Block a user