Gen v1.21.0 (#603)
* gen v1.21.0 * update version converter * bump version to 5 * remove support of netstandard2.0 * update test dependency
This commit is contained in:
4
.github/workflows/buildtest.yaml
vendored
4
.github/workflows/buildtest.yaml
vendored
@@ -44,10 +44,6 @@ jobs:
|
||||
- uses: actions/checkout@v1
|
||||
with:
|
||||
fetch-depth: 0
|
||||
- name: Setup dotnet SDK 2.1
|
||||
uses: actions/setup-dotnet@v1
|
||||
with:
|
||||
dotnet-version: '2.1.x'
|
||||
- name: Setup dotnet SDK 3.1
|
||||
uses: actions/setup-dotnet@v1
|
||||
with:
|
||||
|
||||
4
.github/workflows/nuget.yaml
vendored
4
.github/workflows/nuget.yaml
vendored
@@ -13,10 +13,6 @@ jobs:
|
||||
- uses: actions/checkout@v1
|
||||
with:
|
||||
fetch-depth: 0
|
||||
- name: Setup dotnet SDK 2.1
|
||||
uses: actions/setup-dotnet@v1
|
||||
with:
|
||||
dotnet-version: '2.1.x'
|
||||
- name: Setup dotnet SDK 3.1
|
||||
uses: actions/setup-dotnet@v1
|
||||
with:
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
<PrivateAssets>All</PrivateAssets>
|
||||
</PackageReference>
|
||||
|
||||
<PackageReference Include="Microsoft.CodeAnalysis.FxCopAnalyzers" Version="3.3.1">
|
||||
<PackageReference Include="Microsoft.CodeAnalysis.NetAnalyzers" Version="5.0.3">
|
||||
<PrivateAssets>All</PrivateAssets>
|
||||
</PackageReference>
|
||||
</ItemGroup>
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
export KUBERNETES_BRANCH=v1.20.0
|
||||
export KUBERNETES_BRANCH=v1.21.0
|
||||
export CLIENT_VERSION=0.0.1
|
||||
export PACKAGE_NAME=k8s
|
||||
|
||||
@@ -312,14 +312,6 @@ namespace k8s
|
||||
}
|
||||
}
|
||||
|
||||
#if (NETSTANDARD2_0)
|
||||
if (this.CaCerts != null)
|
||||
{
|
||||
webSocketBuilder.SetServerCertificateValidationCallback(ServerCertificateValidationCallback);
|
||||
}
|
||||
#endif
|
||||
|
||||
#if NETSTANDARD2_1 || NET5_0
|
||||
if (this.CaCerts != null)
|
||||
{
|
||||
webSocketBuilder.ExpectServerCertificate(this.CaCerts);
|
||||
@@ -334,7 +326,6 @@ namespace k8s
|
||||
{
|
||||
webSocketBuilder.Options.AddSubProtocol(webSocketSubProtocol);
|
||||
}
|
||||
#endif // NETSTANDARD2_1 || NET5_0
|
||||
|
||||
// Send Request
|
||||
cancellationToken.ThrowIfCancellationRequested();
|
||||
@@ -408,25 +399,9 @@ namespace k8s
|
||||
{
|
||||
ServiceClientTracing.Exit(invocationId, null);
|
||||
}
|
||||
|
||||
#if (NETSTANDARD2_0)
|
||||
if (this.CaCerts != null)
|
||||
{
|
||||
webSocketBuilder.CleanupServerCertificateValidationCallback(
|
||||
ServerCertificateValidationCallback);
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
return webSocket;
|
||||
}
|
||||
|
||||
#if (NETSTANDARD2_0)
|
||||
internal bool ServerCertificateValidationCallback(object sender, X509Certificate certificate, X509Chain chain,
|
||||
SslPolicyErrors sslPolicyErrors)
|
||||
{
|
||||
return CertificateValidationCallBack(sender, CaCerts, certificate, chain, sslPolicyErrors);
|
||||
}
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
<PackageIconUrl>https://raw.githubusercontent.com/kubernetes/kubernetes/master/logo/logo.png</PackageIconUrl>
|
||||
<PackageTags>kubernetes;docker;containers;</PackageTags>
|
||||
|
||||
<TargetFrameworks>netstandard2.0;netstandard2.1;net5</TargetFrameworks>
|
||||
<TargetFrameworks>netstandard2.1;net5</TargetFrameworks>
|
||||
<RootNamespace>k8s</RootNamespace>
|
||||
<SignAssembly>true</SignAssembly>
|
||||
<GenerateDocumentationFile>true</GenerateDocumentationFile>
|
||||
|
||||
@@ -134,10 +134,10 @@ namespace k8s.Versioning
|
||||
obj.Kind = metadata.Kind;
|
||||
});
|
||||
});
|
||||
cfg.CreateMap<V1Subject, Rbacv1alpha1Subject>()
|
||||
cfg.CreateMap<V1Subject, V1alpha1Subject>()
|
||||
.ForMember(dest => dest.ApiVersion, opt => opt.Ignore())
|
||||
.ReverseMap();
|
||||
cfg.CreateMap<Rbacv1beta1Subject, Rbacv1alpha1Subject>()
|
||||
cfg.CreateMap<Rbacv1beta1Subject, V1alpha1Subject>()
|
||||
.ForMember(dest => dest.ApiVersion, opt => opt.Ignore())
|
||||
.ReverseMap();
|
||||
cfg.CreateMap<V1Subject, Rbacv1beta1Subject>()
|
||||
@@ -447,6 +447,14 @@ namespace k8s.Versioning
|
||||
cfg.CreateMap<V1alpha1ClusterRoleBindingList, V1beta1ClusterRoleBindingList>().ReverseMap();
|
||||
cfg.CreateMap<V1alpha1ClusterRoleBindingList, V1ClusterRoleBindingList>().ReverseMap();
|
||||
cfg.CreateMap<V1beta1ClusterRoleBindingList, V1ClusterRoleBindingList>().ReverseMap();
|
||||
|
||||
cfg.CreateMap<V1beta1Endpoint, V1Endpoint>()
|
||||
.ForMember(dest => dest.DeprecatedTopology, opt => opt.Ignore())
|
||||
.ForMember(dest => dest.Zone, opt => opt.Ignore())
|
||||
.ReverseMap();
|
||||
|
||||
cfg.CreateMap<V1beta1EndpointPort, Discoveryv1EndpointPort>()
|
||||
.ReverseMap();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -18,9 +18,7 @@ namespace k8s
|
||||
HttpRequestMessage request,
|
||||
CancellationToken cancellationToken)
|
||||
{
|
||||
#if NET5_0 || NETSTANDARD2_1
|
||||
request.Version = HttpVersion.Version20;
|
||||
#endif
|
||||
var originResponse = await base.SendAsync(request, cancellationToken).ConfigureAwait(false);
|
||||
|
||||
// all watches are GETs, so we can ignore others
|
||||
|
||||
@@ -36,21 +36,6 @@ namespace k8s
|
||||
return this;
|
||||
}
|
||||
|
||||
#if (NETSTANDARD2_0)
|
||||
public WebSocketBuilder SetServerCertificateValidationCallback(
|
||||
RemoteCertificateValidationCallback validationCallback)
|
||||
{
|
||||
System.Net.ServicePointManager.ServerCertificateValidationCallback += validationCallback;
|
||||
return this;
|
||||
}
|
||||
|
||||
public void CleanupServerCertificateValidationCallback(RemoteCertificateValidationCallback validationCallback)
|
||||
{
|
||||
System.Net.ServicePointManager.ServerCertificateValidationCallback -= validationCallback;
|
||||
}
|
||||
#endif
|
||||
|
||||
#if NETSTANDARD2_1 || NET5_0
|
||||
public WebSocketBuilder ExpectServerCertificate(X509Certificate2Collection serverCertificate)
|
||||
{
|
||||
Options.RemoteCertificateValidationCallback
|
||||
@@ -70,8 +55,6 @@ namespace k8s
|
||||
return this;
|
||||
}
|
||||
|
||||
#endif // NETSTANDARD2_1 || NET5_0
|
||||
|
||||
public virtual async Task<WebSocket> BuildAndConnectAsync(Uri uri, CancellationToken cancellationToken)
|
||||
{
|
||||
await WebSocket.ConnectAsync(uri, cancellationToken).ConfigureAwait(false);
|
||||
|
||||
664
src/KubernetesClient/generated/IKubernetes.Watch.cs
generated
664
src/KubernetesClient/generated/IKubernetes.Watch.cs
generated
@@ -2573,6 +2573,90 @@ namespace k8s
|
||||
Action onClosed = null,
|
||||
CancellationToken cancellationToken = default(CancellationToken));
|
||||
|
||||
/// <summary>
|
||||
/// watch changes to an object of kind CronJob. 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 CronJob
|
||||
/// </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<V1CronJob>> WatchNamespacedCronJobAsync(
|
||||
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, V1CronJob> onEvent = null,
|
||||
Action<Exception> onError = null,
|
||||
Action onClosed = null,
|
||||
CancellationToken cancellationToken = default(CancellationToken));
|
||||
|
||||
/// <summary>
|
||||
/// watch changes to an object of kind Job. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.
|
||||
/// </summary>
|
||||
@@ -2741,90 +2825,6 @@ namespace k8s
|
||||
Action onClosed = null,
|
||||
CancellationToken cancellationToken = default(CancellationToken));
|
||||
|
||||
/// <summary>
|
||||
/// watch changes to an object of kind CronJob. 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 CronJob
|
||||
/// </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<V2alpha1CronJob>> WatchNamespacedCronJobAsync(
|
||||
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, V2alpha1CronJob> onEvent = null,
|
||||
Action<Exception> onError = null,
|
||||
Action onClosed = null,
|
||||
CancellationToken cancellationToken = default(CancellationToken));
|
||||
|
||||
/// <summary>
|
||||
/// watch changes to an object of kind CertificateSigningRequest. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.
|
||||
/// </summary>
|
||||
@@ -3153,6 +3153,90 @@ namespace k8s
|
||||
Action onClosed = null,
|
||||
CancellationToken cancellationToken = default(CancellationToken));
|
||||
|
||||
/// <summary>
|
||||
/// watch changes to an object of kind EndpointSlice. 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 EndpointSlice
|
||||
/// </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<V1EndpointSlice>> WatchNamespacedEndpointSliceAsync(
|
||||
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, V1EndpointSlice> onEvent = null,
|
||||
Action<Exception> onError = null,
|
||||
Action onClosed = null,
|
||||
CancellationToken cancellationToken = default(CancellationToken));
|
||||
|
||||
/// <summary>
|
||||
/// watch changes to an object of kind EndpointSlice. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.
|
||||
/// </summary>
|
||||
@@ -3489,166 +3573,6 @@ 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<V1alpha1FlowSchema>> 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, V1alpha1FlowSchema> 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<V1alpha1PriorityLevelConfiguration>> 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, V1alpha1PriorityLevelConfiguration> onEvent = null,
|
||||
Action<Exception> onError = null,
|
||||
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>
|
||||
@@ -4541,6 +4465,90 @@ namespace k8s
|
||||
Action onClosed = null,
|
||||
CancellationToken cancellationToken = default(CancellationToken));
|
||||
|
||||
/// <summary>
|
||||
/// watch changes to an object of kind PodDisruptionBudget. 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 PodDisruptionBudget
|
||||
/// </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<V1PodDisruptionBudget>> WatchNamespacedPodDisruptionBudgetAsync(
|
||||
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, V1PodDisruptionBudget> onEvent = null,
|
||||
Action<Exception> onError = null,
|
||||
Action onClosed = null,
|
||||
CancellationToken cancellationToken = default(CancellationToken));
|
||||
|
||||
/// <summary>
|
||||
/// watch changes to an object of kind PodDisruptionBudget. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.
|
||||
/// </summary>
|
||||
@@ -6249,6 +6257,90 @@ namespace k8s
|
||||
Action onClosed = null,
|
||||
CancellationToken cancellationToken = default(CancellationToken));
|
||||
|
||||
/// <summary>
|
||||
/// watch changes to an object of kind CSIStorageCapacity. 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 CSIStorageCapacity
|
||||
/// </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<V1alpha1CSIStorageCapacity>> WatchNamespacedCSIStorageCapacityAsync(
|
||||
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, V1alpha1CSIStorageCapacity> onEvent = null,
|
||||
Action<Exception> onError = null,
|
||||
Action onClosed = null,
|
||||
CancellationToken cancellationToken = default(CancellationToken));
|
||||
|
||||
/// <summary>
|
||||
/// watch changes to an object of kind VolumeAttachment. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.
|
||||
/// </summary>
|
||||
@@ -6489,6 +6581,90 @@ namespace k8s
|
||||
Action onClosed = null,
|
||||
CancellationToken cancellationToken = default(CancellationToken));
|
||||
|
||||
/// <summary>
|
||||
/// watch changes to an object of kind CSIStorageCapacity. 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 CSIStorageCapacity
|
||||
/// </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<V1beta1CSIStorageCapacity>> WatchNamespacedCSIStorageCapacityAsync(
|
||||
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, V1beta1CSIStorageCapacity> onEvent = null,
|
||||
Action<Exception> onError = null,
|
||||
Action onClosed = null,
|
||||
CancellationToken cancellationToken = default(CancellationToken));
|
||||
|
||||
/// <summary>
|
||||
/// watch changes to an object of kind StorageClass. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.
|
||||
/// </summary>
|
||||
|
||||
5341
src/KubernetesClient/generated/IKubernetes.cs
generated
5341
src/KubernetesClient/generated/IKubernetes.cs
generated
File diff suppressed because it is too large
Load Diff
190
src/KubernetesClient/generated/Kubernetes.Watch.cs
generated
190
src/KubernetesClient/generated/Kubernetes.Watch.cs
generated
@@ -746,6 +746,30 @@ namespace k8s
|
||||
return WatchObjectAsync<V2beta2HorizontalPodAutoscaler>(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<V1CronJob>> WatchNamespacedCronJobAsync(
|
||||
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, V1CronJob> onEvent = null,
|
||||
Action<Exception> onError = null,
|
||||
Action onClosed = null,
|
||||
CancellationToken cancellationToken = default(CancellationToken))
|
||||
{
|
||||
string path = $"apis/batch/v1/watch/namespaces/{@namespace}/cronjobs/{name}";
|
||||
return WatchObjectAsync<V1CronJob>(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<V1Job>> WatchNamespacedJobAsync(
|
||||
string name,
|
||||
@@ -794,30 +818,6 @@ namespace k8s
|
||||
return WatchObjectAsync<V1beta1CronJob>(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<V2alpha1CronJob>> WatchNamespacedCronJobAsync(
|
||||
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, V2alpha1CronJob> onEvent = null,
|
||||
Action<Exception> onError = null,
|
||||
Action onClosed = null,
|
||||
CancellationToken cancellationToken = default(CancellationToken))
|
||||
{
|
||||
string path = $"apis/batch/v2alpha1/watch/namespaces/{@namespace}/cronjobs/{name}";
|
||||
return WatchObjectAsync<V2alpha1CronJob>(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<V1CertificateSigningRequest>> WatchCertificateSigningRequestAsync(
|
||||
string name,
|
||||
@@ -912,6 +912,30 @@ namespace k8s
|
||||
return WatchObjectAsync<V1beta1Lease>(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<V1EndpointSlice>> WatchNamespacedEndpointSliceAsync(
|
||||
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, V1EndpointSlice> onEvent = null,
|
||||
Action<Exception> onError = null,
|
||||
Action onClosed = null,
|
||||
CancellationToken cancellationToken = default(CancellationToken))
|
||||
{
|
||||
string path = $"apis/discovery.k8s.io/v1/watch/namespaces/{@namespace}/endpointslices/{name}";
|
||||
return WatchObjectAsync<V1EndpointSlice>(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<V1beta1EndpointSlice>> WatchNamespacedEndpointSliceAsync(
|
||||
string name,
|
||||
@@ -1008,52 +1032,6 @@ namespace k8s
|
||||
return WatchObjectAsync<Extensionsv1beta1Ingress>(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<V1alpha1FlowSchema>> 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, V1alpha1FlowSchema> onEvent = null,
|
||||
Action<Exception> onError = null,
|
||||
Action onClosed = null,
|
||||
CancellationToken cancellationToken = default(CancellationToken))
|
||||
{
|
||||
string path = $"apis/flowcontrol.apiserver.k8s.io/v1alpha1/watch/flowschemas/{name}";
|
||||
return WatchObjectAsync<V1alpha1FlowSchema>(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<V1alpha1PriorityLevelConfiguration>> 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, V1alpha1PriorityLevelConfiguration> onEvent = null,
|
||||
Action<Exception> onError = null,
|
||||
Action onClosed = null,
|
||||
CancellationToken cancellationToken = default(CancellationToken))
|
||||
{
|
||||
string path = $"apis/flowcontrol.apiserver.k8s.io/v1alpha1/watch/prioritylevelconfigurations/{name}";
|
||||
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,
|
||||
@@ -1310,6 +1288,30 @@ namespace k8s
|
||||
return WatchObjectAsync<V1beta1RuntimeClass>(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<V1PodDisruptionBudget>> WatchNamespacedPodDisruptionBudgetAsync(
|
||||
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, V1PodDisruptionBudget> onEvent = null,
|
||||
Action<Exception> onError = null,
|
||||
Action onClosed = null,
|
||||
CancellationToken cancellationToken = default(CancellationToken))
|
||||
{
|
||||
string path = $"apis/policy/v1/watch/namespaces/{@namespace}/poddisruptionbudgets/{name}";
|
||||
return WatchObjectAsync<V1PodDisruptionBudget>(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<V1beta1PodDisruptionBudget>> WatchNamespacedPodDisruptionBudgetAsync(
|
||||
string name,
|
||||
@@ -1800,6 +1802,30 @@ namespace k8s
|
||||
return WatchObjectAsync<V1VolumeAttachment>(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<V1alpha1CSIStorageCapacity>> WatchNamespacedCSIStorageCapacityAsync(
|
||||
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, V1alpha1CSIStorageCapacity> onEvent = null,
|
||||
Action<Exception> onError = null,
|
||||
Action onClosed = null,
|
||||
CancellationToken cancellationToken = default(CancellationToken))
|
||||
{
|
||||
string path = $"apis/storage.k8s.io/v1alpha1/watch/namespaces/{@namespace}/csistoragecapacities/{name}";
|
||||
return WatchObjectAsync<V1alpha1CSIStorageCapacity>(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<V1alpha1VolumeAttachment>> WatchVolumeAttachmentAsync(
|
||||
string name,
|
||||
@@ -1869,6 +1895,30 @@ namespace k8s
|
||||
return WatchObjectAsync<V1beta1CSINode>(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<V1beta1CSIStorageCapacity>> WatchNamespacedCSIStorageCapacityAsync(
|
||||
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, V1beta1CSIStorageCapacity> onEvent = null,
|
||||
Action<Exception> onError = null,
|
||||
Action onClosed = null,
|
||||
CancellationToken cancellationToken = default(CancellationToken))
|
||||
{
|
||||
string path = $"apis/storage.k8s.io/v1beta1/watch/namespaces/{@namespace}/csistoragecapacities/{name}";
|
||||
return WatchObjectAsync<V1beta1CSIStorageCapacity>(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<V1beta1StorageClass>> WatchStorageClassAsync(
|
||||
string name,
|
||||
|
||||
20420
src/KubernetesClient/generated/Kubernetes.cs
generated
20420
src/KubernetesClient/generated/Kubernetes.cs
generated
File diff suppressed because it is too large
Load Diff
11064
src/KubernetesClient/generated/KubernetesExtensions.cs
generated
11064
src/KubernetesClient/generated/KubernetesExtensions.cs
generated
File diff suppressed because it is too large
Load Diff
136
src/KubernetesClient/generated/ModelExtensions.cs
generated
136
src/KubernetesClient/generated/ModelExtensions.cs
generated
@@ -309,6 +309,22 @@ namespace k8s.Models
|
||||
public const string KubeGroup = "autoscaling";
|
||||
}
|
||||
|
||||
[KubernetesEntity(Group="batch", Kind="CronJob", ApiVersion="v1", PluralName="cronjobs")]
|
||||
public partial class V1CronJob : IKubernetesObject<V1ObjectMeta>, ISpec<V1CronJobSpec>, IValidate
|
||||
{
|
||||
public const string KubeApiVersion = "v1";
|
||||
public const string KubeKind = "CronJob";
|
||||
public const string KubeGroup = "batch";
|
||||
}
|
||||
|
||||
[KubernetesEntity(Group="batch", Kind="CronJobList", ApiVersion="v1", PluralName="cronjobs")]
|
||||
public partial class V1CronJobList : IKubernetesObject<V1ListMeta>, IItems<V1CronJob>, IValidate
|
||||
{
|
||||
public const string KubeApiVersion = "v1";
|
||||
public const string KubeKind = "CronJobList";
|
||||
public const string KubeGroup = "batch";
|
||||
}
|
||||
|
||||
[KubernetesEntity(Group="batch", Kind="Job", ApiVersion="v1", PluralName="jobs")]
|
||||
public partial class V1Job : IKubernetesObject<V1ObjectMeta>, ISpec<V1JobSpec>, IValidate
|
||||
{
|
||||
@@ -341,22 +357,6 @@ namespace k8s.Models
|
||||
public const string KubeGroup = "batch";
|
||||
}
|
||||
|
||||
[KubernetesEntity(Group="batch", Kind="CronJob", ApiVersion="v2alpha1", PluralName="cronjobs")]
|
||||
public partial class V2alpha1CronJob : IKubernetesObject<V1ObjectMeta>, ISpec<V2alpha1CronJobSpec>, IValidate
|
||||
{
|
||||
public const string KubeApiVersion = "v2alpha1";
|
||||
public const string KubeKind = "CronJob";
|
||||
public const string KubeGroup = "batch";
|
||||
}
|
||||
|
||||
[KubernetesEntity(Group="batch", Kind="CronJobList", ApiVersion="v2alpha1", PluralName="cronjobs")]
|
||||
public partial class V2alpha1CronJobList : IKubernetesObject<V1ListMeta>, IItems<V2alpha1CronJob>, IValidate
|
||||
{
|
||||
public const string KubeApiVersion = "v2alpha1";
|
||||
public const string KubeKind = "CronJobList";
|
||||
public const string KubeGroup = "batch";
|
||||
}
|
||||
|
||||
[KubernetesEntity(Group="certificates.k8s.io", Kind="CertificateSigningRequest", ApiVersion="v1", PluralName="certificatesigningrequests")]
|
||||
public partial class V1CertificateSigningRequest : IKubernetesObject<V1ObjectMeta>, ISpec<V1CertificateSigningRequestSpec>, IValidate
|
||||
{
|
||||
@@ -477,6 +477,14 @@ namespace k8s.Models
|
||||
public const string KubeGroup = "";
|
||||
}
|
||||
|
||||
[KubernetesEntity(Group="", Kind="EphemeralContainers", ApiVersion="v1", PluralName=null)]
|
||||
public partial class V1EphemeralContainers : IKubernetesObject<V1ObjectMeta>, IValidate
|
||||
{
|
||||
public const string KubeApiVersion = "v1";
|
||||
public const string KubeKind = "EphemeralContainers";
|
||||
public const string KubeGroup = "";
|
||||
}
|
||||
|
||||
[KubernetesEntity(Group="", Kind="Event", ApiVersion="v1", PluralName="events")]
|
||||
public partial class Corev1Event : IKubernetesObject<V1ObjectMeta>, IValidate
|
||||
{
|
||||
@@ -685,6 +693,22 @@ namespace k8s.Models
|
||||
public const string KubeGroup = "";
|
||||
}
|
||||
|
||||
[KubernetesEntity(Group="discovery.k8s.io", Kind="EndpointSlice", ApiVersion="v1", PluralName="endpointslices")]
|
||||
public partial class V1EndpointSlice : IKubernetesObject<V1ObjectMeta>, IValidate
|
||||
{
|
||||
public const string KubeApiVersion = "v1";
|
||||
public const string KubeKind = "EndpointSlice";
|
||||
public const string KubeGroup = "discovery.k8s.io";
|
||||
}
|
||||
|
||||
[KubernetesEntity(Group="discovery.k8s.io", Kind="EndpointSliceList", ApiVersion="v1", PluralName="endpointslices")]
|
||||
public partial class V1EndpointSliceList : IKubernetesObject<V1ListMeta>, IItems<V1EndpointSlice>, IValidate
|
||||
{
|
||||
public const string KubeApiVersion = "v1";
|
||||
public const string KubeKind = "EndpointSliceList";
|
||||
public const string KubeGroup = "discovery.k8s.io";
|
||||
}
|
||||
|
||||
[KubernetesEntity(Group="discovery.k8s.io", Kind="EndpointSlice", ApiVersion="v1beta1", PluralName="endpointslices")]
|
||||
public partial class V1beta1EndpointSlice : IKubernetesObject<V1ObjectMeta>, IValidate
|
||||
{
|
||||
@@ -749,38 +773,6 @@ namespace k8s.Models
|
||||
public const string KubeGroup = "extensions";
|
||||
}
|
||||
|
||||
[KubernetesEntity(Group="flowcontrol.apiserver.k8s.io", Kind="FlowSchema", ApiVersion="v1alpha1", PluralName="flowschemas")]
|
||||
public partial class V1alpha1FlowSchema : IKubernetesObject<V1ObjectMeta>, ISpec<V1alpha1FlowSchemaSpec>, IValidate
|
||||
{
|
||||
public const string KubeApiVersion = "v1alpha1";
|
||||
public const string KubeKind = "FlowSchema";
|
||||
public const string KubeGroup = "flowcontrol.apiserver.k8s.io";
|
||||
}
|
||||
|
||||
[KubernetesEntity(Group="flowcontrol.apiserver.k8s.io", Kind="FlowSchemaList", ApiVersion="v1alpha1", PluralName="flowschemas")]
|
||||
public partial class V1alpha1FlowSchemaList : IKubernetesObject<V1ListMeta>, IItems<V1alpha1FlowSchema>, IValidate
|
||||
{
|
||||
public const string KubeApiVersion = "v1alpha1";
|
||||
public const string KubeKind = "FlowSchemaList";
|
||||
public const string KubeGroup = "flowcontrol.apiserver.k8s.io";
|
||||
}
|
||||
|
||||
[KubernetesEntity(Group="flowcontrol.apiserver.k8s.io", Kind="PriorityLevelConfiguration", ApiVersion="v1alpha1", PluralName="prioritylevelconfigurations")]
|
||||
public partial class V1alpha1PriorityLevelConfiguration : IKubernetesObject<V1ObjectMeta>, ISpec<V1alpha1PriorityLevelConfigurationSpec>, IValidate
|
||||
{
|
||||
public const string KubeApiVersion = "v1alpha1";
|
||||
public const string KubeKind = "PriorityLevelConfiguration";
|
||||
public const string KubeGroup = "flowcontrol.apiserver.k8s.io";
|
||||
}
|
||||
|
||||
[KubernetesEntity(Group="flowcontrol.apiserver.k8s.io", Kind="PriorityLevelConfigurationList", ApiVersion="v1alpha1", PluralName="prioritylevelconfigurations")]
|
||||
public partial class V1alpha1PriorityLevelConfigurationList : IKubernetesObject<V1ListMeta>, IItems<V1alpha1PriorityLevelConfiguration>, IValidate
|
||||
{
|
||||
public const string KubeApiVersion = "v1alpha1";
|
||||
public const string KubeKind = "PriorityLevelConfigurationList";
|
||||
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
|
||||
{
|
||||
@@ -941,6 +933,22 @@ namespace k8s.Models
|
||||
public const string KubeGroup = "node.k8s.io";
|
||||
}
|
||||
|
||||
[KubernetesEntity(Group="policy", Kind="PodDisruptionBudget", ApiVersion="v1", PluralName="poddisruptionbudgets")]
|
||||
public partial class V1PodDisruptionBudget : IKubernetesObject<V1ObjectMeta>, ISpec<V1PodDisruptionBudgetSpec>, IValidate
|
||||
{
|
||||
public const string KubeApiVersion = "v1";
|
||||
public const string KubeKind = "PodDisruptionBudget";
|
||||
public const string KubeGroup = "policy";
|
||||
}
|
||||
|
||||
[KubernetesEntity(Group="policy", Kind="PodDisruptionBudgetList", ApiVersion="v1", PluralName="poddisruptionbudgets")]
|
||||
public partial class V1PodDisruptionBudgetList : IKubernetesObject<V1ListMeta>, IItems<V1PodDisruptionBudget>, IValidate
|
||||
{
|
||||
public const string KubeApiVersion = "v1";
|
||||
public const string KubeKind = "PodDisruptionBudgetList";
|
||||
public const string KubeGroup = "policy";
|
||||
}
|
||||
|
||||
[KubernetesEntity(Group="policy", Kind="Eviction", ApiVersion="v1beta1", PluralName=null)]
|
||||
public partial class V1beta1Eviction : IKubernetesObject<V1ObjectMeta>
|
||||
{
|
||||
@@ -1285,6 +1293,22 @@ namespace k8s.Models
|
||||
public const string KubeGroup = "storage.k8s.io";
|
||||
}
|
||||
|
||||
[KubernetesEntity(Group="storage.k8s.io", Kind="CSIStorageCapacity", ApiVersion="v1alpha1", PluralName="csistoragecapacities")]
|
||||
public partial class V1alpha1CSIStorageCapacity : IKubernetesObject<V1ObjectMeta>, IValidate
|
||||
{
|
||||
public const string KubeApiVersion = "v1alpha1";
|
||||
public const string KubeKind = "CSIStorageCapacity";
|
||||
public const string KubeGroup = "storage.k8s.io";
|
||||
}
|
||||
|
||||
[KubernetesEntity(Group="storage.k8s.io", Kind="CSIStorageCapacityList", ApiVersion="v1alpha1", PluralName="csistoragecapacities")]
|
||||
public partial class V1alpha1CSIStorageCapacityList : IKubernetesObject<V1ListMeta>, IItems<V1alpha1CSIStorageCapacity>, IValidate
|
||||
{
|
||||
public const string KubeApiVersion = "v1alpha1";
|
||||
public const string KubeKind = "CSIStorageCapacityList";
|
||||
public const string KubeGroup = "storage.k8s.io";
|
||||
}
|
||||
|
||||
[KubernetesEntity(Group="storage.k8s.io", Kind="VolumeAttachment", ApiVersion="v1alpha1", PluralName="volumeattachments")]
|
||||
public partial class V1alpha1VolumeAttachment : IKubernetesObject<V1ObjectMeta>, ISpec<V1alpha1VolumeAttachmentSpec>, IValidate
|
||||
{
|
||||
@@ -1333,6 +1357,22 @@ namespace k8s.Models
|
||||
public const string KubeGroup = "storage.k8s.io";
|
||||
}
|
||||
|
||||
[KubernetesEntity(Group="storage.k8s.io", Kind="CSIStorageCapacity", ApiVersion="v1beta1", PluralName="csistoragecapacities")]
|
||||
public partial class V1beta1CSIStorageCapacity : IKubernetesObject<V1ObjectMeta>, IValidate
|
||||
{
|
||||
public const string KubeApiVersion = "v1beta1";
|
||||
public const string KubeKind = "CSIStorageCapacity";
|
||||
public const string KubeGroup = "storage.k8s.io";
|
||||
}
|
||||
|
||||
[KubernetesEntity(Group="storage.k8s.io", Kind="CSIStorageCapacityList", ApiVersion="v1beta1", PluralName="csistoragecapacities")]
|
||||
public partial class V1beta1CSIStorageCapacityList : IKubernetesObject<V1ListMeta>, IItems<V1beta1CSIStorageCapacity>, IValidate
|
||||
{
|
||||
public const string KubeApiVersion = "v1beta1";
|
||||
public const string KubeKind = "CSIStorageCapacityList";
|
||||
public const string KubeGroup = "storage.k8s.io";
|
||||
}
|
||||
|
||||
[KubernetesEntity(Group="storage.k8s.io", Kind="StorageClass", ApiVersion="v1beta1", PluralName="storageclasses")]
|
||||
public partial class V1beta1StorageClass : IKubernetesObject<V1ObjectMeta>, IValidate
|
||||
{
|
||||
|
||||
318
src/KubernetesClient/generated/ModelOperators.cs
generated
318
src/KubernetesClient/generated/ModelOperators.cs
generated
@@ -265,35 +265,35 @@ namespace k8s.Models
|
||||
}
|
||||
public partial class V1beta1CronJob
|
||||
{
|
||||
public static explicit operator V1beta1CronJob(V2alpha1CronJob s) => VersionConverter.Mapper.Map<V1beta1CronJob>(s);
|
||||
public static explicit operator V1beta1CronJob(V1CronJob s) => VersionConverter.Mapper.Map<V1beta1CronJob>(s);
|
||||
}
|
||||
public partial class V2alpha1CronJob
|
||||
public partial class V1CronJob
|
||||
{
|
||||
public static explicit operator V2alpha1CronJob(V1beta1CronJob s) => VersionConverter.Mapper.Map<V2alpha1CronJob>(s);
|
||||
public static explicit operator V1CronJob(V1beta1CronJob s) => VersionConverter.Mapper.Map<V1CronJob>(s);
|
||||
}
|
||||
public partial class V1beta1CronJobList
|
||||
{
|
||||
public static explicit operator V1beta1CronJobList(V2alpha1CronJobList s) => VersionConverter.Mapper.Map<V1beta1CronJobList>(s);
|
||||
public static explicit operator V1beta1CronJobList(V1CronJobList s) => VersionConverter.Mapper.Map<V1beta1CronJobList>(s);
|
||||
}
|
||||
public partial class V2alpha1CronJobList
|
||||
public partial class V1CronJobList
|
||||
{
|
||||
public static explicit operator V2alpha1CronJobList(V1beta1CronJobList s) => VersionConverter.Mapper.Map<V2alpha1CronJobList>(s);
|
||||
public static explicit operator V1CronJobList(V1beta1CronJobList s) => VersionConverter.Mapper.Map<V1CronJobList>(s);
|
||||
}
|
||||
public partial class V1beta1CronJobSpec
|
||||
{
|
||||
public static explicit operator V1beta1CronJobSpec(V2alpha1CronJobSpec s) => VersionConverter.Mapper.Map<V1beta1CronJobSpec>(s);
|
||||
public static explicit operator V1beta1CronJobSpec(V1CronJobSpec s) => VersionConverter.Mapper.Map<V1beta1CronJobSpec>(s);
|
||||
}
|
||||
public partial class V2alpha1CronJobSpec
|
||||
public partial class V1CronJobSpec
|
||||
{
|
||||
public static explicit operator V2alpha1CronJobSpec(V1beta1CronJobSpec s) => VersionConverter.Mapper.Map<V2alpha1CronJobSpec>(s);
|
||||
public static explicit operator V1CronJobSpec(V1beta1CronJobSpec s) => VersionConverter.Mapper.Map<V1CronJobSpec>(s);
|
||||
}
|
||||
public partial class V1beta1CronJobStatus
|
||||
{
|
||||
public static explicit operator V1beta1CronJobStatus(V2alpha1CronJobStatus s) => VersionConverter.Mapper.Map<V1beta1CronJobStatus>(s);
|
||||
public static explicit operator V1beta1CronJobStatus(V1CronJobStatus s) => VersionConverter.Mapper.Map<V1beta1CronJobStatus>(s);
|
||||
}
|
||||
public partial class V2alpha1CronJobStatus
|
||||
public partial class V1CronJobStatus
|
||||
{
|
||||
public static explicit operator V2alpha1CronJobStatus(V1beta1CronJobStatus s) => VersionConverter.Mapper.Map<V2alpha1CronJobStatus>(s);
|
||||
public static explicit operator V1CronJobStatus(V1beta1CronJobStatus s) => VersionConverter.Mapper.Map<V1CronJobStatus>(s);
|
||||
}
|
||||
public partial class V1CrossVersionObjectReference
|
||||
{
|
||||
@@ -375,6 +375,22 @@ namespace k8s.Models
|
||||
{
|
||||
public static explicit operator V1CSINodeSpec(V1beta1CSINodeSpec s) => VersionConverter.Mapper.Map<V1CSINodeSpec>(s);
|
||||
}
|
||||
public partial class V1alpha1CSIStorageCapacity
|
||||
{
|
||||
public static explicit operator V1alpha1CSIStorageCapacity(V1beta1CSIStorageCapacity s) => VersionConverter.Mapper.Map<V1alpha1CSIStorageCapacity>(s);
|
||||
}
|
||||
public partial class V1beta1CSIStorageCapacity
|
||||
{
|
||||
public static explicit operator V1beta1CSIStorageCapacity(V1alpha1CSIStorageCapacity s) => VersionConverter.Mapper.Map<V1beta1CSIStorageCapacity>(s);
|
||||
}
|
||||
public partial class V1alpha1CSIStorageCapacityList
|
||||
{
|
||||
public static explicit operator V1alpha1CSIStorageCapacityList(V1beta1CSIStorageCapacityList s) => VersionConverter.Mapper.Map<V1alpha1CSIStorageCapacityList>(s);
|
||||
}
|
||||
public partial class V1beta1CSIStorageCapacityList
|
||||
{
|
||||
public static explicit operator V1beta1CSIStorageCapacityList(V1alpha1CSIStorageCapacityList s) => VersionConverter.Mapper.Map<V1beta1CSIStorageCapacityList>(s);
|
||||
}
|
||||
public partial class V1beta1CustomResourceColumnDefinition
|
||||
{
|
||||
public static explicit operator V1beta1CustomResourceColumnDefinition(V1CustomResourceColumnDefinition s) => VersionConverter.Mapper.Map<V1beta1CustomResourceColumnDefinition>(s);
|
||||
@@ -471,13 +487,45 @@ namespace k8s.Models
|
||||
{
|
||||
public static explicit operator V1CustomResourceValidation(V1beta1CustomResourceValidation s) => VersionConverter.Mapper.Map<V1CustomResourceValidation>(s);
|
||||
}
|
||||
public partial class V1beta1EndpointPort
|
||||
public partial class V1beta1Endpoint
|
||||
{
|
||||
public static explicit operator V1beta1EndpointPort(V1EndpointPort s) => VersionConverter.Mapper.Map<V1beta1EndpointPort>(s);
|
||||
public static explicit operator V1beta1Endpoint(V1Endpoint s) => VersionConverter.Mapper.Map<V1beta1Endpoint>(s);
|
||||
}
|
||||
public partial class V1EndpointPort
|
||||
public partial class V1Endpoint
|
||||
{
|
||||
public static explicit operator V1EndpointPort(V1beta1EndpointPort s) => VersionConverter.Mapper.Map<V1EndpointPort>(s);
|
||||
public static explicit operator V1Endpoint(V1beta1Endpoint s) => VersionConverter.Mapper.Map<V1Endpoint>(s);
|
||||
}
|
||||
public partial class V1beta1EndpointConditions
|
||||
{
|
||||
public static explicit operator V1beta1EndpointConditions(V1EndpointConditions s) => VersionConverter.Mapper.Map<V1beta1EndpointConditions>(s);
|
||||
}
|
||||
public partial class V1EndpointConditions
|
||||
{
|
||||
public static explicit operator V1EndpointConditions(V1beta1EndpointConditions s) => VersionConverter.Mapper.Map<V1EndpointConditions>(s);
|
||||
}
|
||||
public partial class V1beta1EndpointHints
|
||||
{
|
||||
public static explicit operator V1beta1EndpointHints(V1EndpointHints s) => VersionConverter.Mapper.Map<V1beta1EndpointHints>(s);
|
||||
}
|
||||
public partial class V1EndpointHints
|
||||
{
|
||||
public static explicit operator V1EndpointHints(V1beta1EndpointHints s) => VersionConverter.Mapper.Map<V1EndpointHints>(s);
|
||||
}
|
||||
public partial class V1beta1EndpointSlice
|
||||
{
|
||||
public static explicit operator V1beta1EndpointSlice(V1EndpointSlice s) => VersionConverter.Mapper.Map<V1beta1EndpointSlice>(s);
|
||||
}
|
||||
public partial class V1EndpointSlice
|
||||
{
|
||||
public static explicit operator V1EndpointSlice(V1beta1EndpointSlice s) => VersionConverter.Mapper.Map<V1EndpointSlice>(s);
|
||||
}
|
||||
public partial class V1beta1EndpointSliceList
|
||||
{
|
||||
public static explicit operator V1beta1EndpointSliceList(V1EndpointSliceList s) => VersionConverter.Mapper.Map<V1beta1EndpointSliceList>(s);
|
||||
}
|
||||
public partial class V1EndpointSliceList
|
||||
{
|
||||
public static explicit operator V1EndpointSliceList(V1beta1EndpointSliceList s) => VersionConverter.Mapper.Map<V1EndpointSliceList>(s);
|
||||
}
|
||||
public partial class V1beta1ExternalDocumentation
|
||||
{
|
||||
@@ -503,69 +551,13 @@ namespace k8s.Models
|
||||
{
|
||||
public static explicit operator V2beta2ExternalMetricStatus(V2beta1ExternalMetricStatus s) => VersionConverter.Mapper.Map<V2beta2ExternalMetricStatus>(s);
|
||||
}
|
||||
public partial class Flowcontrolv1alpha1Subject
|
||||
public partial class V1beta1ForZone
|
||||
{
|
||||
public static explicit operator Flowcontrolv1alpha1Subject(Flowcontrolv1beta1Subject s) => VersionConverter.Mapper.Map<Flowcontrolv1alpha1Subject>(s);
|
||||
public static explicit operator V1beta1ForZone(V1ForZone s) => VersionConverter.Mapper.Map<V1beta1ForZone>(s);
|
||||
}
|
||||
public partial class Flowcontrolv1beta1Subject
|
||||
public partial class V1ForZone
|
||||
{
|
||||
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 static explicit operator V1ForZone(V1beta1ForZone s) => VersionConverter.Mapper.Map<V1ForZone>(s);
|
||||
}
|
||||
public partial class V1HorizontalPodAutoscaler
|
||||
{
|
||||
@@ -687,6 +679,14 @@ namespace k8s.Models
|
||||
{
|
||||
public static explicit operator V1IngressClassList(V1beta1IngressClassList s) => VersionConverter.Mapper.Map<V1IngressClassList>(s);
|
||||
}
|
||||
public partial class V1beta1IngressClassParametersReference
|
||||
{
|
||||
public static explicit operator V1beta1IngressClassParametersReference(V1IngressClassParametersReference s) => VersionConverter.Mapper.Map<V1beta1IngressClassParametersReference>(s);
|
||||
}
|
||||
public partial class V1IngressClassParametersReference
|
||||
{
|
||||
public static explicit operator V1IngressClassParametersReference(V1beta1IngressClassParametersReference s) => VersionConverter.Mapper.Map<V1IngressClassParametersReference>(s);
|
||||
}
|
||||
public partial class V1beta1IngressClassSpec
|
||||
{
|
||||
public static explicit operator V1beta1IngressClassSpec(V1IngressClassSpec s) => VersionConverter.Mapper.Map<V1beta1IngressClassSpec>(s);
|
||||
@@ -697,11 +697,11 @@ namespace k8s.Models
|
||||
}
|
||||
public partial class V1beta1JobTemplateSpec
|
||||
{
|
||||
public static explicit operator V1beta1JobTemplateSpec(V2alpha1JobTemplateSpec s) => VersionConverter.Mapper.Map<V1beta1JobTemplateSpec>(s);
|
||||
public static explicit operator V1beta1JobTemplateSpec(V1JobTemplateSpec s) => VersionConverter.Mapper.Map<V1beta1JobTemplateSpec>(s);
|
||||
}
|
||||
public partial class V2alpha1JobTemplateSpec
|
||||
public partial class V1JobTemplateSpec
|
||||
{
|
||||
public static explicit operator V2alpha1JobTemplateSpec(V1beta1JobTemplateSpec s) => VersionConverter.Mapper.Map<V2alpha1JobTemplateSpec>(s);
|
||||
public static explicit operator V1JobTemplateSpec(V1beta1JobTemplateSpec s) => VersionConverter.Mapper.Map<V1JobTemplateSpec>(s);
|
||||
}
|
||||
public partial class V1beta1JSONSchemaProps
|
||||
{
|
||||
@@ -735,22 +735,6 @@ 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);
|
||||
@@ -807,14 +791,6 @@ 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);
|
||||
@@ -863,6 +839,38 @@ namespace k8s.Models
|
||||
{
|
||||
public static explicit operator V1Overhead(V1beta1Overhead s) => VersionConverter.Mapper.Map<V1Overhead>(s);
|
||||
}
|
||||
public partial class V1beta1PodDisruptionBudget
|
||||
{
|
||||
public static explicit operator V1beta1PodDisruptionBudget(V1PodDisruptionBudget s) => VersionConverter.Mapper.Map<V1beta1PodDisruptionBudget>(s);
|
||||
}
|
||||
public partial class V1PodDisruptionBudget
|
||||
{
|
||||
public static explicit operator V1PodDisruptionBudget(V1beta1PodDisruptionBudget s) => VersionConverter.Mapper.Map<V1PodDisruptionBudget>(s);
|
||||
}
|
||||
public partial class V1beta1PodDisruptionBudgetList
|
||||
{
|
||||
public static explicit operator V1beta1PodDisruptionBudgetList(V1PodDisruptionBudgetList s) => VersionConverter.Mapper.Map<V1beta1PodDisruptionBudgetList>(s);
|
||||
}
|
||||
public partial class V1PodDisruptionBudgetList
|
||||
{
|
||||
public static explicit operator V1PodDisruptionBudgetList(V1beta1PodDisruptionBudgetList s) => VersionConverter.Mapper.Map<V1PodDisruptionBudgetList>(s);
|
||||
}
|
||||
public partial class V1beta1PodDisruptionBudgetSpec
|
||||
{
|
||||
public static explicit operator V1beta1PodDisruptionBudgetSpec(V1PodDisruptionBudgetSpec s) => VersionConverter.Mapper.Map<V1beta1PodDisruptionBudgetSpec>(s);
|
||||
}
|
||||
public partial class V1PodDisruptionBudgetSpec
|
||||
{
|
||||
public static explicit operator V1PodDisruptionBudgetSpec(V1beta1PodDisruptionBudgetSpec s) => VersionConverter.Mapper.Map<V1PodDisruptionBudgetSpec>(s);
|
||||
}
|
||||
public partial class V1beta1PodDisruptionBudgetStatus
|
||||
{
|
||||
public static explicit operator V1beta1PodDisruptionBudgetStatus(V1PodDisruptionBudgetStatus s) => VersionConverter.Mapper.Map<V1beta1PodDisruptionBudgetStatus>(s);
|
||||
}
|
||||
public partial class V1PodDisruptionBudgetStatus
|
||||
{
|
||||
public static explicit operator V1PodDisruptionBudgetStatus(V1beta1PodDisruptionBudgetStatus s) => VersionConverter.Mapper.Map<V1PodDisruptionBudgetStatus>(s);
|
||||
}
|
||||
public partial class V2beta1PodsMetricSource
|
||||
{
|
||||
public static explicit operator V2beta1PodsMetricSource(V2beta2PodsMetricSource s) => VersionConverter.Mapper.Map<V2beta1PodsMetricSource>(s);
|
||||
@@ -903,14 +911,6 @@ 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);
|
||||
@@ -959,70 +959,6 @@ 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);
|
||||
@@ -1047,14 +983,6 @@ 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);
|
||||
@@ -1295,14 +1223,6 @@ 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);
|
||||
@@ -1319,6 +1239,14 @@ namespace k8s.Models
|
||||
{
|
||||
public static explicit operator V1StorageClassList(V1beta1StorageClassList s) => VersionConverter.Mapper.Map<V1StorageClassList>(s);
|
||||
}
|
||||
public partial class V1alpha1Subject
|
||||
{
|
||||
public static explicit operator V1alpha1Subject(V1Subject s) => VersionConverter.Mapper.Map<V1alpha1Subject>(s);
|
||||
}
|
||||
public partial class V1Subject
|
||||
{
|
||||
public static explicit operator V1Subject(V1alpha1Subject s) => VersionConverter.Mapper.Map<V1Subject>(s);
|
||||
}
|
||||
public partial class V1beta1SubjectAccessReview
|
||||
{
|
||||
public static explicit operator V1beta1SubjectAccessReview(V1SubjectAccessReview s) => VersionConverter.Mapper.Map<V1beta1SubjectAccessReview>(s);
|
||||
@@ -1383,14 +1311,6 @@ 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);
|
||||
|
||||
@@ -12,18 +12,18 @@ namespace k8s.Models
|
||||
/// <summary>
|
||||
/// EndpointPort is a tuple that describes a single port.
|
||||
/// </summary>
|
||||
public partial class V1EndpointPort
|
||||
public partial class Corev1EndpointPort
|
||||
{
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the V1EndpointPort class.
|
||||
/// Initializes a new instance of the Corev1EndpointPort class.
|
||||
/// </summary>
|
||||
public V1EndpointPort()
|
||||
public Corev1EndpointPort()
|
||||
{
|
||||
CustomInit();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the V1EndpointPort class.
|
||||
/// Initializes a new instance of the Corev1EndpointPort class.
|
||||
/// </summary>
|
||||
/// <param name="port">The port number of the endpoint.</param>
|
||||
/// <param name="appProtocol">The application protocol for this port.
|
||||
@@ -39,7 +39,7 @@ namespace k8s.Models
|
||||
/// Optional only if one port is defined.</param>
|
||||
/// <param name="protocol">The IP protocol for this port. Must be UDP,
|
||||
/// TCP, or SCTP. Default is TCP.</param>
|
||||
public V1EndpointPort(int port, string appProtocol = default(string), string name = default(string), string protocol = default(string))
|
||||
public Corev1EndpointPort(int port, string appProtocol = default(string), string name = default(string), string protocol = default(string))
|
||||
{
|
||||
AppProtocol = appProtocol;
|
||||
Name = name;
|
||||
100
src/KubernetesClient/generated/Models/Discoveryv1EndpointPort.cs
generated
Normal file
100
src/KubernetesClient/generated/Models/Discoveryv1EndpointPort.cs
generated
Normal file
@@ -0,0 +1,100 @@
|
||||
// <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>
|
||||
/// EndpointPort represents a Port used by an EndpointSlice
|
||||
/// </summary>
|
||||
public partial class Discoveryv1EndpointPort
|
||||
{
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the Discoveryv1EndpointPort class.
|
||||
/// </summary>
|
||||
public Discoveryv1EndpointPort()
|
||||
{
|
||||
CustomInit();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the Discoveryv1EndpointPort class.
|
||||
/// </summary>
|
||||
/// <param name="appProtocol">The application protocol for this port.
|
||||
/// This field follows standard Kubernetes label syntax. Un-prefixed
|
||||
/// names are reserved for IANA standard service names (as per RFC-6335
|
||||
/// and http://www.iana.org/assignments/service-names). Non-standard
|
||||
/// protocols should use prefixed names such as
|
||||
/// mycompany.com/my-custom-protocol.</param>
|
||||
/// <param name="name">The name of this port. All ports in an
|
||||
/// EndpointSlice must have a unique name. If the EndpointSlice is
|
||||
/// dervied from a Kubernetes service, this corresponds to the
|
||||
/// Service.ports[].name. Name must either be an empty string or pass
|
||||
/// DNS_LABEL validation: * must be no more than 63 characters long. *
|
||||
/// must consist of lower case alphanumeric characters or '-'. * must
|
||||
/// start and end with an alphanumeric character. Default is empty
|
||||
/// string.</param>
|
||||
/// <param name="port">The port number of the endpoint. If this is not
|
||||
/// specified, ports are not restricted and must be interpreted in the
|
||||
/// context of the specific consumer.</param>
|
||||
/// <param name="protocol">The IP protocol for this port. Must be UDP,
|
||||
/// TCP, or SCTP. Default is TCP.</param>
|
||||
public Discoveryv1EndpointPort(string appProtocol = default(string), string name = default(string), int? port = default(int?), string protocol = default(string))
|
||||
{
|
||||
AppProtocol = appProtocol;
|
||||
Name = name;
|
||||
Port = port;
|
||||
Protocol = protocol;
|
||||
CustomInit();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// An initialization method that performs custom operations like setting defaults
|
||||
/// </summary>
|
||||
partial void CustomInit();
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the application protocol for this port. This field
|
||||
/// follows standard Kubernetes label syntax. Un-prefixed names are
|
||||
/// reserved for IANA standard service names (as per RFC-6335 and
|
||||
/// http://www.iana.org/assignments/service-names). Non-standard
|
||||
/// protocols should use prefixed names such as
|
||||
/// mycompany.com/my-custom-protocol.
|
||||
/// </summary>
|
||||
[JsonProperty(PropertyName = "appProtocol")]
|
||||
public string AppProtocol { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the name of this port. All ports in an EndpointSlice
|
||||
/// must have a unique name. If the EndpointSlice is dervied from a
|
||||
/// Kubernetes service, this corresponds to the Service.ports[].name.
|
||||
/// Name must either be an empty string or pass DNS_LABEL validation: *
|
||||
/// must be no more than 63 characters long. * must consist of lower
|
||||
/// case alphanumeric characters or '-'. * must start and end with an
|
||||
/// alphanumeric character. Default is empty string.
|
||||
/// </summary>
|
||||
[JsonProperty(PropertyName = "name")]
|
||||
public string Name { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the port number of the endpoint. If this is not
|
||||
/// specified, ports are not restricted and must be interpreted in the
|
||||
/// context of the specific consumer.
|
||||
/// </summary>
|
||||
[JsonProperty(PropertyName = "port")]
|
||||
public int? Port { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the IP protocol for this port. Must be UDP, TCP, or
|
||||
/// SCTP. Default is TCP.
|
||||
/// </summary>
|
||||
[JsonProperty(PropertyName = "protocol")]
|
||||
public string Protocol { get; set; }
|
||||
|
||||
}
|
||||
}
|
||||
@@ -6,7 +6,6 @@
|
||||
|
||||
namespace k8s.Models
|
||||
{
|
||||
using Microsoft.Rest;
|
||||
using Newtonsoft.Json;
|
||||
using System.Linq;
|
||||
|
||||
@@ -60,6 +59,8 @@ 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>
|
||||
/// <param name="metadata">Standard object's metadata. More info:
|
||||
/// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata</param>
|
||||
/// <param name="note">note is a human-readable description of the
|
||||
/// status of this operation. Maximal length of the note is 1kB, but
|
||||
/// libraries should be prepared to handle values up to 64kB.</param>
|
||||
@@ -88,7 +89,7 @@ namespace k8s.Models
|
||||
/// Warning), new types could be added in the future. It is
|
||||
/// 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))
|
||||
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))
|
||||
{
|
||||
Action = action;
|
||||
ApiVersion = apiVersion;
|
||||
@@ -179,6 +180,8 @@ namespace k8s.Models
|
||||
public string Kind { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets 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; }
|
||||
@@ -250,15 +253,11 @@ namespace k8s.Models
|
||||
/// <summary>
|
||||
/// Validate the object.
|
||||
/// </summary>
|
||||
/// <exception cref="ValidationException">
|
||||
/// <exception cref="Microsoft.Rest.ValidationException">
|
||||
/// Thrown if validation fails
|
||||
/// </exception>
|
||||
public virtual void Validate()
|
||||
{
|
||||
if (Metadata == null)
|
||||
{
|
||||
throw new ValidationException(ValidationRules.CannotBeNull, "Metadata");
|
||||
}
|
||||
if (Series != null)
|
||||
{
|
||||
Series.Validate();
|
||||
|
||||
@@ -1,93 +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 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 Flowcontrolv1alpha1Subject
|
||||
{
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the Flowcontrolv1alpha1Subject class.
|
||||
/// </summary>
|
||||
public Flowcontrolv1alpha1Subject()
|
||||
{
|
||||
CustomInit();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the Flowcontrolv1alpha1Subject class.
|
||||
/// </summary>
|
||||
/// <param name="kind">Required</param>
|
||||
public Flowcontrolv1alpha1Subject(string kind, V1alpha1GroupSubject group = default(V1alpha1GroupSubject), V1alpha1ServiceAccountSubject serviceAccount = default(V1alpha1ServiceAccountSubject), V1alpha1UserSubject user = default(V1alpha1UserSubject))
|
||||
{
|
||||
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 V1alpha1GroupSubject Group { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets required
|
||||
/// </summary>
|
||||
[JsonProperty(PropertyName = "kind")]
|
||||
public string Kind { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// </summary>
|
||||
[JsonProperty(PropertyName = "serviceAccount")]
|
||||
public V1alpha1ServiceAccountSubject ServiceAccount { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// </summary>
|
||||
[JsonProperty(PropertyName = "user")]
|
||||
public V1alpha1UserSubject 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();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -37,13 +37,16 @@ namespace k8s.Models
|
||||
/// the volumeattachment status when the attach operation is complete.
|
||||
/// If the CSIDriverRegistry feature gate is enabled and the value is
|
||||
/// specified to false, the attach operation will be skipped. Otherwise
|
||||
/// the attach operation will be called.</param>
|
||||
/// the attach operation will be called.
|
||||
///
|
||||
/// This field is immutable.</param>
|
||||
/// <param name="fsGroupPolicy">Defines if the underlying volume
|
||||
/// supports changing ownership and permission of the volume before
|
||||
/// being mounted. Refer to the specific FSGroupPolicy values for
|
||||
/// additional details. This field is alpha-level, and is only honored
|
||||
/// by servers that enable the CSIVolumeFSGroupPolicy feature
|
||||
/// gate.</param>
|
||||
/// by servers that enable the CSIVolumeFSGroupPolicy feature gate.
|
||||
///
|
||||
/// This field is immutable.</param>
|
||||
/// <param name="podInfoOnMount">If set to true, podInfoOnMount
|
||||
/// indicates this CSI volume driver requires additional pod
|
||||
/// information (like podName, podUID, etc.) during mount operations.
|
||||
@@ -57,7 +60,7 @@ namespace k8s.Models
|
||||
/// will be used. "csi.storage.k8s.io/pod.name": pod.Name
|
||||
/// "csi.storage.k8s.io/pod.namespace": pod.Namespace
|
||||
/// "csi.storage.k8s.io/pod.uid": string(pod.UID)
|
||||
/// "csi.storage.k8s.io/ephemeral": "true" iff the volume is an
|
||||
/// "csi.storage.k8s.io/ephemeral": "true" if the volume is an
|
||||
/// ephemeral inline volume
|
||||
/// defined by a CSIVolumeSource, otherwise "false"
|
||||
///
|
||||
@@ -67,7 +70,9 @@ namespace k8s.Models
|
||||
/// info disabled and/or ignore this field. As Kubernetes 1.15 doesn't
|
||||
/// 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>
|
||||
/// for example via a command line parameter of the driver.
|
||||
///
|
||||
/// This field is immutable.</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
|
||||
@@ -77,7 +82,7 @@ namespace k8s.Models
|
||||
/// 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
|
||||
/// This is a beta 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
|
||||
@@ -94,9 +99,10 @@ namespace k8s.Models
|
||||
/// false and it can be flipped later when storage capacity information
|
||||
/// has been published.
|
||||
///
|
||||
/// This is an alpha field and only available when the
|
||||
/// CSIStorageCapacity feature is enabled. The default is
|
||||
/// false.</param>
|
||||
/// This field is immutable.
|
||||
///
|
||||
/// This is a beta 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
|
||||
@@ -115,7 +121,7 @@ namespace k8s.Models
|
||||
/// RequiresRepublish can be used to trigger NodePublishVolume
|
||||
/// periodically.
|
||||
///
|
||||
/// This is an alpha feature and only available when the
|
||||
/// This is a beta 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
|
||||
@@ -129,7 +135,9 @@ namespace k8s.Models
|
||||
/// about implementing this mode, see
|
||||
/// 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>
|
||||
/// be added in the future. This field is beta.
|
||||
///
|
||||
/// This field is immutable.</param>
|
||||
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;
|
||||
@@ -159,6 +167,8 @@ namespace k8s.Models
|
||||
/// CSIDriverRegistry feature gate is enabled and the value is
|
||||
/// specified to false, the attach operation will be skipped. Otherwise
|
||||
/// the attach operation will be called.
|
||||
///
|
||||
/// This field is immutable.
|
||||
/// </summary>
|
||||
[JsonProperty(PropertyName = "attachRequired")]
|
||||
public bool? AttachRequired { get; set; }
|
||||
@@ -169,6 +179,8 @@ namespace k8s.Models
|
||||
/// to the specific FSGroupPolicy values for additional details. This
|
||||
/// field is alpha-level, and is only honored by servers that enable
|
||||
/// the CSIVolumeFSGroupPolicy feature gate.
|
||||
///
|
||||
/// This field is immutable.
|
||||
/// </summary>
|
||||
[JsonProperty(PropertyName = "fsGroupPolicy")]
|
||||
public string FsGroupPolicy { get; set; }
|
||||
@@ -187,7 +199,7 @@ namespace k8s.Models
|
||||
/// "csi.storage.k8s.io/pod.name": pod.Name
|
||||
/// "csi.storage.k8s.io/pod.namespace": pod.Namespace
|
||||
/// "csi.storage.k8s.io/pod.uid": string(pod.UID)
|
||||
/// "csi.storage.k8s.io/ephemeral": "true" iff the volume is an
|
||||
/// "csi.storage.k8s.io/ephemeral": "true" if the volume is an
|
||||
/// ephemeral inline volume
|
||||
/// defined by a CSIVolumeSource, otherwise "false"
|
||||
///
|
||||
@@ -198,6 +210,8 @@ 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.
|
||||
///
|
||||
/// This field is immutable.
|
||||
/// </summary>
|
||||
[JsonProperty(PropertyName = "podInfoOnMount")]
|
||||
public bool? PodInfoOnMount { get; set; }
|
||||
@@ -212,7 +226,7 @@ namespace k8s.Models
|
||||
/// 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
|
||||
/// This is a beta feature and only available when the
|
||||
/// CSIServiceAccountToken feature is enabled.
|
||||
/// </summary>
|
||||
[JsonProperty(PropertyName = "requiresRepublish")]
|
||||
@@ -233,8 +247,10 @@ namespace k8s.Models
|
||||
/// false and it can be flipped later when storage capacity information
|
||||
/// has been published.
|
||||
///
|
||||
/// This is an alpha field and only available when the
|
||||
/// CSIStorageCapacity feature is enabled. The default is false.
|
||||
/// This field is immutable.
|
||||
///
|
||||
/// This is a beta field and only available when the CSIStorageCapacity
|
||||
/// feature is enabled. The default is false.
|
||||
/// </summary>
|
||||
[JsonProperty(PropertyName = "storageCapacity")]
|
||||
public bool? StorageCapacity { get; set; }
|
||||
@@ -259,7 +275,7 @@ namespace k8s.Models
|
||||
/// RequiresRepublish can be used to trigger NodePublishVolume
|
||||
/// periodically.
|
||||
///
|
||||
/// This is an alpha feature and only available when the
|
||||
/// This is a beta feature and only available when the
|
||||
/// CSIServiceAccountToken feature is enabled.
|
||||
/// </summary>
|
||||
[JsonProperty(PropertyName = "tokenRequests")]
|
||||
@@ -278,6 +294,8 @@ 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.
|
||||
///
|
||||
/// This field is immutable.
|
||||
/// </summary>
|
||||
[JsonProperty(PropertyName = "volumeLifecycleModes")]
|
||||
public IList<string> VolumeLifecycleModes { get; set; }
|
||||
|
||||
@@ -47,8 +47,7 @@ namespace k8s.Models
|
||||
/// <param name="immutable">Immutable, if set to true, ensures that
|
||||
/// data stored in the ConfigMap cannot be updated (only object
|
||||
/// metadata can be modified). If not set to true, the field can be
|
||||
/// modified at any time. Defaulted to nil. This is a beta field
|
||||
/// enabled by ImmutableEphemeralVolumes feature gate.</param>
|
||||
/// modified at any time. Defaulted to nil.</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
|
||||
@@ -107,8 +106,7 @@ namespace k8s.Models
|
||||
/// Gets or sets immutable, if set to true, ensures that data stored in
|
||||
/// the ConfigMap cannot be updated (only object metadata can be
|
||||
/// modified). If not set to true, the field can be modified at any
|
||||
/// time. Defaulted to nil. This is a beta field enabled by
|
||||
/// ImmutableEphemeralVolumes feature gate.
|
||||
/// time. Defaulted to nil.
|
||||
/// </summary>
|
||||
[JsonProperty(PropertyName = "immutable")]
|
||||
public bool? Immutable { get; set; }
|
||||
|
||||
@@ -87,7 +87,7 @@ namespace k8s.Models
|
||||
/// https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes</param>
|
||||
/// <param name="resources">Compute Resources required by this
|
||||
/// container. Cannot be updated. More info:
|
||||
/// https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/</param>
|
||||
/// https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/</param>
|
||||
/// <param name="securityContext">Security options the pod should run
|
||||
/// with. More info:
|
||||
/// https://kubernetes.io/docs/concepts/policy/security-context/ More
|
||||
@@ -286,7 +286,7 @@ namespace k8s.Models
|
||||
/// <summary>
|
||||
/// Gets or sets compute Resources required by this container. Cannot
|
||||
/// be updated. More info:
|
||||
/// https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/
|
||||
/// https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/
|
||||
/// </summary>
|
||||
[JsonProperty(PropertyName = "resources")]
|
||||
public V1ResourceRequirements Resources { get; set; }
|
||||
|
||||
@@ -12,18 +12,18 @@ namespace k8s.Models
|
||||
/// <summary>
|
||||
/// CronJob represents the configuration of a single cron job.
|
||||
/// </summary>
|
||||
public partial class V2alpha1CronJob
|
||||
public partial class V1CronJob
|
||||
{
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the V2alpha1CronJob class.
|
||||
/// Initializes a new instance of the V1CronJob class.
|
||||
/// </summary>
|
||||
public V2alpha1CronJob()
|
||||
public V1CronJob()
|
||||
{
|
||||
CustomInit();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the V2alpha1CronJob class.
|
||||
/// Initializes a new instance of the V1CronJob class.
|
||||
/// </summary>
|
||||
/// <param name="apiVersion">APIVersion defines the versioned schema of
|
||||
/// this representation of an object. Servers should convert recognized
|
||||
@@ -42,7 +42,7 @@ namespace k8s.Models
|
||||
/// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status</param>
|
||||
/// <param name="status">Current status of a cron job. More info:
|
||||
/// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status</param>
|
||||
public V2alpha1CronJob(string apiVersion = default(string), string kind = default(string), V1ObjectMeta metadata = default(V1ObjectMeta), V2alpha1CronJobSpec spec = default(V2alpha1CronJobSpec), V2alpha1CronJobStatus status = default(V2alpha1CronJobStatus))
|
||||
public V1CronJob(string apiVersion = default(string), string kind = default(string), V1ObjectMeta metadata = default(V1ObjectMeta), V1CronJobSpec spec = default(V1CronJobSpec), V1CronJobStatus status = default(V1CronJobStatus))
|
||||
{
|
||||
ApiVersion = apiVersion;
|
||||
Kind = kind;
|
||||
@@ -90,14 +90,14 @@ namespace k8s.Models
|
||||
/// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
|
||||
/// </summary>
|
||||
[JsonProperty(PropertyName = "spec")]
|
||||
public V2alpha1CronJobSpec Spec { get; set; }
|
||||
public V1CronJobSpec Spec { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets current status of a cron job. More info:
|
||||
/// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
|
||||
/// </summary>
|
||||
[JsonProperty(PropertyName = "status")]
|
||||
public V2alpha1CronJobStatus Status { get; set; }
|
||||
public V1CronJobStatus Status { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Validate the object.
|
||||
@@ -15,18 +15,18 @@ namespace k8s.Models
|
||||
/// <summary>
|
||||
/// CronJobList is a collection of cron jobs.
|
||||
/// </summary>
|
||||
public partial class V2alpha1CronJobList
|
||||
public partial class V1CronJobList
|
||||
{
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the V2alpha1CronJobList class.
|
||||
/// Initializes a new instance of the V1CronJobList class.
|
||||
/// </summary>
|
||||
public V2alpha1CronJobList()
|
||||
public V1CronJobList()
|
||||
{
|
||||
CustomInit();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the V2alpha1CronJobList class.
|
||||
/// Initializes a new instance of the V1CronJobList class.
|
||||
/// </summary>
|
||||
/// <param name="items">items is the list of CronJobs.</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 V2alpha1CronJobList(IList<V2alpha1CronJob> items, string apiVersion = default(string), string kind = default(string), V1ListMeta metadata = default(V1ListMeta))
|
||||
public V1CronJobList(IList<V1CronJob> 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 the list of CronJobs.
|
||||
/// </summary>
|
||||
[JsonProperty(PropertyName = "items")]
|
||||
public IList<V2alpha1CronJob> Items { get; set; }
|
||||
public IList<V1CronJob> Items { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets kind is a string value representing the REST resource
|
||||
@@ -14,18 +14,18 @@ namespace k8s.Models
|
||||
/// CronJobSpec describes how the job execution will look like and when it
|
||||
/// will actually run.
|
||||
/// </summary>
|
||||
public partial class V2alpha1CronJobSpec
|
||||
public partial class V1CronJobSpec
|
||||
{
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the V2alpha1CronJobSpec class.
|
||||
/// Initializes a new instance of the V1CronJobSpec class.
|
||||
/// </summary>
|
||||
public V2alpha1CronJobSpec()
|
||||
public V1CronJobSpec()
|
||||
{
|
||||
CustomInit();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the V2alpha1CronJobSpec class.
|
||||
/// Initializes a new instance of the V1CronJobSpec class.
|
||||
/// </summary>
|
||||
/// <param name="jobTemplate">Specifies the job that will be created
|
||||
/// when executing a CronJob.</param>
|
||||
@@ -38,18 +38,18 @@ namespace k8s.Models
|
||||
/// cancels currently running job and replaces it with a new
|
||||
/// one</param>
|
||||
/// <param name="failedJobsHistoryLimit">The number of failed finished
|
||||
/// jobs to retain. This is a pointer to distinguish between explicit
|
||||
/// zero and not specified.</param>
|
||||
/// jobs to retain. Value must be non-negative integer. Defaults to
|
||||
/// 1.</param>
|
||||
/// <param name="startingDeadlineSeconds">Optional deadline in seconds
|
||||
/// for starting the job if it misses scheduled time for any reason.
|
||||
/// Missed jobs executions will be counted as failed ones.</param>
|
||||
/// <param name="successfulJobsHistoryLimit">The number of successful
|
||||
/// finished jobs to retain. This is a pointer to distinguish between
|
||||
/// explicit zero and not specified.</param>
|
||||
/// finished jobs to retain. Value must be non-negative integer.
|
||||
/// Defaults to 3.</param>
|
||||
/// <param name="suspend">This flag tells the controller to suspend
|
||||
/// subsequent executions, it does not apply to already started
|
||||
/// executions. Defaults to false.</param>
|
||||
public V2alpha1CronJobSpec(V2alpha1JobTemplateSpec jobTemplate, string schedule, string concurrencyPolicy = default(string), int? failedJobsHistoryLimit = default(int?), long? startingDeadlineSeconds = default(long?), int? successfulJobsHistoryLimit = default(int?), bool? suspend = default(bool?))
|
||||
public V1CronJobSpec(V1JobTemplateSpec jobTemplate, string schedule, string concurrencyPolicy = default(string), int? failedJobsHistoryLimit = default(int?), long? startingDeadlineSeconds = default(long?), int? successfulJobsHistoryLimit = default(int?), bool? suspend = default(bool?))
|
||||
{
|
||||
ConcurrencyPolicy = concurrencyPolicy;
|
||||
FailedJobsHistoryLimit = failedJobsHistoryLimit;
|
||||
@@ -77,8 +77,8 @@ namespace k8s.Models
|
||||
public string ConcurrencyPolicy { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the number of failed finished jobs to retain. This is
|
||||
/// a pointer to distinguish between explicit zero and not specified.
|
||||
/// Gets or sets the number of failed finished jobs to retain. Value
|
||||
/// must be non-negative integer. Defaults to 1.
|
||||
/// </summary>
|
||||
[JsonProperty(PropertyName = "failedJobsHistoryLimit")]
|
||||
public int? FailedJobsHistoryLimit { get; set; }
|
||||
@@ -88,7 +88,7 @@ namespace k8s.Models
|
||||
/// a CronJob.
|
||||
/// </summary>
|
||||
[JsonProperty(PropertyName = "jobTemplate")]
|
||||
public V2alpha1JobTemplateSpec JobTemplate { get; set; }
|
||||
public V1JobTemplateSpec JobTemplate { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the schedule in Cron format, see
|
||||
@@ -106,9 +106,8 @@ namespace k8s.Models
|
||||
public long? StartingDeadlineSeconds { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the number of successful finished jobs to retain. This
|
||||
/// is a pointer to distinguish between explicit zero and not
|
||||
/// specified.
|
||||
/// Gets or sets the number of successful finished jobs to retain.
|
||||
/// Value must be non-negative integer. Defaults to 3.
|
||||
/// </summary>
|
||||
[JsonProperty(PropertyName = "successfulJobsHistoryLimit")]
|
||||
public int? SuccessfulJobsHistoryLimit { get; set; }
|
||||
@@ -14,27 +14,30 @@ namespace k8s.Models
|
||||
/// <summary>
|
||||
/// CronJobStatus represents the current state of a cron job.
|
||||
/// </summary>
|
||||
public partial class V2alpha1CronJobStatus
|
||||
public partial class V1CronJobStatus
|
||||
{
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the V2alpha1CronJobStatus class.
|
||||
/// Initializes a new instance of the V1CronJobStatus class.
|
||||
/// </summary>
|
||||
public V2alpha1CronJobStatus()
|
||||
public V1CronJobStatus()
|
||||
{
|
||||
CustomInit();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the V2alpha1CronJobStatus class.
|
||||
/// Initializes a new instance of the V1CronJobStatus class.
|
||||
/// </summary>
|
||||
/// <param name="active">A list of pointers to currently running
|
||||
/// jobs.</param>
|
||||
/// <param name="lastScheduleTime">Information when was the last time
|
||||
/// the job was successfully scheduled.</param>
|
||||
public V2alpha1CronJobStatus(IList<V1ObjectReference> active = default(IList<V1ObjectReference>), System.DateTime? lastScheduleTime = default(System.DateTime?))
|
||||
/// <param name="lastSuccessfulTime">Information when was the last time
|
||||
/// the job successfully completed.</param>
|
||||
public V1CronJobStatus(IList<V1ObjectReference> active = default(IList<V1ObjectReference>), System.DateTime? lastScheduleTime = default(System.DateTime?), System.DateTime? lastSuccessfulTime = default(System.DateTime?))
|
||||
{
|
||||
Active = active;
|
||||
LastScheduleTime = lastScheduleTime;
|
||||
LastSuccessfulTime = lastSuccessfulTime;
|
||||
CustomInit();
|
||||
}
|
||||
|
||||
@@ -56,5 +59,12 @@ namespace k8s.Models
|
||||
[JsonProperty(PropertyName = "lastScheduleTime")]
|
||||
public System.DateTime? LastScheduleTime { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets information when was the last time the job
|
||||
/// successfully completed.
|
||||
/// </summary>
|
||||
[JsonProperty(PropertyName = "lastSuccessfulTime")]
|
||||
public System.DateTime? LastSuccessfulTime { get; set; }
|
||||
|
||||
}
|
||||
}
|
||||
161
src/KubernetesClient/generated/Models/V1Endpoint.cs
generated
Normal file
161
src/KubernetesClient/generated/Models/V1Endpoint.cs
generated
Normal file
@@ -0,0 +1,161 @@
|
||||
// <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>
|
||||
/// Endpoint represents a single logical "backend" implementing a service.
|
||||
/// </summary>
|
||||
public partial class V1Endpoint
|
||||
{
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the V1Endpoint class.
|
||||
/// </summary>
|
||||
public V1Endpoint()
|
||||
{
|
||||
CustomInit();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the V1Endpoint class.
|
||||
/// </summary>
|
||||
/// <param name="addresses">addresses of this endpoint. The contents of
|
||||
/// this field are interpreted according to the corresponding
|
||||
/// EndpointSlice addressType field. Consumers must handle different
|
||||
/// types of addresses in the context of their own capabilities. This
|
||||
/// must contain at least one address but no more than 100.</param>
|
||||
/// <param name="conditions">conditions contains information about the
|
||||
/// current status of the endpoint.</param>
|
||||
/// <param name="deprecatedTopology">deprecatedTopology contains
|
||||
/// topology information part of the v1beta1 API. This field is
|
||||
/// deprecated, and will be removed when the v1beta1 API is removed (no
|
||||
/// sooner than kubernetes v1.24). While this field can hold values,
|
||||
/// it is not writable through the v1 API, and any attempts to write to
|
||||
/// it will be silently ignored. Topology information can be found in
|
||||
/// the zone and nodeName fields instead.</param>
|
||||
/// <param name="hints">hints contains information associated with how
|
||||
/// an endpoint should be consumed.</param>
|
||||
/// <param name="hostname">hostname of this endpoint. This field may be
|
||||
/// 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 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="zone">zone is the name of the Zone this endpoint
|
||||
/// exists in.</param>
|
||||
public V1Endpoint(IList<string> addresses, V1EndpointConditions conditions = default(V1EndpointConditions), IDictionary<string, string> deprecatedTopology = default(IDictionary<string, string>), V1EndpointHints hints = default(V1EndpointHints), string hostname = default(string), string nodeName = default(string), V1ObjectReference targetRef = default(V1ObjectReference), string zone = default(string))
|
||||
{
|
||||
Addresses = addresses;
|
||||
Conditions = conditions;
|
||||
DeprecatedTopology = deprecatedTopology;
|
||||
Hints = hints;
|
||||
Hostname = hostname;
|
||||
NodeName = nodeName;
|
||||
TargetRef = targetRef;
|
||||
Zone = zone;
|
||||
CustomInit();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// An initialization method that performs custom operations like setting defaults
|
||||
/// </summary>
|
||||
partial void CustomInit();
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets addresses of this endpoint. The contents of this field
|
||||
/// are interpreted according to the corresponding EndpointSlice
|
||||
/// addressType field. Consumers must handle different types of
|
||||
/// addresses in the context of their own capabilities. This must
|
||||
/// contain at least one address but no more than 100.
|
||||
/// </summary>
|
||||
[JsonProperty(PropertyName = "addresses")]
|
||||
public IList<string> Addresses { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets conditions contains information about the current
|
||||
/// status of the endpoint.
|
||||
/// </summary>
|
||||
[JsonProperty(PropertyName = "conditions")]
|
||||
public V1EndpointConditions Conditions { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets deprecatedTopology contains topology information part
|
||||
/// of the v1beta1 API. This field is deprecated, and will be removed
|
||||
/// when the v1beta1 API is removed (no sooner than kubernetes v1.24).
|
||||
/// While this field can hold values, it is not writable through the v1
|
||||
/// API, and any attempts to write to it will be silently ignored.
|
||||
/// Topology information can be found in the zone and nodeName fields
|
||||
/// instead.
|
||||
/// </summary>
|
||||
[JsonProperty(PropertyName = "deprecatedTopology")]
|
||||
public IDictionary<string, string> DeprecatedTopology { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets hints contains information associated with how an
|
||||
/// endpoint should be consumed.
|
||||
/// </summary>
|
||||
[JsonProperty(PropertyName = "hints")]
|
||||
public V1EndpointHints Hints { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets hostname of this endpoint. This field may be 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
|
||||
/// 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.
|
||||
/// </summary>
|
||||
[JsonProperty(PropertyName = "targetRef")]
|
||||
public V1ObjectReference TargetRef { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets zone is the name of the Zone this endpoint exists in.
|
||||
/// </summary>
|
||||
[JsonProperty(PropertyName = "zone")]
|
||||
public string Zone { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Validate the object.
|
||||
/// </summary>
|
||||
/// <exception cref="ValidationException">
|
||||
/// Thrown if validation fails
|
||||
/// </exception>
|
||||
public virtual void Validate()
|
||||
{
|
||||
if (Addresses == null)
|
||||
{
|
||||
throw new ValidationException(ValidationRules.CannotBeNull, "Addresses");
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
90
src/KubernetesClient/generated/Models/V1EndpointConditions.cs
generated
Normal file
90
src/KubernetesClient/generated/Models/V1EndpointConditions.cs
generated
Normal file
@@ -0,0 +1,90 @@
|
||||
// <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>
|
||||
/// EndpointConditions represents the current condition of an endpoint.
|
||||
/// </summary>
|
||||
public partial class V1EndpointConditions
|
||||
{
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the V1EndpointConditions class.
|
||||
/// </summary>
|
||||
public V1EndpointConditions()
|
||||
{
|
||||
CustomInit();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the V1EndpointConditions class.
|
||||
/// </summary>
|
||||
/// <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. 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 V1EndpointConditions(bool? ready = default(bool?), bool? serving = default(bool?), bool? terminating = default(bool?))
|
||||
{
|
||||
Ready = ready;
|
||||
Serving = serving;
|
||||
Terminating = terminating;
|
||||
CustomInit();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// An initialization method that performs custom operations like setting defaults
|
||||
/// </summary>
|
||||
partial void CustomInit();
|
||||
|
||||
/// <summary>
|
||||
/// 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. 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; }
|
||||
|
||||
}
|
||||
}
|
||||
52
src/KubernetesClient/generated/Models/V1EndpointHints.cs
generated
Normal file
52
src/KubernetesClient/generated/Models/V1EndpointHints.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>
|
||||
/// EndpointHints provides hints describing how an endpoint should be
|
||||
/// consumed.
|
||||
/// </summary>
|
||||
public partial class V1EndpointHints
|
||||
{
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the V1EndpointHints class.
|
||||
/// </summary>
|
||||
public V1EndpointHints()
|
||||
{
|
||||
CustomInit();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the V1EndpointHints class.
|
||||
/// </summary>
|
||||
/// <param name="forZones">forZones indicates the zone(s) this endpoint
|
||||
/// should be consumed by to enable topology aware routing.</param>
|
||||
public V1EndpointHints(IList<V1ForZone> forZones = default(IList<V1ForZone>))
|
||||
{
|
||||
ForZones = forZones;
|
||||
CustomInit();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// An initialization method that performs custom operations like setting defaults
|
||||
/// </summary>
|
||||
partial void CustomInit();
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets forZones indicates the zone(s) this endpoint should be
|
||||
/// consumed by to enable topology aware routing.
|
||||
/// </summary>
|
||||
[JsonProperty(PropertyName = "forZones")]
|
||||
public IList<V1ForZone> ForZones { get; set; }
|
||||
|
||||
}
|
||||
}
|
||||
158
src/KubernetesClient/generated/Models/V1EndpointSlice.cs
generated
Normal file
158
src/KubernetesClient/generated/Models/V1EndpointSlice.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.Collections;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
|
||||
/// <summary>
|
||||
/// EndpointSlice represents a subset of the endpoints that implement a
|
||||
/// service. For a given service there may be multiple EndpointSlice
|
||||
/// objects, selected by labels, which must be joined to produce the full
|
||||
/// set of endpoints.
|
||||
/// </summary>
|
||||
public partial class V1EndpointSlice
|
||||
{
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the V1EndpointSlice class.
|
||||
/// </summary>
|
||||
public V1EndpointSlice()
|
||||
{
|
||||
CustomInit();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the V1EndpointSlice class.
|
||||
/// </summary>
|
||||
/// <param name="addressType">addressType specifies the type of address
|
||||
/// carried by this EndpointSlice. All addresses in this slice must be
|
||||
/// the same type. This field is immutable after creation. The
|
||||
/// following address types are currently supported: * IPv4: Represents
|
||||
/// an IPv4 Address. * IPv6: Represents an IPv6 Address. * FQDN:
|
||||
/// Represents a Fully Qualified Domain Name.</param>
|
||||
/// <param name="endpoints">endpoints is a list of unique endpoints in
|
||||
/// this slice. Each slice may include a maximum of 1000
|
||||
/// endpoints.</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">Standard object's metadata.</param>
|
||||
/// <param name="ports">ports specifies the list of network ports
|
||||
/// exposed by each endpoint in this slice. Each port must have a
|
||||
/// unique name. When ports is empty, it indicates that there are no
|
||||
/// defined ports. When a port is defined with a nil port value, it
|
||||
/// indicates "all ports". Each slice may include a maximum of 100
|
||||
/// ports.</param>
|
||||
public V1EndpointSlice(string addressType, IList<V1Endpoint> endpoints, string apiVersion = default(string), string kind = default(string), V1ObjectMeta metadata = default(V1ObjectMeta), IList<Discoveryv1EndpointPort> ports = default(IList<Discoveryv1EndpointPort>))
|
||||
{
|
||||
AddressType = addressType;
|
||||
ApiVersion = apiVersion;
|
||||
Endpoints = endpoints;
|
||||
Kind = kind;
|
||||
Metadata = metadata;
|
||||
Ports = ports;
|
||||
CustomInit();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// An initialization method that performs custom operations like setting defaults
|
||||
/// </summary>
|
||||
partial void CustomInit();
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets addressType specifies the type of address carried by
|
||||
/// this EndpointSlice. All addresses in this slice must be the same
|
||||
/// type. This field is immutable after creation. The following address
|
||||
/// types are currently supported: * IPv4: Represents an IPv4 Address.
|
||||
/// * IPv6: Represents an IPv6 Address. * FQDN: Represents a Fully
|
||||
/// Qualified Domain Name.
|
||||
/// </summary>
|
||||
[JsonProperty(PropertyName = "addressType")]
|
||||
public string AddressType { get; set; }
|
||||
|
||||
/// <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 endpoints is a list of unique endpoints in this slice.
|
||||
/// Each slice may include a maximum of 1000 endpoints.
|
||||
/// </summary>
|
||||
[JsonProperty(PropertyName = "endpoints")]
|
||||
public IList<V1Endpoint> Endpoints { 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 standard object's metadata.
|
||||
/// </summary>
|
||||
[JsonProperty(PropertyName = "metadata")]
|
||||
public V1ObjectMeta Metadata { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets ports specifies the list of network ports exposed by
|
||||
/// each endpoint in this slice. Each port must have a unique name.
|
||||
/// When ports is empty, it indicates that there are no defined ports.
|
||||
/// When a port is defined with a nil port value, it indicates "all
|
||||
/// ports". Each slice may include a maximum of 100 ports.
|
||||
/// </summary>
|
||||
[JsonProperty(PropertyName = "ports")]
|
||||
public IList<Discoveryv1EndpointPort> Ports { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Validate the object.
|
||||
/// </summary>
|
||||
/// <exception cref="ValidationException">
|
||||
/// Thrown if validation fails
|
||||
/// </exception>
|
||||
public virtual void Validate()
|
||||
{
|
||||
if (AddressType == null)
|
||||
{
|
||||
throw new ValidationException(ValidationRules.CannotBeNull, "AddressType");
|
||||
}
|
||||
if (Endpoints == null)
|
||||
{
|
||||
throw new ValidationException(ValidationRules.CannotBeNull, "Endpoints");
|
||||
}
|
||||
if (Endpoints != null)
|
||||
{
|
||||
foreach (var element in Endpoints)
|
||||
{
|
||||
if (element != null)
|
||||
{
|
||||
element.Validate();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
113
src/KubernetesClient/generated/Models/V1EndpointSliceList.cs
generated
Normal file
113
src/KubernetesClient/generated/Models/V1EndpointSliceList.cs
generated
Normal file
@@ -0,0 +1,113 @@
|
||||
// <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>
|
||||
/// EndpointSliceList represents a list of endpoint slices
|
||||
/// </summary>
|
||||
public partial class V1EndpointSliceList
|
||||
{
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the V1EndpointSliceList class.
|
||||
/// </summary>
|
||||
public V1EndpointSliceList()
|
||||
{
|
||||
CustomInit();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the V1EndpointSliceList class.
|
||||
/// </summary>
|
||||
/// <param name="items">List of endpoint slices</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">Standard list metadata.</param>
|
||||
public V1EndpointSliceList(IList<V1EndpointSlice> 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 list of endpoint slices
|
||||
/// </summary>
|
||||
[JsonProperty(PropertyName = "items")]
|
||||
public IList<V1EndpointSlice> 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 standard list 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();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -45,7 +45,7 @@ namespace k8s.Models
|
||||
/// check, or have recently failed a liveness check.</param>
|
||||
/// <param name="ports">Port numbers available on the related IP
|
||||
/// addresses.</param>
|
||||
public V1EndpointSubset(IList<V1EndpointAddress> addresses = default(IList<V1EndpointAddress>), IList<V1EndpointAddress> notReadyAddresses = default(IList<V1EndpointAddress>), IList<V1EndpointPort> ports = default(IList<V1EndpointPort>))
|
||||
public V1EndpointSubset(IList<V1EndpointAddress> addresses = default(IList<V1EndpointAddress>), IList<V1EndpointAddress> notReadyAddresses = default(IList<V1EndpointAddress>), IList<Corev1EndpointPort> ports = default(IList<Corev1EndpointPort>))
|
||||
{
|
||||
Addresses = addresses;
|
||||
NotReadyAddresses = notReadyAddresses;
|
||||
@@ -79,7 +79,7 @@ namespace k8s.Models
|
||||
/// Gets or sets port numbers available on the related IP addresses.
|
||||
/// </summary>
|
||||
[JsonProperty(PropertyName = "ports")]
|
||||
public IList<V1EndpointPort> Ports { get; set; }
|
||||
public IList<Corev1EndpointPort> Ports { get; set; }
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
117
src/KubernetesClient/generated/Models/V1EphemeralContainers.cs
generated
Normal file
117
src/KubernetesClient/generated/Models/V1EphemeralContainers.cs
generated
Normal file
@@ -0,0 +1,117 @@
|
||||
// <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>
|
||||
/// A list of ephemeral containers used with the Pod ephemeralcontainers
|
||||
/// subresource.
|
||||
/// </summary>
|
||||
public partial class V1EphemeralContainers
|
||||
{
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the V1EphemeralContainers class.
|
||||
/// </summary>
|
||||
public V1EphemeralContainers()
|
||||
{
|
||||
CustomInit();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the V1EphemeralContainers class.
|
||||
/// </summary>
|
||||
/// <param name="ephemeralContainers">A list of ephemeral containers
|
||||
/// associated with this pod. New ephemeral containers may be appended
|
||||
/// to this list, but existing ephemeral containers may not be removed
|
||||
/// or modified.</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>
|
||||
public V1EphemeralContainers(IList<V1EphemeralContainer> ephemeralContainers, string apiVersion = default(string), string kind = default(string), V1ObjectMeta metadata = default(V1ObjectMeta))
|
||||
{
|
||||
ApiVersion = apiVersion;
|
||||
EphemeralContainers = ephemeralContainers;
|
||||
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 a list of ephemeral containers associated with this
|
||||
/// pod. New ephemeral containers may be appended to this list, but
|
||||
/// existing ephemeral containers may not be removed or modified.
|
||||
/// </summary>
|
||||
[JsonProperty(PropertyName = "ephemeralContainers")]
|
||||
public IList<V1EphemeralContainer> EphemeralContainers { 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>
|
||||
/// </summary>
|
||||
[JsonProperty(PropertyName = "metadata")]
|
||||
public V1ObjectMeta Metadata { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Validate the object.
|
||||
/// </summary>
|
||||
/// <exception cref="ValidationException">
|
||||
/// Thrown if validation fails
|
||||
/// </exception>
|
||||
public virtual void Validate()
|
||||
{
|
||||
if (EphemeralContainers == null)
|
||||
{
|
||||
throw new ValidationException(ValidationRules.CannotBeNull, "EphemeralContainers");
|
||||
}
|
||||
if (EphemeralContainers != null)
|
||||
{
|
||||
foreach (var element in EphemeralContainers)
|
||||
{
|
||||
if (element != null)
|
||||
{
|
||||
element.Validate();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -26,8 +26,6 @@ namespace k8s.Models
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the V1EphemeralVolumeSource class.
|
||||
/// </summary>
|
||||
/// <param name="readOnlyProperty">Specifies a read-only configuration
|
||||
/// for the volume. Defaults to false (read/write).</param>
|
||||
/// <param name="volumeClaimTemplate">Will be used to create a
|
||||
/// stand-alone PVC to provision the volume. The pod in which this
|
||||
/// EphemeralVolumeSource is embedded will be the owner of the PVC,
|
||||
@@ -49,9 +47,8 @@ namespace k8s.Models
|
||||
/// to the PVC after it has been created.
|
||||
///
|
||||
/// Required, must not be nil.</param>
|
||||
public V1EphemeralVolumeSource(bool? readOnlyProperty = default(bool?), V1PersistentVolumeClaimTemplate volumeClaimTemplate = default(V1PersistentVolumeClaimTemplate))
|
||||
public V1EphemeralVolumeSource(V1PersistentVolumeClaimTemplate volumeClaimTemplate = default(V1PersistentVolumeClaimTemplate))
|
||||
{
|
||||
ReadOnlyProperty = readOnlyProperty;
|
||||
VolumeClaimTemplate = volumeClaimTemplate;
|
||||
CustomInit();
|
||||
}
|
||||
@@ -61,13 +58,6 @@ namespace k8s.Models
|
||||
/// </summary>
|
||||
partial void CustomInit();
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets specifies a read-only configuration for the volume.
|
||||
/// Defaults to false (read/write).
|
||||
/// </summary>
|
||||
[JsonProperty(PropertyName = "readOnly")]
|
||||
public bool? ReadOnlyProperty { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets will be used to create a stand-alone PVC to provision
|
||||
/// the volume. The pod in which this EphemeralVolumeSource is embedded
|
||||
|
||||
@@ -11,24 +11,24 @@ namespace k8s.Models
|
||||
using System.Linq;
|
||||
|
||||
/// <summary>
|
||||
/// UserSubject holds detailed information for user-kind subject.
|
||||
/// ForZone provides information about which zones should consume this
|
||||
/// endpoint.
|
||||
/// </summary>
|
||||
public partial class V1alpha1UserSubject
|
||||
public partial class V1ForZone
|
||||
{
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the V1alpha1UserSubject class.
|
||||
/// Initializes a new instance of the V1ForZone class.
|
||||
/// </summary>
|
||||
public V1alpha1UserSubject()
|
||||
public V1ForZone()
|
||||
{
|
||||
CustomInit();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the V1alpha1UserSubject class.
|
||||
/// Initializes a new instance of the V1ForZone class.
|
||||
/// </summary>
|
||||
/// <param name="name">`name` is the username that matches, or "*" to
|
||||
/// match all usernames. Required.</param>
|
||||
public V1alpha1UserSubject(string name)
|
||||
/// <param name="name">name represents the name of the zone.</param>
|
||||
public V1ForZone(string name)
|
||||
{
|
||||
Name = name;
|
||||
CustomInit();
|
||||
@@ -40,8 +40,7 @@ namespace k8s.Models
|
||||
partial void CustomInit();
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets `name` is the username that matches, or "*" to match
|
||||
/// all usernames. Required.
|
||||
/// Gets or sets name represents the name of the zone.
|
||||
/// </summary>
|
||||
[JsonProperty(PropertyName = "name")]
|
||||
public string Name { get; set; }
|
||||
119
src/KubernetesClient/generated/Models/V1IngressClassParametersReference.cs
generated
Normal file
119
src/KubernetesClient/generated/Models/V1IngressClassParametersReference.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>
|
||||
/// IngressClassParametersReference identifies an API object. This can be
|
||||
/// used to specify a cluster or namespace-scoped resource.
|
||||
/// </summary>
|
||||
public partial class V1IngressClassParametersReference
|
||||
{
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the V1IngressClassParametersReference
|
||||
/// class.
|
||||
/// </summary>
|
||||
public V1IngressClassParametersReference()
|
||||
{
|
||||
CustomInit();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the V1IngressClassParametersReference
|
||||
/// class.
|
||||
/// </summary>
|
||||
/// <param name="kind">Kind is the type of resource being
|
||||
/// referenced.</param>
|
||||
/// <param name="name">Name is the name of resource being
|
||||
/// referenced.</param>
|
||||
/// <param name="apiGroup">APIGroup is the group for the resource being
|
||||
/// referenced. If APIGroup is not specified, the specified Kind must
|
||||
/// be in the core API group. For any other third-party types, APIGroup
|
||||
/// is required.</param>
|
||||
/// <param name="namespaceProperty">Namespace is the namespace of the
|
||||
/// resource being referenced. This field is required when scope is set
|
||||
/// to "Namespace" and must be unset when scope is set to
|
||||
/// "Cluster".</param>
|
||||
/// <param name="scope">Scope represents if this refers to a cluster or
|
||||
/// namespace scoped resource. This may be set to "Cluster" (default)
|
||||
/// or "Namespace". Field can be enabled with
|
||||
/// IngressClassNamespacedParams feature gate.</param>
|
||||
public V1IngressClassParametersReference(string kind, string name, string apiGroup = default(string), string namespaceProperty = default(string), string scope = default(string))
|
||||
{
|
||||
ApiGroup = apiGroup;
|
||||
Kind = kind;
|
||||
Name = name;
|
||||
NamespaceProperty = namespaceProperty;
|
||||
Scope = scope;
|
||||
CustomInit();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// An initialization method that performs custom operations like setting defaults
|
||||
/// </summary>
|
||||
partial void CustomInit();
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets aPIGroup is the group for the resource being
|
||||
/// referenced. If APIGroup is not specified, the specified Kind must
|
||||
/// be in the core API group. For any other third-party types, APIGroup
|
||||
/// is required.
|
||||
/// </summary>
|
||||
[JsonProperty(PropertyName = "apiGroup")]
|
||||
public string ApiGroup { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets kind is the type of resource being referenced.
|
||||
/// </summary>
|
||||
[JsonProperty(PropertyName = "kind")]
|
||||
public string Kind { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets name is the name of resource being referenced.
|
||||
/// </summary>
|
||||
[JsonProperty(PropertyName = "name")]
|
||||
public string Name { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets namespace is the namespace of the resource being
|
||||
/// referenced. This field is required when scope is set to "Namespace"
|
||||
/// and must be unset when scope is set to "Cluster".
|
||||
/// </summary>
|
||||
[JsonProperty(PropertyName = "namespace")]
|
||||
public string NamespaceProperty { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets scope represents if this refers to a cluster or
|
||||
/// namespace scoped resource. This may be set to "Cluster" (default)
|
||||
/// or "Namespace". Field can be enabled with
|
||||
/// IngressClassNamespacedParams feature gate.
|
||||
/// </summary>
|
||||
[JsonProperty(PropertyName = "scope")]
|
||||
public string Scope { 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 (Name == null)
|
||||
{
|
||||
throw new ValidationException(ValidationRules.CannotBeNull, "Name");
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -36,7 +36,7 @@ namespace k8s.Models
|
||||
/// containing additional configuration for the controller. This is
|
||||
/// optional if the controller does not require extra
|
||||
/// parameters.</param>
|
||||
public V1IngressClassSpec(string controller = default(string), V1TypedLocalObjectReference parameters = default(V1TypedLocalObjectReference))
|
||||
public V1IngressClassSpec(string controller = default(string), V1IngressClassParametersReference parameters = default(V1IngressClassParametersReference))
|
||||
{
|
||||
Controller = controller;
|
||||
Parameters = parameters;
|
||||
@@ -66,7 +66,7 @@ namespace k8s.Models
|
||||
/// the controller does not require extra parameters.
|
||||
/// </summary>
|
||||
[JsonProperty(PropertyName = "parameters")]
|
||||
public V1TypedLocalObjectReference Parameters { get; set; }
|
||||
public V1IngressClassParametersReference Parameters { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Validate the object.
|
||||
|
||||
90
src/KubernetesClient/generated/Models/V1JobSpec.cs
generated
90
src/KubernetesClient/generated/Models/V1JobSpec.cs
generated
@@ -30,11 +30,34 @@ namespace k8s.Models
|
||||
/// executing a job. More info:
|
||||
/// https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/</param>
|
||||
/// <param name="activeDeadlineSeconds">Specifies the duration in
|
||||
/// seconds relative to the startTime that the job may be active before
|
||||
/// the system tries to terminate it; value must be positive
|
||||
/// integer</param>
|
||||
/// seconds relative to the startTime that the job may be continuously
|
||||
/// active before the system tries to terminate it; value must be
|
||||
/// positive integer. If a Job is suspended (at creation or through an
|
||||
/// update), this timer will effectively be stopped and reset when the
|
||||
/// Job is resumed again.</param>
|
||||
/// <param name="backoffLimit">Specifies the number of retries before
|
||||
/// marking this job failed. Defaults to 6</param>
|
||||
/// <param name="completionMode">CompletionMode specifies how Pod
|
||||
/// completions are tracked. It can be `NonIndexed` (default) or
|
||||
/// `Indexed`.
|
||||
///
|
||||
/// `NonIndexed` means that the Job is considered complete when there
|
||||
/// have been .spec.completions successfully completed Pods. Each Pod
|
||||
/// completion is homologous to each other.
|
||||
///
|
||||
/// `Indexed` means that the Pods of a Job get an associated completion
|
||||
/// index from 0 to (.spec.completions - 1), available in the
|
||||
/// annotation batch.kubernetes.io/job-completion-index. The Job is
|
||||
/// considered complete when there is one successfully completed Pod
|
||||
/// for each index. When value is `Indexed`, .spec.completions must be
|
||||
/// specified and `.spec.parallelism` must be less than or equal to
|
||||
/// 10^5.
|
||||
///
|
||||
/// This field is alpha-level and is only honored by servers that
|
||||
/// enable the IndexedJob feature gate. More completion modes can be
|
||||
/// added in the future. If the Job controller observes a mode that it
|
||||
/// doesn't recognize, the controller skips updates for the
|
||||
/// Job.</param>
|
||||
/// <param name="completions">Specifies the desired number of
|
||||
/// successfully finished pods the job should be run with. Setting to
|
||||
/// nil means that the success of any pod signals the success of all
|
||||
@@ -63,6 +86,17 @@ namespace k8s.Models
|
||||
/// the pod count. Normally, the system sets this field for you. More
|
||||
/// info:
|
||||
/// https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors</param>
|
||||
/// <param name="suspend">Suspend specifies whether the Job controller
|
||||
/// should create Pods or not. If a Job is created with suspend set to
|
||||
/// true, no Pods are created by the Job controller. If a Job is
|
||||
/// suspended after creation (i.e. the flag goes from false to true),
|
||||
/// the Job controller will delete all active Pods associated with this
|
||||
/// Job. Users must design their workload to gracefully handle this.
|
||||
/// Suspending a Job will reset the StartTime field of the Job,
|
||||
/// effectively resetting the ActiveDeadlineSeconds timer too. This is
|
||||
/// an alpha field and requires the SuspendJob feature gate to be
|
||||
/// enabled; otherwise this field may not be set to true. Defaults to
|
||||
/// false.</param>
|
||||
/// <param name="ttlSecondsAfterFinished">ttlSecondsAfterFinished
|
||||
/// limits the lifetime of a Job that has finished execution (either
|
||||
/// Complete or Failed). If this field is set, ttlSecondsAfterFinished
|
||||
@@ -73,14 +107,16 @@ namespace k8s.Models
|
||||
/// becomes eligible to be deleted immediately after it finishes. This
|
||||
/// field is alpha-level and is only honored by servers that enable the
|
||||
/// TTLAfterFinished feature.</param>
|
||||
public V1JobSpec(V1PodTemplateSpec template, long? activeDeadlineSeconds = default(long?), int? backoffLimit = default(int?), int? completions = default(int?), bool? manualSelector = default(bool?), int? parallelism = default(int?), V1LabelSelector selector = default(V1LabelSelector), int? ttlSecondsAfterFinished = default(int?))
|
||||
public V1JobSpec(V1PodTemplateSpec template, long? activeDeadlineSeconds = default(long?), int? backoffLimit = default(int?), string completionMode = default(string), int? completions = default(int?), bool? manualSelector = default(bool?), int? parallelism = default(int?), V1LabelSelector selector = default(V1LabelSelector), bool? suspend = default(bool?), int? ttlSecondsAfterFinished = default(int?))
|
||||
{
|
||||
ActiveDeadlineSeconds = activeDeadlineSeconds;
|
||||
BackoffLimit = backoffLimit;
|
||||
CompletionMode = completionMode;
|
||||
Completions = completions;
|
||||
ManualSelector = manualSelector;
|
||||
Parallelism = parallelism;
|
||||
Selector = selector;
|
||||
Suspend = suspend;
|
||||
Template = template;
|
||||
TtlSecondsAfterFinished = ttlSecondsAfterFinished;
|
||||
CustomInit();
|
||||
@@ -93,8 +129,10 @@ namespace k8s.Models
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets specifies the duration in seconds relative to the
|
||||
/// startTime that the job may be active before the system tries to
|
||||
/// terminate it; value must be positive integer
|
||||
/// startTime that the job may be continuously active before the system
|
||||
/// tries to terminate it; value must be positive integer. If a Job is
|
||||
/// suspended (at creation or through an update), this timer will
|
||||
/// effectively be stopped and reset when the Job is resumed again.
|
||||
/// </summary>
|
||||
[JsonProperty(PropertyName = "activeDeadlineSeconds")]
|
||||
public long? ActiveDeadlineSeconds { get; set; }
|
||||
@@ -106,6 +144,30 @@ namespace k8s.Models
|
||||
[JsonProperty(PropertyName = "backoffLimit")]
|
||||
public int? BackoffLimit { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets completionMode specifies how Pod completions are
|
||||
/// tracked. It can be `NonIndexed` (default) or `Indexed`.
|
||||
///
|
||||
/// `NonIndexed` means that the Job is considered complete when there
|
||||
/// have been .spec.completions successfully completed Pods. Each Pod
|
||||
/// completion is homologous to each other.
|
||||
///
|
||||
/// `Indexed` means that the Pods of a Job get an associated completion
|
||||
/// index from 0 to (.spec.completions - 1), available in the
|
||||
/// annotation batch.kubernetes.io/job-completion-index. The Job is
|
||||
/// considered complete when there is one successfully completed Pod
|
||||
/// for each index. When value is `Indexed`, .spec.completions must be
|
||||
/// specified and `.spec.parallelism` must be less than or equal to
|
||||
/// 10^5.
|
||||
///
|
||||
/// This field is alpha-level and is only honored by servers that
|
||||
/// enable the IndexedJob feature gate. More completion modes can be
|
||||
/// added in the future. If the Job controller observes a mode that it
|
||||
/// doesn't recognize, the controller skips updates for the Job.
|
||||
/// </summary>
|
||||
[JsonProperty(PropertyName = "completionMode")]
|
||||
public string CompletionMode { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets specifies the desired number of successfully finished
|
||||
/// pods the job should be run with. Setting to nil means that the
|
||||
@@ -152,6 +214,22 @@ namespace k8s.Models
|
||||
[JsonProperty(PropertyName = "selector")]
|
||||
public V1LabelSelector Selector { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets suspend specifies whether the Job controller should
|
||||
/// create Pods or not. If a Job is created with suspend set to true,
|
||||
/// no Pods are created by the Job controller. If a Job is suspended
|
||||
/// after creation (i.e. the flag goes from false to true), the Job
|
||||
/// controller will delete all active Pods associated with this Job.
|
||||
/// Users must design their workload to gracefully handle this.
|
||||
/// Suspending a Job will reset the StartTime field of the Job,
|
||||
/// effectively resetting the ActiveDeadlineSeconds timer too. This is
|
||||
/// an alpha field and requires the SuspendJob feature gate to be
|
||||
/// enabled; otherwise this field may not be set to true. Defaults to
|
||||
/// false.
|
||||
/// </summary>
|
||||
[JsonProperty(PropertyName = "suspend")]
|
||||
public bool? Suspend { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets describes the pod that will be created when executing
|
||||
/// a job. More info:
|
||||
|
||||
57
src/KubernetesClient/generated/Models/V1JobStatus.cs
generated
57
src/KubernetesClient/generated/Models/V1JobStatus.cs
generated
@@ -28,26 +28,40 @@ namespace k8s.Models
|
||||
/// Initializes a new instance of the V1JobStatus class.
|
||||
/// </summary>
|
||||
/// <param name="active">The number of actively running pods.</param>
|
||||
/// <param name="completedIndexes">CompletedIndexes holds the completed
|
||||
/// indexes when .spec.completionMode = "Indexed" in a text format. The
|
||||
/// indexes are represented as decimal integers separated by commas.
|
||||
/// The numbers are listed in increasing order. Three or more
|
||||
/// consecutive numbers are compressed and represented by the first and
|
||||
/// last element of the series, separated by a hyphen. For example, if
|
||||
/// the completed indexes are 1, 3, 4, 5 and 7, they are represented as
|
||||
/// "1,3-5,7".</param>
|
||||
/// <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. 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. When a job fails, one of the conditions
|
||||
/// will have type == "Failed". More info:
|
||||
/// object's current state. When a Job fails, one of the conditions
|
||||
/// will have type "Failed" and status true. When a Job is suspended,
|
||||
/// one of the conditions will have type "Suspended" and status true;
|
||||
/// when the Job is resumed, the status of this condition will become
|
||||
/// false. When a Job is completed, one of the conditions will have
|
||||
/// type "Complete" and status true. 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>
|
||||
/// <param name="startTime">Represents time when the job was
|
||||
/// acknowledged by the job controller. 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>
|
||||
/// <param name="startTime">Represents time when the job controller
|
||||
/// started processing a job. When a Job is created in the suspended
|
||||
/// state, this field is not set until the first time it is resumed.
|
||||
/// This field is reset every time a Job is resumed from suspension. It
|
||||
/// is represented in RFC3339 form and is in UTC.</param>
|
||||
/// <param name="succeeded">The number of pods which reached phase
|
||||
/// Succeeded.</param>
|
||||
public V1JobStatus(int? active = default(int?), System.DateTime? completionTime = default(System.DateTime?), IList<V1JobCondition> conditions = default(IList<V1JobCondition>), int? failed = default(int?), System.DateTime? startTime = default(System.DateTime?), int? succeeded = default(int?))
|
||||
public V1JobStatus(int? active = default(int?), string completedIndexes = default(string), System.DateTime? completionTime = default(System.DateTime?), IList<V1JobCondition> conditions = default(IList<V1JobCondition>), int? failed = default(int?), System.DateTime? startTime = default(System.DateTime?), int? succeeded = default(int?))
|
||||
{
|
||||
Active = active;
|
||||
CompletedIndexes = completedIndexes;
|
||||
CompletionTime = completionTime;
|
||||
Conditions = conditions;
|
||||
Failed = failed;
|
||||
@@ -67,6 +81,18 @@ namespace k8s.Models
|
||||
[JsonProperty(PropertyName = "active")]
|
||||
public int? Active { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets completedIndexes holds the completed indexes when
|
||||
/// .spec.completionMode = "Indexed" in a text format. The indexes are
|
||||
/// represented as decimal integers separated by commas. The numbers
|
||||
/// are listed in increasing order. Three or more consecutive numbers
|
||||
/// are compressed and represented by the first and last element of the
|
||||
/// series, separated by a hyphen. For example, if the completed
|
||||
/// indexes are 1, 3, 4, 5 and 7, they are represented as "1,3-5,7".
|
||||
/// </summary>
|
||||
[JsonProperty(PropertyName = "completedIndexes")]
|
||||
public string CompletedIndexes { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets represents time when the job was completed. It is not
|
||||
/// guaranteed to be set in happens-before order across separate
|
||||
@@ -78,8 +104,12 @@ namespace k8s.Models
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the latest available observations of an object's
|
||||
/// current state. When a job fails, one of the conditions will have
|
||||
/// type == "Failed". More info:
|
||||
/// current state. When a Job fails, one of the conditions will have
|
||||
/// type "Failed" and status true. When a Job is suspended, one of the
|
||||
/// conditions will have type "Suspended" and status true; when the Job
|
||||
/// is resumed, the status of this condition will become false. When a
|
||||
/// Job is completed, one of the conditions will have type "Complete"
|
||||
/// and status true. More info:
|
||||
/// https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/
|
||||
/// </summary>
|
||||
[JsonProperty(PropertyName = "conditions")]
|
||||
@@ -92,10 +122,11 @@ namespace k8s.Models
|
||||
public int? Failed { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets represents time when the job was acknowledged by the
|
||||
/// job controller. It is not guaranteed to be set in happens-before
|
||||
/// order across separate operations. It is represented in RFC3339 form
|
||||
/// and is in UTC.
|
||||
/// Gets or sets represents time when the job controller started
|
||||
/// processing a job. When a Job is created in the suspended state,
|
||||
/// this field is not set until the first time it is resumed. This
|
||||
/// field is reset every time a Job is resumed from suspension. It is
|
||||
/// represented in RFC3339 form and is in UTC.
|
||||
/// </summary>
|
||||
[JsonProperty(PropertyName = "startTime")]
|
||||
public System.DateTime? StartTime { get; set; }
|
||||
|
||||
@@ -13,18 +13,18 @@ namespace k8s.Models
|
||||
/// JobTemplateSpec describes the data a Job should have when created from
|
||||
/// a template
|
||||
/// </summary>
|
||||
public partial class V2alpha1JobTemplateSpec
|
||||
public partial class V1JobTemplateSpec
|
||||
{
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the V2alpha1JobTemplateSpec class.
|
||||
/// Initializes a new instance of the V1JobTemplateSpec class.
|
||||
/// </summary>
|
||||
public V2alpha1JobTemplateSpec()
|
||||
public V1JobTemplateSpec()
|
||||
{
|
||||
CustomInit();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the V2alpha1JobTemplateSpec class.
|
||||
/// Initializes a new instance of the V1JobTemplateSpec class.
|
||||
/// </summary>
|
||||
/// <param name="metadata">Standard object's metadata of the jobs
|
||||
/// created from this template. More info:
|
||||
@@ -32,7 +32,7 @@ namespace k8s.Models
|
||||
/// <param name="spec">Specification of the desired behavior of the
|
||||
/// job. More info:
|
||||
/// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status</param>
|
||||
public V2alpha1JobTemplateSpec(V1ObjectMeta metadata = default(V1ObjectMeta), V1JobSpec spec = default(V1JobSpec))
|
||||
public V1JobTemplateSpec(V1ObjectMeta metadata = default(V1ObjectMeta), V1JobSpec spec = default(V1JobSpec))
|
||||
{
|
||||
Metadata = metadata;
|
||||
Spec = spec;
|
||||
@@ -30,7 +30,7 @@ namespace k8s.Models
|
||||
/// </summary>
|
||||
/// <param name="items">Items is a list of LimitRange objects. More
|
||||
/// info:
|
||||
/// https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/</param>
|
||||
/// https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/</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
|
||||
@@ -69,7 +69,7 @@ namespace k8s.Models
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets items is a list of LimitRange objects. More info:
|
||||
/// https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/
|
||||
/// https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/
|
||||
/// </summary>
|
||||
[JsonProperty(PropertyName = "items")]
|
||||
public IList<V1LimitRange> Items { get; set; }
|
||||
|
||||
@@ -48,7 +48,7 @@ namespace k8s.Models
|
||||
/// (webhooks created via v1beta1 may also specify Some or Unknown).
|
||||
/// Webhooks with side effects MUST implement a reconciliation system,
|
||||
/// since a request may be rejected by a future step in the admission
|
||||
/// change and the side effects therefore need to be undone. Requests
|
||||
/// chain and the side effects therefore need to be undone. Requests
|
||||
/// with the dryRun attribute will be auto-rejected if they match a
|
||||
/// webhook with sideEffects == Unknown or Some.</param>
|
||||
/// <param name="failurePolicy">FailurePolicy defines how unrecognized
|
||||
@@ -357,8 +357,8 @@ namespace k8s.Models
|
||||
/// effects. Acceptable values are: None, NoneOnDryRun (webhooks
|
||||
/// created via v1beta1 may also specify Some or Unknown). Webhooks
|
||||
/// with side effects MUST implement a reconciliation system, since a
|
||||
/// request may be rejected by a future step in the admission change
|
||||
/// and the side effects therefore need to be undone. Requests with the
|
||||
/// request may be rejected by a future step in the admission chain and
|
||||
/// the side effects therefore need to be undone. Requests with the
|
||||
/// dryRun attribute will be auto-rejected if they match a webhook with
|
||||
/// sideEffects == Unknown or Some.
|
||||
/// </summary>
|
||||
|
||||
@@ -25,14 +25,23 @@ namespace k8s.Models
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the V1NetworkPolicyPort class.
|
||||
/// </summary>
|
||||
/// <param name="endPort">If set, indicates that the range of ports
|
||||
/// from port to endPort, inclusive, should be allowed by the policy.
|
||||
/// This field cannot be defined if the port field is not defined or if
|
||||
/// the port field is defined as a named (string) port. The endPort
|
||||
/// must be equal or greater than port. This feature is in Alpha state
|
||||
/// and should be enabled using the Feature Gate
|
||||
/// "NetworkPolicyEndPort".</param>
|
||||
/// <param name="port">The port on the given protocol. This can either
|
||||
/// be a numerical or named port on a pod. If this field is not
|
||||
/// provided, this matches all port names and numbers.</param>
|
||||
/// provided, this matches all port names and numbers. If present, only
|
||||
/// traffic on the specified protocol AND port will be matched.</param>
|
||||
/// <param name="protocol">The protocol (TCP, UDP, or SCTP) which
|
||||
/// traffic must match. If not specified, this field defaults to
|
||||
/// TCP.</param>
|
||||
public V1NetworkPolicyPort(IntstrIntOrString port = default(IntstrIntOrString), string protocol = default(string))
|
||||
public V1NetworkPolicyPort(int? endPort = default(int?), IntstrIntOrString port = default(IntstrIntOrString), string protocol = default(string))
|
||||
{
|
||||
EndPort = endPort;
|
||||
Port = port;
|
||||
Protocol = protocol;
|
||||
CustomInit();
|
||||
@@ -43,10 +52,22 @@ namespace k8s.Models
|
||||
/// </summary>
|
||||
partial void CustomInit();
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets if set, indicates that the range of ports from port to
|
||||
/// endPort, inclusive, should be allowed by the policy. This field
|
||||
/// cannot be defined if the port field is not defined or if the port
|
||||
/// field is defined as a named (string) port. The endPort must be
|
||||
/// equal or greater than port. This feature is in Alpha state and
|
||||
/// should be enabled using the Feature Gate "NetworkPolicyEndPort".
|
||||
/// </summary>
|
||||
[JsonProperty(PropertyName = "endPort")]
|
||||
public int? EndPort { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the port on the given protocol. This can either be a
|
||||
/// numerical or named port on a pod. If this field is not provided,
|
||||
/// this matches all port names and numbers.
|
||||
/// this matches all port names and numbers. If present, only traffic
|
||||
/// on the specified protocol AND port will be matched.
|
||||
/// </summary>
|
||||
[JsonProperty(PropertyName = "port")]
|
||||
public IntstrIntOrString Port { get; set; }
|
||||
|
||||
@@ -54,11 +54,11 @@ namespace k8s.Models
|
||||
/// traffic (and serves solely to ensure that the pods it selects are
|
||||
/// isolated by default)</param>
|
||||
/// <param name="policyTypes">List of rule types that the NetworkPolicy
|
||||
/// relates to. Valid options are "Ingress", "Egress", or
|
||||
/// "Ingress,Egress". If this field is not specified, it will default
|
||||
/// based on the existence of Ingress or Egress rules; policies that
|
||||
/// contain an Egress section are assumed to affect Egress, and all
|
||||
/// policies (whether or not they contain an Ingress section) are
|
||||
/// relates to. Valid options are ["Ingress"], ["Egress"], or
|
||||
/// ["Ingress", "Egress"]. If this field is not specified, it will
|
||||
/// default based on the existence of Ingress or Egress rules; policies
|
||||
/// that contain an Egress section are assumed to affect Egress, and
|
||||
/// all policies (whether or not they contain an Ingress section) are
|
||||
/// assumed to affect Ingress. If you want to write an egress-only
|
||||
/// policy, you must explicitly specify policyTypes [ "Egress" ].
|
||||
/// Likewise, if you want to write a policy that specifies that no
|
||||
@@ -121,17 +121,18 @@ namespace k8s.Models
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets list of rule types that the NetworkPolicy relates to.
|
||||
/// Valid options are "Ingress", "Egress", or "Ingress,Egress". If this
|
||||
/// field is not specified, it will default based on the existence of
|
||||
/// Ingress or Egress rules; policies that contain an Egress section
|
||||
/// are assumed to affect Egress, and all policies (whether or not they
|
||||
/// contain an Ingress section) are assumed to affect Ingress. If you
|
||||
/// want to write an egress-only policy, you must explicitly specify
|
||||
/// policyTypes [ "Egress" ]. Likewise, if you want to write a policy
|
||||
/// that specifies that no egress is allowed, you must specify a
|
||||
/// policyTypes value that include "Egress" (since such a policy would
|
||||
/// not include an Egress section and would otherwise default to just [
|
||||
/// "Ingress" ]). This field is beta-level in 1.8
|
||||
/// Valid options are ["Ingress"], ["Egress"], or ["Ingress",
|
||||
/// "Egress"]. If this field is not specified, it will default based on
|
||||
/// the existence of Ingress or Egress rules; policies that contain an
|
||||
/// Egress section are assumed to affect Egress, and all policies
|
||||
/// (whether or not they contain an Ingress section) are assumed to
|
||||
/// affect Ingress. If you want to write an egress-only policy, you
|
||||
/// must explicitly specify policyTypes [ "Egress" ]. Likewise, if you
|
||||
/// want to write a policy that specifies that no egress is allowed,
|
||||
/// you must specify a policyTypes value that include "Egress" (since
|
||||
/// such a policy would not include an Egress section and would
|
||||
/// otherwise default to just [ "Ingress" ]). This field is beta-level
|
||||
/// in 1.8
|
||||
/// </summary>
|
||||
[JsonProperty(PropertyName = "policyTypes")]
|
||||
public IList<string> PolicyTypes { get; set; }
|
||||
|
||||
@@ -41,12 +41,22 @@ namespace k8s.Models
|
||||
/// pods is running. Empty topologyKey is not allowed.</param>
|
||||
/// <param name="labelSelector">A label query over a set of resources,
|
||||
/// in this case pods.</param>
|
||||
/// <param name="namespaces">namespaces specifies which namespaces the
|
||||
/// labelSelector applies to (matches against); null or empty list
|
||||
/// means "this pod's namespace"</param>
|
||||
public V1PodAffinityTerm(string topologyKey, V1LabelSelector labelSelector = default(V1LabelSelector), IList<string> namespaces = default(IList<string>))
|
||||
/// <param name="namespaceSelector">A label query over the set of
|
||||
/// namespaces that the term applies to. The term is applied to the
|
||||
/// union of the namespaces selected by this field and the ones listed
|
||||
/// in the namespaces field. null selector and null or empty namespaces
|
||||
/// list means "this pod's namespace". An empty selector ({}) matches
|
||||
/// all namespaces. This field is alpha-level and is only honored when
|
||||
/// PodAffinityNamespaceSelector feature is enabled.</param>
|
||||
/// <param name="namespaces">namespaces specifies a static list of
|
||||
/// namespace names that the term applies to. The term is applied to
|
||||
/// the union of the namespaces listed in this field and the ones
|
||||
/// selected by namespaceSelector. null or empty namespaces list and
|
||||
/// null namespaceSelector means "this pod's namespace"</param>
|
||||
public V1PodAffinityTerm(string topologyKey, V1LabelSelector labelSelector = default(V1LabelSelector), V1LabelSelector namespaceSelector = default(V1LabelSelector), IList<string> namespaces = default(IList<string>))
|
||||
{
|
||||
LabelSelector = labelSelector;
|
||||
NamespaceSelector = namespaceSelector;
|
||||
Namespaces = namespaces;
|
||||
TopologyKey = topologyKey;
|
||||
CustomInit();
|
||||
@@ -65,9 +75,23 @@ namespace k8s.Models
|
||||
public V1LabelSelector LabelSelector { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets namespaces specifies which namespaces the
|
||||
/// labelSelector applies to (matches against); null or empty list
|
||||
/// means "this pod's namespace"
|
||||
/// Gets or sets a label query over the set of namespaces that the term
|
||||
/// applies to. The term is applied to the union of the namespaces
|
||||
/// selected by this field and the ones listed in the namespaces field.
|
||||
/// null selector and null or empty namespaces list means "this pod's
|
||||
/// namespace". An empty selector ({}) matches all namespaces. This
|
||||
/// field is alpha-level and is only honored when
|
||||
/// PodAffinityNamespaceSelector feature is enabled.
|
||||
/// </summary>
|
||||
[JsonProperty(PropertyName = "namespaceSelector")]
|
||||
public V1LabelSelector NamespaceSelector { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets namespaces specifies a static list of namespace names
|
||||
/// that the term applies to. The term is applied to the union of the
|
||||
/// namespaces listed in this field and the ones selected by
|
||||
/// namespaceSelector. null or empty namespaces list and null
|
||||
/// namespaceSelector means "this pod's namespace"
|
||||
/// </summary>
|
||||
[JsonProperty(PropertyName = "namespaces")]
|
||||
public IList<string> Namespaces { get; set; }
|
||||
|
||||
115
src/KubernetesClient/generated/Models/V1PodDisruptionBudget.cs
generated
Normal file
115
src/KubernetesClient/generated/Models/V1PodDisruptionBudget.cs
generated
Normal file
@@ -0,0 +1,115 @@
|
||||
// <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>
|
||||
/// PodDisruptionBudget is an object to define the max disruption that can
|
||||
/// be caused to a collection of pods
|
||||
/// </summary>
|
||||
public partial class V1PodDisruptionBudget
|
||||
{
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the V1PodDisruptionBudget class.
|
||||
/// </summary>
|
||||
public V1PodDisruptionBudget()
|
||||
{
|
||||
CustomInit();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the V1PodDisruptionBudget 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">Standard object's metadata. More info:
|
||||
/// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata</param>
|
||||
/// <param name="spec">Specification of the desired behavior of the
|
||||
/// PodDisruptionBudget.</param>
|
||||
/// <param name="status">Most recently observed status of the
|
||||
/// PodDisruptionBudget.</param>
|
||||
public V1PodDisruptionBudget(string apiVersion = default(string), string kind = default(string), V1ObjectMeta metadata = default(V1ObjectMeta), V1PodDisruptionBudgetSpec spec = default(V1PodDisruptionBudgetSpec), V1PodDisruptionBudgetStatus status = default(V1PodDisruptionBudgetStatus))
|
||||
{
|
||||
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 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 specification of the desired behavior of the
|
||||
/// PodDisruptionBudget.
|
||||
/// </summary>
|
||||
[JsonProperty(PropertyName = "spec")]
|
||||
public V1PodDisruptionBudgetSpec Spec { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets most recently observed status of the
|
||||
/// PodDisruptionBudget.
|
||||
/// </summary>
|
||||
[JsonProperty(PropertyName = "status")]
|
||||
public V1PodDisruptionBudgetStatus Status { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Validate the object.
|
||||
/// </summary>
|
||||
/// <exception cref="Microsoft.Rest.ValidationException">
|
||||
/// Thrown if validation fails
|
||||
/// </exception>
|
||||
public virtual void Validate()
|
||||
{
|
||||
if (Status != null)
|
||||
{
|
||||
Status.Validate();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -13,22 +13,22 @@ namespace k8s.Models
|
||||
using System.Linq;
|
||||
|
||||
/// <summary>
|
||||
/// FlowSchemaList is a list of FlowSchema objects.
|
||||
/// PodDisruptionBudgetList is a collection of PodDisruptionBudgets.
|
||||
/// </summary>
|
||||
public partial class V1alpha1FlowSchemaList
|
||||
public partial class V1PodDisruptionBudgetList
|
||||
{
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the V1alpha1FlowSchemaList class.
|
||||
/// Initializes a new instance of the V1PodDisruptionBudgetList class.
|
||||
/// </summary>
|
||||
public V1alpha1FlowSchemaList()
|
||||
public V1PodDisruptionBudgetList()
|
||||
{
|
||||
CustomInit();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the V1alpha1FlowSchemaList class.
|
||||
/// Initializes a new instance of the V1PodDisruptionBudgetList class.
|
||||
/// </summary>
|
||||
/// <param name="items">`items` is a list of FlowSchemas.</param>
|
||||
/// <param name="items">Items is a list of PodDisruptionBudgets</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
|
||||
@@ -39,10 +39,9 @@ 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>
|
||||
/// <param name="metadata">`metadata` is the standard list metadata.
|
||||
/// More info:
|
||||
/// <param name="metadata">Standard object's metadata. More info:
|
||||
/// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata</param>
|
||||
public V1alpha1FlowSchemaList(IList<V1alpha1FlowSchema> items, string apiVersion = default(string), string kind = default(string), V1ListMeta metadata = default(V1ListMeta))
|
||||
public V1PodDisruptionBudgetList(IList<V1PodDisruptionBudget> items, string apiVersion = default(string), string kind = default(string), V1ListMeta metadata = default(V1ListMeta))
|
||||
{
|
||||
ApiVersion = apiVersion;
|
||||
Items = items;
|
||||
@@ -67,10 +66,10 @@ namespace k8s.Models
|
||||
public string ApiVersion { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets `items` is a list of FlowSchemas.
|
||||
/// Gets or sets items is a list of PodDisruptionBudgets
|
||||
/// </summary>
|
||||
[JsonProperty(PropertyName = "items")]
|
||||
public IList<V1alpha1FlowSchema> Items { get; set; }
|
||||
public IList<V1PodDisruptionBudget> Items { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets kind is a string value representing the REST resource
|
||||
@@ -83,7 +82,7 @@ namespace k8s.Models
|
||||
public string Kind { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets `metadata` is the standard list metadata. More info:
|
||||
/// Gets or sets standard object's metadata. More info:
|
||||
/// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
|
||||
/// </summary>
|
||||
[JsonProperty(PropertyName = "metadata")]
|
||||
83
src/KubernetesClient/generated/Models/V1PodDisruptionBudgetSpec.cs
generated
Normal file
83
src/KubernetesClient/generated/Models/V1PodDisruptionBudgetSpec.cs
generated
Normal file
@@ -0,0 +1,83 @@
|
||||
// <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>
|
||||
/// PodDisruptionBudgetSpec is a description of a PodDisruptionBudget.
|
||||
/// </summary>
|
||||
public partial class V1PodDisruptionBudgetSpec
|
||||
{
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the V1PodDisruptionBudgetSpec class.
|
||||
/// </summary>
|
||||
public V1PodDisruptionBudgetSpec()
|
||||
{
|
||||
CustomInit();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the V1PodDisruptionBudgetSpec class.
|
||||
/// </summary>
|
||||
/// <param name="maxUnavailable">An eviction is allowed if at most
|
||||
/// "maxUnavailable" pods selected by "selector" are unavailable after
|
||||
/// the eviction, i.e. even in absence of the evicted pod. For example,
|
||||
/// one can prevent all voluntary evictions by specifying 0. This is a
|
||||
/// mutually exclusive setting with "minAvailable".</param>
|
||||
/// <param name="minAvailable">An eviction is allowed if at least
|
||||
/// "minAvailable" pods selected by "selector" will still be available
|
||||
/// after the eviction, i.e. even in the absence of the evicted pod.
|
||||
/// So for example you can prevent all voluntary evictions by
|
||||
/// specifying "100%".</param>
|
||||
/// <param name="selector">Label query over pods whose evictions are
|
||||
/// managed by the disruption budget. A null selector will match no
|
||||
/// pods, while an empty ({}) selector will select all pods within the
|
||||
/// namespace.</param>
|
||||
public V1PodDisruptionBudgetSpec(IntstrIntOrString maxUnavailable = default(IntstrIntOrString), IntstrIntOrString minAvailable = default(IntstrIntOrString), V1LabelSelector selector = default(V1LabelSelector))
|
||||
{
|
||||
MaxUnavailable = maxUnavailable;
|
||||
MinAvailable = minAvailable;
|
||||
Selector = selector;
|
||||
CustomInit();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// An initialization method that performs custom operations like setting defaults
|
||||
/// </summary>
|
||||
partial void CustomInit();
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets an eviction is allowed if at most "maxUnavailable"
|
||||
/// pods selected by "selector" are unavailable after the eviction,
|
||||
/// i.e. even in absence of the evicted pod. For example, one can
|
||||
/// prevent all voluntary evictions by specifying 0. This is a mutually
|
||||
/// exclusive setting with "minAvailable".
|
||||
/// </summary>
|
||||
[JsonProperty(PropertyName = "maxUnavailable")]
|
||||
public IntstrIntOrString MaxUnavailable { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets an eviction is allowed if at least "minAvailable" pods
|
||||
/// selected by "selector" will still be available after the eviction,
|
||||
/// i.e. even in the absence of the evicted pod. So for example you
|
||||
/// can prevent all voluntary evictions by specifying "100%".
|
||||
/// </summary>
|
||||
[JsonProperty(PropertyName = "minAvailable")]
|
||||
public IntstrIntOrString MinAvailable { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets label query over pods whose evictions are managed by
|
||||
/// the disruption budget. A null selector will match no pods, while an
|
||||
/// empty ({}) selector will select all pods within the namespace.
|
||||
/// </summary>
|
||||
[JsonProperty(PropertyName = "selector")]
|
||||
public V1LabelSelector Selector { get; set; }
|
||||
|
||||
}
|
||||
}
|
||||
181
src/KubernetesClient/generated/Models/V1PodDisruptionBudgetStatus.cs
generated
Normal file
181
src/KubernetesClient/generated/Models/V1PodDisruptionBudgetStatus.cs
generated
Normal file
@@ -0,0 +1,181 @@
|
||||
// <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>
|
||||
/// PodDisruptionBudgetStatus represents information about the status of a
|
||||
/// PodDisruptionBudget. Status may trail the actual state of a system.
|
||||
/// </summary>
|
||||
public partial class V1PodDisruptionBudgetStatus
|
||||
{
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the V1PodDisruptionBudgetStatus
|
||||
/// class.
|
||||
/// </summary>
|
||||
public V1PodDisruptionBudgetStatus()
|
||||
{
|
||||
CustomInit();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the V1PodDisruptionBudgetStatus
|
||||
/// class.
|
||||
/// </summary>
|
||||
/// <param name="currentHealthy">current number of healthy pods</param>
|
||||
/// <param name="desiredHealthy">minimum desired number of healthy
|
||||
/// pods</param>
|
||||
/// <param name="disruptionsAllowed">Number of pod disruptions that are
|
||||
/// currently allowed.</param>
|
||||
/// <param name="expectedPods">total number of pods counted by this
|
||||
/// disruption budget</param>
|
||||
/// <param name="conditions">Conditions contain conditions for PDB. The
|
||||
/// disruption controller sets the DisruptionAllowed condition. The
|
||||
/// following are known values for the reason field (additional reasons
|
||||
/// could be added in the future): - SyncFailed: The controller
|
||||
/// encountered an error and wasn't able to compute
|
||||
/// the number of allowed disruptions. Therefore no disruptions are
|
||||
/// allowed and the status of the condition will be False.
|
||||
/// - InsufficientPods: The number of pods are either at or below the
|
||||
/// number
|
||||
/// required by the PodDisruptionBudget. No disruptions are
|
||||
/// allowed and the status of the condition will be False.
|
||||
/// - SufficientPods: There are more pods than required by the
|
||||
/// PodDisruptionBudget.
|
||||
/// The condition will be True, and the number of allowed
|
||||
/// disruptions are provided by the disruptionsAllowed
|
||||
/// property.</param>
|
||||
/// <param name="disruptedPods">DisruptedPods contains information
|
||||
/// about pods whose eviction was processed by the API server eviction
|
||||
/// subresource handler but has not yet been observed by the
|
||||
/// PodDisruptionBudget controller. A pod will be in this map from the
|
||||
/// time when the API server processed the eviction request to the time
|
||||
/// when the pod is seen by PDB controller as having been marked for
|
||||
/// deletion (or after a timeout). The key in the map is the name of
|
||||
/// the pod and the value is the time when the API server processed the
|
||||
/// eviction request. If the deletion didn't occur and a pod is still
|
||||
/// there it will be removed from the list automatically by
|
||||
/// PodDisruptionBudget controller after some time. If everything goes
|
||||
/// smooth this map should be empty for the most of the time. Large
|
||||
/// number of entries in the map may indicate problems with pod
|
||||
/// deletions.</param>
|
||||
/// <param name="observedGeneration">Most recent generation observed
|
||||
/// when updating this PDB status. DisruptionsAllowed and other status
|
||||
/// information is valid only if observedGeneration equals to PDB's
|
||||
/// object generation.</param>
|
||||
public V1PodDisruptionBudgetStatus(int currentHealthy, int desiredHealthy, int disruptionsAllowed, int expectedPods, IList<V1Condition> conditions = default(IList<V1Condition>), IDictionary<string, System.DateTime?> disruptedPods = default(IDictionary<string, System.DateTime?>), long? observedGeneration = default(long?))
|
||||
{
|
||||
Conditions = conditions;
|
||||
CurrentHealthy = currentHealthy;
|
||||
DesiredHealthy = desiredHealthy;
|
||||
DisruptedPods = disruptedPods;
|
||||
DisruptionsAllowed = disruptionsAllowed;
|
||||
ExpectedPods = expectedPods;
|
||||
ObservedGeneration = observedGeneration;
|
||||
CustomInit();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// An initialization method that performs custom operations like setting defaults
|
||||
/// </summary>
|
||||
partial void CustomInit();
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets conditions contain conditions for PDB. The disruption
|
||||
/// controller sets the DisruptionAllowed condition. The following are
|
||||
/// known values for the reason field (additional reasons could be
|
||||
/// added in the future): - SyncFailed: The controller encountered an
|
||||
/// error and wasn't able to compute
|
||||
/// the number of allowed disruptions. Therefore no disruptions are
|
||||
/// allowed and the status of the condition will be False.
|
||||
/// - InsufficientPods: The number of pods are either at or below the
|
||||
/// number
|
||||
/// required by the PodDisruptionBudget. No disruptions are
|
||||
/// allowed and the status of the condition will be False.
|
||||
/// - SufficientPods: There are more pods than required by the
|
||||
/// PodDisruptionBudget.
|
||||
/// The condition will be True, and the number of allowed
|
||||
/// disruptions are provided by the disruptionsAllowed property.
|
||||
/// </summary>
|
||||
[JsonProperty(PropertyName = "conditions")]
|
||||
public IList<V1Condition> Conditions { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets current number of healthy pods
|
||||
/// </summary>
|
||||
[JsonProperty(PropertyName = "currentHealthy")]
|
||||
public int CurrentHealthy { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets minimum desired number of healthy pods
|
||||
/// </summary>
|
||||
[JsonProperty(PropertyName = "desiredHealthy")]
|
||||
public int DesiredHealthy { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets disruptedPods contains information about pods whose
|
||||
/// eviction was processed by the API server eviction subresource
|
||||
/// handler but has not yet been observed by the PodDisruptionBudget
|
||||
/// controller. A pod will be in this map from the time when the API
|
||||
/// server processed the eviction request to the time when the pod is
|
||||
/// seen by PDB controller as having been marked for deletion (or after
|
||||
/// a timeout). The key in the map is the name of the pod and the value
|
||||
/// is the time when the API server processed the eviction request. If
|
||||
/// the deletion didn't occur and a pod is still there it will be
|
||||
/// removed from the list automatically by PodDisruptionBudget
|
||||
/// controller after some time. If everything goes smooth this map
|
||||
/// should be empty for the most of the time. Large number of entries
|
||||
/// in the map may indicate problems with pod deletions.
|
||||
/// </summary>
|
||||
[JsonProperty(PropertyName = "disruptedPods")]
|
||||
public IDictionary<string, System.DateTime?> DisruptedPods { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets number of pod disruptions that are currently allowed.
|
||||
/// </summary>
|
||||
[JsonProperty(PropertyName = "disruptionsAllowed")]
|
||||
public int DisruptionsAllowed { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets total number of pods counted by this disruption budget
|
||||
/// </summary>
|
||||
[JsonProperty(PropertyName = "expectedPods")]
|
||||
public int ExpectedPods { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets most recent generation observed when updating this PDB
|
||||
/// status. DisruptionsAllowed and other status information is valid
|
||||
/// only if observedGeneration equals to PDB's object generation.
|
||||
/// </summary>
|
||||
[JsonProperty(PropertyName = "observedGeneration")]
|
||||
public long? ObservedGeneration { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Validate the object.
|
||||
/// </summary>
|
||||
/// <exception cref="Microsoft.Rest.ValidationException">
|
||||
/// Thrown if validation fails
|
||||
/// </exception>
|
||||
public virtual void Validate()
|
||||
{
|
||||
if (Conditions != null)
|
||||
{
|
||||
foreach (var element in Conditions)
|
||||
{
|
||||
if (element != null)
|
||||
{
|
||||
element.Validate();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
26
src/KubernetesClient/generated/Models/V1PodSpec.cs
generated
26
src/KubernetesClient/generated/Models/V1PodSpec.cs
generated
@@ -187,12 +187,13 @@ namespace k8s.Models
|
||||
/// <param name="terminationGracePeriodSeconds">Optional duration in
|
||||
/// seconds the pod needs to terminate gracefully. May be decreased in
|
||||
/// delete request. Value must be non-negative integer. The value zero
|
||||
/// indicates delete immediately. If this value is nil, the default
|
||||
/// grace period will be used instead. The grace period is the duration
|
||||
/// in seconds after the processes running in the pod are sent a
|
||||
/// termination signal and the time when the processes are forcibly
|
||||
/// halted with a kill signal. Set this value longer than the expected
|
||||
/// cleanup time for your process. Defaults to 30 seconds.</param>
|
||||
/// indicates stop immediately via the kill signal (no opportunity to
|
||||
/// shut down). If this value is nil, the default grace period will be
|
||||
/// used instead. The grace period is the duration in seconds after the
|
||||
/// processes running in the pod are sent a termination signal and the
|
||||
/// time when the processes are forcibly halted with a kill signal. Set
|
||||
/// this value longer than the expected cleanup time for your process.
|
||||
/// Defaults to 30 seconds.</param>
|
||||
/// <param name="tolerations">If specified, the pod's
|
||||
/// tolerations.</param>
|
||||
/// <param name="topologySpreadConstraints">TopologySpreadConstraints
|
||||
@@ -551,12 +552,13 @@ namespace k8s.Models
|
||||
/// <summary>
|
||||
/// Gets or sets optional duration in seconds the pod needs to
|
||||
/// terminate gracefully. May be decreased in delete request. Value
|
||||
/// must be non-negative integer. The value zero indicates delete
|
||||
/// immediately. If this value is nil, the default grace period will be
|
||||
/// used instead. The grace period is the duration in seconds after the
|
||||
/// processes running in the pod are sent a termination signal and the
|
||||
/// time when the processes are forcibly halted with a kill signal. Set
|
||||
/// this value longer than the expected cleanup time for your process.
|
||||
/// must be non-negative integer. The value zero indicates stop
|
||||
/// immediately via the kill signal (no opportunity to shut down). If
|
||||
/// this value is nil, the default grace period will be used instead.
|
||||
/// The grace period is the duration in seconds after the processes
|
||||
/// running in the pod are sent a termination signal and the time when
|
||||
/// the processes are forcibly halted with a kill signal. Set this
|
||||
/// value longer than the expected cleanup time for your process.
|
||||
/// Defaults to 30 seconds.
|
||||
/// </summary>
|
||||
[JsonProperty(PropertyName = "terminationGracePeriodSeconds")]
|
||||
|
||||
32
src/KubernetesClient/generated/Models/V1Probe.cs
generated
32
src/KubernetesClient/generated/Models/V1Probe.cs
generated
@@ -45,11 +45,23 @@ namespace k8s.Models
|
||||
/// 1.</param>
|
||||
/// <param name="tcpSocket">TCPSocket specifies an action involving a
|
||||
/// TCP port. TCP hooks not yet supported</param>
|
||||
/// <param name="terminationGracePeriodSeconds">Optional duration in
|
||||
/// seconds the pod needs to terminate gracefully upon probe failure.
|
||||
/// The grace period is the duration in seconds after the processes
|
||||
/// running in the pod are sent a termination signal and the time when
|
||||
/// the processes are forcibly halted with a kill signal. Set this
|
||||
/// value longer than the expected cleanup time for your process. If
|
||||
/// this value is nil, the pod's terminationGracePeriodSeconds will be
|
||||
/// used. Otherwise, this value overrides the value provided by the pod
|
||||
/// spec. Value must be non-negative integer. The value zero indicates
|
||||
/// stop immediately via the kill signal (no opportunity to shut down).
|
||||
/// This is an alpha field and requires enabling
|
||||
/// ProbeTerminationGracePeriod feature gate.</param>
|
||||
/// <param name="timeoutSeconds">Number of seconds after which the
|
||||
/// probe times out. Defaults to 1 second. Minimum value is 1. More
|
||||
/// info:
|
||||
/// https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes</param>
|
||||
public V1Probe(V1ExecAction exec = default(V1ExecAction), int? failureThreshold = default(int?), V1HTTPGetAction httpGet = default(V1HTTPGetAction), int? initialDelaySeconds = default(int?), int? periodSeconds = default(int?), int? successThreshold = default(int?), V1TCPSocketAction tcpSocket = default(V1TCPSocketAction), int? timeoutSeconds = default(int?))
|
||||
public V1Probe(V1ExecAction exec = default(V1ExecAction), int? failureThreshold = default(int?), V1HTTPGetAction httpGet = default(V1HTTPGetAction), int? initialDelaySeconds = default(int?), int? periodSeconds = default(int?), int? successThreshold = default(int?), V1TCPSocketAction tcpSocket = default(V1TCPSocketAction), long? terminationGracePeriodSeconds = default(long?), int? timeoutSeconds = default(int?))
|
||||
{
|
||||
Exec = exec;
|
||||
FailureThreshold = failureThreshold;
|
||||
@@ -58,6 +70,7 @@ namespace k8s.Models
|
||||
PeriodSeconds = periodSeconds;
|
||||
SuccessThreshold = successThreshold;
|
||||
TcpSocket = tcpSocket;
|
||||
TerminationGracePeriodSeconds = terminationGracePeriodSeconds;
|
||||
TimeoutSeconds = timeoutSeconds;
|
||||
CustomInit();
|
||||
}
|
||||
@@ -118,6 +131,23 @@ namespace k8s.Models
|
||||
[JsonProperty(PropertyName = "tcpSocket")]
|
||||
public V1TCPSocketAction TcpSocket { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets optional duration in seconds the pod needs to
|
||||
/// terminate gracefully upon probe failure. The grace period is the
|
||||
/// duration in seconds after the processes running in the pod are sent
|
||||
/// a termination signal and the time when the processes are forcibly
|
||||
/// halted with a kill signal. Set this value longer than the expected
|
||||
/// cleanup time for your process. If this value is nil, the pod's
|
||||
/// terminationGracePeriodSeconds will be used. Otherwise, this value
|
||||
/// overrides the value provided by the pod spec. Value must be
|
||||
/// non-negative integer. The value zero indicates stop immediately via
|
||||
/// the kill signal (no opportunity to shut down). This is an alpha
|
||||
/// field and requires enabling ProbeTerminationGracePeriod feature
|
||||
/// gate.
|
||||
/// </summary>
|
||||
[JsonProperty(PropertyName = "terminationGracePeriodSeconds")]
|
||||
public long? TerminationGracePeriodSeconds { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets number of seconds after which the probe times out.
|
||||
/// Defaults to 1 second. Minimum value is 1. More info:
|
||||
|
||||
@@ -29,12 +29,12 @@ namespace k8s.Models
|
||||
/// </summary>
|
||||
/// <param name="limits">Limits describes the maximum amount of compute
|
||||
/// resources allowed. More info:
|
||||
/// https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/</param>
|
||||
/// https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/</param>
|
||||
/// <param name="requests">Requests describes the minimum amount of
|
||||
/// compute resources required. If Requests is omitted for a container,
|
||||
/// it defaults to Limits if that is explicitly specified, otherwise to
|
||||
/// an implementation-defined value. More info:
|
||||
/// https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/</param>
|
||||
/// https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/</param>
|
||||
public V1ResourceRequirements(IDictionary<string, ResourceQuantity> limits = default(IDictionary<string, ResourceQuantity>), IDictionary<string, ResourceQuantity> requests = default(IDictionary<string, ResourceQuantity>))
|
||||
{
|
||||
Limits = limits;
|
||||
@@ -50,7 +50,7 @@ namespace k8s.Models
|
||||
/// <summary>
|
||||
/// Gets or sets limits describes the maximum amount of compute
|
||||
/// resources allowed. More info:
|
||||
/// https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/
|
||||
/// https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/
|
||||
/// </summary>
|
||||
[JsonProperty(PropertyName = "limits")]
|
||||
public IDictionary<string, ResourceQuantity> Limits { get; set; }
|
||||
@@ -60,7 +60,7 @@ namespace k8s.Models
|
||||
/// resources required. If Requests is omitted for a container, it
|
||||
/// defaults to Limits if that is explicitly specified, otherwise to an
|
||||
/// implementation-defined value. More info:
|
||||
/// https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/
|
||||
/// https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/
|
||||
/// </summary>
|
||||
[JsonProperty(PropertyName = "requests")]
|
||||
public IDictionary<string, ResourceQuantity> Requests { get; set; }
|
||||
|
||||
@@ -25,22 +25,44 @@ namespace k8s.Models
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the V1RollingUpdateDaemonSet class.
|
||||
/// </summary>
|
||||
/// <param name="maxSurge">The maximum number of nodes with an existing
|
||||
/// available DaemonSet pod that can have an updated DaemonSet pod
|
||||
/// during during an update. Value can be an absolute number (ex: 5) or
|
||||
/// a percentage of desired pods (ex: 10%). This can not be 0 if
|
||||
/// MaxUnavailable is 0. Absolute number is calculated from percentage
|
||||
/// by rounding up to a minimum of 1. Default value is 0. Example: when
|
||||
/// this is set to 30%, at most 30% of the total number of nodes that
|
||||
/// should be running the daemon pod (i.e.
|
||||
/// status.desiredNumberScheduled) can have their a new pod created
|
||||
/// before the old pod is marked as deleted. The update starts by
|
||||
/// launching new pods on 30% of nodes. Once an updated pod is
|
||||
/// available (Ready for at least minReadySeconds) the old DaemonSet
|
||||
/// pod on that node is marked deleted. If the old pod becomes
|
||||
/// unavailable for any reason (Ready transitions to false, is evicted,
|
||||
/// or is drained) an updated pod is immediatedly created on that node
|
||||
/// without considering surge limits. Allowing surge implies the
|
||||
/// possibility that the resources consumed by the daemonset on any
|
||||
/// given node can double if the readiness check fails, and so resource
|
||||
/// intensive daemonsets should take into account that they may cause
|
||||
/// evictions during disruption. This is an alpha field and requires
|
||||
/// enabling DaemonSetUpdateSurge feature gate.</param>
|
||||
/// <param name="maxUnavailable">The maximum number of DaemonSet pods
|
||||
/// that can be unavailable during the update. Value can be an absolute
|
||||
/// number (ex: 5) or a percentage of total number of DaemonSet pods at
|
||||
/// the start of the update (ex: 10%). Absolute number is calculated
|
||||
/// from percentage by rounding up. This cannot be 0. Default value is
|
||||
/// 1. Example: when this is set to 30%, at most 30% of the total
|
||||
/// number of nodes that should be running the daemon pod (i.e.
|
||||
/// status.desiredNumberScheduled) can have their pods stopped for an
|
||||
/// update at any given time. The update starts by stopping at most 30%
|
||||
/// of those DaemonSet pods and then brings up new DaemonSet pods in
|
||||
/// their place. Once the new pods are available, it then proceeds onto
|
||||
/// other DaemonSet pods, thus ensuring that at least 70% of original
|
||||
/// number of DaemonSet pods are available at all times during the
|
||||
/// update.</param>
|
||||
public V1RollingUpdateDaemonSet(IntstrIntOrString maxUnavailable = default(IntstrIntOrString))
|
||||
/// from percentage by rounding down to a minimum of one. This cannot
|
||||
/// be 0 if MaxSurge is 0 Default value is 1. Example: when this is set
|
||||
/// to 30%, at most 30% of the total number of nodes that should be
|
||||
/// running the daemon pod (i.e. status.desiredNumberScheduled) can
|
||||
/// have their pods stopped for an update at any given time. The update
|
||||
/// starts by stopping at most 30% of those DaemonSet pods and then
|
||||
/// brings up new DaemonSet pods in their place. Once the new pods are
|
||||
/// available, it then proceeds onto other DaemonSet pods, thus
|
||||
/// ensuring that at least 70% of original number of DaemonSet pods are
|
||||
/// available at all times during the update.</param>
|
||||
public V1RollingUpdateDaemonSet(IntstrIntOrString maxSurge = default(IntstrIntOrString), IntstrIntOrString maxUnavailable = default(IntstrIntOrString))
|
||||
{
|
||||
MaxSurge = maxSurge;
|
||||
MaxUnavailable = maxUnavailable;
|
||||
CustomInit();
|
||||
}
|
||||
@@ -50,21 +72,47 @@ namespace k8s.Models
|
||||
/// </summary>
|
||||
partial void CustomInit();
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the maximum number of nodes with an existing available
|
||||
/// DaemonSet pod that can have an updated DaemonSet pod during during
|
||||
/// an update. Value can be an absolute number (ex: 5) or a percentage
|
||||
/// of desired pods (ex: 10%). This can not be 0 if MaxUnavailable is
|
||||
/// 0. Absolute number is calculated from percentage by rounding up to
|
||||
/// a minimum of 1. Default value is 0. Example: when this is set to
|
||||
/// 30%, at most 30% of the total number of nodes that should be
|
||||
/// running the daemon pod (i.e. status.desiredNumberScheduled) can
|
||||
/// have their a new pod created before the old pod is marked as
|
||||
/// deleted. The update starts by launching new pods on 30% of nodes.
|
||||
/// Once an updated pod is available (Ready for at least
|
||||
/// minReadySeconds) the old DaemonSet pod on that node is marked
|
||||
/// deleted. If the old pod becomes unavailable for any reason (Ready
|
||||
/// transitions to false, is evicted, or is drained) an updated pod is
|
||||
/// immediatedly created on that node without considering surge limits.
|
||||
/// Allowing surge implies the possibility that the resources consumed
|
||||
/// by the daemonset on any given node can double if the readiness
|
||||
/// check fails, and so resource intensive daemonsets should take into
|
||||
/// account that they may cause evictions during disruption. This is an
|
||||
/// alpha field and requires enabling DaemonSetUpdateSurge feature
|
||||
/// gate.
|
||||
/// </summary>
|
||||
[JsonProperty(PropertyName = "maxSurge")]
|
||||
public IntstrIntOrString MaxSurge { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the maximum number of DaemonSet pods that can be
|
||||
/// unavailable during the update. Value can be an absolute number (ex:
|
||||
/// 5) or a percentage of total number of DaemonSet pods at the start
|
||||
/// of the update (ex: 10%). Absolute number is calculated from
|
||||
/// percentage by rounding up. This cannot be 0. Default value is 1.
|
||||
/// Example: when this is set to 30%, at most 30% of the total number
|
||||
/// of nodes that should be running the daemon pod (i.e.
|
||||
/// status.desiredNumberScheduled) can have their pods stopped for an
|
||||
/// update at any given time. The update starts by stopping at most 30%
|
||||
/// of those DaemonSet pods and then brings up new DaemonSet pods in
|
||||
/// their place. Once the new pods are available, it then proceeds onto
|
||||
/// other DaemonSet pods, thus ensuring that at least 70% of original
|
||||
/// number of DaemonSet pods are available at all times during the
|
||||
/// update.
|
||||
/// percentage by rounding down to a minimum of one. This cannot be 0
|
||||
/// if MaxSurge is 0 Default value is 1. Example: when this is set to
|
||||
/// 30%, at most 30% of the total number of nodes that should be
|
||||
/// running the daemon pod (i.e. status.desiredNumberScheduled) can
|
||||
/// have their pods stopped for an update at any given time. The update
|
||||
/// starts by stopping at most 30% of those DaemonSet pods and then
|
||||
/// brings up new DaemonSet pods in their place. Once the new pods are
|
||||
/// available, it then proceeds onto other DaemonSet pods, thus
|
||||
/// ensuring that at least 70% of original number of DaemonSet pods are
|
||||
/// available at all times during the update.
|
||||
/// </summary>
|
||||
[JsonProperty(PropertyName = "maxUnavailable")]
|
||||
public IntstrIntOrString MaxUnavailable { get; set; }
|
||||
|
||||
22
src/KubernetesClient/generated/Models/V1Secret.cs
generated
22
src/KubernetesClient/generated/Models/V1Secret.cs
generated
@@ -41,8 +41,7 @@ namespace k8s.Models
|
||||
/// <param name="immutable">Immutable, if set to true, ensures that
|
||||
/// data stored in the Secret cannot be updated (only object metadata
|
||||
/// can be modified). If not set to true, the field can be modified at
|
||||
/// any time. Defaulted to nil. This is a beta field enabled by
|
||||
/// ImmutableEphemeralVolumes feature gate.</param>
|
||||
/// any time. Defaulted to nil.</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
|
||||
@@ -51,10 +50,10 @@ namespace k8s.Models
|
||||
/// <param name="metadata">Standard object's metadata. More info:
|
||||
/// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata</param>
|
||||
/// <param name="stringData">stringData allows specifying non-binary
|
||||
/// secret data in string form. It is provided as a write-only
|
||||
/// convenience method. All keys and values are merged into the data
|
||||
/// field on write, overwriting any existing values. It is never output
|
||||
/// when reading from the API.</param>
|
||||
/// secret data in string form. It is provided as a write-only input
|
||||
/// field for convenience. All keys and values are merged into the data
|
||||
/// field on write, overwriting any existing values. The stringData
|
||||
/// field is never output when reading from the API.</param>
|
||||
/// <param name="type">Used to facilitate programmatic handling of
|
||||
/// secret data.</param>
|
||||
public V1Secret(string apiVersion = default(string), IDictionary<string, byte[]> data = default(IDictionary<string, byte[]>), bool? immutable = default(bool?), string kind = default(string), V1ObjectMeta metadata = default(V1ObjectMeta), IDictionary<string, string> stringData = default(IDictionary<string, string>), string type = default(string))
|
||||
@@ -98,8 +97,7 @@ namespace k8s.Models
|
||||
/// Gets or sets immutable, if set to true, ensures that data stored in
|
||||
/// the Secret cannot be updated (only object metadata can be
|
||||
/// modified). If not set to true, the field can be modified at any
|
||||
/// time. Defaulted to nil. This is a beta field enabled by
|
||||
/// ImmutableEphemeralVolumes feature gate.
|
||||
/// time. Defaulted to nil.
|
||||
/// </summary>
|
||||
[JsonProperty(PropertyName = "immutable")]
|
||||
public bool? Immutable { get; set; }
|
||||
@@ -123,10 +121,10 @@ namespace k8s.Models
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets stringData allows specifying non-binary secret data in
|
||||
/// string form. It is provided as a write-only convenience method. All
|
||||
/// keys and values are merged into the data field on write,
|
||||
/// overwriting any existing values. It is never output when reading
|
||||
/// from the API.
|
||||
/// string form. It is provided as a write-only input field for
|
||||
/// convenience. All keys and values are merged into the data field on
|
||||
/// write, overwriting any existing values. The stringData field is
|
||||
/// never output when reading from the API.
|
||||
/// </summary>
|
||||
[JsonProperty(PropertyName = "stringData")]
|
||||
public IDictionary<string, string> StringData { get; set; }
|
||||
|
||||
@@ -92,7 +92,7 @@ namespace k8s.Models
|
||||
/// 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>
|
||||
/// and requires `type` to be "ExternalName".</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
|
||||
@@ -110,6 +110,12 @@ namespace k8s.Models
|
||||
/// 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="internalTrafficPolicy">InternalTrafficPolicy specifies
|
||||
/// if the cluster internal traffic should be routed to all endpoints
|
||||
/// or node-local endpoints only. "Cluster" routes internal traffic to
|
||||
/// a Service to all endpoints. "Local" routes traffic to node-local
|
||||
/// endpoints only, traffic is dropped if no node-local endpoints are
|
||||
/// ready. The default value is "Cluster".</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
|
||||
@@ -138,6 +144,22 @@ namespace k8s.Models
|
||||
/// 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="loadBalancerClass">loadBalancerClass is the class of
|
||||
/// the load balancer implementation this Service belongs to. If
|
||||
/// specified, the value of this field must be a label-style
|
||||
/// identifier, with an optional prefix, e.g. "internal-vip" or
|
||||
/// "example.com/internal-vip". Unprefixed names are reserved for
|
||||
/// end-users. This field can only be set when the Service type is
|
||||
/// 'LoadBalancer'. If not set, the default load balancer
|
||||
/// implementation is used, today this is typically done through the
|
||||
/// cloud provider integration, but should apply for any default
|
||||
/// implementation. If set, it is assumed that a load balancer
|
||||
/// implementation is watching for Services with a matching class. Any
|
||||
/// default load balancer implementation (e.g. cloud providers) should
|
||||
/// ignore Services that set this field. This field can only be set
|
||||
/// when creating or updating a Service to type 'LoadBalancer'. Once
|
||||
/// set, it can not be changed. This field will be wiped when a service
|
||||
/// is updated to a non 'LoadBalancer' type.</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
|
||||
@@ -190,7 +212,8 @@ namespace k8s.Models
|
||||
/// 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. This field is alpha-level and is only honored by
|
||||
/// servers that enable the ServiceTopology feature.</param>
|
||||
/// servers that enable the ServiceTopology feature. This field is
|
||||
/// deprecated and will be removed in a future version.</param>
|
||||
/// <param name="type">type determines how the Service is exposed.
|
||||
/// Defaults to ClusterIP. Valid options are ExternalName, ClusterIP,
|
||||
/// NodePort, and LoadBalancer. "ClusterIP" allocates a
|
||||
@@ -207,7 +230,7 @@ namespace k8s.Models
|
||||
/// 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(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))
|
||||
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?), string internalTrafficPolicy = default(string), IList<string> ipFamilies = default(IList<string>), string ipFamilyPolicy = default(string), string loadBalancerClass = 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;
|
||||
@@ -216,8 +239,10 @@ namespace k8s.Models
|
||||
ExternalName = externalName;
|
||||
ExternalTrafficPolicy = externalTrafficPolicy;
|
||||
HealthCheckNodePort = healthCheckNodePort;
|
||||
InternalTrafficPolicy = internalTrafficPolicy;
|
||||
IpFamilies = ipFamilies;
|
||||
IpFamilyPolicy = ipFamilyPolicy;
|
||||
LoadBalancerClass = loadBalancerClass;
|
||||
LoadBalancerIP = loadBalancerIP;
|
||||
LoadBalancerSourceRanges = loadBalancerSourceRanges;
|
||||
Ports = ports;
|
||||
@@ -319,7 +344,7 @@ namespace k8s.Models
|
||||
/// 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
|
||||
/// requires `type` to be "ExternalName".
|
||||
/// </summary>
|
||||
[JsonProperty(PropertyName = "externalName")]
|
||||
public string ExternalName { get; set; }
|
||||
@@ -351,6 +376,17 @@ namespace k8s.Models
|
||||
[JsonProperty(PropertyName = "healthCheckNodePort")]
|
||||
public int? HealthCheckNodePort { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets internalTrafficPolicy specifies if the cluster
|
||||
/// internal traffic should be routed to all endpoints or node-local
|
||||
/// endpoints only. "Cluster" routes internal traffic to a Service to
|
||||
/// all endpoints. "Local" routes traffic to node-local endpoints only,
|
||||
/// traffic is dropped if no node-local endpoints are ready. The
|
||||
/// default value is "Cluster".
|
||||
/// </summary>
|
||||
[JsonProperty(PropertyName = "internalTrafficPolicy")]
|
||||
public string InternalTrafficPolicy { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets iPFamilies is a list of IP families (e.g. IPv4, IPv6)
|
||||
/// assigned to this service, and is gated by the "IPv6DualStack"
|
||||
@@ -389,6 +425,26 @@ namespace k8s.Models
|
||||
[JsonProperty(PropertyName = "ipFamilyPolicy")]
|
||||
public string IpFamilyPolicy { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets loadBalancerClass is the class of the load balancer
|
||||
/// implementation this Service belongs to. If specified, the value of
|
||||
/// this field must be a label-style identifier, with an optional
|
||||
/// prefix, e.g. "internal-vip" or "example.com/internal-vip".
|
||||
/// Unprefixed names are reserved for end-users. This field can only be
|
||||
/// set when the Service type is 'LoadBalancer'. If not set, the
|
||||
/// default load balancer implementation is used, today this is
|
||||
/// typically done through the cloud provider integration, but should
|
||||
/// apply for any default implementation. If set, it is assumed that a
|
||||
/// load balancer implementation is watching for Services with a
|
||||
/// matching class. Any default load balancer implementation (e.g.
|
||||
/// cloud providers) should ignore Services that set this field. This
|
||||
/// field can only be set when creating or updating a Service to type
|
||||
/// 'LoadBalancer'. Once set, it can not be changed. This field will be
|
||||
/// wiped when a service is updated to a non 'LoadBalancer' type.
|
||||
/// </summary>
|
||||
[JsonProperty(PropertyName = "loadBalancerClass")]
|
||||
public string LoadBalancerClass { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets only applies to Service Type: LoadBalancer
|
||||
/// LoadBalancer will get created with the IP specified in this field.
|
||||
@@ -476,7 +532,8 @@ namespace k8s.Models
|
||||
/// makes sense as the last value in the list. If this is not specified
|
||||
/// or empty, no topology constraints will be applied. This field is
|
||||
/// alpha-level and is only honored by servers that enable the
|
||||
/// ServiceTopology feature.
|
||||
/// ServiceTopology feature. This field is deprecated and will be
|
||||
/// removed in a future version.
|
||||
/// </summary>
|
||||
[JsonProperty(PropertyName = "topologyKeys")]
|
||||
public IList<string> TopologyKeys { get; set; }
|
||||
|
||||
@@ -48,7 +48,7 @@ namespace k8s.Models
|
||||
/// (webhooks created via v1beta1 may also specify Some or Unknown).
|
||||
/// Webhooks with side effects MUST implement a reconciliation system,
|
||||
/// since a request may be rejected by a future step in the admission
|
||||
/// change and the side effects therefore need to be undone. Requests
|
||||
/// chain and the side effects therefore need to be undone. Requests
|
||||
/// with the dryRun attribute will be auto-rejected if they match a
|
||||
/// webhook with sideEffects == Unknown or Some.</param>
|
||||
/// <param name="failurePolicy">FailurePolicy defines how unrecognized
|
||||
@@ -308,8 +308,8 @@ namespace k8s.Models
|
||||
/// effects. Acceptable values are: None, NoneOnDryRun (webhooks
|
||||
/// created via v1beta1 may also specify Some or Unknown). Webhooks
|
||||
/// with side effects MUST implement a reconciliation system, since a
|
||||
/// request may be rejected by a future step in the admission change
|
||||
/// and the side effects therefore need to be undone. Requests with the
|
||||
/// request may be rejected by a future step in the admission chain and
|
||||
/// the side effects therefore need to be undone. Requests with the
|
||||
/// dryRun attribute will be auto-rejected if they match a webhook with
|
||||
/// sideEffects == Unknown or Some.
|
||||
/// </summary>
|
||||
|
||||
20
src/KubernetesClient/generated/Models/V1Volume.cs
generated
20
src/KubernetesClient/generated/Models/V1Volume.cs
generated
@@ -54,9 +54,9 @@ namespace k8s.Models
|
||||
/// that shares a pod's lifetime. More info:
|
||||
/// https://kubernetes.io/docs/concepts/storage/volumes#emptydir</param>
|
||||
/// <param name="ephemeral">Ephemeral represents a volume that is
|
||||
/// handled by a cluster storage driver (Alpha feature). The volume's
|
||||
/// lifecycle is tied to the pod that defines it - it will be created
|
||||
/// before the pod starts, and deleted when the pod is removed.
|
||||
/// handled by a cluster storage driver. The volume's lifecycle is tied
|
||||
/// to the pod that defines it - it will be created before the pod
|
||||
/// starts, and deleted when the pod is removed.
|
||||
///
|
||||
/// Use this if: a) the volume is only needed while the pod runs, b)
|
||||
/// features of normal volumes like restoring from snapshot or capacity
|
||||
@@ -76,7 +76,10 @@ namespace k8s.Models
|
||||
/// for more information.
|
||||
///
|
||||
/// A pod can use both types of ephemeral volumes and persistent
|
||||
/// volumes at the same time.</param>
|
||||
/// volumes at the same time.
|
||||
///
|
||||
/// This is a beta feature and only available when the
|
||||
/// GenericEphemeralVolume feature gate is enabled.</param>
|
||||
/// <param name="fc">FC represents a Fibre Channel resource that is
|
||||
/// attached to a kubelet's host machine and then exposed to the
|
||||
/// pod.</param>
|
||||
@@ -246,9 +249,9 @@ namespace k8s.Models
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets ephemeral represents a volume that is handled by a
|
||||
/// cluster storage driver (Alpha feature). The volume's lifecycle is
|
||||
/// tied to the pod that defines it - it will be created before the pod
|
||||
/// starts, and deleted when the pod is removed.
|
||||
/// cluster storage driver. The volume's lifecycle is tied to the pod
|
||||
/// that defines it - it will be created before the pod starts, and
|
||||
/// deleted when the pod is removed.
|
||||
///
|
||||
/// Use this if: a) the volume is only needed while the pod runs, b)
|
||||
/// features of normal volumes like restoring from snapshot or capacity
|
||||
@@ -269,6 +272,9 @@ namespace k8s.Models
|
||||
///
|
||||
/// A pod can use both types of ephemeral volumes and persistent
|
||||
/// volumes at the same time.
|
||||
///
|
||||
/// This is a beta feature and only available when the
|
||||
/// GenericEphemeralVolume feature gate is enabled.
|
||||
/// </summary>
|
||||
[JsonProperty(PropertyName = "ephemeral")]
|
||||
public V1EphemeralVolumeSource Ephemeral { get; set; }
|
||||
|
||||
@@ -33,7 +33,7 @@ namespace k8s.Models
|
||||
/// pod's inline VolumeSource. This field is populated only for the
|
||||
/// CSIMigration feature. It contains translated fields from a pod's
|
||||
/// inline VolumeSource to a PersistentVolumeSpec. This field is
|
||||
/// alpha-level and is only honored by servers that enabled the
|
||||
/// beta-level and is only honored by servers that enabled the
|
||||
/// CSIMigration feature.</param>
|
||||
/// <param name="persistentVolumeName">Name of the persistent volume to
|
||||
/// attach.</param>
|
||||
@@ -54,7 +54,7 @@ namespace k8s.Models
|
||||
/// necessary to attach a persistent volume defined by a pod's inline
|
||||
/// VolumeSource. This field is populated only for the CSIMigration
|
||||
/// feature. It contains translated fields from a pod's inline
|
||||
/// VolumeSource to a PersistentVolumeSpec. This field is alpha-level
|
||||
/// VolumeSource to a PersistentVolumeSpec. This field is beta-level
|
||||
/// and is only honored by servers that enabled the CSIMigration
|
||||
/// feature.
|
||||
/// </summary>
|
||||
|
||||
212
src/KubernetesClient/generated/Models/V1alpha1CSIStorageCapacity.cs
generated
Normal file
212
src/KubernetesClient/generated/Models/V1alpha1CSIStorageCapacity.cs
generated
Normal file
@@ -0,0 +1,212 @@
|
||||
// <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>
|
||||
/// CSIStorageCapacity stores the result of one CSI GetCapacity call. For a
|
||||
/// given StorageClass, this describes the available capacity in a
|
||||
/// particular topology segment. This can be used when considering where
|
||||
/// to instantiate new PersistentVolumes.
|
||||
///
|
||||
/// For example this can express things like: - StorageClass "standard" has
|
||||
/// "1234 GiB" available in "topology.kubernetes.io/zone=us-east1" -
|
||||
/// StorageClass "localssd" has "10 GiB" available in
|
||||
/// "kubernetes.io/hostname=knode-abc123"
|
||||
///
|
||||
/// The following three cases all imply that no capacity is available for a
|
||||
/// certain combination: - no object exists with suitable topology and
|
||||
/// storage class name - such an object exists, but the capacity is unset -
|
||||
/// such an object exists, but the capacity is zero
|
||||
///
|
||||
/// The producer of these objects can decide which approach is more
|
||||
/// suitable.
|
||||
///
|
||||
/// They are consumed by the kube-scheduler if the CSIStorageCapacity beta
|
||||
/// feature gate is enabled there and a CSI driver opts into capacity-aware
|
||||
/// scheduling with CSIDriver.StorageCapacity.
|
||||
/// </summary>
|
||||
public partial class V1alpha1CSIStorageCapacity
|
||||
{
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the V1alpha1CSIStorageCapacity class.
|
||||
/// </summary>
|
||||
public V1alpha1CSIStorageCapacity()
|
||||
{
|
||||
CustomInit();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the V1alpha1CSIStorageCapacity class.
|
||||
/// </summary>
|
||||
/// <param name="storageClassName">The name of the StorageClass that
|
||||
/// the reported capacity applies to. It must meet the same
|
||||
/// requirements as the name of a StorageClass object (non-empty, DNS
|
||||
/// subdomain). If that object no longer exists, the CSIStorageCapacity
|
||||
/// object is obsolete and should be removed by its creator. This field
|
||||
/// 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="capacity">Capacity is the value reported by the CSI
|
||||
/// driver in its GetCapacityResponse for a GetCapacityRequest with
|
||||
/// topology and parameters that match the previous fields.
|
||||
///
|
||||
/// The semantic is currently (CSI spec 1.2) defined as: The available
|
||||
/// capacity, in bytes, of the storage that can be used to provision
|
||||
/// volumes. If not set, that information is currently unavailable and
|
||||
/// treated like zero capacity.</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="maximumVolumeSize">MaximumVolumeSize is the value
|
||||
/// reported by the CSI driver in its GetCapacityResponse for a
|
||||
/// GetCapacityRequest with topology and parameters that match the
|
||||
/// previous fields.
|
||||
///
|
||||
/// This is defined since CSI spec 1.4.0 as the largest size that may
|
||||
/// be used in a CreateVolumeRequest.capacity_range.required_bytes
|
||||
/// field to create a volume with the same parameters as those in
|
||||
/// GetCapacityRequest. The corresponding value in the Kubernetes API
|
||||
/// is ResourceRequirements.Requests in a volume claim.</param>
|
||||
/// <param name="metadata">Standard object's metadata. The name has no
|
||||
/// particular meaning. It must be be a DNS subdomain (dots allowed,
|
||||
/// 253 characters). To ensure that there are no conflicts with other
|
||||
/// CSI drivers on the cluster, the recommendation is to use
|
||||
/// csisc-<uuid>, a generated name, or a reverse-domain name
|
||||
/// which ends with the unique CSI driver name.
|
||||
///
|
||||
/// Objects are namespaced.
|
||||
///
|
||||
/// More info:
|
||||
/// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata</param>
|
||||
/// <param name="nodeTopology">NodeTopology defines which nodes have
|
||||
/// access to the storage for which capacity was reported. If not set,
|
||||
/// the storage is not accessible from any node in the cluster. If
|
||||
/// empty, the storage is accessible from all nodes. This field is
|
||||
/// immutable.</param>
|
||||
public V1alpha1CSIStorageCapacity(string storageClassName, string apiVersion = default(string), ResourceQuantity capacity = default(ResourceQuantity), string kind = default(string), ResourceQuantity maximumVolumeSize = default(ResourceQuantity), V1ObjectMeta metadata = default(V1ObjectMeta), V1LabelSelector nodeTopology = default(V1LabelSelector))
|
||||
{
|
||||
ApiVersion = apiVersion;
|
||||
Capacity = capacity;
|
||||
Kind = kind;
|
||||
MaximumVolumeSize = maximumVolumeSize;
|
||||
Metadata = metadata;
|
||||
NodeTopology = nodeTopology;
|
||||
StorageClassName = storageClassName;
|
||||
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 capacity is the value reported by the CSI driver in
|
||||
/// its GetCapacityResponse for a GetCapacityRequest with topology and
|
||||
/// parameters that match the previous fields.
|
||||
///
|
||||
/// The semantic is currently (CSI spec 1.2) defined as: The available
|
||||
/// capacity, in bytes, of the storage that can be used to provision
|
||||
/// volumes. If not set, that information is currently unavailable and
|
||||
/// treated like zero capacity.
|
||||
/// </summary>
|
||||
[JsonProperty(PropertyName = "capacity")]
|
||||
public ResourceQuantity Capacity { 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 maximumVolumeSize is the value reported by the CSI
|
||||
/// driver in its GetCapacityResponse for a GetCapacityRequest with
|
||||
/// topology and parameters that match the previous fields.
|
||||
///
|
||||
/// This is defined since CSI spec 1.4.0 as the largest size that may
|
||||
/// be used in a CreateVolumeRequest.capacity_range.required_bytes
|
||||
/// field to create a volume with the same parameters as those in
|
||||
/// GetCapacityRequest. The corresponding value in the Kubernetes API
|
||||
/// is ResourceRequirements.Requests in a volume claim.
|
||||
/// </summary>
|
||||
[JsonProperty(PropertyName = "maximumVolumeSize")]
|
||||
public ResourceQuantity MaximumVolumeSize { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets standard object's metadata. The name has no particular
|
||||
/// meaning. It must be be a DNS subdomain (dots allowed, 253
|
||||
/// characters). To ensure that there are no conflicts with other CSI
|
||||
/// drivers on the cluster, the recommendation is to use
|
||||
/// csisc-&lt;uuid&gt;, a generated name, or a reverse-domain
|
||||
/// name which ends with the unique CSI driver name.
|
||||
///
|
||||
/// Objects are namespaced.
|
||||
///
|
||||
/// 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 nodeTopology defines which nodes have access to the
|
||||
/// storage for which capacity was reported. If not set, the storage is
|
||||
/// not accessible from any node in the cluster. If empty, the storage
|
||||
/// is accessible from all nodes. This field is immutable.
|
||||
/// </summary>
|
||||
[JsonProperty(PropertyName = "nodeTopology")]
|
||||
public V1LabelSelector NodeTopology { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the name of the StorageClass that the reported
|
||||
/// capacity applies to. It must meet the same requirements as the name
|
||||
/// of a StorageClass object (non-empty, DNS subdomain). If that object
|
||||
/// no longer exists, the CSIStorageCapacity object is obsolete and
|
||||
/// should be removed by its creator. This field is immutable.
|
||||
/// </summary>
|
||||
[JsonProperty(PropertyName = "storageClassName")]
|
||||
public string StorageClassName { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Validate the object.
|
||||
/// </summary>
|
||||
/// <exception cref="ValidationException">
|
||||
/// Thrown if validation fails
|
||||
/// </exception>
|
||||
public virtual void Validate()
|
||||
{
|
||||
if (StorageClassName == null)
|
||||
{
|
||||
throw new ValidationException(ValidationRules.CannotBeNull, "StorageClassName");
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -13,26 +13,25 @@ namespace k8s.Models
|
||||
using System.Linq;
|
||||
|
||||
/// <summary>
|
||||
/// PriorityLevelConfigurationList is a list of PriorityLevelConfiguration
|
||||
/// objects.
|
||||
/// CSIStorageCapacityList is a collection of CSIStorageCapacity objects.
|
||||
/// </summary>
|
||||
public partial class V1alpha1PriorityLevelConfigurationList
|
||||
public partial class V1alpha1CSIStorageCapacityList
|
||||
{
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the
|
||||
/// V1alpha1PriorityLevelConfigurationList class.
|
||||
/// Initializes a new instance of the V1alpha1CSIStorageCapacityList
|
||||
/// class.
|
||||
/// </summary>
|
||||
public V1alpha1PriorityLevelConfigurationList()
|
||||
public V1alpha1CSIStorageCapacityList()
|
||||
{
|
||||
CustomInit();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the
|
||||
/// V1alpha1PriorityLevelConfigurationList class.
|
||||
/// Initializes a new instance of the V1alpha1CSIStorageCapacityList
|
||||
/// class.
|
||||
/// </summary>
|
||||
/// <param name="items">`items` is a list of
|
||||
/// request-priorities.</param>
|
||||
/// <param name="items">Items is the list of CSIStorageCapacity
|
||||
/// objects.</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
|
||||
@@ -43,10 +42,9 @@ 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>
|
||||
/// <param name="metadata">`metadata` is the standard object's
|
||||
/// metadata. More info:
|
||||
/// <param name="metadata">Standard list metadata More info:
|
||||
/// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata</param>
|
||||
public V1alpha1PriorityLevelConfigurationList(IList<V1alpha1PriorityLevelConfiguration> items, string apiVersion = default(string), string kind = default(string), V1ListMeta metadata = default(V1ListMeta))
|
||||
public V1alpha1CSIStorageCapacityList(IList<V1alpha1CSIStorageCapacity> items, string apiVersion = default(string), string kind = default(string), V1ListMeta metadata = default(V1ListMeta))
|
||||
{
|
||||
ApiVersion = apiVersion;
|
||||
Items = items;
|
||||
@@ -71,10 +69,10 @@ namespace k8s.Models
|
||||
public string ApiVersion { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets `items` is a list of request-priorities.
|
||||
/// Gets or sets items is the list of CSIStorageCapacity objects.
|
||||
/// </summary>
|
||||
[JsonProperty(PropertyName = "items")]
|
||||
public IList<V1alpha1PriorityLevelConfiguration> Items { get; set; }
|
||||
public IList<V1alpha1CSIStorageCapacity> Items { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets kind is a string value representing the REST resource
|
||||
@@ -87,8 +85,7 @@ namespace k8s.Models
|
||||
public string Kind { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets `metadata` is the standard object's metadata. More
|
||||
/// info:
|
||||
/// Gets or sets standard list metadata More info:
|
||||
/// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
|
||||
/// </summary>
|
||||
[JsonProperty(PropertyName = "metadata")]
|
||||
@@ -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 V1alpha1ClusterRoleBinding(V1alpha1RoleRef roleRef, string apiVersion = default(string), string kind = default(string), V1ObjectMeta metadata = default(V1ObjectMeta), IList<Rbacv1alpha1Subject> subjects = default(IList<Rbacv1alpha1Subject>))
|
||||
public V1alpha1ClusterRoleBinding(V1alpha1RoleRef roleRef, string apiVersion = default(string), string kind = default(string), V1ObjectMeta metadata = default(V1ObjectMeta), IList<V1alpha1Subject> subjects = default(IList<V1alpha1Subject>))
|
||||
{
|
||||
ApiVersion = apiVersion;
|
||||
Kind = kind;
|
||||
@@ -102,7 +102,7 @@ namespace k8s.Models
|
||||
/// applies to.
|
||||
/// </summary>
|
||||
[JsonProperty(PropertyName = "subjects")]
|
||||
public IList<Rbacv1alpha1Subject> Subjects { get; set; }
|
||||
public IList<V1alpha1Subject> Subjects { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Validate the object.
|
||||
|
||||
@@ -1,66 +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 Microsoft.Rest;
|
||||
using Newtonsoft.Json;
|
||||
using System.Linq;
|
||||
|
||||
/// <summary>
|
||||
/// FlowDistinguisherMethod specifies the method of a flow distinguisher.
|
||||
/// </summary>
|
||||
public partial class V1alpha1FlowDistinguisherMethod
|
||||
{
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the V1alpha1FlowDistinguisherMethod
|
||||
/// class.
|
||||
/// </summary>
|
||||
public V1alpha1FlowDistinguisherMethod()
|
||||
{
|
||||
CustomInit();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the V1alpha1FlowDistinguisherMethod
|
||||
/// class.
|
||||
/// </summary>
|
||||
/// <param name="type">`type` is the type of flow distinguisher method
|
||||
/// The supported types are "ByUser" and "ByNamespace".
|
||||
/// Required.</param>
|
||||
public V1alpha1FlowDistinguisherMethod(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");
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,123 +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.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 V1alpha1FlowSchema
|
||||
{
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the V1alpha1FlowSchema class.
|
||||
/// </summary>
|
||||
public V1alpha1FlowSchema()
|
||||
{
|
||||
CustomInit();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the V1alpha1FlowSchema 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 V1alpha1FlowSchema(string apiVersion = default(string), string kind = default(string), V1ObjectMeta metadata = default(V1ObjectMeta), V1alpha1FlowSchemaSpec spec = default(V1alpha1FlowSchemaSpec), V1alpha1FlowSchemaStatus status = default(V1alpha1FlowSchemaStatus))
|
||||
{
|
||||
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 V1alpha1FlowSchemaSpec 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 V1alpha1FlowSchemaStatus 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();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,90 +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.Linq;
|
||||
|
||||
/// <summary>
|
||||
/// FlowSchemaCondition describes conditions for a FlowSchema.
|
||||
/// </summary>
|
||||
public partial class V1alpha1FlowSchemaCondition
|
||||
{
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the V1alpha1FlowSchemaCondition
|
||||
/// class.
|
||||
/// </summary>
|
||||
public V1alpha1FlowSchemaCondition()
|
||||
{
|
||||
CustomInit();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the V1alpha1FlowSchemaCondition
|
||||
/// 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 V1alpha1FlowSchemaCondition(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; }
|
||||
|
||||
}
|
||||
}
|
||||
@@ -1,135 +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 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 V1alpha1FlowSchemaSpec
|
||||
{
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the V1alpha1FlowSchemaSpec class.
|
||||
/// </summary>
|
||||
public V1alpha1FlowSchemaSpec()
|
||||
{
|
||||
CustomInit();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the V1alpha1FlowSchemaSpec 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 V1alpha1FlowSchemaSpec(V1alpha1PriorityLevelConfigurationReference priorityLevelConfiguration, V1alpha1FlowDistinguisherMethod distinguisherMethod = default(V1alpha1FlowDistinguisherMethod), int? matchingPrecedence = default(int?), IList<V1alpha1PolicyRulesWithSubjects> rules = default(IList<V1alpha1PolicyRulesWithSubjects>))
|
||||
{
|
||||
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 V1alpha1FlowDistinguisherMethod 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 V1alpha1PriorityLevelConfigurationReference 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<V1alpha1PolicyRulesWithSubjects> 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();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,51 +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>
|
||||
/// FlowSchemaStatus represents the current state of a FlowSchema.
|
||||
/// </summary>
|
||||
public partial class V1alpha1FlowSchemaStatus
|
||||
{
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the V1alpha1FlowSchemaStatus class.
|
||||
/// </summary>
|
||||
public V1alpha1FlowSchemaStatus()
|
||||
{
|
||||
CustomInit();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the V1alpha1FlowSchemaStatus class.
|
||||
/// </summary>
|
||||
/// <param name="conditions">`conditions` is a list of the current
|
||||
/// states of FlowSchema.</param>
|
||||
public V1alpha1FlowSchemaStatus(IList<V1alpha1FlowSchemaCondition> conditions = default(IList<V1alpha1FlowSchemaCondition>))
|
||||
{
|
||||
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<V1alpha1FlowSchemaCondition> Conditions { get; set; }
|
||||
|
||||
}
|
||||
}
|
||||
@@ -1,67 +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 Microsoft.Rest;
|
||||
using Newtonsoft.Json;
|
||||
using System.Linq;
|
||||
|
||||
/// <summary>
|
||||
/// GroupSubject holds detailed information for group-kind subject.
|
||||
/// </summary>
|
||||
public partial class V1alpha1GroupSubject
|
||||
{
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the V1alpha1GroupSubject class.
|
||||
/// </summary>
|
||||
public V1alpha1GroupSubject()
|
||||
{
|
||||
CustomInit();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the V1alpha1GroupSubject 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 V1alpha1GroupSubject(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");
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,81 +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 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 V1alpha1LimitResponse
|
||||
{
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the V1alpha1LimitResponse class.
|
||||
/// </summary>
|
||||
public V1alpha1LimitResponse()
|
||||
{
|
||||
CustomInit();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the V1alpha1LimitResponse 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 V1alpha1LimitResponse(string type, V1alpha1QueuingConfiguration queuing = default(V1alpha1QueuingConfiguration))
|
||||
{
|
||||
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 V1alpha1QueuingConfiguration 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");
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,102 +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.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 V1alpha1LimitedPriorityLevelConfiguration
|
||||
{
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the
|
||||
/// V1alpha1LimitedPriorityLevelConfiguration class.
|
||||
/// </summary>
|
||||
public V1alpha1LimitedPriorityLevelConfiguration()
|
||||
{
|
||||
CustomInit();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the
|
||||
/// V1alpha1LimitedPriorityLevelConfiguration 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 V1alpha1LimitedPriorityLevelConfiguration(int? assuredConcurrencyShares = default(int?), V1alpha1LimitResponse limitResponse = default(V1alpha1LimitResponse))
|
||||
{
|
||||
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 V1alpha1LimitResponse 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();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,102 +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 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 V1alpha1NonResourcePolicyRule
|
||||
{
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the V1alpha1NonResourcePolicyRule
|
||||
/// class.
|
||||
/// </summary>
|
||||
public V1alpha1NonResourcePolicyRule()
|
||||
{
|
||||
CustomInit();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the V1alpha1NonResourcePolicyRule
|
||||
/// 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 V1alpha1NonResourcePolicyRule(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");
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,134 +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 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 V1alpha1PolicyRulesWithSubjects
|
||||
{
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the V1alpha1PolicyRulesWithSubjects
|
||||
/// class.
|
||||
/// </summary>
|
||||
public V1alpha1PolicyRulesWithSubjects()
|
||||
{
|
||||
CustomInit();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the V1alpha1PolicyRulesWithSubjects
|
||||
/// 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 V1alpha1PolicyRulesWithSubjects(IList<Flowcontrolv1alpha1Subject> subjects, IList<V1alpha1NonResourcePolicyRule> nonResourceRules = default(IList<V1alpha1NonResourcePolicyRule>), IList<V1alpha1ResourcePolicyRule> resourceRules = default(IList<V1alpha1ResourcePolicyRule>))
|
||||
{
|
||||
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<V1alpha1NonResourcePolicyRule> 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<V1alpha1ResourcePolicyRule> 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<Flowcontrolv1alpha1Subject> 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();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,123 +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.Linq;
|
||||
|
||||
/// <summary>
|
||||
/// PriorityLevelConfiguration represents the configuration of a priority
|
||||
/// level.
|
||||
/// </summary>
|
||||
public partial class V1alpha1PriorityLevelConfiguration
|
||||
{
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the
|
||||
/// V1alpha1PriorityLevelConfiguration class.
|
||||
/// </summary>
|
||||
public V1alpha1PriorityLevelConfiguration()
|
||||
{
|
||||
CustomInit();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the
|
||||
/// V1alpha1PriorityLevelConfiguration 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 V1alpha1PriorityLevelConfiguration(string apiVersion = default(string), string kind = default(string), V1ObjectMeta metadata = default(V1ObjectMeta), V1alpha1PriorityLevelConfigurationSpec spec = default(V1alpha1PriorityLevelConfigurationSpec), V1alpha1PriorityLevelConfigurationStatus status = default(V1alpha1PriorityLevelConfigurationStatus))
|
||||
{
|
||||
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 V1alpha1PriorityLevelConfigurationSpec 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 V1alpha1PriorityLevelConfigurationStatus 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();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -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.Linq;
|
||||
|
||||
/// <summary>
|
||||
/// PriorityLevelConfigurationCondition defines the condition of priority
|
||||
/// level.
|
||||
/// </summary>
|
||||
public partial class V1alpha1PriorityLevelConfigurationCondition
|
||||
{
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the
|
||||
/// V1alpha1PriorityLevelConfigurationCondition class.
|
||||
/// </summary>
|
||||
public V1alpha1PriorityLevelConfigurationCondition()
|
||||
{
|
||||
CustomInit();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the
|
||||
/// V1alpha1PriorityLevelConfigurationCondition 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 V1alpha1PriorityLevelConfigurationCondition(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; }
|
||||
|
||||
}
|
||||
}
|
||||
@@ -1,95 +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 Microsoft.Rest;
|
||||
using Newtonsoft.Json;
|
||||
using System.Linq;
|
||||
|
||||
/// <summary>
|
||||
/// PriorityLevelConfigurationSpec specifies the configuration of a
|
||||
/// priority level.
|
||||
/// </summary>
|
||||
public partial class V1alpha1PriorityLevelConfigurationSpec
|
||||
{
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the
|
||||
/// V1alpha1PriorityLevelConfigurationSpec class.
|
||||
/// </summary>
|
||||
public V1alpha1PriorityLevelConfigurationSpec()
|
||||
{
|
||||
CustomInit();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the
|
||||
/// V1alpha1PriorityLevelConfigurationSpec 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 V1alpha1PriorityLevelConfigurationSpec(string type, V1alpha1LimitedPriorityLevelConfiguration limited = default(V1alpha1LimitedPriorityLevelConfiguration))
|
||||
{
|
||||
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 V1alpha1LimitedPriorityLevelConfiguration 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();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,54 +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>
|
||||
/// PriorityLevelConfigurationStatus represents the current state of a
|
||||
/// "request-priority".
|
||||
/// </summary>
|
||||
public partial class V1alpha1PriorityLevelConfigurationStatus
|
||||
{
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the
|
||||
/// V1alpha1PriorityLevelConfigurationStatus class.
|
||||
/// </summary>
|
||||
public V1alpha1PriorityLevelConfigurationStatus()
|
||||
{
|
||||
CustomInit();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the
|
||||
/// V1alpha1PriorityLevelConfigurationStatus class.
|
||||
/// </summary>
|
||||
/// <param name="conditions">`conditions` is the current state of
|
||||
/// "request-priority".</param>
|
||||
public V1alpha1PriorityLevelConfigurationStatus(IList<V1alpha1PriorityLevelConfigurationCondition> conditions = default(IList<V1alpha1PriorityLevelConfigurationCondition>))
|
||||
{
|
||||
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<V1alpha1PriorityLevelConfigurationCondition> Conditions { get; set; }
|
||||
|
||||
}
|
||||
}
|
||||
@@ -1,102 +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.Linq;
|
||||
|
||||
/// <summary>
|
||||
/// QueuingConfiguration holds the configuration parameters for queuing
|
||||
/// </summary>
|
||||
public partial class V1alpha1QueuingConfiguration
|
||||
{
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the V1alpha1QueuingConfiguration
|
||||
/// class.
|
||||
/// </summary>
|
||||
public V1alpha1QueuingConfiguration()
|
||||
{
|
||||
CustomInit();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the V1alpha1QueuingConfiguration
|
||||
/// 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 V1alpha1QueuingConfiguration(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; }
|
||||
|
||||
}
|
||||
}
|
||||
@@ -1,146 +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 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 V1alpha1ResourcePolicyRule
|
||||
{
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the V1alpha1ResourcePolicyRule class.
|
||||
/// </summary>
|
||||
public V1alpha1ResourcePolicyRule()
|
||||
{
|
||||
CustomInit();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the V1alpha1ResourcePolicyRule 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 V1alpha1ResourcePolicyRule(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 V1alpha1RoleBinding(V1alpha1RoleRef roleRef, string apiVersion = default(string), string kind = default(string), V1ObjectMeta metadata = default(V1ObjectMeta), IList<Rbacv1alpha1Subject> subjects = default(IList<Rbacv1alpha1Subject>))
|
||||
public V1alpha1RoleBinding(V1alpha1RoleRef roleRef, string apiVersion = default(string), string kind = default(string), V1ObjectMeta metadata = default(V1ObjectMeta), IList<V1alpha1Subject> subjects = default(IList<V1alpha1Subject>))
|
||||
{
|
||||
ApiVersion = apiVersion;
|
||||
Kind = kind;
|
||||
@@ -104,7 +104,7 @@ namespace k8s.Models
|
||||
/// applies to.
|
||||
/// </summary>
|
||||
[JsonProperty(PropertyName = "subjects")]
|
||||
public IList<Rbacv1alpha1Subject> Subjects { get; set; }
|
||||
public IList<V1alpha1Subject> Subjects { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Validate the object.
|
||||
|
||||
@@ -1,80 +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 Microsoft.Rest;
|
||||
using Newtonsoft.Json;
|
||||
using System.Linq;
|
||||
|
||||
/// <summary>
|
||||
/// ServiceAccountSubject holds detailed information for
|
||||
/// service-account-kind subject.
|
||||
/// </summary>
|
||||
public partial class V1alpha1ServiceAccountSubject
|
||||
{
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the V1alpha1ServiceAccountSubject
|
||||
/// class.
|
||||
/// </summary>
|
||||
public V1alpha1ServiceAccountSubject()
|
||||
{
|
||||
CustomInit();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the V1alpha1ServiceAccountSubject
|
||||
/// 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 V1alpha1ServiceAccountSubject(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");
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -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 Rbacv1alpha1Subject
|
||||
public partial class V1alpha1Subject
|
||||
{
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the Rbacv1alpha1Subject class.
|
||||
/// Initializes a new instance of the V1alpha1Subject class.
|
||||
/// </summary>
|
||||
public Rbacv1alpha1Subject()
|
||||
public V1alpha1Subject()
|
||||
{
|
||||
CustomInit();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the Rbacv1alpha1Subject class.
|
||||
/// Initializes a new instance of the V1alpha1Subject 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 Rbacv1alpha1Subject(string kind, string name, string apiVersion = default(string), string namespaceProperty = default(string))
|
||||
public V1alpha1Subject(string kind, string name, string apiVersion = default(string), string namespaceProperty = default(string))
|
||||
{
|
||||
ApiVersion = apiVersion;
|
||||
Kind = kind;
|
||||
@@ -37,13 +37,16 @@ namespace k8s.Models
|
||||
/// the volumeattachment status when the attach operation is complete.
|
||||
/// If the CSIDriverRegistry feature gate is enabled and the value is
|
||||
/// specified to false, the attach operation will be skipped. Otherwise
|
||||
/// the attach operation will be called.</param>
|
||||
/// the attach operation will be called.
|
||||
///
|
||||
/// This field is immutable.</param>
|
||||
/// <param name="fsGroupPolicy">Defines if the underlying volume
|
||||
/// supports changing ownership and permission of the volume before
|
||||
/// being mounted. Refer to the specific FSGroupPolicy values for
|
||||
/// additional details. This field is alpha-level, and is only honored
|
||||
/// by servers that enable the CSIVolumeFSGroupPolicy feature
|
||||
/// gate.</param>
|
||||
/// by servers that enable the CSIVolumeFSGroupPolicy feature gate.
|
||||
///
|
||||
/// This field is immutable.</param>
|
||||
/// <param name="podInfoOnMount">If set to true, podInfoOnMount
|
||||
/// indicates this CSI volume driver requires additional pod
|
||||
/// information (like podName, podUID, etc.) during mount operations.
|
||||
@@ -57,7 +60,7 @@ namespace k8s.Models
|
||||
/// will be used. "csi.storage.k8s.io/pod.name": pod.Name
|
||||
/// "csi.storage.k8s.io/pod.namespace": pod.Namespace
|
||||
/// "csi.storage.k8s.io/pod.uid": string(pod.UID)
|
||||
/// "csi.storage.k8s.io/ephemeral": "true" iff the volume is an
|
||||
/// "csi.storage.k8s.io/ephemeral": "true" if the volume is an
|
||||
/// ephemeral inline volume
|
||||
/// defined by a CSIVolumeSource, otherwise "false"
|
||||
///
|
||||
@@ -67,7 +70,9 @@ namespace k8s.Models
|
||||
/// info disabled and/or ignore this field. As Kubernetes 1.15 doesn't
|
||||
/// 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>
|
||||
/// for example via a command line parameter of the driver.
|
||||
///
|
||||
/// This field is immutable.</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
|
||||
@@ -77,7 +82,7 @@ namespace k8s.Models
|
||||
/// 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
|
||||
/// This is a beta 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
|
||||
@@ -94,9 +99,10 @@ namespace k8s.Models
|
||||
/// false and it can be flipped later when storage capacity information
|
||||
/// has been published.
|
||||
///
|
||||
/// This is an alpha field and only available when the
|
||||
/// CSIStorageCapacity feature is enabled. The default is
|
||||
/// false.</param>
|
||||
/// This field is immutable.
|
||||
///
|
||||
/// This is a beta 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
|
||||
@@ -115,7 +121,7 @@ namespace k8s.Models
|
||||
/// RequiresRepublish can be used to trigger NodePublishVolume
|
||||
/// periodically.
|
||||
///
|
||||
/// This is an alpha feature and only available when the
|
||||
/// This is a beta 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
|
||||
@@ -129,7 +135,9 @@ namespace k8s.Models
|
||||
/// about implementing this mode, see
|
||||
/// 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>
|
||||
/// be added in the future.
|
||||
///
|
||||
/// This field is immutable.</param>
|
||||
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;
|
||||
@@ -159,6 +167,8 @@ namespace k8s.Models
|
||||
/// CSIDriverRegistry feature gate is enabled and the value is
|
||||
/// specified to false, the attach operation will be skipped. Otherwise
|
||||
/// the attach operation will be called.
|
||||
///
|
||||
/// This field is immutable.
|
||||
/// </summary>
|
||||
[JsonProperty(PropertyName = "attachRequired")]
|
||||
public bool? AttachRequired { get; set; }
|
||||
@@ -169,6 +179,8 @@ namespace k8s.Models
|
||||
/// to the specific FSGroupPolicy values for additional details. This
|
||||
/// field is alpha-level, and is only honored by servers that enable
|
||||
/// the CSIVolumeFSGroupPolicy feature gate.
|
||||
///
|
||||
/// This field is immutable.
|
||||
/// </summary>
|
||||
[JsonProperty(PropertyName = "fsGroupPolicy")]
|
||||
public string FsGroupPolicy { get; set; }
|
||||
@@ -187,7 +199,7 @@ namespace k8s.Models
|
||||
/// "csi.storage.k8s.io/pod.name": pod.Name
|
||||
/// "csi.storage.k8s.io/pod.namespace": pod.Namespace
|
||||
/// "csi.storage.k8s.io/pod.uid": string(pod.UID)
|
||||
/// "csi.storage.k8s.io/ephemeral": "true" iff the volume is an
|
||||
/// "csi.storage.k8s.io/ephemeral": "true" if the volume is an
|
||||
/// ephemeral inline volume
|
||||
/// defined by a CSIVolumeSource, otherwise "false"
|
||||
///
|
||||
@@ -198,6 +210,8 @@ 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.
|
||||
///
|
||||
/// This field is immutable.
|
||||
/// </summary>
|
||||
[JsonProperty(PropertyName = "podInfoOnMount")]
|
||||
public bool? PodInfoOnMount { get; set; }
|
||||
@@ -212,7 +226,7 @@ namespace k8s.Models
|
||||
/// 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
|
||||
/// This is a beta feature and only available when the
|
||||
/// CSIServiceAccountToken feature is enabled.
|
||||
/// </summary>
|
||||
[JsonProperty(PropertyName = "requiresRepublish")]
|
||||
@@ -233,8 +247,10 @@ namespace k8s.Models
|
||||
/// false and it can be flipped later when storage capacity information
|
||||
/// has been published.
|
||||
///
|
||||
/// This is an alpha field and only available when the
|
||||
/// CSIStorageCapacity feature is enabled. The default is false.
|
||||
/// This field is immutable.
|
||||
///
|
||||
/// This is a beta field and only available when the CSIStorageCapacity
|
||||
/// feature is enabled. The default is false.
|
||||
/// </summary>
|
||||
[JsonProperty(PropertyName = "storageCapacity")]
|
||||
public bool? StorageCapacity { get; set; }
|
||||
@@ -259,7 +275,7 @@ namespace k8s.Models
|
||||
/// RequiresRepublish can be used to trigger NodePublishVolume
|
||||
/// periodically.
|
||||
///
|
||||
/// This is an alpha feature and only available when the
|
||||
/// This is a beta feature and only available when the
|
||||
/// CSIServiceAccountToken feature is enabled.
|
||||
/// </summary>
|
||||
[JsonProperty(PropertyName = "tokenRequests")]
|
||||
@@ -278,6 +294,8 @@ 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 immutable.
|
||||
/// </summary>
|
||||
[JsonProperty(PropertyName = "volumeLifecycleModes")]
|
||||
public IList<string> VolumeLifecycleModes { get; set; }
|
||||
|
||||
212
src/KubernetesClient/generated/Models/V1beta1CSIStorageCapacity.cs
generated
Normal file
212
src/KubernetesClient/generated/Models/V1beta1CSIStorageCapacity.cs
generated
Normal file
@@ -0,0 +1,212 @@
|
||||
// <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>
|
||||
/// CSIStorageCapacity stores the result of one CSI GetCapacity call. For a
|
||||
/// given StorageClass, this describes the available capacity in a
|
||||
/// particular topology segment. This can be used when considering where
|
||||
/// to instantiate new PersistentVolumes.
|
||||
///
|
||||
/// For example this can express things like: - StorageClass "standard" has
|
||||
/// "1234 GiB" available in "topology.kubernetes.io/zone=us-east1" -
|
||||
/// StorageClass "localssd" has "10 GiB" available in
|
||||
/// "kubernetes.io/hostname=knode-abc123"
|
||||
///
|
||||
/// The following three cases all imply that no capacity is available for a
|
||||
/// certain combination: - no object exists with suitable topology and
|
||||
/// storage class name - such an object exists, but the capacity is unset -
|
||||
/// such an object exists, but the capacity is zero
|
||||
///
|
||||
/// The producer of these objects can decide which approach is more
|
||||
/// suitable.
|
||||
///
|
||||
/// They are consumed by the kube-scheduler if the CSIStorageCapacity beta
|
||||
/// feature gate is enabled there and a CSI driver opts into capacity-aware
|
||||
/// scheduling with CSIDriver.StorageCapacity.
|
||||
/// </summary>
|
||||
public partial class V1beta1CSIStorageCapacity
|
||||
{
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the V1beta1CSIStorageCapacity class.
|
||||
/// </summary>
|
||||
public V1beta1CSIStorageCapacity()
|
||||
{
|
||||
CustomInit();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the V1beta1CSIStorageCapacity class.
|
||||
/// </summary>
|
||||
/// <param name="storageClassName">The name of the StorageClass that
|
||||
/// the reported capacity applies to. It must meet the same
|
||||
/// requirements as the name of a StorageClass object (non-empty, DNS
|
||||
/// subdomain). If that object no longer exists, the CSIStorageCapacity
|
||||
/// object is obsolete and should be removed by its creator. This field
|
||||
/// 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="capacity">Capacity is the value reported by the CSI
|
||||
/// driver in its GetCapacityResponse for a GetCapacityRequest with
|
||||
/// topology and parameters that match the previous fields.
|
||||
///
|
||||
/// The semantic is currently (CSI spec 1.2) defined as: The available
|
||||
/// capacity, in bytes, of the storage that can be used to provision
|
||||
/// volumes. If not set, that information is currently unavailable and
|
||||
/// treated like zero capacity.</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="maximumVolumeSize">MaximumVolumeSize is the value
|
||||
/// reported by the CSI driver in its GetCapacityResponse for a
|
||||
/// GetCapacityRequest with topology and parameters that match the
|
||||
/// previous fields.
|
||||
///
|
||||
/// This is defined since CSI spec 1.4.0 as the largest size that may
|
||||
/// be used in a CreateVolumeRequest.capacity_range.required_bytes
|
||||
/// field to create a volume with the same parameters as those in
|
||||
/// GetCapacityRequest. The corresponding value in the Kubernetes API
|
||||
/// is ResourceRequirements.Requests in a volume claim.</param>
|
||||
/// <param name="metadata">Standard object's metadata. The name has no
|
||||
/// particular meaning. It must be be a DNS subdomain (dots allowed,
|
||||
/// 253 characters). To ensure that there are no conflicts with other
|
||||
/// CSI drivers on the cluster, the recommendation is to use
|
||||
/// csisc-<uuid>, a generated name, or a reverse-domain name
|
||||
/// which ends with the unique CSI driver name.
|
||||
///
|
||||
/// Objects are namespaced.
|
||||
///
|
||||
/// More info:
|
||||
/// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata</param>
|
||||
/// <param name="nodeTopology">NodeTopology defines which nodes have
|
||||
/// access to the storage for which capacity was reported. If not set,
|
||||
/// the storage is not accessible from any node in the cluster. If
|
||||
/// empty, the storage is accessible from all nodes. This field is
|
||||
/// immutable.</param>
|
||||
public V1beta1CSIStorageCapacity(string storageClassName, string apiVersion = default(string), ResourceQuantity capacity = default(ResourceQuantity), string kind = default(string), ResourceQuantity maximumVolumeSize = default(ResourceQuantity), V1ObjectMeta metadata = default(V1ObjectMeta), V1LabelSelector nodeTopology = default(V1LabelSelector))
|
||||
{
|
||||
ApiVersion = apiVersion;
|
||||
Capacity = capacity;
|
||||
Kind = kind;
|
||||
MaximumVolumeSize = maximumVolumeSize;
|
||||
Metadata = metadata;
|
||||
NodeTopology = nodeTopology;
|
||||
StorageClassName = storageClassName;
|
||||
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 capacity is the value reported by the CSI driver in
|
||||
/// its GetCapacityResponse for a GetCapacityRequest with topology and
|
||||
/// parameters that match the previous fields.
|
||||
///
|
||||
/// The semantic is currently (CSI spec 1.2) defined as: The available
|
||||
/// capacity, in bytes, of the storage that can be used to provision
|
||||
/// volumes. If not set, that information is currently unavailable and
|
||||
/// treated like zero capacity.
|
||||
/// </summary>
|
||||
[JsonProperty(PropertyName = "capacity")]
|
||||
public ResourceQuantity Capacity { 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 maximumVolumeSize is the value reported by the CSI
|
||||
/// driver in its GetCapacityResponse for a GetCapacityRequest with
|
||||
/// topology and parameters that match the previous fields.
|
||||
///
|
||||
/// This is defined since CSI spec 1.4.0 as the largest size that may
|
||||
/// be used in a CreateVolumeRequest.capacity_range.required_bytes
|
||||
/// field to create a volume with the same parameters as those in
|
||||
/// GetCapacityRequest. The corresponding value in the Kubernetes API
|
||||
/// is ResourceRequirements.Requests in a volume claim.
|
||||
/// </summary>
|
||||
[JsonProperty(PropertyName = "maximumVolumeSize")]
|
||||
public ResourceQuantity MaximumVolumeSize { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets standard object's metadata. The name has no particular
|
||||
/// meaning. It must be be a DNS subdomain (dots allowed, 253
|
||||
/// characters). To ensure that there are no conflicts with other CSI
|
||||
/// drivers on the cluster, the recommendation is to use
|
||||
/// csisc-&lt;uuid&gt;, a generated name, or a reverse-domain
|
||||
/// name which ends with the unique CSI driver name.
|
||||
///
|
||||
/// Objects are namespaced.
|
||||
///
|
||||
/// 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 nodeTopology defines which nodes have access to the
|
||||
/// storage for which capacity was reported. If not set, the storage is
|
||||
/// not accessible from any node in the cluster. If empty, the storage
|
||||
/// is accessible from all nodes. This field is immutable.
|
||||
/// </summary>
|
||||
[JsonProperty(PropertyName = "nodeTopology")]
|
||||
public V1LabelSelector NodeTopology { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the name of the StorageClass that the reported
|
||||
/// capacity applies to. It must meet the same requirements as the name
|
||||
/// of a StorageClass object (non-empty, DNS subdomain). If that object
|
||||
/// no longer exists, the CSIStorageCapacity object is obsolete and
|
||||
/// should be removed by its creator. This field is immutable.
|
||||
/// </summary>
|
||||
[JsonProperty(PropertyName = "storageClassName")]
|
||||
public string StorageClassName { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Validate the object.
|
||||
/// </summary>
|
||||
/// <exception cref="ValidationException">
|
||||
/// Thrown if validation fails
|
||||
/// </exception>
|
||||
public virtual void Validate()
|
||||
{
|
||||
if (StorageClassName == null)
|
||||
{
|
||||
throw new ValidationException(ValidationRules.CannotBeNull, "StorageClassName");
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
118
src/KubernetesClient/generated/Models/V1beta1CSIStorageCapacityList.cs
generated
Normal file
118
src/KubernetesClient/generated/Models/V1beta1CSIStorageCapacityList.cs
generated
Normal file
@@ -0,0 +1,118 @@
|
||||
// <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>
|
||||
/// CSIStorageCapacityList is a collection of CSIStorageCapacity objects.
|
||||
/// </summary>
|
||||
public partial class V1beta1CSIStorageCapacityList
|
||||
{
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the V1beta1CSIStorageCapacityList
|
||||
/// class.
|
||||
/// </summary>
|
||||
public V1beta1CSIStorageCapacityList()
|
||||
{
|
||||
CustomInit();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the V1beta1CSIStorageCapacityList
|
||||
/// class.
|
||||
/// </summary>
|
||||
/// <param name="items">Items is the list of CSIStorageCapacity
|
||||
/// objects.</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">Standard list metadata More info:
|
||||
/// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata</param>
|
||||
public V1beta1CSIStorageCapacityList(IList<V1beta1CSIStorageCapacity> 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 the list of CSIStorageCapacity objects.
|
||||
/// </summary>
|
||||
[JsonProperty(PropertyName = "items")]
|
||||
public IList<V1beta1CSIStorageCapacity> 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 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();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -31,10 +31,13 @@ namespace k8s.Models
|
||||
/// jobs.</param>
|
||||
/// <param name="lastScheduleTime">Information when was the last time
|
||||
/// the job was successfully scheduled.</param>
|
||||
public V1beta1CronJobStatus(IList<V1ObjectReference> active = default(IList<V1ObjectReference>), System.DateTime? lastScheduleTime = default(System.DateTime?))
|
||||
/// <param name="lastSuccessfulTime">Information when was the last time
|
||||
/// the job successfully completed.</param>
|
||||
public V1beta1CronJobStatus(IList<V1ObjectReference> active = default(IList<V1ObjectReference>), System.DateTime? lastScheduleTime = default(System.DateTime?), System.DateTime? lastSuccessfulTime = default(System.DateTime?))
|
||||
{
|
||||
Active = active;
|
||||
LastScheduleTime = lastScheduleTime;
|
||||
LastSuccessfulTime = lastSuccessfulTime;
|
||||
CustomInit();
|
||||
}
|
||||
|
||||
@@ -56,5 +59,12 @@ namespace k8s.Models
|
||||
[JsonProperty(PropertyName = "lastScheduleTime")]
|
||||
public System.DateTime? LastScheduleTime { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets information when was the last time the job
|
||||
/// successfully completed.
|
||||
/// </summary>
|
||||
[JsonProperty(PropertyName = "lastSuccessfulTime")]
|
||||
public System.DateTime? LastSuccessfulTime { get; set; }
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -35,6 +35,8 @@ namespace k8s.Models
|
||||
/// must contain at least one address but no more than 100.</param>
|
||||
/// <param name="conditions">conditions contains information about the
|
||||
/// current status of the endpoint.</param>
|
||||
/// <param name="hints">hints contains information associated with how
|
||||
/// an endpoint should be consumed.</param>
|
||||
/// <param name="hostname">hostname of this endpoint. This field may be
|
||||
/// used by consumers of endpoints to distinguish endpoints from each
|
||||
/// other (e.g. in DNS names). Multiple endpoints which use the same
|
||||
@@ -67,10 +69,11 @@ namespace k8s.Models
|
||||
/// 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>))
|
||||
public V1beta1Endpoint(IList<string> addresses, V1beta1EndpointConditions conditions = default(V1beta1EndpointConditions), V1beta1EndpointHints hints = default(V1beta1EndpointHints), string hostname = default(string), string nodeName = default(string), V1ObjectReference targetRef = default(V1ObjectReference), IDictionary<string, string> topology = default(IDictionary<string, string>))
|
||||
{
|
||||
Addresses = addresses;
|
||||
Conditions = conditions;
|
||||
Hints = hints;
|
||||
Hostname = hostname;
|
||||
NodeName = nodeName;
|
||||
TargetRef = targetRef;
|
||||
@@ -100,6 +103,13 @@ namespace k8s.Models
|
||||
[JsonProperty(PropertyName = "conditions")]
|
||||
public V1beta1EndpointConditions Conditions { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets hints contains information associated with how an
|
||||
/// endpoint should be consumed.
|
||||
/// </summary>
|
||||
[JsonProperty(PropertyName = "hints")]
|
||||
public V1beta1EndpointHints Hints { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets hostname of this endpoint. This field may be used by
|
||||
/// consumers of endpoints to distinguish endpoints from each other
|
||||
|
||||
54
src/KubernetesClient/generated/Models/V1beta1EndpointHints.cs
generated
Normal file
54
src/KubernetesClient/generated/Models/V1beta1EndpointHints.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>
|
||||
/// EndpointHints provides hints describing how an endpoint should be
|
||||
/// consumed.
|
||||
/// </summary>
|
||||
public partial class V1beta1EndpointHints
|
||||
{
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the V1beta1EndpointHints class.
|
||||
/// </summary>
|
||||
public V1beta1EndpointHints()
|
||||
{
|
||||
CustomInit();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the V1beta1EndpointHints class.
|
||||
/// </summary>
|
||||
/// <param name="forZones">forZones indicates the zone(s) this endpoint
|
||||
/// should be consumed by to enable topology aware routing. May contain
|
||||
/// a maximum of 8 entries.</param>
|
||||
public V1beta1EndpointHints(IList<V1beta1ForZone> forZones = default(IList<V1beta1ForZone>))
|
||||
{
|
||||
ForZones = forZones;
|
||||
CustomInit();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// An initialization method that performs custom operations like setting defaults
|
||||
/// </summary>
|
||||
partial void CustomInit();
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets forZones indicates the zone(s) this endpoint should be
|
||||
/// consumed by to enable topology aware routing. May contain a maximum
|
||||
/// of 8 entries.
|
||||
/// </summary>
|
||||
[JsonProperty(PropertyName = "forZones")]
|
||||
public IList<V1beta1ForZone> ForZones { get; set; }
|
||||
|
||||
}
|
||||
}
|
||||
@@ -6,7 +6,6 @@
|
||||
|
||||
namespace k8s.Models
|
||||
{
|
||||
using Microsoft.Rest;
|
||||
using Newtonsoft.Json;
|
||||
using System.Linq;
|
||||
|
||||
@@ -59,6 +58,8 @@ 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>
|
||||
/// <param name="metadata">Standard object's metadata. More info:
|
||||
/// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata</param>
|
||||
/// <param name="note">note is a human-readable description of the
|
||||
/// status of this operation. Maximal length of the note is 1kB, but
|
||||
/// libraries should be prepared to handle values up to 64kB.</param>
|
||||
@@ -85,7 +86,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, 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))
|
||||
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))
|
||||
{
|
||||
Action = action;
|
||||
ApiVersion = apiVersion;
|
||||
@@ -176,6 +177,8 @@ namespace k8s.Models
|
||||
public string Kind { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets 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; }
|
||||
@@ -245,15 +248,11 @@ namespace k8s.Models
|
||||
/// <summary>
|
||||
/// Validate the object.
|
||||
/// </summary>
|
||||
/// <exception cref="ValidationException">
|
||||
/// <exception cref="Microsoft.Rest.ValidationException">
|
||||
/// Thrown if validation fails
|
||||
/// </exception>
|
||||
public virtual void Validate()
|
||||
{
|
||||
if (Metadata == null)
|
||||
{
|
||||
throw new ValidationException(ValidationRules.CannotBeNull, "Metadata");
|
||||
}
|
||||
if (Series != null)
|
||||
{
|
||||
Series.Validate();
|
||||
|
||||
@@ -11,27 +11,24 @@ namespace k8s.Models
|
||||
using System.Linq;
|
||||
|
||||
/// <summary>
|
||||
/// PriorityLevelConfigurationReference contains information that points to
|
||||
/// the "request-priority" being used.
|
||||
/// ForZone provides information about which zones should consume this
|
||||
/// endpoint.
|
||||
/// </summary>
|
||||
public partial class V1alpha1PriorityLevelConfigurationReference
|
||||
public partial class V1beta1ForZone
|
||||
{
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the
|
||||
/// V1alpha1PriorityLevelConfigurationReference class.
|
||||
/// Initializes a new instance of the V1beta1ForZone class.
|
||||
/// </summary>
|
||||
public V1alpha1PriorityLevelConfigurationReference()
|
||||
public V1beta1ForZone()
|
||||
{
|
||||
CustomInit();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the
|
||||
/// V1alpha1PriorityLevelConfigurationReference class.
|
||||
/// Initializes a new instance of the V1beta1ForZone class.
|
||||
/// </summary>
|
||||
/// <param name="name">`name` is the name of the priority level
|
||||
/// configuration being referenced Required.</param>
|
||||
public V1alpha1PriorityLevelConfigurationReference(string name)
|
||||
/// <param name="name">name represents the name of the zone.</param>
|
||||
public V1beta1ForZone(string name)
|
||||
{
|
||||
Name = name;
|
||||
CustomInit();
|
||||
@@ -43,8 +40,7 @@ namespace k8s.Models
|
||||
partial void CustomInit();
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets `name` is the name of the priority level configuration
|
||||
/// being referenced Required.
|
||||
/// Gets or sets name represents the name of the zone.
|
||||
/// </summary>
|
||||
[JsonProperty(PropertyName = "name")]
|
||||
public string Name { get; set; }
|
||||
119
src/KubernetesClient/generated/Models/V1beta1IngressClassParametersReference.cs
generated
Normal file
119
src/KubernetesClient/generated/Models/V1beta1IngressClassParametersReference.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>
|
||||
/// IngressClassParametersReference identifies an API object. This can be
|
||||
/// used to specify a cluster or namespace-scoped resource.
|
||||
/// </summary>
|
||||
public partial class V1beta1IngressClassParametersReference
|
||||
{
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the
|
||||
/// V1beta1IngressClassParametersReference class.
|
||||
/// </summary>
|
||||
public V1beta1IngressClassParametersReference()
|
||||
{
|
||||
CustomInit();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the
|
||||
/// V1beta1IngressClassParametersReference class.
|
||||
/// </summary>
|
||||
/// <param name="kind">Kind is the type of resource being
|
||||
/// referenced.</param>
|
||||
/// <param name="name">Name is the name of resource being
|
||||
/// referenced.</param>
|
||||
/// <param name="apiGroup">APIGroup is the group for the resource being
|
||||
/// referenced. If APIGroup is not specified, the specified Kind must
|
||||
/// be in the core API group. For any other third-party types, APIGroup
|
||||
/// is required.</param>
|
||||
/// <param name="namespaceProperty">Namespace is the namespace of the
|
||||
/// resource being referenced. This field is required when scope is set
|
||||
/// to "Namespace" and must be unset when scope is set to
|
||||
/// "Cluster".</param>
|
||||
/// <param name="scope">Scope represents if this refers to a cluster or
|
||||
/// namespace scoped resource. This may be set to "Cluster" (default)
|
||||
/// or "Namespace". Field can be enabled with
|
||||
/// IngressClassNamespacedParams feature gate.</param>
|
||||
public V1beta1IngressClassParametersReference(string kind, string name, string apiGroup = default(string), string namespaceProperty = default(string), string scope = default(string))
|
||||
{
|
||||
ApiGroup = apiGroup;
|
||||
Kind = kind;
|
||||
Name = name;
|
||||
NamespaceProperty = namespaceProperty;
|
||||
Scope = scope;
|
||||
CustomInit();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// An initialization method that performs custom operations like setting defaults
|
||||
/// </summary>
|
||||
partial void CustomInit();
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets aPIGroup is the group for the resource being
|
||||
/// referenced. If APIGroup is not specified, the specified Kind must
|
||||
/// be in the core API group. For any other third-party types, APIGroup
|
||||
/// is required.
|
||||
/// </summary>
|
||||
[JsonProperty(PropertyName = "apiGroup")]
|
||||
public string ApiGroup { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets kind is the type of resource being referenced.
|
||||
/// </summary>
|
||||
[JsonProperty(PropertyName = "kind")]
|
||||
public string Kind { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets name is the name of resource being referenced.
|
||||
/// </summary>
|
||||
[JsonProperty(PropertyName = "name")]
|
||||
public string Name { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets namespace is the namespace of the resource being
|
||||
/// referenced. This field is required when scope is set to "Namespace"
|
||||
/// and must be unset when scope is set to "Cluster".
|
||||
/// </summary>
|
||||
[JsonProperty(PropertyName = "namespace")]
|
||||
public string NamespaceProperty { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets scope represents if this refers to a cluster or
|
||||
/// namespace scoped resource. This may be set to "Cluster" (default)
|
||||
/// or "Namespace". Field can be enabled with
|
||||
/// IngressClassNamespacedParams feature gate.
|
||||
/// </summary>
|
||||
[JsonProperty(PropertyName = "scope")]
|
||||
public string Scope { 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 (Name == null)
|
||||
{
|
||||
throw new ValidationException(ValidationRules.CannotBeNull, "Name");
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -36,7 +36,7 @@ namespace k8s.Models
|
||||
/// containing additional configuration for the controller. This is
|
||||
/// optional if the controller does not require extra
|
||||
/// parameters.</param>
|
||||
public V1beta1IngressClassSpec(string controller = default(string), V1TypedLocalObjectReference parameters = default(V1TypedLocalObjectReference))
|
||||
public V1beta1IngressClassSpec(string controller = default(string), V1beta1IngressClassParametersReference parameters = default(V1beta1IngressClassParametersReference))
|
||||
{
|
||||
Controller = controller;
|
||||
Parameters = parameters;
|
||||
@@ -66,7 +66,7 @@ namespace k8s.Models
|
||||
/// the controller does not require extra parameters.
|
||||
/// </summary>
|
||||
[JsonProperty(PropertyName = "parameters")]
|
||||
public V1TypedLocalObjectReference Parameters { get; set; }
|
||||
public V1beta1IngressClassParametersReference Parameters { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Validate the object.
|
||||
|
||||
@@ -158,7 +158,7 @@ namespace k8s.Models
|
||||
/// has side effects. Acceptable values are: Unknown, None, Some,
|
||||
/// NoneOnDryRun Webhooks with side effects MUST implement a
|
||||
/// reconciliation system, since a request may be rejected by a future
|
||||
/// step in the admission change and the side effects therefore need to
|
||||
/// step in the admission chain and the side effects therefore need to
|
||||
/// be undone. Requests with the dryRun attribute will be auto-rejected
|
||||
/// if they match a webhook with sideEffects == Unknown or Some.
|
||||
/// Defaults to Unknown.</param>
|
||||
@@ -359,7 +359,7 @@ namespace k8s.Models
|
||||
/// effects. Acceptable values are: Unknown, None, Some, NoneOnDryRun
|
||||
/// Webhooks with side effects MUST implement a reconciliation system,
|
||||
/// since a request may be rejected by a future step in the admission
|
||||
/// change and the side effects therefore need to be undone. Requests
|
||||
/// chain and the side effects therefore need to be undone. Requests
|
||||
/// with the dryRun attribute will be auto-rejected if they match a
|
||||
/// webhook with sideEffects == Unknown or Some. Defaults to Unknown.
|
||||
/// </summary>
|
||||
|
||||
@@ -38,7 +38,10 @@ namespace k8s.Models
|
||||
/// So for example you can prevent all voluntary evictions by
|
||||
/// specifying "100%".</param>
|
||||
/// <param name="selector">Label query over pods whose evictions are
|
||||
/// managed by the disruption budget.</param>
|
||||
/// managed by the disruption budget. A null selector selects no pods.
|
||||
/// An empty selector ({}) also selects no pods, which differs from
|
||||
/// standard behavior of selecting all pods. In policy/v1, an empty
|
||||
/// selector will select all pods in the namespace.</param>
|
||||
public V1beta1PodDisruptionBudgetSpec(IntstrIntOrString maxUnavailable = default(IntstrIntOrString), IntstrIntOrString minAvailable = default(IntstrIntOrString), V1LabelSelector selector = default(V1LabelSelector))
|
||||
{
|
||||
MaxUnavailable = maxUnavailable;
|
||||
@@ -73,7 +76,10 @@ namespace k8s.Models
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets label query over pods whose evictions are managed by
|
||||
/// the disruption budget.
|
||||
/// the disruption budget. A null selector selects no pods. An empty
|
||||
/// selector ({}) also selects no pods, which differs from standard
|
||||
/// behavior of selecting all pods. In policy/v1, an empty selector
|
||||
/// will select all pods in the namespace.
|
||||
/// </summary>
|
||||
[JsonProperty(PropertyName = "selector")]
|
||||
public V1LabelSelector Selector { get; set; }
|
||||
|
||||
@@ -37,6 +37,22 @@ namespace k8s.Models
|
||||
/// currently allowed.</param>
|
||||
/// <param name="expectedPods">total number of pods counted by this
|
||||
/// disruption budget</param>
|
||||
/// <param name="conditions">Conditions contain conditions for PDB. The
|
||||
/// disruption controller sets the DisruptionAllowed condition. The
|
||||
/// following are known values for the reason field (additional reasons
|
||||
/// could be added in the future): - SyncFailed: The controller
|
||||
/// encountered an error and wasn't able to compute
|
||||
/// the number of allowed disruptions. Therefore no disruptions are
|
||||
/// allowed and the status of the condition will be False.
|
||||
/// - InsufficientPods: The number of pods are either at or below the
|
||||
/// number
|
||||
/// required by the PodDisruptionBudget. No disruptions are
|
||||
/// allowed and the status of the condition will be False.
|
||||
/// - SufficientPods: There are more pods than required by the
|
||||
/// PodDisruptionBudget.
|
||||
/// The condition will be True, and the number of allowed
|
||||
/// disruptions are provided by the disruptionsAllowed
|
||||
/// property.</param>
|
||||
/// <param name="disruptedPods">DisruptedPods contains information
|
||||
/// about pods whose eviction was processed by the API server eviction
|
||||
/// subresource handler but has not yet been observed by the
|
||||
@@ -55,8 +71,9 @@ namespace k8s.Models
|
||||
/// when updating this PDB status. DisruptionsAllowed and other status
|
||||
/// information is valid only if observedGeneration equals to PDB's
|
||||
/// object generation.</param>
|
||||
public V1beta1PodDisruptionBudgetStatus(int currentHealthy, int desiredHealthy, int disruptionsAllowed, int expectedPods, IDictionary<string, System.DateTime?> disruptedPods = default(IDictionary<string, System.DateTime?>), long? observedGeneration = default(long?))
|
||||
public V1beta1PodDisruptionBudgetStatus(int currentHealthy, int desiredHealthy, int disruptionsAllowed, int expectedPods, IList<V1Condition> conditions = default(IList<V1Condition>), IDictionary<string, System.DateTime?> disruptedPods = default(IDictionary<string, System.DateTime?>), long? observedGeneration = default(long?))
|
||||
{
|
||||
Conditions = conditions;
|
||||
CurrentHealthy = currentHealthy;
|
||||
DesiredHealthy = desiredHealthy;
|
||||
DisruptedPods = disruptedPods;
|
||||
@@ -71,6 +88,26 @@ namespace k8s.Models
|
||||
/// </summary>
|
||||
partial void CustomInit();
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets conditions contain conditions for PDB. The disruption
|
||||
/// controller sets the DisruptionAllowed condition. The following are
|
||||
/// known values for the reason field (additional reasons could be
|
||||
/// added in the future): - SyncFailed: The controller encountered an
|
||||
/// error and wasn't able to compute
|
||||
/// the number of allowed disruptions. Therefore no disruptions are
|
||||
/// allowed and the status of the condition will be False.
|
||||
/// - InsufficientPods: The number of pods are either at or below the
|
||||
/// number
|
||||
/// required by the PodDisruptionBudget. No disruptions are
|
||||
/// allowed and the status of the condition will be False.
|
||||
/// - SufficientPods: There are more pods than required by the
|
||||
/// PodDisruptionBudget.
|
||||
/// The condition will be True, and the number of allowed
|
||||
/// disruptions are provided by the disruptionsAllowed property.
|
||||
/// </summary>
|
||||
[JsonProperty(PropertyName = "conditions")]
|
||||
public IList<V1Condition> Conditions { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets current number of healthy pods
|
||||
/// </summary>
|
||||
@@ -129,6 +166,16 @@ namespace k8s.Models
|
||||
/// </exception>
|
||||
public virtual void Validate()
|
||||
{
|
||||
if (Conditions != null)
|
||||
{
|
||||
foreach (var element in Conditions)
|
||||
{
|
||||
if (element != null)
|
||||
{
|
||||
element.Validate();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -12,6 +12,7 @@ namespace k8s.Models
|
||||
/// <summary>
|
||||
/// PodSecurityPolicy governs the ability to make requests that affect the
|
||||
/// Security Context that will be applied to a pod and container.
|
||||
/// Deprecated in 1.21.
|
||||
/// </summary>
|
||||
public partial class V1beta1PodSecurityPolicy
|
||||
{
|
||||
|
||||
@@ -136,7 +136,7 @@ namespace k8s.Models
|
||||
/// has side effects. Acceptable values are: Unknown, None, Some,
|
||||
/// NoneOnDryRun Webhooks with side effects MUST implement a
|
||||
/// reconciliation system, since a request may be rejected by a future
|
||||
/// step in the admission change and the side effects therefore need to
|
||||
/// step in the admission chain and the side effects therefore need to
|
||||
/// be undone. Requests with the dryRun attribute will be auto-rejected
|
||||
/// if they match a webhook with sideEffects == Unknown or Some.
|
||||
/// Defaults to Unknown.</param>
|
||||
@@ -310,7 +310,7 @@ namespace k8s.Models
|
||||
/// effects. Acceptable values are: Unknown, None, Some, NoneOnDryRun
|
||||
/// Webhooks with side effects MUST implement a reconciliation system,
|
||||
/// since a request may be rejected by a future step in the admission
|
||||
/// change and the side effects therefore need to be undone. Requests
|
||||
/// chain and the side effects therefore need to be undone. Requests
|
||||
/// with the dryRun attribute will be auto-rejected if they match a
|
||||
/// webhook with sideEffects == Unknown or Some. Defaults to Unknown.
|
||||
/// </summary>
|
||||
|
||||
@@ -35,7 +35,7 @@ namespace k8s.Models
|
||||
/// pod's inline VolumeSource. This field is populated only for the
|
||||
/// CSIMigration feature. It contains translated fields from a pod's
|
||||
/// inline VolumeSource to a PersistentVolumeSpec. This field is
|
||||
/// alpha-level and is only honored by servers that enabled the
|
||||
/// beta-level and is only honored by servers that enabled the
|
||||
/// CSIMigration feature.</param>
|
||||
/// <param name="persistentVolumeName">Name of the persistent volume to
|
||||
/// attach.</param>
|
||||
@@ -56,7 +56,7 @@ namespace k8s.Models
|
||||
/// necessary to attach a persistent volume defined by a pod's inline
|
||||
/// VolumeSource. This field is populated only for the CSIMigration
|
||||
/// feature. It contains translated fields from a pod's inline
|
||||
/// VolumeSource to a PersistentVolumeSpec. This field is alpha-level
|
||||
/// VolumeSource to a PersistentVolumeSpec. This field is beta-level
|
||||
/// and is only honored by servers that enabled the CSIMigration
|
||||
/// feature.
|
||||
/// </summary>
|
||||
|
||||
47
src/KubernetesClient/generated/VersionConverter.cs
generated
47
src/KubernetesClient/generated/VersionConverter.cs
generated
@@ -40,10 +40,10 @@ namespace k8s.Versioning
|
||||
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();
|
||||
cfg.CreateMap<V1beta1CronJobStatus, V2alpha1CronJobStatus>().ReverseMap();
|
||||
cfg.CreateMap<V1beta1CronJob, V1CronJob>().ReverseMap();
|
||||
cfg.CreateMap<V1beta1CronJobList, V1CronJobList>().ReverseMap();
|
||||
cfg.CreateMap<V1beta1CronJobSpec, V1CronJobSpec>().ReverseMap();
|
||||
cfg.CreateMap<V1beta1CronJobStatus, V1CronJobStatus>().ReverseMap();
|
||||
cfg.CreateMap<V1CrossVersionObjectReference, V2beta1CrossVersionObjectReference>().ReverseMap();
|
||||
cfg.CreateMap<V1CrossVersionObjectReference, V2beta2CrossVersionObjectReference>().ReverseMap();
|
||||
cfg.CreateMap<V2beta1CrossVersionObjectReference, V2beta2CrossVersionObjectReference>().ReverseMap();
|
||||
@@ -53,6 +53,8 @@ namespace k8s.Versioning
|
||||
cfg.CreateMap<V1beta1CSINodeDriver, V1CSINodeDriver>().ReverseMap();
|
||||
cfg.CreateMap<V1beta1CSINodeList, V1CSINodeList>().ReverseMap();
|
||||
cfg.CreateMap<V1beta1CSINodeSpec, V1CSINodeSpec>().ReverseMap();
|
||||
cfg.CreateMap<V1alpha1CSIStorageCapacity, V1beta1CSIStorageCapacity>().ReverseMap();
|
||||
cfg.CreateMap<V1alpha1CSIStorageCapacityList, V1beta1CSIStorageCapacityList>().ReverseMap();
|
||||
cfg.CreateMap<V1beta1CustomResourceColumnDefinition, V1CustomResourceColumnDefinition>().ReverseMap();
|
||||
cfg.CreateMap<V1beta1CustomResourceConversion, V1CustomResourceConversion>().ReverseMap();
|
||||
cfg.CreateMap<V1beta1CustomResourceDefinition, V1CustomResourceDefinition>().ReverseMap();
|
||||
@@ -65,16 +67,12 @@ namespace k8s.Versioning
|
||||
cfg.CreateMap<V1beta1CustomResourceSubresources, V1CustomResourceSubresources>().ReverseMap();
|
||||
cfg.CreateMap<V1beta1CustomResourceSubresourceScale, V1CustomResourceSubresourceScale>().ReverseMap();
|
||||
cfg.CreateMap<V1beta1CustomResourceValidation, V1CustomResourceValidation>().ReverseMap();
|
||||
cfg.CreateMap<V1beta1EndpointPort, V1EndpointPort>().ReverseMap();
|
||||
cfg.CreateMap<V1beta1EndpointConditions, V1EndpointConditions>().ReverseMap();
|
||||
cfg.CreateMap<V1beta1EndpointHints, V1EndpointHints>().ReverseMap();
|
||||
cfg.CreateMap<V1beta1EndpointSlice, V1EndpointSlice>().ReverseMap();
|
||||
cfg.CreateMap<V1beta1EndpointSliceList, V1EndpointSliceList>().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<V1beta1ForZone, V1ForZone>().ReverseMap();
|
||||
cfg.CreateMap<V1HorizontalPodAutoscaler, V2beta1HorizontalPodAutoscaler>().ReverseMap();
|
||||
cfg.CreateMap<V1HorizontalPodAutoscaler, V2beta2HorizontalPodAutoscaler>().ReverseMap();
|
||||
cfg.CreateMap<V2beta1HorizontalPodAutoscaler, V2beta2HorizontalPodAutoscaler>().ReverseMap();
|
||||
@@ -85,14 +83,13 @@ namespace k8s.Versioning
|
||||
cfg.CreateMap<V2beta1HorizontalPodAutoscalerStatus, V2beta2HorizontalPodAutoscalerStatus>().ReverseMap();
|
||||
cfg.CreateMap<V1beta1IngressClass, V1IngressClass>().ReverseMap();
|
||||
cfg.CreateMap<V1beta1IngressClassList, V1IngressClassList>().ReverseMap();
|
||||
cfg.CreateMap<V1beta1IngressClassParametersReference, V1IngressClassParametersReference>().ReverseMap();
|
||||
cfg.CreateMap<V1beta1IngressClassSpec, V1IngressClassSpec>().ReverseMap();
|
||||
cfg.CreateMap<V1beta1JobTemplateSpec, V2alpha1JobTemplateSpec>().ReverseMap();
|
||||
cfg.CreateMap<V1beta1JobTemplateSpec, V1JobTemplateSpec>().ReverseMap();
|
||||
cfg.CreateMap<V1beta1JSONSchemaProps, V1JSONSchemaProps>().ReverseMap();
|
||||
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();
|
||||
@@ -100,31 +97,24 @@ 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<V1beta1PodDisruptionBudget, V1PodDisruptionBudget>().ReverseMap();
|
||||
cfg.CreateMap<V1beta1PodDisruptionBudgetList, V1PodDisruptionBudgetList>().ReverseMap();
|
||||
cfg.CreateMap<V1beta1PodDisruptionBudgetSpec, V1PodDisruptionBudgetSpec>().ReverseMap();
|
||||
cfg.CreateMap<V1beta1PodDisruptionBudgetStatus, V1PodDisruptionBudgetStatus>().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();
|
||||
@@ -149,9 +139,9 @@ namespace k8s.Versioning
|
||||
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<V1alpha1Subject, V1Subject>().ReverseMap();
|
||||
cfg.CreateMap<V1beta1SubjectAccessReview, V1SubjectAccessReview>().ReverseMap();
|
||||
cfg.CreateMap<V1beta1SubjectAccessReviewSpec, V1SubjectAccessReviewSpec>().ReverseMap();
|
||||
cfg.CreateMap<V1beta1SubjectAccessReviewStatus, V1SubjectAccessReviewStatus>().ReverseMap();
|
||||
@@ -160,7 +150,6 @@ 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();
|
||||
|
||||
12142
src/KubernetesClient/generated/swagger.json
generated
12142
src/KubernetesClient/generated/swagger.json
generated
File diff suppressed because it is too large
Load Diff
11988
src/KubernetesClient/generated/swagger.json.unprocessed
generated
11988
src/KubernetesClient/generated/swagger.json.unprocessed
generated
File diff suppressed because it is too large
Load Diff
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user